[PATCH net-next v3 5/5] net: stmmac: sun55i: Add support for Allwinner A733 GMAC210

Alastair D'Silva alastair at d-silva.org
Wed Nov 25 22:43:45 PST 2026


Hi Jerome,

While testing A733 GMAC210 on the Orange Pi 4 Pro (YT8531 PHY), we hit
two hardware differences that also affect this series:

1. External vs. internal RGMII TX clock (SYSCON_ETCS_EXT_GMII):
   Unlike the Cubie A7A, the Orange Pi 4 Pro wires the PHY's 125 MHz
   CLK_OUT back to the MAC and stalls on 1 Gbps TX with
   SYSCON_ETCS_INT_GMII (0x2). It requires SYSCON_ETCS_EXT_GMII (0x1),
   matching Allwinner's "aw,rgmii-clk-ext" BSP property. A733 GMAC210
   will need a DT/clock way to select EXT_GMII vs. INT_GMII so both
   boards work.

2. RX clock inversion (BIT(4), ERXIE in glue offset 0x00):
   With BIT(4) = 0, Orange Pi 4 Pro required ~3.8-4.1 ns of total RX
   delay (matching what you saw on Cubie A7A with 1800 ps MAC delay on
   top of 2 ns PHY delay). Testing with BIT(4) = 1 (ERXIE) confirmed
   it inverts RXC by ~4 ns (180 degrees at 125 MHz), centering RX at
   0 ps MAC/PHY RX delay. Andrew Lunn requested fixing this clock
   inversion rather than compensating with ~2-4 ns rx-internal-delay-ps.

I plan to rebase the Orange Pi 4 Pro Ethernet support on top of this
series and address these in follow-on patches unless you intend to
roll them into a v4.

Thanks,
Alastair



More information about the linux-arm-kernel mailing list