aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/mmc
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-08-23 14:15:33 -0400
committerChris Ball <cjb@laptop.org>2011-10-26 15:43:35 -0400
commit275173b225ae663e54d8dc5c93d79265aad19f89 (patch)
treece6cd20e8d888c74d0eaa3975acee705f239462a /Documentation/devicetree/bindings/mmc
parent08da834a24312157f512224691ad1fddd11c1073 (diff)
mmc: sdhci-tegra: Add Device Tree probing support
Add hooks to read gpio configuration out of the device tree node. [grant.likely: Rewrite of original patch from John Bonesio] Signed-off-by: Grant Likely <grant.likely@secretlab.ca> [swarren: Fixed tegra_sdhci_get_ro() to retrieve pdata correctly] [swarren: Reworked to avoid #ifdef CONFIG_OF] [swarren: Reworked binding based on fsl-imx-esdhc.txt] [swarren: Documented binding] Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'Documentation/devicetree/bindings/mmc')
-rw-r--r--Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt b/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt
new file mode 100644
index 000000000000..c87f66782726
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt
@@ -0,0 +1,25 @@
1* NVIDIA Tegra Secure Digital Host Controller
2
3This controller on Tegra family SoCs provides an interface for MMC, SD,
4and SDIO types of memory cards.
5
6Required properties:
7- compatible : Should be "nvidia,<chip>-sdhci"
8- reg : Should contain eSDHC registers location and length
9- interrupts : Should contain eSDHC interrupt
10
11Optional properties:
12- cd-gpios : Specify GPIOs for card detection
13- wp-gpios : Specify GPIOs for write protection
14- power-gpios : Specify GPIOs for power control
15
16Example:
17
18sdhci@c8000200 {
19 compatible = "nvidia,tegra20-sdhci";
20 reg = <0xc8000200 0x200>;
21 interrupts = <47>;
22 cd-gpios = <&gpio 69 0>; /* gpio PI5 */
23 wp-gpios = <&gpio 57 0>; /* gpio PH1 */
24 power-gpios = <&gpio 155 0>; /* gpio PT3 */
25};