[PATCH net-next] net: phy: meson-gxl: support more G12A-internal PHY versions
Andrew Lunn
andrew at lunn.ch
Tue Jan 17 05:30:19 PST 2023
> > The PHY compatible string in DT is the following in all cases:
> > compatible = "ethernet-phy-id0180.3301"
This form of compatible has two purposes.
1) You cannot read the PHY ID register during MDIO bus enumeration,
generally because you need to turn on GPIOs, clocks, regulators etc,
which the MDIO/PHY core does not know how to do.
2) The PHY has bad values in its ID registers, typically because the
manufactures messed up.
If you have a compatible like this, the ID registers are totally
ignored by Linux, and the ID is used to find the driver and tell the
driver exactly which of the multiple devices it supports it should
assume the device is.
So you should use this from of compatible with care. You can easily
end up thinking you have a different PHY to what you actually have,
which could then result in wrong erratas being applied etc, or even
the wrong driver being used.
Andrew
More information about the linux-arm-kernel
mailing list