The OLPC XO-1.75 laptop includes a SDHCI controller which is 1.8v capable, and it truthfully reports so in its capabilities. This alternate voltage is used for driving new "UHS-I" SD cards at their full speed. However, what the controller doesn't know is that the motherboard physically doesn't have a 1.8v supply available, so attempting to switch to the 1.8v level will result in a situation that cannot be recovered from without physically replugging the SD card. Add a device tree flag that can be used on systems like these, and hook it up to the equivalent SDHCI quirk. Signed-off-by: Daniel Drake <dsd@laptop.org> Reviewed-by: Philip Rakity <prakity@nvidia.com> Signed-off-by: Chris Ball <cjb@laptop.org>
44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
These properties are common to multiple MMC host controllers. Any host
|
|
that requires the respective functionality should implement them using
|
|
these definitions.
|
|
|
|
Interpreted by the OF core:
|
|
- reg: Registers location and length.
|
|
- interrupts: Interrupts used by the MMC controller.
|
|
|
|
Required properties:
|
|
- bus-width: Number of data lines, can be <1>, <4>, or <8>
|
|
|
|
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.
|
|
|
|
Optional properties:
|
|
- wp-gpios: Specify GPIOs for write protection, see gpio binding
|
|
- cd-inverted: when present, polarity on the cd gpio line is inverted
|
|
- wp-inverted: when present, polarity on the wp gpio line is inverted
|
|
- max-frequency: maximum operating clock frequency
|
|
- 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.
|
|
|
|
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
|
|
|
|
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>;
|
|
keep-power-in-suspend;
|
|
enable-sdio-wakeup;
|
|
}
|