mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] riscv: defconfig: enable onboard USB hub support
@ 2026-11-09 17:55 Frédéric Mahé
  2026-11-11  1:13 ` Paul Walmsley
  0 siblings, 1 reply; 2+ messages in thread
From: Frédéric Mahé @ 2026-11-09 17:55 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou
  Cc: Frédéric Mahé,
	Alexandre Ghiti, Yixun Lan, linux-riscv, spacemit, linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-11  1:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 17:55 [PATCH] riscv: defconfig: enable onboard USB hub support Frédéric Mahé
2026-11-11  1:13 ` Paul Walmsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®