From: Frank Wang Date: Thu, 4 May 2017 07:20:14 +0000 (+0800) Subject: arm: dts: assigned host vbus regulator for rk3229-evb board X-Git-Tag: release-20171130_firefly~4^2~662 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1924661beb206e47906e2e803122d88d9bf29967;p=firefly-linux-kernel-4.4.55.git arm: dts: assigned host vbus regulator for rk3229-evb board Change-Id: I86608300c600db0ece0120ce3fba0f541953910e Signed-off-by: Frank Wang --- diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index b6a12035a6bb..6905788e3db8 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -58,6 +58,17 @@ #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; @@ -85,6 +96,22 @@ 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"; };