> Yes, this is correct. This can be implemented purely by parsing the > devicetree. Based on previous experience, I expected you to suggest me > to implement the validation so i jumped directly to a part of this step. > > Should I implement it based on the devicetree information and validate > based on HW strapping? I assume you need to list the PHYs in DT because there is not a 1:1 mapping of port number to MDIO address? If there is a 1:1 mapping, port 1 has a PHY at MDIO address 1, the DSA core will connect the PHYs for you, there is no need to list them in DT. But if strapping can put them anywhere on the bus, this is not true, and then you need the phy-handle. I would then suggest DT described the hardware, the PHYs are listed on the correct MDIO address, and you validate the hardware matches DT just as a sanity check. Andrew