net: phy: Dealing with 88e1543 dual-port mode

Andrew Lunn andrew at lunn.ch
Thu Nov 19 19:00:50 EST 2020


> E.g. at Westermo we make switches with M12/M12X connectors [1] that
> sometimes have a 1G PHY behind a 2-pair M12 connector (for complicated
> legacy reasons). In such cases we have to remove 1000-HD/FD from the
> advertised link modes. Being able to describe that in the DT with
> something like:
> 
> ethernet-phy at 0 {
>     mdi = "2-pair";
> };

We already have a max-speed property which could be used to do this.
It will remove the 1000-HD/FD from the link mode if you set it to 100.

   Andrew



More information about the linux-arm-kernel mailing list