Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Andrew Lunn
Wed, 25 Nov 2026 17:30
Re: [PATCH 5/5] arm64: dts: allwinner: sun60i-a733-orangepi-4-pro: Enable GMAC0 Ethernet
Author: Andrew Lunn
Date: Wed, 25 Nov 2026 17:30
Date: Wed, 25 Nov 2026 17:30
20 lines
9415 bytes
9415 bytes
On Thu, Nov 26, 2026 at 12:06:13AM +1100, Alastair D'Silva wrote: > The Orange Pi 4 Pro connects A733 GMAC0 to a Motorcomm YT8531 Gigabit > PHY over RGMII without PCB trace delays. Use phy-mode = "rgmii" rather > than "rgmii-id" so PHY-side delays stay disabled and the MAC applies the > calibrated TX (2160 ps) and RX (3780 ps) delays directly. https://elixir.bootlin.com/linux/v6.15/source/Documentation/devicetree/bindings/net/ethernet-controller.yaml#L287 phy-mode describes the PCB. If the PCB has no delays, rgmii-id should be used. The MAC/PHY pair need to decide which of the two add the delays. This is not decided by phy-mode. 3780 ps is also huge, much greater than the 2ns required by the standard. It suggests something else is going on, maybe a clock is inverted? Please investigate. Andrew
Re: [PATCH 5/5] arm64: dts: allwinner: sun60i-a733-orangepi-4-pro: Enable GMAC0 Ethernet
Author: Andrew Lunn
Date: Wed, 25 Nov 2026 21:26
Date: Wed, 25 Nov 2026 21:26
25 lines
9472 bytes
9472 bytes
> For v2, I will switch the board DTS to phy-mode = "rgmii-id". Good. > and drop > tx-internal-delay-ps so the YT8531 PHY provides the standard ~2 ns > delays, Good. > while keeping ERXIE = 0 and setting rx-internal-delay-ps = <2160> > to compensate for the RX clock phase (matching existing dwmac-sun55i > boards). Not good. Please fix the clock inversion. Since this is a new compatible, there is no need to preserve old broken behaviour. The majority of boards should not need rx|tx-internal-delay-ps. The RGMII standard says there needs to be 2ns. phy-mode rgmii-id means the MAC/PHY pair will add 2ns. That is typically all that is needed. rx|tx-internal-delay-ps are only really needed for badly designed boards where the lines have not been kept equal length. Andrew
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads