mmc.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. These properties are common to multiple MMC host controllers. Any host
  2. that requires the respective functionality should implement them using
  3. these definitions.
  4. Interpreted by the OF core:
  5. - reg: Registers location and length.
  6. - interrupts: Interrupts used by the MMC controller.
  7. Required properties:
  8. - bus-width: Number of data lines, can be <1>, <4>, or <8>
  9. Card detection:
  10. If no property below is supplied, standard SDHCI card detect is used.
  11. Only one of the properties in this section should be supplied:
  12. - broken-cd: There is no card detection available; polling must be used.
  13. - cd-gpios: Specify GPIOs for card detection, see gpio binding
  14. - non-removable: non-removable slot (like eMMC); assume always present.
  15. Optional properties:
  16. - wp-gpios: Specify GPIOs for write protection, see gpio binding
  17. - cd-inverted: when present, polarity on the cd gpio line is inverted
  18. - wp-inverted: when present, polarity on the wp gpio line is inverted
  19. - max-frequency: maximum operating clock frequency
  20. Example:
  21. sdhci@ab000000 {
  22. compatible = "sdhci";
  23. reg = <0xab000000 0x200>;
  24. interrupts = <23>;
  25. bus-width = <4>;
  26. cd-gpios = <&gpio 69 0>;
  27. cd-inverted;
  28. wp-gpios = <&gpio 70 0>;
  29. max-frequency = <50000000>;
  30. }