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.

AM5726: MII interface with a 10/100 PHY

Part Number: AM5726

I have a embedded board loosly derived from the Am572x EVM. We have changed the PHY for the ethernet to be an MII rather RGMII as we only need ethernet for debug/initialisation. I'm having problems getting SPL (from am57xx-evm-linux-sdk-src-03.00.00.04/u-boot-2016.05+gitAUTOINC+b4e185a8c3-gb4e185a8c3) to configure the CPSW/GEMAC to operate in MII 100Mbps mode. The PHY is detected by the SPL and also by u-boot (when loaded from the UART) and the mii dump shows the correct configuration. However when looking at the other end of the ethernet cable I see no packets. The MII_TXCLK is 25MHz bu the bit timings on the MII_TXDn look like 5MHz i.e. 2.5MHz x 2 i.e. 10Mhz RMII How is the AM57x ethernet configured for MII?

  • The software team have been notified. They will respond here.
  • A dts file will set the interface mode. Depending on how u-boot was ported to your platform you may have or may not have modified the dts file.

    I am guessing here, but if you based your custom board on the TI EVM then most likely arch/arm/dts/am57xx-beagle-x15.dts was the dts file used in the build if evm defconfig was used. In this file is a structure cpsw_mac0. Assuming interface 0 since that is the default interface in u-boot phy-mode field is the one to change.

    &cpsw_emac0{
    ......
    phy-mode = "rgmii";
    ......
    }

    Trying changing the to phy-mode to "mii" and rebuild, make sure the am57xx-beagle-x15.dts file is compiles to a newer am57xx-beagle-x15.dtb
  • Thanks for the suggestion. I will try that for u-boot. I'm also wanting to load u-boot from the SPL via the network and i'm using the SPL with no dtb as it makes the image smaller and faster to load via the UART I also find the details of how to create a DTS to understand. There seem to be a lot of 'magic' words and numbers used as references.