When the Ethernet port on a freshly assembled board shows no link and no LEDs, resist the urge to start with the cable or the driver. First prove that the PHY itself is alive: its supplies and reset, its reference clock, the strap pins it reads at reset, its answer on the MDIO bus, and the MAC interface mode on both sides. Only once those five pass does it make sense to read link registers or probe the magnetics. This article was written with AI assistance, and each technical claim was checked against the standards and datasheets listed at the end.

1. Supplies and reset, measured at the PHY

Measure every rail on the PHY's own pins, not at the regulator: analog, digital core and the I/O supply that sets the logic level of the MAC interface. Some PHYs generate their core voltage with an on-chip regulator; if yours does, check that regulator's output pin too, because a missing inductor or capacitor there leaves the core unpowered while the input looks fine.

Then put a probe on the reset pin. The datasheet gives a minimum time that reset must stay asserted after the supplies are stable, and often after the reference clock is running. A reset line driven by a GPIO that the bootloader releases too early, or an RC network sized for a different part, can leave the PHY in a state where nothing else on this list works.

2. The reference clock, and who drives it

Interface Clock the PHY needs or provides
MII Both TX_CLK and RX_CLK come from the PHY (25 MHz for 100 Mbit/s)
RMII A single 50 MHz clock that MAC and PHY both use
RGMII 125 MHz at 1000 Mbit/s, 25 MHz at 100, 2.5 MHz at 10

With RMII, the 50 MHz reference can come from the MAC, from the PHY, or from a separate oscillator, and both chips must be configured for the same choice. If both are set to output the clock, they fight; if both expect an input, nobody drives the line. Scope the clock at the PHY pin and confirm the frequency and a clean edge before going further.

3. Strap pins, read at the moment reset is released

Most PHYs sample a handful of pins when reset is released to pick the MDIO address, the MAC interface mode and sometimes the auto-negotiation defaults. Many of those pins double as LED or data outputs after reset, so an LED, a pull resistor on the MAC side or a long trace can pull them to the wrong level at exactly the wrong time.

Check two things: the resistor values against the strap table in the datasheet, and the actual voltage on each strap pin while reset is held. A PHY strapped to an unexpected address explains a driver that finds nothing where the device tree says to look; one strapped to the wrong interface explains a link that comes up with no traffic.

4. Does the PHY answer on MDIO?

The management bus is two wires defined in IEEE 802.3 Clause 22: MDC (clock from the MAC) and MDIO (data, shared, needs a pull-up). Registers 2 and 3 hold the PHY identifier, so a scan of all 32 addresses shows at once whether the chip responds:

/* Clause 22: registers 2 and 3 hold the PHY identifier */ for (int addr = 0; addr < 32; addr++) { uint16_t id1 = mdio_read(addr, 0x02); uint16_t id2 = mdio_read(addr, 0x03); if (id1 == 0xFFFF && id2 == 0xFFFF) continue; /* no device drove the bus here */ printf("addr %2d: id %04x:%04x\n", addr, id1, id2); } /* Every address 0xFFFF: check MDC activity, PHY power and reset. * Every address 0x0000: MDIO is stuck low or its pull-up is missing. */ 

Compare the identifier with the value printed in the datasheet. A correct ID at the expected address means power, reset, clock and straps are at least good enough for the digital side to run.

5. The same MAC interface mode on both ends

MII, RMII, RGMII and SGMII are not interchangeable: a MAC running one cannot talk to a PHY running another. The MAC driver and the PHY strap or register configuration must name the same interface.

RGMII adds one more trap. At 1000 Mbit/s the transmitter launches clock and data edges at the same instant, so somewhere along the way the clock has to be shifted later than the data for the receiver to sample it. That delay can come from the PCB, the MAC or the PHY, and it must be added exactly once in each direction. TI's DP83867 datasheet, for example, asks for more than 1.5 ns of extra clock-trace delay when the PHY's internal delay is off. In a Linux device tree, phy-mode describes the board: rgmii means the PCB adds both delays, rgmii-id means it adds none, rgmii-rxid means it adds only the TX delay, rgmii-txid only the RX one. A MAC-added delay leaves phy-mode unchanged; the MAC driver removes it from the mode passed to the PHY.

The tell-tale symptom of a delay added twice or not at all is a port that works at 100 Mbit/s and fails at 1000 Mbit/s: at 25 MHz there is enough slack to hide the error, at 125 MHz there is not.

After the five checks

Once all five pass, the digital half of the port is proven. A link that still will not come up now points at the analog half, the termination, magnetics and RJ45, and that is the moment to start reading the link status registers.

Sources: IEEE 802.3 Clause 22 (MII, MDC/MDIO and the PHY identifier registers); RMII Consortium specification; RGMII specification v2.0; Texas Instruments DP83867 datasheet (RGMII delay); Linux kernel ethernet-controller device-tree binding (phy-mode).