arm64: dts: rockchip: rk3328-evb: add gpio control for vcc_sd
authorxiaoyao <xiaoyao@rock-chips.com>
Thu, 18 May 2017 01:16:09 +0000 (09:16 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 18 May 2017 07:01:50 +0000 (15:01 +0800)
Change-Id: Ib504aa0505bd6bea328c5fdd73d237baddcf17a5
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3328-evb.dts

index b435f1990f2045c2bcedf68ca42c4dbb934fe150..ac12d780510c1ac832a8db789be2342b2bb770dd 100644 (file)
                regulator-boot-on;
        };
 
+       vcc_sd: sdmmc-regulator {
+               compatible = "regulator-fixed";
+               gpio = <&gpio0 30 GPIO_ACTIVE_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&sdmmc0m1_gpio>;
+               regulator-name = "vcc_sd";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               vin-supply = <&vcc_io>;
+       };
+
        wireless-wlan {
                compatible = "wlan-platdata";
                rockchip,grf = <&grf>;
        pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
        supports-sd;
        status = "okay";
+       vmmc-supply = <&vcc_sd>;
 };
 
 &spdif {