ARM: u300: enable MMC/SD card from device tree
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Apr 2013 12:34:00 +0000 (14:34 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 11:54:26 +0000 (13:54 +0200)
This adds support for the U300 MMC/SD card slot from the device
tree boot. No other changes needed.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-u300.dts

index d1ab4e91bfffc73b2da714bde954926f438c47ba..ae51dd10942287fa8d3b519a639f9b37c535fe2c 100644 (file)
                        interrupt-parent = <&vicb>;
                        interrupts = <20>;
                };
+
+               mmcsd: mmcsd@c0001000 {
+                       compatible = "arm,pl18x", "arm,primecell";
+                       reg = <0xc0001000 0x1000>;
+                       interrupt-parent = <&vicb>;
+                       interrupts = <6 7>;
+                       max-frequency = <24000000>;
+                       bus-width = <4>; // SD-card slot
+                       mmc-cap-mmc-highspeed;
+                       mmc-cap-sd-highspeed;
+                       cd-gpios = <&gpio 12 0x4>;
+                       cd-inverted;
+                       vmmc-supply = <&ab3100_ldo_g_reg>;
+               };
        };
 };