ARM: dts: rockchip: Add usb otg support rv1106/3 evb board

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I1a8651f428b2d1784da1db1a9a747545ffd7c323
This commit is contained in:
William Wu
2022-03-21 18:35:04 +08:00
committed by Tao Huang
parent 93d5b00f1f
commit fcfcf4e516
4 changed files with 86 additions and 0 deletions

View File

@@ -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>;
};

View File

@@ -31,3 +31,20 @@
&rve {
status = "okay";
};
&u2phy {
status = "okay";
};
&u2phy_otg {
status = "okay";
};
&usbdrd {
status = "okay";
};
&usbdrd_dwc3 {
extcon = <&u2phy>;
status = "okay";
};

View File

@@ -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>;
};

View File

@@ -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>;
};