mmc.txt 1.5 KB
Newer Older
A
Arnd Bergmann 已提交
1 2 3 4
These properties are common to multiple MMC host controllers. Any host
that requires the respective functionality should implement them using
these definitions.

5 6 7 8
Interpreted by the OF core:
- reg: Registers location and length.
- interrupts: Interrupts used by the MMC controller.

A
Arnd Bergmann 已提交
9 10 11
Required properties:
- bus-width: Number of data lines, can be <1>, <4>, or <8>

12
Card detection:
13
If no property below is supplied, host native card detect is used.
14 15 16 17 18
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.

A
Arnd Bergmann 已提交
19
Optional properties:
20 21
- wp-gpios: Specify GPIOs for write protection, see gpio binding
- cd-inverted: when present, polarity on the cd gpio line is inverted
A
Arnd Bergmann 已提交
22 23
- wp-inverted: when present, polarity on the wp gpio line is inverted
- max-frequency: maximum operating clock frequency
24 25
- no-1-8-v: when present, denotes that 1.8v card voltage is not supported on
  this system, even if the controller claims it is.
A
Arnd Bergmann 已提交
26

27 28 29 30
Optional SDIO properties:
- keep-power-in-suspend: Preserves card power during a suspend/resume cycle
- enable-sdio-wakeup: Enables wake up of host system on SDIO IRQ assertion

A
Arnd Bergmann 已提交
31 32 33 34 35 36 37 38 39 40 41
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>;
42 43
	keep-power-in-suspend;
	enable-sdio-wakeup;
A
Arnd Bergmann 已提交
44
}