I have been recently learning about ethernet subsystem. I see that the MDIO interface is shared across multiple (upto 32) PHYs from a single MAC and each PHY's state can be accessed using the 5-bit PHY address. But can I route the MII/RMII signals to individual PHY or a subset of PHYs connected to the MAC and transmit the data only through those PHYs? Or Can the MII interface only be shared with all the PHYs and all PHYs simultaneously transmit the same data received from the MAC?
Typically, a set of MII lines are connected from the MAC to a single PHY. The reason for multiple addresses for MDIO is for SOCs that contain multiple MAC modules and for switch chips. The MII from each MAC module connect to its PHY. However, to save pins on the SOC, there will be only one set of MDIO pins. The MACs will share these lines communicating with their PHYs, selecting each one by address.
In the case of Ethernet switch chips, where there would be many PHYs attached, there will be multiple MDIO sets to connect to subsets of the PHYs.