[PATCH v3 1/4] dt-bindings: net: ethernet-controller: Correct the definition of phy-mode

Maxime Chevallier maxime.chevallier at bootlin.com
Tue Jan 21 05:08:40 PST 2025


On Tue, 21 Jan 2025 15:54:53 +0800
Yijie Yang <quic_yijiyang at quicinc.com> wrote:

> Correct the definition of 'phy-mode' to reflect that RX and TX delays are
> added by the board, not the MAC, to prevent confusion and ensure accurate
> documentation.

That's not entirely correct though. The purpose of the RGMII variants
(TXID, RXID, ID) are mostly to know whether or not the PHY must add
internal delays. That would be when the MAC can't AND there's no PCB
delay traces. Some MAC can insert delays.

There's documentation here as well on that point :

https://elixir.bootlin.com/linux/v6.13-rc3/source/Documentation/networking/phy.rst#L82

So, MACs may insert delays. A modification for the doc, if needed,
would rather be :

-      # RX and TX delays are added by the MAC when required
+      # RX and TX delays are added by the MAC or PCB traces when required

Thanks,

Maxime



More information about the linux-arm-kernel mailing list