mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mmc: sdhci-spear: add device tree bindings
This adds simple DT bindings for SDHCI SPEAr controller. It uses cd-gpios from common mmc bindings. This also fixes spear300-evb.dts with correct name for card detect binding. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
2abeb5c5de
commit
067bf748bd
4 changed files with 77 additions and 6 deletions
21
Documentation/devicetree/bindings/mmc/sdhci-spear.txt
Normal file
21
Documentation/devicetree/bindings/mmc/sdhci-spear.txt
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
* SPEAr SDHCI Controller
|
||||
|
||||
This file documents differences between the core properties in mmc.txt
|
||||
and the properties used by the sdhci-spear driver.
|
||||
|
||||
Required properties:
|
||||
- compatible: "st,spear300-sdhci"
|
||||
|
||||
Optional properties:
|
||||
- cd-gpios: card detect gpio, with zero flags.
|
||||
|
||||
If your board don't support these gpios then don't pass the entry.
|
||||
|
||||
Example:
|
||||
|
||||
sdhci@fc000000 {
|
||||
compatible = "st,spear300-sdhci";
|
||||
reg = <0xfc000000 0x1000>;
|
||||
|
||||
cd-gpios = <&gpio0 6 0>
|
||||
};
|
||||
Loading…
Reference in a new issue