[PATCH 0/3] riscv: dts: spacemit: Add USB 3.0 support for K1

Ze Huang posted 3 patches 3 months, 1 week ago
There is a newer version of this series
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 47 +++++++++++++++++++++++++
arch/riscv/boot/dts/spacemit/k1.dtsi            | 32 +++++++++++++++++
2 files changed, 79 insertions(+)
[PATCH 0/3] riscv: dts: spacemit: Add USB 3.0 support for K1
Posted by Ze Huang 3 months, 1 week ago
This patch series enables the DWC3 USB 3.0 host controller on the
Spacemit K1 SoC, and enables it for the Banana Pi F3 board.

To make USB 3.0 work on the K1, we need patches for the USB2 PHY [1],
ComboPHY [2], and DWC3 [3] driver, also, ensure enabling the following
configurations:

CONFIG_PHY_SPACEMIT_K1_USB2=y
CONFIG_PHY_SPACEMIT_K1_PCIE=y
CONFIG_USB_DWC3=y
CONFIG_USB_ONBOARD_DEV=y

The series is based on v6.18-rc1.

Link: https://lore.kernel.org/all/20251017-k1-usb2phy-v6-0-7cf9ea2477a1@linux.dev/ [1]
Link: https://lore.kernel.org/all/20251017190740.306780-1-elder@riscstar.com/ [2]
Link: https://github.com/torvalds/linux/commit/e0b6dc00c701 [3]

Thanks,
Ze Huang

Signed-off-by: Ze Huang <huang.ze@linux.dev>
---
Ze Huang (3):
      riscv: dts: spacemit: Add USB2 PHY node for K1
      riscv: dts: spacemit: Add DWC3 USB 3.0 controller node for K1
      riscv: dts: spacemit: Enable USB3.0 on BananaPi-F3

 arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 47 +++++++++++++++++++++++++
 arch/riscv/boot/dts/spacemit/k1.dtsi            | 32 +++++++++++++++++
 2 files changed, 79 insertions(+)
---
base-commit: cb6649f6217c0331b885cf787f1d175963e2a1d2
change-id: 20251030-k1-usb3dts-f8e2fb39f879
prerequisite-message-id: <20251017190740.306780-1-elder@riscstar.com>
prerequisite-patch-id: e6c36ae11fd6bb6238b3f256221856869db6958c
prerequisite-patch-id: b7bf3a95a8baaea88d776db7d9e46ced879187a1
prerequisite-patch-id: 893145648925a17c16a5de55bd6952f18e8b7d8e
prerequisite-patch-id: cd96cd9ae2fb4a1f73d34046952dad346823f80d
prerequisite-patch-id: 0baa531df5c47ffe9354ac3885e89bda9ae9b282
prerequisite-patch-id: 3beea086bdfd0ce6ffd011a8906319b1ba253c9c
prerequisite-patch-id: 755e4f791e363ab2f0ac0a4459d0cfd289123800

Best regards,
-- 
Ze Huang <huang.ze@linux.dev>
Re: [PATCH 0/3] riscv: dts: spacemit: Add USB 3.0 support for K1
Posted by Aurelien Jarno 1 month, 1 week ago
Hi,

On 2025-11-01 17:03, Ze Huang wrote:
> This patch series enables the DWC3 USB 3.0 host controller on the
> Spacemit K1 SoC, and enables it for the Banana Pi F3 board.
> 
> To make USB 3.0 work on the K1, we need patches for the USB2 PHY [1],
> ComboPHY [2], and DWC3 [3] driver, also, ensure enabling the following

Note that the CompoPHY part got merged in the meantime.

> configurations:
> 
> CONFIG_PHY_SPACEMIT_K1_USB2=y
> CONFIG_PHY_SPACEMIT_K1_PCIE=y
> CONFIG_USB_DWC3=y
> CONFIG_USB_ONBOARD_DEV=y
> 
> The series is based on v6.18-rc1.
> 
> Link: https://lore.kernel.org/all/20251017-k1-usb2phy-v6-0-7cf9ea2477a1@linux.dev/ [1]
> Link: https://lore.kernel.org/all/20251017190740.306780-1-elder@riscstar.com/ [2]
> Link: https://github.com/torvalds/linux/commit/e0b6dc00c701 [3]
> 
> Thanks,
> Ze Huang
> 
> Signed-off-by: Ze Huang <huang.ze@linux.dev>
> ---
> Ze Huang (3):
>       riscv: dts: spacemit: Add USB2 PHY node for K1
>       riscv: dts: spacemit: Add DWC3 USB 3.0 controller node for K1
>       riscv: dts: spacemit: Enable USB3.0 on BananaPi-F3
> 
>  arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 47 +++++++++++++++++++++++++
>  arch/riscv/boot/dts/spacemit/k1.dtsi            | 32 +++++++++++++++++
>  2 files changed, 79 insertions(+)

The whole series is:

Tested-by: Aurelien Jarno <aurelien@aurel32.net>

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
Re: [PATCH 0/3] riscv: dts: spacemit: Add USB 3.0 support for K1
Posted by Aurelien Jarno 1 month ago
Hi,

On 2025-12-29 21:14, Aurelien Jarno wrote:
> Hi,
> 
> On 2025-11-01 17:03, Ze Huang wrote:
> > This patch series enables the DWC3 USB 3.0 host controller on the
> > Spacemit K1 SoC, and enables it for the Banana Pi F3 board.
> > 
> > To make USB 3.0 work on the K1, we need patches for the USB2 PHY [1],
> > ComboPHY [2], and DWC3 [3] driver, also, ensure enabling the following
> 
> Note that the ComboPHY part got merged in the meantime.

The USB2 PHY part also got merged, so you might want to send a rebased 
version against https://github.com/spacemit-com/linux k1/for-next

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
Re: [PATCH 0/3] riscv: dts: spacemit: Add USB 3.0 support for K1
Posted by Ze Huang 1 month ago
On Mon, Jan 05, 2026 at 09:49:47PM +0100, Aurelien Jarno wrote:
> Hi,
> 
> On 2025-12-29 21:14, Aurelien Jarno wrote:
> > Hi,
> > 
> > On 2025-11-01 17:03, Ze Huang wrote:
> > > This patch series enables the DWC3 USB 3.0 host controller on the
> > > Spacemit K1 SoC, and enables it for the Banana Pi F3 board.
> > > 
> > > To make USB 3.0 work on the K1, we need patches for the USB2 PHY [1],
> > > ComboPHY [2], and DWC3 [3] driver, also, ensure enabling the following
> > 
> > Note that the ComboPHY part got merged in the meantime.
> 
> The USB2 PHY part also got merged, so you might want to send a rebased 
> version against https://github.com/spacemit-com/linux k1/for-next
> 
> Regards
> Aurelien

Hi Aurelien,

Thanks for the heads-up and for testing the series.
I'll rebase the patches on top of the k1/for-next branch and send out a new
version shortly.

Thanks,
Ze Huang