Re: [PATCH v2 4/9] phy: allwinner: sun4i-usb: Add Allwinner A733 support

From: Alastair D'Silva

Date: Mon Nov 30 2026 - 17:19:58 EST


On Mon, 2026-11-30 at 08:25 -0300, Vinicius Pedrosa wrote:
> Hi Alastair,
>
> On Mon, 30 Nov 2026 12:16:18 +1100, Alastair D'Silva <alastair@xxxxxxxxxxx> wrote:
> > Enable the PHY register bus clock (bus) during PHY init, and keep PHY0 out
> > of reset and SIDDQ while any PHY is active.
>
> This overlaps with my A733 USB PHY v2 [1], which adds the same
> compatible and of_match entry.
>
> My patch clears SIDDQ in HCI_PHY_CTL before deasserting the PHY reset.
> Your PHY0 reset and SIDDQ handling might be complementary, but 4/9
> doesn't include that early clear.
>
> On my Cubie A7Z, the current order had USB1 enumeration failures in 3/40
> warm boots with a separate local PHY tuning change, and 1/31 without
> it. The early clear had no failures in 60 warm and 10 cold boots.
> I haven't established why the order matters, and the comparison
> within the interleaved run wasn't conclusive.
>
> My driver patch has Manivannan's Reviewed-by, and the binding has
> Krzysztof's Acked-by.
>
> Would it make sense to base your changes on my v2 and keep both the
> early SIDDQ clear and your PHY0 handling? I can test the combined
> code on my A7Z.
>
> [1] https://lore.kernel.org/r/20261116105544.669029-1-vinicius.eduardo.pedrosa@xxxxxxxxx
>
> Thanks,
> Vinicius

Hi Vinicius,

I re-tested on the OrangePi 4 Pro and confirmed USB1 works with
`RST_USB_PHY0` asserted (`0x02003300 = 0x0`) and PHY0 `SIDDQ` set
(`0x04100410 = 0x00034818`). My earlier `needs_phy0_siddq` workaround is
not needed.

I will drop patch 4/9 and base v3 directly on your v2 series.

--
Alastair D'Silva