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.

Second network port on DM8168 at 1000

I'm having great difficulty getting the second network port on a DM8168 to work at gigabit speed.  It seems to work OK at 100MBit.  It tries to autonegotiate 1000 speed several times before giving up and trying 100 which is where it settles and seems to work.  I'm using the ET1011C phy and copied the design from the EVM's second network port, so I think all my connections are right.  I'm trying to get some debug messages out of the davinci emac driver, but not having much luck with that.  Does anybody have any suggestions?

Carl

  • hi Carl,

    let me clarify something

    1. you can use the first port under 1Gbps. Right?

    2. May I know how did you test under 1Gbps and what's the dupliex mode in you ET1011C?

  • The first port works fine at 1Gbps.

    I'm testing the second port with a 1 Gbps switch on the same switch that I'm using the first port on.  I disconnect from the first port and plug into the second port expecting to see it connect.  I'm using a static IP for both ports.  When I connect the second port it spends several seconds bring the port up and down trying to make a connection at 1 Gbps:

    PHY: 0:03 - Link is Up - 1000/Full
    PHY: 0:03 - Link is Down

    After several tries it gives up and makes a connection at 100 Mbps which seems to be OK.

    It was my understanding that duplex mode for 1 Gbps is always full duplex so the duplex mode should be full.

    Carl

  • did you turn off the capability of half-duplex in 1000base-T register to make sure it was only in full-deplex mode?

    if not, pls try it

  • let me clarify one more thing,  did you check if you follow walkaround below in sprz329.pdf ?

     

  • I'm using the ET1011C PHY which provides a clock on that signal line even when in 1Gbps mode.  I've checked the driver code (which is the same code used by the EVM) in drivers/net/davinci_emac.c and it sets the PHY to autonegotiation and full duplex and it also turns the clock on.  I believe this should be sufficient.  At least it follows the requirement as described by TI and by others on this forum.  I'm trying to do this with autonegotiation; I haven't attempted to force it to 1Gbps.

    I changed davinci_emac.c to clear the advertise 1000 half duplex and to set the advertise 1000 full duplex in the 1000 control register (address 9), but it didn't make any difference.  It still makes several attempts at 1000 and then eventually connects at 100.

    Carl