Re: [PATCH V2] riscv: dts: spacemit: k3: add USB3 port A (DRD) nodes
From: Chunyan Zhang
Date: Tue Dec 01 2026 - 05:53:45 EST
Hi Junhui,
On Sun, 29 Nov 2026 at 01:15, Junhui Liu <junhui.liu@xxxxxxxxxxxxx> wrote:
>
> Hi Chunyan,
>
> Thanks for your work, but I found an issue when testing this patch...
>
> On Thu Nov 5, 2026 at 6:31 PM CST, Chunyan Zhang wrote:
> > Describe the DWC3 controller and its USB 2.0 PHY for USB3 port A
> > of the K3 SoC.
> >
> > Only the U2 lane is described: Port A's SuperSpeed PHY has no driver
> > yet, so the port runs at high-speed (maximum-speed = "high-speed").
> >
> > On the K3 Pico-ITX, Port A is a Type-C connector behind a FUSB301 CC
> > controller, which is not described yet. Nothing configures the
> > FUSB301, so the port relies on its power-on CC mode. Enable Port A
> > with dr_mode = "peripheral"; it is device-only until the CC
> > controller is described.
>
> In my testing, this patch alone does not make the USB gadget work unless
> I manually run the following command after the kernel has booted:
>
> devmem2 0xcad30040 w 0xA4080401
>
> 0xCAD30040 is a register in Port A's USB3 PHY. It seems that even when
> using only USB2, the USB3 PHY registers still need to be configured,
> so USB3 PHY driver support appears to be needed first for the gadget
> to work properly.
I re-ran it from a clean environment and confirm your finding: with
the DT change alone the
gadget does not enumerate, and writing 0xcad30040 bit[10] by hand makes it work.
So the U2-only description is not self-sufficient, and my earlier test
result was misleading -- I was focused on adb usage. Sorry for the noise.
Please ignore this patch for now.
Thanks,
Chunyan