[PATCH v5 8/9] riscv: dts: spacemit: enable USB2.0 controllers on OrangePi RV2

From: Junzhong Pan

Date: Tue Nov 17 2026 - 07:41:28 EST


On OrangePi RV2, usb2_0 is connected to a Type-A connector at host
mode, its vbus output is controlled by gpio 126. And the usb2_1 is
connected to the USB2.0 connector pins onboard.

Tested-by: Ze Huang <huang.ze@xxxxxxxxx>
Reviewed-by: Yixun Lan <dlan@xxxxxxxxxx>
Signed-off-by: Junzhong Pan <panjunzhong@xxxxxxxxxxxxxxxxxx>
---
arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 28 ++++++++++++++++++++++++
1 file changed, 28 insertions(+)

diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
index 790234f3550a..53ecf4826005 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
@@ -77,6 +77,16 @@ vcc5v0_usb30: regulator-vcc5v0-usb30 {
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc_5v0>;
};
+
+ vcc5v0_usb20: regulator-vcc5v0-usb20 {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpios = <&gpio K1_GPIO(126) GPIO_ACTIVE_HIGH>;
+ regulator-name = "vcc5v0_usb20";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ vin-supply = <&vcc_5v0>;
+ };
};

&combo_phy {
@@ -427,10 +437,28 @@ &uart0 {
status = "okay";
};

+&usbphy0 {
+ status = "okay";
+};
+
+&usbphy1 {
+ status = "okay";
+};
+
&usbphy2 {
status = "okay";
};

+&usb2_0 {
+ vbus-supply = <&vcc5v0_usb20>;
+ dr_mode = "host";
+ status = "okay";
+};
+
+&usb2_1 {
+ status = "okay";
+};
+
&usb_dwc3 {
dr_mode = "host";
#address-cells = <1>;

--
2.34.1