> Hi Andrew, > > The extra node for mdio seems to complicate things somewhat. > Just adding this node seems not enough. How to find out easily if a child > of a enetc port node is a mdio node? You copy somebody else code :-) https://elixir.bootlin.com/linux/v5.0-rc6/source/drivers/net/dsa/mv88e6xxx/chip.c#L2765 Andrew