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.

DP83869HM: Loop back testing of DP83869 to AM3354 controller .

Part Number: DP83869HM
Other Parts Discussed in Thread: DP83869, AM3354

Hi SIr,

In one of the designs, we are using a DP83869 PHY chip with a 100FX FIber interface (  FIber module part number: AFBR-5803 ) .

There is some communication issue, So the "IT" recommends conducting Loop-back testing on the AM335X MAC to DP83869 PHY digital side.

Note - Hardware Strapp setting verified and  conformed by "TI" 

Please share more details about "how to perform Loop Back test Between the AM3354 MAC and DP83869 PHY digital RGMII interface"

We try to do the following steps to conduct the loopback test on the same 

  • For Loop-back testing, set the following PHY registers using MDI/MDO interface.
  • Set the register values in Linux UBOOT.

  • Set the following register  in the same order

  • BMCR set to -0X6100

  • ,BIST_CONTROL set to 0X0004 

    2. after setting we pining- set IP as 12 and read the same IP. 

  • => setenv ipaddr 192.168.100.12
    => ping 192.168.100.12
    link up on port 0, speed 100, half-duplex
    Using ethernet@4a100000 deviceARP Retry count exceeded; starting again
    ping failed; host 192.168.100.12 is not alive

Please confirm the following 

  • We got the Link-up massage, so the connection between the PHY and MAC is OK. 
  • Whether we got the same message while loopback. Or need to send any other data to check the Loop-Back.
  • Whether we need to make any change in the address " eth0: ethernet@4a100000"  We got the same address while connecting Coper add-on Card with Broadcom Phy chip

Pls find the screen short

Regards

Anees PK.

  • Anees,

    I am looking into it. I will get back to you with explaination tomorrow.

    --

    Regards,

    Vikram

  • Hi  sir,

    Thanks. Awaiting your feedback to start testing .

    Regards

    Anees PK. 

  • Hello Anees,

    Register 0x0016 = x0004 should be good to enable digital loopback. You may check the link status (bit 2 of register 0x0001) as indication of the successful enable of loopback.

    Enabling this loopback will push the data received from MAC back to it. If MAC has the utility to match the outgoing and incoming data then that can be used to verify the MAC-PHY's Rgmii connection.

    I am not sure if MAC can ping its own IP address. You need to check this with AM335X team. 

    Was communication problem localized to Rgmii interface and fiber interface was found clean? Usual problem with Rgmii is the correct mode setting. Do you know if correct Rgmii mode was selected : Rx and TX shift/align mode?

    --

    Regards,

    Vikram

  • Hi Vikram,

    I will read register 0x0001 and confirm the link status bit.

    But in the loopback mode, Both the LEDs(Link and Activity ) are ON.

    Also please confirm whether the Singal detect PIN connection from the FIber module is required for the PHY. Shall I connect permanently to GND on the Phy side?.

    RGMI to 100FX configuration has been cross-checked with TI support and confirms register values.

    Also, please share more details about  " Rx and TX shift/align mode" Presently we have not configured the same. what changes 

    Regards

    Anees PK.

  • Hello Anees,

    Rgmii mode configuration of PHY depends upon the MAC's RGMII configuration (shift or delayed) : 

    If MAC’s Configuration is :

    Required PHY’s configuration

    Rgmii Align Mode on TX side

    Rgmii Shift Mode on TX side

    Rgmii Align Mode on RX side

    Rgmii Shift Mode on RX side

    Rgmii Shift Mode on TX side

    Rgmii Align Mode on TX side

    Rgmii Shift Mode on RX side

    Rgmii Align Mode on RX side

    SD should be connected to LOS/SD of the SFP as shown here in the datasheet : 

    --

    Regards,

    Vikram