Skip to content

ETH-4 PHY address straps unset, duplicate or 0

Severity Status Implementation
warning planned mid, depends on NET-7

Looks at. PHY address straps (library pin data, levels), MDIO bus membership.

What it catches. A PHY whose address straps are left to the internal pulls without saying so, two PHYs on one MDIO bus with the same address, or address 0 on a PHY that gives 0 a special meaning.

Why it matters. Every PHY on an MDIO bus answers to its strapped address; two at the same address drive MDIO together and the driver configures both as one. Address 0 differs by family: on the DP83848 a strapped 0 puts the part into MII isolate mode, so it links on the cable but passes no data to the MAC; on the KSZ9031 0 is an ordinary address and explicitly not broadcast; other PHYs answer 0 as a broadcast in addition to their own address. The straps sit on data pins (RXD, COL, LED), so whatever else hangs on those pins at reset also sets the address.

Example. Two DP83848 on one STM32 MDIO, both with straps left at their defaults (PHYAD0 internal pull-up, PHYAD[4:1] pull-downs: address 1): both answer, reads are the wired combination of two PHYs.

How to check. Resolve each PHY's address from its strap pins, the external resistors and the internal pulls (the same machinery as I2C addresses, NET-11, on NET-7 pin data); then look for duplicates per MDIO net and for 0 on families where it is special.

Fix. Strap every PHY explicitly with 2.2 kΩ resistors (SNLA079 §7), give each a distinct non-zero address, write the address on the schematic.

References. DP83848C §4.9 (PHYAD straps, address 0 = MII isolate); KSZ9031 §3.10 (PHYAD[2:0], 0h not broadcast); DP83867 §7.5.4 (PHY address configuration); SNLA079 §7.