> 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@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