arm: dts: assigned host vbus regulator for rk3229-evb board
authorFrank Wang <frank.wang@rock-chips.com>
Thu, 4 May 2017 07:20:14 +0000 (15:20 +0800)
committerFrank Wang <frank.wang@rock-chips.com>
Fri, 5 May 2017 01:03:36 +0000 (09:03 +0800)
Change-Id: I86608300c600db0ece0120ce3fba0f541953910e
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
arch/arm/boot/dts/rk3229-evb.dts

index b6a12035a6bbfa93c98a47e33dd11935bcd2d1d4..6905788e3db8c2e34c6f82d16f4ad0683c9bbf99 100644 (file)
                #clock-cells = <0>;
        };
 
+       vcc_host: vcc-host-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio3 20 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&host_vbus_drv>;
+               regulator-name = "vcc_host";
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
        vcc_phy: vcc-phy-regulator {
                compatible = "regulator-fixed";
                enable-active-high;
        status = "okay";
 };
 
+&pinctrl {
+       usb {
+               host_vbus_drv: host-vbus-drv {
+                       rockchip,pins = <3 20 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+};
+
+&u2phy0_host {
+       phy-supply = <&vcc_host>;
+};
+
+&u2phy1_host {
+       phy-supply = <&vcc_host>;
+};
+
 &uart2 {
        status = "okay";
 };