[PATCH 00/12] Add TH1520 USB support

Drew Fustini fustini at kernel.org
Sat Nov 28 04:14:04 PST 2026


On Thu, May 07, 2026 at 04:16:58PM +0800, Icenowy Zheng wrote:
> This patchset adds support for T-Head TH1520's USB functionality, and
> enabled it on the Lichee Pi 4A board.
> 
> The first 3 patches add support for the MISC subsystem clock
> contrtoller, which contains some USB clocks.
> 
> The next 2 patches add support for the USB PHY of T-Head TH1520, which
> is a wrapped Synopsys USB3.0 FemtoPHY with a little integration quirk;
> the controller itself is a properly configured DWC3 controller with sane
> default register values set.
> 
> Then one patch adds the USB PHY and controller nodes to the TH1520 DTSI
> file.
> 
> The remaining half of this patchset dedicates to enablement of USB on
> TH1520, because of the onboard hub of that board -- its USB2 signals are
> behind a switch that needs to be toggled on, and Vbus supplies for both
> the hub itself and downstream ports are managed via I2C-expanded GPIOs
> (because the SoC does not have enough GPIO pins).
> 
> Emil Renner Berthing (1):
>   riscv: dts: thead: Add Lichee Pi 4A IO expansions
> 
> Icenowy Zheng (10):
>   dt-bindings: clock: thead: add TH1520 MISC subsys clock controller
>   clk: thead: th1520-ap: add support for MISC subsys clocks
>   riscv: dts: thead: add device tree node for MISC clock controller
>   dt-bindings: phy: add binding for T-Head TH1520 USB PHY
>   phy: add a driver for T-Head TH1520 USB PHY
>   riscv: dts: thead: add device nodes for USB
>   dt-bindings: gpio: dwapb: allow GPIO hogs
>   dt-bindings: usb: vialab,vl817: allow ports property
>   riscv: dts: thead: lpi4a: sort nodes
>   riscv: dts: thead: enable USB3 ports on Lichee Pi 4A
> 
> Thomas Bonnefille (1):
>   riscv: dts: thead: Add TH1520 I2C nodes

I have applied patches 1 and 2 to thead-clk-for-next:

  [01/12] dt-bindings: clock: thead: add TH1520 MISC subsys clock controller
          https://git.kernel.org/fustini/c/c9240a577b73
  [02/12] clk: thead: th1520-ap: add support for MISC subsys clocks
          https://git.kernel.org/fustini/c/4f38d7bdaef4

and patch 3 to thead-dt-for-next:

  [03/12] riscv: dts: thead: add device tree node for MISC clock controller
          https://git.kernel.org/fustini/c/8d80d268b429

I fixed the platform data check for usb_suspend_div_clk in patch 2 when
applying.

Thanks,
Drew



More information about the linux-riscv mailing list