Tegra30: fdt: Add SDMMC (sdhci) nodes for T30 boards (Cardhu for now)
authorTom Warren <twarren@nvidia.com>
Tue, 26 Feb 2013 18:14:17 +0000 (11:14 -0700)
committerTom Warren <twarren@nvidia.com>
Thu, 14 Mar 2013 18:06:44 +0000 (11:06 -0700)
Took these values directly from the kernel dts files.

Signed-off-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
arch/arm/dts/tegra30.dtsi
board/nvidia/dts/tegra30-cardhu.dts

index 9483e801f6187fe6f8aa3b8c3e17394450fea7d7..ccf154f1e76c0d8f2404aa0b53660788ac043d6f 100644 (file)
                clocks = <&tegra_car 105>;
                status = "disabled";
        };
+
+       sdhci@78000000 {
+               compatible = "nvidia,tegra30-sdhci";
+               reg = <0x78000000 0x200>;
+               interrupts = <0 14 0x04>;
+               clocks = <&tegra_car 14>;
+               status = "disabled";
+       };
+
+       sdhci@78000200 {
+               compatible = "nvidia,tegra30-sdhci";
+               reg = <0x78000200 0x200>;
+               interrupts = <0 15 0x04>;
+               clocks = <&tegra_car 9>;
+               status = "disabled";
+       };
+
+       sdhci@78000400 {
+               compatible = "nvidia,tegra30-sdhci";
+               reg = <0x78000400 0x200>;
+               interrupts = <0 19 0x04>;
+               clocks = <&tegra_car 69>;
+               status = "disabled";
+       };
+
+       sdhci@78000600 {
+               compatible = "nvidia,tegra30-sdhci";
+               reg = <0x78000600 0x200>;
+               interrupts = <0 31 0x04>;
+               clocks = <&tegra_car 15>;
+               status = "disabled";
+       };
 };
index 48039c9b30cbd53ce1afd254c20423f52d805aee..4d22b48ee917036f3da1e64e78a13e19294392d0 100644 (file)
@@ -12,6 +12,8 @@
                i2c2 = "/i2c@7000c400";
                i2c3 = "/i2c@7000c500";
                i2c4 = "/i2c@7000c700";
+               sdhci0 = "/sdhci@78000600";
+               sdhci1 = "/sdhci@78000000";
        };
 
        memory {
                status = "okay";
                spi-max-frequency = <25000000>;
        };
+
+       sdhci@78000000 {
+               status = "okay";
+               cd-gpios = <&gpio 69 1>; /* gpio PI5 */
+               wp-gpios = <&gpio 155 0>; /* gpio PT3 */
+               power-gpios = <&gpio 31 0>; /* gpio PD7 */
+               bus-width = <4>;
+       };
+
+       sdhci@78000600 {
+               status = "okay";
+               bus-width = <8>;
+       };
 };