[PATCH] riscv: defconfig: enable onboard USB hub support
Frédéric Mahé
frederic.mahe at cirad.fr
Mon Nov 9 09:55:49 PST 2026
The Banana Pi BPI-F3 (SpacemiT K1) has a VL817 USB 3.0 hub behind its
DWC3 controller. The hub's power and reset come from the
"usb2109,2817" and "usb2109,817" nodes in the device tree, which need
the onboard_usb_dev driver. Without it, the hub regulator (USB30_HUB)
stays off and the board's four USB-A ports are dead.
Enable USB_ONBOARD_DEV as a module, as arm64 defconfig does.
Tested on a Banana Pi BPI-F3 with v7.4-rc1 (dwc3 enabled as a module):
the module autoloads, the hub comes up on both buses and a USB mouse
on a USB-A port works. Without it, only the root hubs are seen.
This patch was prepared with the help of an AI assistant (Claude),
which also ran the build and boot tests.
Signed-off-by: Frédéric Mahé <frederic.mahe at cirad.fr>
---
arch/riscv/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index 04ae305..8fb6d7f 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/configs/defconfig
@@ -222,6 +222,7 @@ CONFIG_USB_CDNS3_HOST=y
CONFIG_USB_CDNS3_STARFIVE=m
CONFIG_USB_MUSB_HDRC=m
CONFIG_USB_MUSB_SUNXI=m
+CONFIG_USB_ONBOARD_DEV=m
CONFIG_NOP_USB_XCEIV=m
CONFIG_USB_GADGET=y
CONFIG_USB_CONFIGFS=m
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.53.0
More information about the linux-riscv
mailing list