ARM: sun6i: Add MMC0 controller to the Colombus board
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 21 May 2014 08:23:20 +0000 (10:23 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 22 May 2014 08:49:21 +0000 (10:49 +0200)
The Colombus has a full size SD slot wired to the MMC0 controller. In order to
work, the MMC lines have to have the pull-ups enabled though.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/boot/dts/sun6i-a31-colombus.dts

index 548f6677022c6cd48e8ce147440cc60da96095a2..546cf6eff5c796fcaa65da5f2bd58331ef0a59c1 100644 (file)
        };
 
        soc@01c00000 {
+               mmc0: mmc@01c0f000 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_colombus>;
+                       vmmc-supply = <&reg_vcc3v0>;
+                       bus-width = <4>;
+                       cd-gpios = <&pio 0 8 0>; /* PA8 */
+                       cd-inverted;
+                       status = "okay";
+               };
+
                usbphy: phy@01c19400 {
                        usb2_vbus-supply = <&reg_usb2_vbus>;
                        status = "okay";
                };
 
                pio: pinctrl@01c20800 {
+                       mmc0_pins_a: mmc0@0 {
+                               allwinner,pull = <1>;
+                       };
+
+                       mmc0_cd_pin_colombus: mmc0_cd_pin@0 {
+                               allwinner,pins = "PA8";
+                               allwinner,function = "gpio_in";
+                               allwinner,drive = <0>;
+                               allwinner,pull = <1>;
+                       };
+
                        usb2_vbus_pin_colombus: usb2_vbus_pin@0 {
                                allwinner,pins = "PH24";
                                allwinner,function = "gpio_out";