Re: [PATCH net-next v2 2/3] net: phy: bcm5481x: Implement MII-Lite mode
From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-06-23 18:08:07
Also in:
linux-devicetree, lkml
From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-06-23 18:08:07
Also in:
linux-devicetree, lkml
On Mon, Jun 23, 2025 at 05:10:46PM +0200, Kamil Horák - 2N wrote:
From: Kamil Horák (2N) <redacted> The Broadcom bcm54810 and bcm54811 PHYs are capable to operate in simplified MII mode, without TXER, RXER, CRS and COL signals as defined for the MII. While the PHY can be strapped for MII mode, the selection between MII and MII-Lite must be done by software. The MII-Lite mode can be used with some Ethernet controllers, usually those used in automotive applications. The absence of COL signal makes half-duplex link modes impossible but does not interfere with BroadR-Reach link modes on Broadcom PHYs, because they are full-duplex only. The MII-Lite mode can be also used on an Ethernet controller with full MII interface by just leaving the input signals (RXER, CRS, COL) inactive.
So everybody seems to be a general agreement this needs more thought. How does a MAC know its RXER, CRS, COL inputs are inactive? Are you expecting boards use pull up resistors? Or is the MAC driver expected to poke around in the PHY node and find this lite property? That would not be accepted. A phy-mode make would this clear, but it does require every MAC which could be connected to this PHY needs to also accept this PHY mode. Which comes back to, are pull-ups enough, so the MAC has no idea it is connected to a -lite PHY? Andrew