This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How works MDIO

I'm working with TMS570LS.

In my development board (HDK) is running LWIP and it works.

But in other different board with other ethernet transceiver(AN8710Ai-EZK-TR) my application fails. I can't get the PHY_ID.

The clock source is working at 25MHz

Sombody can help me with a little explanation of how MDIO works?

I can't understand the difference between Register address bits and PHY address bits.

Thanks.

  • If you are familiar with I2C, MDIO is similar. The PHY address or ID is the address of the PHY device on the MDIO bus. There can be more than PHY device on the MDIO bus. Messages are sent with PHY addresses to select the proper device. Register addresses are specify addresses within each PHY. PHYs usually have a standard set of registers that a generic driver can talk to. PHYs usually have non-standard extensions to the register map for special functions. The MDIO bus is usually not directly connected to a MDIO controller in the processor. The MDIO bus is usually connected to the MAC which is then connected to the processor. Code will go through the MAC to access the MDIO bus.

  • Thanks, functionality has been clarified.

    I'll be back with results

  • Now is working. The HW had a problem, but it was fixed.

    I can see the signals in MDIO_D y MDIO_CLK.

    Now is time to learn how to works lwIP.

    Regards.