[PATCH v2 0/9] Add SpacemiT K1 USB2.0 controllers support
From: Junzhong Pan
Date: Tue Sep 08 2026 - 06:52:04 EST
The SpacemiT K1 SoC has two USB2.0 controllers, one has Dual-Role
support, but the hardware has no internal OTG registers, the other is
Host only. These controllers are compatible with Chipidea USB2 driver
with some flags set and reset control support.
This series is based on 7.3-rc1 and has been tested on Banana Pi F3
development board.
A self-powered USB device/hub is needed to test the host function of the
dual-role controller on Banana Pi F3, a MINI-PCIe USB2.0 module (a
cellular module e.g.) is needed to test the host only controller.
Signed-off-by: Junzhong Pan <panjunzhong@xxxxxxxxxxxxxxxxxx>
---
Changes in v2:
- rebase on 7.3-rc1 and collect tags
- reorder the usbphy and usb nodes in k1-bananapi-f3
- add constraint for spacemit,k1-usb2 in dt-binding
- add OrangePi RV2 device-tree change
- use devm_clk_get_optional_enabled() for driver according to sashiko's advice
- Link to v1: https://lore.kernel.org/r/20260812-b4-spacemit-k1-usb2-v1-0-f28cf29e522b@xxxxxxxxxxxxxxxxxx
---
Junzhong Pan (9):
dt-bindings: usb: ci-hdrc-usb2: add spacemit,k1-usb2 compatible
dt-bindings: usb: ci-hdrc-usb2: require clocks and resets for spacemit,k1-usb2
usb: chipidea: usb2: use devm_clk_get_optional_enabled()
usb: chipidea: usb2: add optional reset support
usb: chipidea: usb2: add SpacemiT K1 support
riscv: dts: spacemit: add USB2.0 controller nodes for K1
riscv: dts: spacemit: enable USB2.0 controllers on BananaPi F3
riscv: dts: spacemit: enable USB2.0 controllers on OrangePi RV2
riscv: defconfig: enable ChipIdea USB controller support
.../devicetree/bindings/usb/ci-hdrc-usb2.yaml | 15 ++++++++
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 16 +++++++++
arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 28 +++++++++++++++
arch/riscv/boot/dts/spacemit/k1.dtsi | 40 ++++++++++++++++++++++
arch/riscv/configs/defconfig | 4 +++
drivers/usb/chipidea/ci_hdrc_usb2.c | 30 +++++++++-------
6 files changed, 121 insertions(+), 12 deletions(-)
---
base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
change-id: 20260812-b4-spacemit-k1-usb2-97adfc283d58
Best regards,
--
Junzhong Pan <panjunzhong@xxxxxxxxxxxxxxxxxx>