When using dual network ports, must ENET_MDC, ENET_MDIO and ENET2_MDC, ENET2_MDIO be connected to two PHYs respectively?
I now use ENET_MDC and ENET_MDIO to connect two PHYs in parallel, and distinguish them by PHY address. The result is that PHY2 has never been initialized, or it is stuck in the initialization process.
The phy register address 0x02 read in the PHY_KSZ8081_Init() function using network 2 is always 0, while network 1 is normal. Here, the MDIO interface shared by network 1 and network 2 is in network 1, and the MDIO interface is not configured on network 2.