ARM: dts: rk3188-radxarock: enable sd-card slot
authorHeiko Stuebner <heiko@sntech.de>
Thu, 26 Jun 2014 14:18:44 +0000 (16:18 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 26 Jul 2014 21:43:59 +0000 (23:43 +0200)
The Radxa Rock contains one sd-card slot. Add the supplying regulator
and enable its dw_mmc node.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3188-radxarock.dts

index a281293..7628b48 100644 (file)
                        default-state = "off";
                };
        };
+
+       vcc_sd0: sdmmc-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "sdmmc-supply";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
+               startup-delay-us = <100000>;
+               vin-supply = <&vcc_io>;
+       };
 };
 
 &i2c1 {
        };
 };
 
+&mmc0 {
+       num-slots = <1>;
+       status = "okay";
+       vmmc-supply = <&vcc_sd0>;
+
+       slot@0 {
+               reg = <0>;
+               bus-width = <4>;
+               disable-wp;
+       };
+};
+
 &pinctrl {
        pcfg_output_low: pcfg-output-low {
                output-low;