[PATCH v2 7/7] arm64: dts: allwinner: sun60i-a733-orangepi-4-pro: Enable GMAC0 Ethernet
Jacob George
jacob at by-ai-for-ai.com
Mon Nov 30 08:28:23 PST 2026
Hi Alastair,
On Mon, 30 Nov 2026 12:30:02 +1100, Alastair D'Silva wrote:
> +&mdio0 {
> + ext_rgmii_phy: ethernet-phy at 1 {
> + compatible = "ethernet-phy-ieee802.3-c22";
> + reg = <1>;
> + clocks = <&ccu CLK_GMAC0_PHY>;
> + motorcomm,clk-out-frequency-hz = <125000000>;
> + reset-gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; /* PH16 */
Two observations from bringing up this board on a 6.18 BSP-based kernel,
in case they are useful.
1. PH16 as the PHY reset: Orange Pi's own device tree for this board (the
one their 5.15 image ships) has an empty "reset-gpios;" in the PHY node,
i.e. no PHY reset line. PH16 is the PHY reset on the Radxa Cubie A7A.
Do you have a schematic reference for PH16 on the Orange Pi 4 Pro? If
not, it may be safer to leave reset-gpios out.
2. RGMII delays: with "rgmii-id" and no rx/tx-internal-delay-ps, the YT8531
driver programs its defaults (1950 ps each). For comparison, under the
vendor 5.15 kernel the PHY runs with (read over MDIO):
ext 0xA001 = 0x8120 (RXC_DLY_EN = 1, i.e. ~1.9 ns RX delay)
ext 0xA003 = 0x00f1 (GE TX delay field = 1, i.e. 150 ps)
while the vendor MAC glue adds its own rx-delay = <0x0a> and
tx-delay = <0x0c>. On our kernel the MAC side adds no delay, and
transmit only worked once we matched the PHY to rx 1900 ps / tx 150 ps.
If your MAC glue also adds no delay, TX may be marginal with the 1950 ps
default; if it does, ignore this.
We agree on the rest: PF6 card detect being active-high, the 125 MHz PHY
clock output (the MAC takes its TX clock from the PHY), and the PHY's 3.3 V
switch (your swout1) having to stay on.
For what it is worth, there is also UEFI firmware (EDK2) for this board,
which boots kernels from SD or NVMe through GRUB:
https://github.com/by-ai-for-ai/edk2-a733 - happy to test your series on it
once it is in a tree we can pull.
Thanks for working on this board!
Full disclosure: the bring-up behind these notes - the EDK2 port and the
6.18 kernel - was done entirely by an AI (Claude, by Anthropic); I did the
hands-on hardware work. The register values above were read from my board.
Jacob George
More information about the linux-arm-kernel
mailing list