diff --git a/arch/arm/boot/dts/rv1103g-evb-v10.dts b/arch/arm/boot/dts/rv1103g-evb-v10.dts index 85c44c7884f7..29f744c63a97 100644 --- a/arch/arm/boot/dts/rv1103g-evb-v10.dts +++ b/arch/arm/boot/dts/rv1103g-evb-v10.dts @@ -11,4 +11,27 @@ / { model = "Rockchip RV1103G EVB V10 Board"; compatible = "rockchip,rv1103g-evb-v10", "rockchip,rv1103"; + + vcc5v0_usb: vcc5v0-usb { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_usb"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_pwren>; + }; +}; + +&pinctrl { + usb { + usb_pwren: usb-pwren { + rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&u2phy_otg { + vbus-supply = <&vcc5v0_usb>; }; diff --git a/arch/arm/boot/dts/rv1106-evb.dtsi b/arch/arm/boot/dts/rv1106-evb.dtsi index 0dd1cd46f8fb..11bbbad170d4 100644 --- a/arch/arm/boot/dts/rv1106-evb.dtsi +++ b/arch/arm/boot/dts/rv1106-evb.dtsi @@ -31,3 +31,20 @@ &rve { status = "okay"; }; + +&u2phy { + status = "okay"; +}; + +&u2phy_otg { + status = "okay"; +}; + +&usbdrd { + status = "okay"; +}; + +&usbdrd_dwc3 { + extcon = <&u2phy>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/rv1106g-evb1-v10.dts b/arch/arm/boot/dts/rv1106g-evb1-v10.dts index a37b9c4462ff..879f33ce0bd2 100644 --- a/arch/arm/boot/dts/rv1106g-evb1-v10.dts +++ b/arch/arm/boot/dts/rv1106g-evb1-v10.dts @@ -11,4 +11,27 @@ / { model = "Rockchip RV1106G EVB1 V10 Board"; compatible = "rockchip,rv1106g-evb1-v10", "rockchip,rv1106"; + + vcc5v0_usb: vcc5v0-usb { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_usb"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_pwren>; + }; +}; + +&pinctrl { + usb { + usb_pwren: usb-pwren { + rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&u2phy_otg { + vbus-supply = <&vcc5v0_usb>; }; diff --git a/arch/arm/boot/dts/rv1106g-evb2-v10.dts b/arch/arm/boot/dts/rv1106g-evb2-v10.dts index c8599df11bd8..beb067892380 100644 --- a/arch/arm/boot/dts/rv1106g-evb2-v10.dts +++ b/arch/arm/boot/dts/rv1106g-evb2-v10.dts @@ -11,4 +11,27 @@ / { model = "Rockchip RV1106G EVB2 V10 Board"; compatible = "rockchip,rv1106g-evb2-v10", "rockchip,rv1106"; + + vcc5v0_usb: vcc5v0-usb { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_usb"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_pwren>; + }; +}; + +&pinctrl { + usb { + usb_pwren: usb-pwren { + rockchip,pins = <4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&u2phy_otg { + vbus-supply = <&vcc5v0_usb>; };