[PATCH v2 2/4] ARM: dts: allwinner: orangepi-zero-plus2: Fix USB peripheral mode
From: Ivan Pfarher via B4 Relay
Date: Thu Dec 03 2026 - 04:04:22 EST
From: Ivan Pfarher <ipfarher@xxxxxxxxx>
The micro USB port is set to dr_mode = "peripheral" because it cannot
supply VBUS, but EHCI0/OHCI0, which share USB PHY 0 with the MUSB
controller, are enabled too. When they register, the USB core asks the
shared PHY for host mode and phy-sun4i-usb switches PHY 0 to host, so a
gadget never shows up on the host.
This is the same problem as on the H5 version of the board, which is
the same hardware with a different SoC. The port cannot work as a host
anyway, so drop EHCI0 and OHCI0.
Not tested on the H3 variant. The same change was tested on the H5
variant of the board (Linux 6.6.160), where g_cdc then enumerates on
the PC. Build-tested only against current mainline.
This problem was investigated, and the patch drafted, in an interactive
session with an AI coding assistant (Claude by Anthropic). The submitter
reviewed the change and ran the tests described above.
Fixes: 43aad09c7928 ("ARM: dts: orange-pi-zero-plus2: enable USB OTG port")
Signed-off-by: Ivan Pfarher <ipfarher@xxxxxxxxx>
---
arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts
index 852723e94..0ca7d8a9d 100644
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts
@@ -120,10 +120,6 @@
status = "okay";
};
-&ehci0 {
- status = "okay";
-};
-
&hdmi {
status = "okay";
};
@@ -168,10 +164,6 @@
status = "okay";
};
-&ohci0 {
- status = "okay";
-};
-
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pa_pins>;
--
2.43.0