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: DP83867IRPAPR Phy RX is not working at 1GBPS

Part Number: DP83867IR
Other Parts Discussed in Thread: TPS2378

Hi team,

Good day! I'm posting this in behalf of the customer. Here it is. 

We are DP83867IRPAPR PHY interfacing with i.MX8QXP processor from NXP. When we trying to run interface at 1GBPS it is not working.

we probed TX_CLK it is observed to be 125 Mhz but RX_CLK is 25Mhz when trying to run at 1GBPS.

Interface works fine on 100MBPS speed.

Thank you in advance. 

Best regards,

Jonathan

  • Hi Jonathan,

    I would like to ask couple questions for clarification:

    • What is the link partner you are using?
    • What type of cable you are using?
    • Could you also provide the information on register 0x0009, 0x0032, 0x0086

    Sorry for the late reply.

    --

    Sincerely,

    Hillman Lin

  • Hi Hillman,

    Thank you for your update and apologies for the delayed response. 

    Here is the answer from our customer 

    What is the link partner you are using?

    Laptop.

    What type of cable you are using?

    CAT6 cable

    Could you also provide the information on register 0x0009, 0x0032, 0x0086
    refer the attachment
    I hope to hear from you soon. 
    Best regards,
    Jonathan
    Best regards,
  • Hi Jonathan,

    It seems like your PHY is not link up during 1000mbps. 

    • Could you tell me what MAC interface are you trying to perform? It seems that your RGMII is not enable in the register 0x0032.
    • Could you also read register 0000?
    • If the register 0000 does not have the value 0100. Could you write it 0100 to register 0000?
    • After all that, could you read register 0100 to check for a link up?

    --

    Thank you,

    Hillman Lin

  • Hi HIllman,

    Here is the feedback from the customer

    Could you tell me what MAC interface are you trying to perform? It seems that your RGMII is not enable in the register 0x0032.

    RGMII

    As per customer, they tried the registers as asked, but link was not up for 1Gbps. Attached is the console log

    We tried the registers as asked, but link was not up for 1Gbps. Below is the console log.
    
    root@nxp-imx8:~# phytool read eth0/0/0x0000
    0x1140
    root@nxp-imx8:~# phytool write eth0/0/0x0000 0x0100
    fec 5b040000.ethernet eth0: Link is Down
    root@nxp-imx8:~# fec 5b040000.ethernet eth0: Link is Up - 10Mbps/Full - flow control off
    root@nxp-imx8:~# phytool read eth0/0/0x0000
    0x0100
    root@nxp-imx8:~# phytool read eth0/0/0x0100
    0x0100
    root@nxp-imx8:~# ethtool eth0
    Settings for eth0:
           Supported ports: [ TP    MII ]
           Supported link modes:   10baseT/Half 10baseT/Full
                                   100baseT/Half 100baseT/Full
                                   1000baseT/Full
           Supported pause frame use: Symmetric
           Supports auto-negotiation: Yes
           Supported FEC modes: Not reported
           Advertised link modes:  10baseT/Half 10baseT/Full
                                   100baseT/Half 100baseT/Full
                                   1000baseT/Full
           Advertised pause frame use: Symmetric
           Advertised auto-negotiation: Yes
           Advertised FEC modes: Not reported
           Speed: 10Mb/s
           Duplex: Full
          Auto-negotiation: off
           master-slave cfg: preferred slave
           master-slave status: slave
           Port: Twisted Pair
           PHYAD: 0
           Transceiver: external
           MDI-X: Unknown
           Supports Wake-on: g
           Wake-on: d
           Link detected: yes
    root@nxp-imx8:~#
    
    
    
    We tried to enable RGMII as below, but result was same (link not up).
    
    root@nxp-imx8:~# phytool write eth0/0/0x0032 0x0080
    root@nxp-imx8:~# phytool read eth0/0/0x0032
    0x0080
    root@nxp-imx8:~# phytool write eth0/0/0x0000 0x0140
    root@nxp-imx8:~# fec 5b040000.ethernet eth0: Link is Down
    root@nxp-imx8:~# phytool read eth0/0/0x0011
    0xa802
    root@nxp-imx8:~# ethtool eth0
    Settings for eth0:
           Supported ports: [ TP    MII ]
           Supported link modes:   10baseT/Half 10baseT/Full
                                   100baseT/Half 100baseT/Full
                                   1000baseT/Full
           Supported pause frame use: Symmetric
           Supports auto-negotiation: Yes
           Supported FEC modes: Not reported
           Advertised link modes:  10baseT/Half 10baseT/Full
                                   100baseT/Half 100baseT/Full
                                   1000baseT/Full
           Advertised pause frame use: Symmetric
           Advertised auto-negotiation: Yes
           Advertised FEC modes: Not reported
           Speed: 1000Mb/s
           Duplex: Full
           Auto-negotiation: off
           master-slave cfg: preferred slave
           master-slave status: unknown
           Port: Twisted Pair
           PHYAD: 0
           Transceiver: external
           MDI-X: Unknown
           Supports Wake-on: g
           Wake-on: d
           Link detected: no
    root@nxp-imx8:~#

    Best regards,

    Jonathan

  • Hi Jonathan,

    Could you write 1140 to register 0000 to enable the auto negotiation? Does that link up?

    --

    Regards,

    Hillman Lin

  • Hi Hillman,

    Could you write 1140 to register 0000 to enable the auto negotiation? Does that link up?

    Link is up but it settles down to 100Mbps in this case. Please refer Console_Log2 file attached here

    root@nxp-imx8:~# phytool write eth0/0/0x0000 0x1140
    root@nxp-imx8:~# phytool read eth0/0/0x0000
    0x1140
    root@nxp-imx8:~# fec 5b040000.ethernet eth0: Link is Down
    TI DP83867 5b040000.ethernet-1:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
    fec 5b040000.ethernet eth0: Link is Up - 100Mbps/Full (downshifted) - flow control rx/tx
    fec 5b040000.ethernet eth0: Link is Down
    fec 5b040000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
     
    root@nxp-imx8:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP    MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Supported pause frame use: Symmetric
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                                 100baseT/Half 100baseT/Full
            Link partner advertised pause frame use: Symmetric Receive-only
            Link partner advertised auto-negotiation: Yes
            Link partner advertised FEC modes: Not reported
            Speed: 100Mb/s
            Duplex: Full
            Auto-negotiation: on
            master-slave cfg: preferred slave
            master-slave status: slave
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: external
            MDI-X: Unknown
            Supports Wake-on: g
            Wake-on: d
            Link detected: yes
    root@nxp-imx8:~#
    

    Best regards,

    Jonathan

  • Hi Jonathan,

    The problems might be  in your link partner side. I saw your link partner only advertise 10Mbps and 100Mbps. Does your link partner support 1000Mbps? If so, could you also enable advertisement for your link partner to 1000Mbps as well? 

    --

    Regards,

    Hillman Lin

  • Hi Hillman,

    Here is our cusotmer's feedback.

    Regarding Ethernet link partner, we enabled link partner advertisement to include 1000Mbps, but still negotiated to 100Mbps.
    The console log is Attached.

    Regarding Ethernet, we enabled link partner advertisement to include 1000Mbps, but still negotiated to 100Mbps.
    The console log is below.
     
    root@nxp-imx8:~# phytool write eth0/0/0x0000 0x1140
    root@nxp-imx8:~# phytool read eth0/0/0x0000
    0x1140
    root@nxp-imx8:~# fec 5b040000.ethernet eth0: Link is Down
    TI DP83867 5b040000.ethernet-1:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
    fec 5b040000.ethernet eth0: Link is Up - 100Mbps/Full (downshifted) - flow control rx/tx
    root@nxp-imx8:~#
    root@nxp-imx8:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP    MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Supported pause frame use: Symmetric
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                                 100baseT/Half 100baseT/Full
                                                 1000baseT/Full
            Link partner advertised pause frame use: Symmetric Receive-only
            Link partner advertised auto-negotiation: Yes
            Link partner advertised FEC modes: Not reported
            Speed: 100Mb/s
            Duplex: Full
            Auto-negotiation: on
            master-slave cfg: preferred slave
            master-slave status: slave
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: external
            MDI-X: Unknown
            Supports Wake-on: g
            Wake-on: d
            Link detected: yes
    root@nxp-imx8:~#
    root@nxp-imx8:~#
    
    Best Regards,
    Jason 
    

    Best regards,

    Jonathan

  • Hi Jonathan,

    • Could you send me the schematics for your customer design for further debug?
    • Could you ask customer for register 000A and 0011?
    • If possible, could you ask your customer to disable the auto negotiation on their link partner and force it to 1000Mbps? And then write 0140 to register 0000 to check for link up? 
    • If it does not link up, Could you try to write 001F to 4000 to see rather it link up?

    --

    Regards,

    Hillman Lin

  • Hi Hillman,

    Here is the attached schematic below. Our customer will follow up the other information. They are now looking into it.

    Ethernet_Circuit.pdf

    Best regards,

    Jonathan

  • Hi Jonathan,

    Looking at the schematics, we do have some recommendation:

    • R21 we recommend to have 1Mohms instead of 0 ohms to isolate 
    • On the MDC and GTX_CLK, we don't recommend using 22 ohms in series because it might effect the clock speed

    Other setup looks fine. I will wait for the other result form customer.

    --

    Regards,

    Hillman Lin

  • Hi Hillman,

    Thanks. Please see attached log from the customer

    root@nxp-imx8:~# phytool read eth0/0/0x000A
    0x0800
    root@nxp-imx8:~# phytool read eth0/0/0x0011
    0x6c02
    root@nxp-imx8:~# fec 5b040000.ethernet eth0: Link is Down
     
    root@nxp-imx8:~# phytool write eth0/0/0x0000 0x0140
    root@nxp-imx8:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP    MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Supported pause frame use: Symmetric
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Speed: 1000Mb/s
            Duplex: Full
            Auto-negotiation: off
            master-slave cfg: preferred slave
            master-slave status: unknown
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: external
            MDI-X: Unknown
            Supports Wake-on: g
            Wake-on: d
            Link detected: no
    root@nxp-imx8:~# phytool write eth0/0/0x4000 0x001F
    root@nxp-imx8:~# fec 5b040000.ethernet eth0: Link is Up - 10Mbps/Half - flow control off
     
    root@nxp-imx8:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP    MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Supported pause frame use: Symmetric
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Speed: 10Mb/s
            Duplex: Half
            Auto-negotiation: off
            master-slave cfg: preferred slave
            master-slave status: slave
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: external
            MDI-X: Unknown
            Supports Wake-on: g
            Wake-on: d
            Link detected: yes
    root@nxp-imx8:~#
    

    Best regards,

    Jonathan

  • Hi Jonathan,

    Hillman is OoO for a couple of days, and will get back to you with a response around the middle of next week.

    Sincerely,

    Gerome

  • Hi Jonathan,

    I want to double check is my understanding correct so far. 

    • Customer is able to perform a link up during 100mbps and 10mbps
    • Customer is not able to get a link up when the auto negotiation is off with 1000mbps
    • When we turn on the auto negotiation with 10, 100, and 1000mbps advertisement turn on both link partner and PHY. The PHY is link up and but the speed drop back to 100mbps
    • Is customer able to perform a link when the auto negotiation is off with 100mbps and 10mbps? Could you ask this question to customer?

    --

    Regards,

    Hillman Lin

  • Hi Jonathan,

    Could you also ask customer to write register 0004 bits [5:8] = 0 to disable the 100mbps and 10mps with the auto negotiation on to see rather it can perform a link up?

    --
    Regards,

    Hillman Lin

  • Hi Hillman,

    Kindly please see our customer response below.


    1. Customer is able to perform a link up during 100mbps and 10mbps- Yes Correct
    2. Customer is not able to get a link up when the auto negotiation is off with 1000mbps. Yes correct
    3. When we turn on the auto negotiation with 10, 100, and 1000mbps advertisement turn on both link partner and PHY. The PHY is link up and but the speed drop back to 100mbps. Yes Correct
    4. Is customer able to perform a link when the auto negotiation is off with 100mbps and 10mbps? Could you ask this question to customer? Please refer attachment
    5. Could you also ask customer to write register 0004 bits [5:8] = 0 to disable the 100mbps and 10mps with the auto negotiation on to see rather it can perform a link up? Refer attachment

    Best regards,

    Jonathan

  • Hi Jonathan,

    Could you resend the attachment? I did not see an attachment below.

    --

    Thank you,

    Hillman Lin

  • Hi Hillman,

    Here is the attachment. Apologies for the delay. I was 000 for the past days. 

    attachment.zip

    Best regards,

    Jonathan

  • Hi Jonathan,

    From the schematic you provide to me. I saw the customer have different schematic on the MDI side than the one we recommended on the datasheet. This might cause the issue on linking up with higher speed: 1000mbps. Is it possible to ask customer follow the datasheet MDI connection shown below:

    --

    Regards,
    Hillman Lin

  • Hi Hillman,

    Good day! Here is our customer's response.

    1. Schematic which we have has POE also, we have taken PoE reference from TPS2378 EVM User’s Guide.(See attachment)

    Customer will make changes as suggested.

    Best regards,

    Jonathan

  • Hi Jonathan,

    Please let me know the result after the customer change the MDI connection.

    --
    Regards,

    Hillman Lin

  • Hi Hillman,


    Our customer reviewed their schematic and identified that pin assignment at RJ45 connector (J14) is wrong for Ethernet so the issue was now resolved.

    We can close this thread. Thank you so much for the support.  

     Best regards,

    Jonathan