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.

EVMC6474 SGMII out of AMC connector

Hello,

  I am using the EVMC6474 in a microTCA chassis, which has the pins from the AMC connector routed to a Gigabit Ethernet switch, though I cannot ping the DSP core ip address when connected to that switch, only when connected to the RJ45 on the EVM card.  Are there PHY registers that must be set to enable the SGMII routing to the AMC connector? 

These are the phy register commands that are being set in evminit.c (no documentation on what these registers are...)

    phy_setReg(27, 4, 0x0081);

    //     Configure Marvell 88E6122 PHY
    phy_setReg(0xe, 26, 0x47);    // Set PHY port 6 SERDES to 0.7V swing
    phy_setReg(0xd, 26, 0x47);    // Set PHY port 5 SERDES to 0.7V swing
    phy_setReg(0x0e, 0, 0x8140);  // Configure PHY port 6 SERDES --> EVM 1 at 1000mpbs, full duplex
    phy_setReg(0x0d, 0, 0x8140);  // Configure PHY port 5 SERDES --> EVM 2 at 1000mbps, full duplex
    phy_setReg(0x15, 0x1, 0x043e);  // Force internal switch --> port 5 SERDES to 1000MPBS, full Duplex
    phy_setReg(0x16, 0x1, 0x043e);  // Force internal switch --> port 6 SERDES to 1000MBPS, full Duplex

    // Force 1000mps at copper PHY, disable auto-negotiate
    phy_setReg(1, 0, 0x8140); // 0x8140 = 1000mbps

 

Here are the printfs when running the Hello World application:

TCP/IP Stack 'Hello World!' Application
 
MAC Address read from EFUSE: 00-24-ba-4c-14-18
Core Number on which NDK is running = 0 
EFUSED MAC Address = 00-24-ba-4c-14-18
Only on CORE 0: SGMII reset successful........
Only on CORE 0: SGMII config successful........
Only on CORE 0: SerDes should be up and running 
EMAC has been started successfully
Registeration of the EMAC Successful
Network Added: If-1:192.168.199.11

 

Thanks,

Josh

 

  • Hello Josh,

    The evminit.c file of C6474 NSP configures the Marvell 88E6122 switch for use with RJ45 connector of EVM only. To configure port 4 which is routed to the AMC edge, try adding the following code to the EVM_emac_phy_init(void) function of the evminit.c:

    writePhyReg(0xc, 26, 0x47);    // Set PHY port 4 SERDES to 0.7V swing
    writePhyReg(0x0c, 0, 0x8140);  // Configure PHY port 4 SERDES --> AMC port at 1000mbps, full duplex
    writePhyReg(0x14, 0x1, 0x043e);  // Force internal switch --> port 4 SERDES to 1000MBPS, full Duplex

    Using these settings, I am able to perform Loopback on the AMC edge, so I think this should work for you too..

    Also, the AMC 2.0 defines the Ethernet ports to be 1000Base-Bx, so you will need to configure port4 if Marvell 88E6122 to 1000 Mbps as above even if PHY_MODE_100MBPS macro is defined in NSP to use 100 Mbps mode.

    Hope this helps.

    Enjoy,

    Amit

    (amitkumar.solanki@einfochips.com)

  • Amit,

      Thank you for the response - this didn't seem to do the trick.  How are you performing the loopback test on the edge? 

     

    Thanks,

    Josh

  • J. M. said:

    How are you performing the loopback test on the edge? 

    I have an AMC socket where I have shorted the Tx-Rx pins of Port 0. Port 4 of Marvell PHY is routed to Port 0 of AMC edge.

    I transmit Ethernet packets from my processor and receive it back.

    If i remove the EMAC loopback connector on AMC edge, then I don't receive the Ethernet packets back. This ensures that the packet are able to travel to the AMC edge.

    I will try at my end to get the packets out through the AMC backplane in to another AMC card.

     

    Enjoy,

    Amit

  • Hello Josh,

    I was working on this issue past few days and I found out that the Port 4 of Marvell 88E6122 connection to Port 0 of AMC edge are not proper for SD's C6474 EVM. 

    I compared the connections with the latest C6472 EVM board which has Ethernet working over SGMII through MicroTCA chassis. C6472 EVM was designed by eIfochips and I have earlier verified the ethernet example working through MicroTCA chassis on C6472 EVM, For details on this EVM: http://www.einfochips.com/TI-TMS320C6472-EVM.php

    I have attached the snaps from schematic of both C6472 EVM and C6474 EVM.

    Working connections of C6472 EVM:
    S_IN     --> 14,15
    S_OUT --> 11,12

    Not Working connections of existing SD's C6474 EVM:
    TX --> 14,15
    RX --> 11,12


    I understand that this should be as follows to match the C6472 EVM connections:
    TX --> 11,12
    RX --> 14,15

    Thanks,

    Amit

    (amitkumar.solanki@einfochips.com)

  • Hi Amitkumar/Josh.

    We are currently also using the EVMC6474 by SD. We also have a TMS320C6472-EVM (eInfochips) on the way. Until now, we have been working with the C6474 board in a stand-alone fashion.

    However, in order to accelerate our development time, we are currently looking toward fitting this board in a MicroTCA cage in order to communicate with the C6472 EVM (as soon as it arrives) through SRIO and Gigabit Ethernet as well as communicate through possible Ethernet RJ-45 Connectors on the cage to the outside world.

    I have been following your conversation closely, and now I have a few questions:

    Josh:

    • Can you advise me a MicroTCA chassis that would be able to fit both he C6474 (SD) and C6472 (eInfochips) EVMs? It seems that the C6474 EVM card is larger in size than the C6472 EVM, even though it has an AMC edge connector, and they claim it can fit in a MicroTCA chassis. I just want to be sure.
    • If I understand Amitkumar's last post correctly, this means that the C6474 EVM (SD) is unable to connect to the chassis's RJ-45 connector, because port 4 on the C6474 EVM AMC edge is not properly connected, correct? Could you verify this on your chassis?

    Amitkumar:

    • Can you perhaps also have an answer to my questions to Josh (above)?
    • Would the C6474 EVM and the C6472 EVM be able to communicate with each other through Gigabit Ethernet when fitted in the MicroTCA chassis?
    • Would the two cards be able to communicate successfully with each other through SRIO, when fitted into the MicroTCA cage?

    Your assistance with this is much appreciated.

    Estian.

     

  • Estian,

      I have been using a Kontron OM6062 chassis with the C6474 (http://us.kontron.com/OM6062).  The thing you have to be careful of with this eval board is that it is not uTCA compliant in that it has no management module, so it will rely on the MCH in the chassis to be able to forcibly power it on without any power negotiations.  This particular chassis with the Kontron AM4901 MCH is able to do that.  However, this chassis does not have the SRIO fabric.  The EVM fits in the full size vertical slots, and there are also dividers to fit half-width cards (such as the MCH).  Also, the issue with the EVM itself as you stated is that it cannot communicate across the backplane because of the miswired AMC connector.  I have not verified this with Spectrum Digital, but on my EVM in my chassis it does not work.

     

    Josh

  • Estian Malan said:
    Can you advise me a MicroTCA chassis that would be able to fit both he C6474 (SD) and C6472 (eInfochips) EVMs? It seems that the C6474 EVM card is larger in size than the C6472 EVM, even though it has an AMC edge connector, and they claim it can fit in a MicroTCA chassis. I just want to be sure.

    I am using a Blu! Eco uTCA chassis with N.A.T. base MCH. As my chassis supports only full size cards like C6472EVM I have open up the chassis enclosure to fit the double AMC size C6474 EVM (SD).

    Estian Malan said:
    If I understand Amitkumar's last post correctly, this means that the C6474 EVM (SD) is unable to connect to the chassis's RJ-45 connector, because port 4 on the C6474 EVM AMC edge is not properly connected, correct? Could you verify this on your chassis?

    The C6474 EVM (SD) is unable to communicate over SGMII EMAC because of the schematic error.

    Estian Malan said:
    Would the C6474 EVM and the C6472 EVM be able to communicate with each other through Gigabit Ethernet when fitted in the MicroTCA chassis?

    No, C6474 EVM will not be able to communicate with C6472 EVM over SGMII EMAC port via AMC edge connector.

    Estian Malan said:
    Would the two cards be able to communicate successfully with each other through SRIO, when fitted into the MicroTCA cage?

    In order to communicate over SRIO, you will require a AMC backplane with SRIO port of 6474 EVM (AMC port 4) connected to SRIO port of C6472 EVM (AMC port 8). Or else a MCH with a SRIO switch on it and AMC port 4 and AMC port 8 connected to this SRIO switch.

     

    Hope this helps.

    Regards,

    Amit