arm64: dts: rockchip: add vcc-host regulator for rk3368-sheep
authorFrank Wang <frank.wang@rock-chips.com>
Wed, 15 Mar 2017 07:18:48 +0000 (15:18 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 16 Mar 2017 00:35:05 +0000 (08:35 +0800)
This adds abstract vbus-host as a vcc-host regulator on rk3368-sheep.

Change-Id: I64deb38a3333346c47a5e2f499cec8d538d18baa
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368-sheep.dts

index de9976e0df646f58231484a3672c0d7f73f02bd3..775e42a8f48f99d8cd0f4c3d175f0e330e259a1a 100644 (file)
                regulator-min-microvolt = <3800000>;
                regulator-max-microvolt = <3800000>;
        };
+
+       vcc_host: vcc-host {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&host_vbus_drv>;
+               regulator-name = "vcc_host";
+               regulator-always-on;
+       };
 };
 
 &emmc {
                        rockchip,pins = <RK_GPIO0 1 RK_FUNC_GPIO &pcfg_pull_up>;
                };
        };
+
+       usb2 {
+               host_vbus_drv: host-vbus-drv {
+                       rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };