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.

AM33x BSP CPSW3G Auto-Negotitation Issues

I’m working with the AM33x BSP and I’m having some issues with the CPSW3G Miniport driver.  I’m trying to disable auto-negotiation and force speed/duplex. From my understanding, it should be as simple as setting it on the PHY, but that doesn’t seem to be working. During PHY initialization, instead of setting the PHY to autonegotiate, I’ve tried setting the control register to the desired settings through both the RMII interface and the PHY’s hardware init process. I’ve been able to verify that the settings were set correctly. However, I can’t get a link or any communication going. Is there something I’m missing, or does anyone have any ideas as to why this wouldn't be working? The PHY is SMSC LAN8720A. 

Thanks!

  • Joe,

    If I understand what you are trying to do correctly, you need to do it via MDIO on the PHY itself, not via the MAC. Our control registers report how we have configured the MAC based on information obtained from the PHY, not the other way around.

    The best way to establish a connection with your custom parameters is to set the PHY Auto Negotiation Advertisement Register (PHY Index 0x04) accordingly and then set the Restart Auto-Negotiate bit (PHY Index 0x00:9). This will allow the link partner to re-initialize the link with your new, custom, link parameters.