Skip to content

ETH-12 PHY reset released before its clock is stable

Severity Status Implementation
warning planned hard, depends on NET-8, NET-10

Looks at. PHY reset pin, its pulls and driver, PHY clock source and its enable.

What it catches. A PHY reset that can rise before the PHY's clock runs (clock from an MCU output or an oscillator with its own enable), or a reset pin with no pull at all.

Why it matters. The PHY samples its straps and starts its PLL when reset is released; without a clock it latches garbage or never starts. The LAN8720A needs a hardware reset after power-up, held for at least 100 µs, with the clock already present on XTAL1/CLKIN; the DP83867 wants XI stable for at least 1 µs during the reset pulse. A floating reset follows whatever the MCU pin does in its own reset and boot.

Example. LAN8720A clocked from an STM32's MCO output, nRST wired to a GPIO with no pull-down: the PHY comes out of power-on reset with no clock, MCO starts only when firmware configures it, and link works only after a soft reset of the PHY that the firmware happens to do.

How to check. Find the PHY's reset pin: a pull must exist (easy). Then follow the clock source back (NET-10): if it is an MCU output or a gated oscillator, the reset must be held low until firmware or a supervisor releases it (NET-8 power states and start-up order).

Fix. Pull the PHY reset low and release it from firmware after the clock runs, or use a free-running crystal on the PHY; add an RC or supervisor if no GPIO is free.

References. LAN8720A §3.8.5.1 (hardware reset required after power-up, clock during reset), §5.5.3 (trstia 100 µs); DP83867 §6.6 (power-up timing), §6.7 (reset timing, T4: XI stable during reset); SNLA079 §11.1.