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.

DP83867IR: MII Loopback in u-boot

Part Number: DP83867IR
Other Parts Discussed in Thread: TDA4VM

Hello, 

I am using TI J721EVM board and sdk 8.2.

Phy: DP83867

Platform : TDA4VM EVM

Can you please help me what are the steps need to be followed to achieve MII loopback test in uboot.

Please guide what connection we need to test this and what register settings needed?

Thanks,

best Regards,

Lakshmi Shetty

  • Hi Lakshmi,

    You can use reg<0x0000> = 0x4140 for enabling MII loopback for 1G. You can refer to the register mapping for reg0x0000 in the datasheet.

    --
    Regards,
    Gokul.

  • Hello Gokul,

    I am setting following register values  for MII loopback test

    0x0 - 0x4140

    0x16 - 0x4

    0xFE - 0xE720

    1F - 0x4000

    set ipaddr - 192.168.1.2

    Able to ping to same ip address. Is this test is sufficient to confirm MII loopback is working as expected or Do I need to test in different way?

    Thanks in advance,

    Lakshmi Shetty

  • Hi Lakshmi,

    MII loopback is loopback where data from the MAC is looped back again to the MAC without any processing.
    For the MII loopback, setting 0x0000 is sufficient and 0x0016 is not needed. Having the 0x0016 register write doesn't do any harm.

    For testing MII loopback, we enable data transfer from the MAC and check if the same is received back.

    The IP address pin happens in the MAC(processor here). Can you please check with the processors team on whether this indicates that the loopback?
    From the limited knowledge I have, I think if you are able to ping the same IP, it means the loopback looks okay.

    --
    Regards,
    Gokul.

  • Hi Lakshmi,

    Please let me know if there are any other queries. Else, can you please mark the query resolved?

    --
    Regards,
    Gokul.