[PATCH 4/4] riscv: dts: sophgo: Enable USB role switch on Huashan PI
From: Inochi Amaoto
Date: Tue Nov 10 2026 - 02:12:30 EST
As current the DWC2 support role switch on CV18XX SoCs. Enable it
on Huashan PI.
Signed-off-by: Inochi Amaoto <inochiama@xxxxxxxxx>
---
arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts b/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts
index aedf79f47407..bf3d58c355c3 100644
--- a/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts
+++ b/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts
@@ -88,6 +88,8 @@ &uart0 {
};
&usb {
- dr_mode = "host";
+ dr_mode = "otg";
+ usb-role-switch;
+ role-switch-default-mode = "host";
status = "okay";
};
--
2.56.0