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.

Questions on Ethernet MDIO with DM814x

We hope to use the DM814x connected to an Ethernet switch.  This particular port on the switch uses a direct RGMII interface.  Configuration of the switch is done via the MDIO interface.  Therefore the switch device does not have the standard PHY register set, although its registers are accessed via the standard MDIO protocol.

What I was hoping to do was to enable the MDIO state machine via the MDIO Control Register, while also setting the LINKSEL bit to 1 in the MDIO User Phy Select Register.  I theorize that this will disable the MDIO PHY polling that the 814x automatically performs while still allowing me to send MDIO requests manually via the User Command registers.  Is this correct?

Also, in the description of the LINKSEL bit it says when it is set to 1 that the link status is determined by examining the MLINK pin.  Since I cannot find a MLINK pin on the 814x I am assuming that basically this means that you would take the MLINK pins on the PHY and connect them to some GPIOs on the 814x, and basically use external software to determine the link state.  Is this correct?

 

Thanks for the help.

 

  • Jason,

     

    Sorry for the delay

    Unfortunately, the MDIO PHY polling cannot be disabled. The MDIO state machine will schedule the user command when the register is updated and immediately fall back to polling mode when the command execution is done.

    Also, the optional MLINK port of the MDIO was not pinned out in DM814x.This means that we are not be able to use the hardware pins to monitor PHY status.
    I guess connecting the MLINK from the PHY to a GPIO and handling it on the software side is probably the best option.

     

    Regards,

    Benoit

    P.S. If this response helps answer your question please mark this post as verified - Thanks!