On Tue, Dec 01, 2026 at 04:32:14AM -0500, Joseph Telaak wrote:
> Hi Maxime,
>
> On 12/1/26, Maxime Chevallier wrote:
> > Nothing mandates that the PHY you've attached to the MAC is driven by the
> > MAC's mdio bus. If you have an "mdio" node, register the bus and that's it
> > no ?
>
> Right, the PHY can be on any bus. The one limit I would keep is
> registering it only with a fixed-link or phy-handle. Without either,
> e1000 still drives the MDIO registers itself, and the bus would have a
> second user. Does that sound right to you?
Normally you just register the mdio bus. It does not matter if there
is a fixed-phy, or a phy-handle. The hardware exists, so lets drive
it. It could be some other MAC has a phy-handle pointing to a device
on this bus. Or there is as switch on this MDIO bus, but the conduit
interface is some other MAC.
In general, register the building blocks, and then leave DT to
assemble those blocks in the shape of the hardware.
Andrew