sunplus,mmc.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. # Copyright (C) Sunplus Ltd. Co. 2021
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/mmc/sunplus,mmc.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Sunplus MMC Controller
  8. maintainers:
  9. - Tony Huang <tonyhuang.sunplus@gmail.com>
  10. - Li-hao Kuo <lhjeff911@gmail.com>
  11. allOf:
  12. - $ref: mmc-controller.yaml
  13. properties:
  14. compatible:
  15. enum:
  16. - sunplus,sp7021-mmc
  17. reg:
  18. maxItems: 1
  19. interrupts:
  20. maxItems: 1
  21. clocks:
  22. maxItems: 1
  23. resets:
  24. maxItems: 1
  25. required:
  26. - compatible
  27. - reg
  28. - interrupts
  29. - clocks
  30. - resets
  31. unevaluatedProperties: false
  32. examples:
  33. - |
  34. #include <dt-bindings/interrupt-controller/irq.h>
  35. #include <dt-bindings/interrupt-controller/arm-gic.h>
  36. mmc0: mmc@9c003b00 {
  37. compatible = "sunplus,sp7021-mmc";
  38. reg = <0x9c003b00 0x180>;
  39. interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
  40. clocks = <&clkc 0x4e>;
  41. resets = <&rstc 0x3e>;
  42. bus-width = <8>;
  43. max-frequency = <52000000>;
  44. non-removable;
  45. disable-wp;
  46. cap-mmc-highspeed;
  47. mmc-ddr-3_3v;
  48. no-sdio;
  49. no-sd;
  50. };