mmc.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. - no-1-8-v: when present, denotes that 1.8v card voltage is not supported on
  21. this system, even if the controller claims it is.
  22. Optional SDIO properties:
  23. - keep-power-in-suspend: Preserves card power during a suspend/resume cycle
  24. - enable-sdio-wakeup: Enables wake up of host system on SDIO IRQ assertion
  25. Example:
  26. sdhci@ab000000 {
  27. compatible = "sdhci";
  28. reg = <0xab000000 0x200>;
  29. interrupts = <23>;
  30. bus-width = <4>;
  31. cd-gpios = <&gpio 69 0>;
  32. cd-inverted;
  33. wp-gpios = <&gpio 70 0>;
  34. max-frequency = <50000000>;
  35. keep-power-in-suspend;
  36. enable-sdio-wakeup;
  37. }