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