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: DP83867IR : In MII/RGMII 100Mbps Tx communication not working

Part Number: DP83867IR

Hello TI Team,

We are trying to bring up TV2 evaluation board with DP83867IR. We want to use them in MII/RGMII mode. Accessing the registers via MDIO works fine. Receiving data via MII/RGMII works fine as well. However, the Chip does not output a Tx Data. (~25Mhz frequency measured on TX_CLK in MII mode).

I have register values for MII/RGMII as below - 

MII
0 - 0x2100, 1 - 0x794d, 2 - 0x2000, 3 - 0xA231, 4 - 0x01E1, 5 - 0, 6 -0x64
7 - 0x2001, 8 - 0, 9 - 0x0300, 10 - 0, 15 - 0x3000, 16 - 0x5048, 17 - 0x6f02,
18 - 0, 19 - 0x0440, 20 - 0x29c7, 21 - 0, 22 - 0, 23 - 0x40, 24 - 0x6150
25 - 0x4444, 26 - 0x2, 27 - 0, 28 - 0, 29 - 0, 30 - 2, 31 - 0
0x0170 - 0x0C0F, 0x006E - 0, 0x006F - 0, 0x002c - 0x141f
0x0032 - 0

RGMII
0 - 0x2100, 1 - 0x794d, 2 - 0x2000, 3 - 0xA231, 4 - 0x01E1, 5 - 0, 6 -0x64
7 - 0x2001, 8 - 0, 9 - 0x0300, 10 - 0, 15 - 0x3000, 16 - 0x5048, 17 - 0x6C02, 
18 - 0, 19 - 0x0400, 20 - 0x29c7, 21 - 0, 22 - 0, 23 - 0x40, 24 - 0x6150
25 -  0x4444, 26 - 0x2, 27 - 0, 28 - 0, 29 - 0, 30 - 0x2, 31 - 0
0x0170 - 0x0C0F, 0x006E - 0, 0x006F - 0, 0x002c - 0x141f, 0x0086 - F6
0x0032 - D3/D0

Belo is the schematics :

1. How to confirm that PHY is operating in MII mode?

2. In RGMII, TX CLK delay is changed to 0ns, 2ns and 4ns but still tx communication is not observed.

3. Am I missing any register update here ? 

4. Is there any register which can tell tx error / tx status like we have for rx? 

Could you help with these information ?

Thank you,

Best Regards,

Charchil Dudani

  • Hello Charchil,

    Can you please share the schematic again as attachment is not loading. May be you can try attaching pdf.

    Also just to be sure that I understood your issue, can you please confirm the following:

    1. there is no data on TX_* pins of the PHY (which is driven by MAC) ?

     2. You are using 100mbps mode for even during Rgmii usecase?

    3. RX_* pins and final data going from these pins to MAC is getting captured by MAC correctly?

    If answer to all of the above is yes, then your Rx_clk_delay is good already and hence do not change it. Only change tx_clk_delay to 2ns. Above register settings show that you are changing both together.

    Reading register 32 shows that you are in Rgmii mode when you want to be in Rgmii mode. If you are using straps to enter Rgmii mode then you may also verify it by reading register 0x006E.

    --

    Regards,

    Vikram

  • Hello Vikram,

    Thank you for your quick response.

    PFA pdf for schematics./cfs-file/__key/communityserver-discussions-components-files/138/Ethernet123.pdf

    1. there is no data on TX_* pins of the PHY (which is driven by MAC) ? -> Yes, No data observed on TX_D* lines.

     2. You are using 100mbps mode for even during Rgmii usecase? -> Yes, 100Mbps is used for RGMII use case. 

    3. RX_* pins and final data going from these pins to MAC is getting captured by MAC correctly? - Yes, Data is being received by MAC and Eth stack in both MII & RGMII modes.

    "Only change tx_clk_delay to 2ns. " -> I did try this delay with 4ns, 2ns & 0ns but in all 3 cases tx is not observed.

    "Above register settings show that you are changing both together." -> Do you mean both Rx_Delay & Tx_Delay needs to be update with separate write call to PHY? 

    Further I want to know how to confirm PHY is operating in MII mode?

    Thank you in advnace.

    Best Regards,

    Charchil Dudani

  • Hello Charchil,

    If TX data is not toggling and RX data is fine, then you may have to check some setting in the MAC. When Rgmii is not enabled (register 0x032)...mii is enabled. You may confirm the same by the clock frequency on Rx_clk.

    --

    Regards,

    Vikram

  • Hello Vikram,

    Thank you for your reply. I see that MII & RGMII modes are set properly. 

    I observed in the MAC that request communication mode is FD but as per status register it is Half Duplex. Where as PHY is set & operating in FD.

    Does this mismatch of MAC(HD) & PHY(FD) create any issue for Tx communication?

    Thank you,

    Best regards,

    Charchil 

  • Hello Charchil,

    Did you try making MAC (FD)? Which register did you check for PHY'S FD status?

    --

    Regards,

    Vikram

  • Hi Vikram,

    I am setting BMCR (0x0000) bit 8 to 1 which enables FD mode.

    I am reading BMSR (0x0001) bit 14 as 1 which says device is capable of 100Base-Tx FD capable.

    PHY STATUS REG (0x0011) bit 13 is set to 1 as well.  (Auto neotiation is disabled)

    Is this correct for confirm FD mode of PHY?

    Another query is: In MII mode Tx_CLK is provided from PHY to MAC and for 100Mbps speed TX_CLK shall have 25Mhz freq. Do I need to make settings in PHY for 25Mhz ? Or will it be set automatically. 

    GTX_CLK will not be used in MII, Could you confirm once?

    Thank you,

    Best regards,

    Charchil

  • Hello Vikram,

    Thank you for your support so far. 

    MII/RGMII TX communication is also working fine now.

    Could you confirm that DP83867IR doesn't support RMII mode?

    After this you can close this ticket.

    BR,

    Charchil Dudani

  • Hello Charchil,

    RMII is not part of DP83867.

    --

    Regards,

    Vikram