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: Mirror Mode Configuration

Part Number: DP83867IR


Hi 

I'd like to know the configuration of Mirror mode.
I know that Mirror mode can be enabled/disabled via strap or register configuration.
But it seems that "After Mirror mode is enabled once, it can't work properly if Mirror mode is disabled after that".

The port connections of my customer board is not mirroring. So, they usually use it with Mirror mode disabled.
But, at first, Mirror mode is enabled via strap. And then, they changed Mirror Mode register configuration using MDIO. As a result, it doesn't work.

====================
1. Mirror mode is enabled via "strap", 
2. Mirror mode is disabled via "register configuration" using MDIO.
=>NG: Link is established. But there is no data on RGMII RX signals if there are some "Receive activity". (LED2 is lighting)

====================
1. Mirror mode is disabled via "strap",
=>OK! no problem.

I checked it using EVM. I confirmed the same phenomenon happens.
So, I understand that  "After Mirror mode is enabled once, it can't work properly if Mirror mode is disabled".
Is my understanding correct? Or we need to config any other register when Mirror mode is changed?

Of course, I think Mirror mode should be disabled via strap for this board.

Best Regards,
Taka

 

  • Hello Taka,

    Which register was used to disable mirror mode? I tried this in the lab and I can get it to link if I disable strap through register write. Following is my setup;

    1. Strap DP83867IR LED0 in mode 3.
    2. Connect cable to Gigabit link partner and power on. No link is established.
    3. Read register 0x31. Bit[0] should be '1'. Please note that we are interested only in bit[0] of the register. Leave all other bits unchanged.
    4. Write '0' to bit[0] of register 0x31 to disable Mirror mode.

    The link should be established. If it does not connect, try soft restart by writing 0x4000 to register 0x1F.

    -Regards,
    Aniruddha
  • Hi Aniruddha,
    Sorry in my delay response.

    But, this has been not solved yet.

    Aniruddha Khadye said:

    1. Strap DP83867IR LED0 in mode 3.
    2. Connect cable to Gigabit link partner and power on. No link is established.
    3. Read register 0x31. Bit[0] should be '1'. Please note that we are interested only in bit[0] of the register. Leave all other bits unchanged.
    4. Write '0' to bit[0] of register 0x31 to disable Mirror mode.

    The link should be established. If it does not connect, try soft restart by writing 0x4000 to register 0x1F.



    Bit[0] of the register 0x31 is used to disable mirror mode.

    The link can be established, So, I'm in a similar situation.
    But, after that, there is no data on RGMII RX signals even though the link is established and there are some "activity"(LED2 is lighting)
    Please check the RX data pin in your lab . #I'm checking RX_D0 pin.

    Best Regards,
    Takahiro Ogo



  • Hello Takahiro,

    Are they using the 48pin QFN device or the 64pin QFP device?
    Can they read value of register 0x32 and 0x86?
    What is the link partner? Can they try writing '0' to register 0x31 bit 7 and check if that helps resolve the problem?


    -Regards,
    Aniruddha
  • Hi Aniruddha-san,

    Thank you for your reply. But I have not solved this yet.

    ■Case 1 =====================================
    1) At Power-Up
    Register 0031 is: 00B1 <------- Mirror mode Enable via Strap-pin.
    Register 0032 is: 00D0
    Register 0086 is: 0077

    2)Write '0' to bit[0] of register 0x31 to disable Mirror mode.

    3)
    Register 0031 is: 00B0 <------- Mirror mode Disable
    Register 0032 is: 00D0
    Register 0086 is: 0077

    4) Connect cable to link partner and link is established.
     But there is no data on RGMII RX signals even though the link is established and there are some "activity"(LED2 is lighting)

    ■Case 2 =====================================
    1) At Power-Up
    Register 0031 is: 00B0 <------- Mirror mode Disable via Strap-pin.
    Register 0032 is: 00D0
    Register 0086 is: 0077

    2) Connect cable to link partner and link is established.
    Also, we can see any data on RGMII RX signal. It's correct operation.


    ■Case 3 =====================================

    1) At Power-Up
    Register 0031 is: 00B0 <------- Mirror mode Disable via Strap-pin.
    Register 0032 is: 00D0
    Register 0086 is: 0077

    2)Write '1' to bit[0] of register 0x31 to enable Mirror mode.
    Register 0031 is: 00B1 <------- Mirror mode Enable

    3)Write '0' to bit[0] of register 0x31 to enable Mirror mode.
    Register 0031 is: 00B0 <------- Mirror mode Disable

    4) Connect cable to link partner and link is established.
    Also, we can see any data on RGMII RX signal. It's correct operation.
     
    =====================================================
    About your questions,
    > Are they using the 48pin QFN device or the 64pin QFP device? 
    It's 64pin QFP device. Also, I'm using DP83867IRPAP EVM.

    > Can they read value of register 0x32 and 0x86?
    Please look at the above.

    > What is the link partner? 
    In my environment, the link partner is PC. When Mirror mode is disable via strap-pin, it is working well.

    > Can they try writing '0' to register 0x31 bit 7 and check if that helps resolve the problem?
    Yes, I tried it. But, it didn't change.

    Best Regards,
    Takahiro Ogo
  • Hi Takahiro,

    Can you read registers 0x6E and 0x6F?
    These are bootstrap configuration status registers.

    I want to make sure the device is strapping to the correct configurations for each case.

    Please read both registers for when Mirror mode is enabled in bootstrap and disabled in bootstrap.

    Thank you,
    Ross
  • Hi Ross,
    I will check the registers soon and get back to you.


    Best Regards,
    Takahiro
  • Hi Ross, 

    I checked the registers. Please refer to the follows.

    ■Case 1 =====================================

    1) At Power-Up
    Register 0031 is: 00B1 <------- Mirror mode Enable via Strap-pin.
    Register 0032 is: 00D0
    Register 0086 is: 0077
    Register 006E is: 8800
    Register 006F is: 0100

    2)Write '0' to bit[0] of register 0x31 to disable Mirror mode.

    3)
    Register 0031 is: 00B0 <------- Mirror mode Disable
    Register 0032 is: 00D0
    Register 0086 is: 0077
    Register 006E is: 8800
    Register 006F is: 0100

    4) Connect cable to link partner and link is established.
     But there is no data on RGMII RX signals even though the link is established and there are some "activity"(LED2 is lighting)

    ■Case 2
     =====================================
    1) At Power-Up
    Register 0031 is: 00B0 <------- Mirror mode Disable via Strap-pin.
    Register 0032 is: 00D0
    Register 0086 is: 0077
    Register 006E is: 0000
    Register 006F is: 0100

    2) Connect cable to link partner and link is established.
    Also, we can see any data on RGMII RX signal. It's correct operation.
    =====================================

    When Mirror mode is enabled via strap pin and then Mirror mode is disabled via writing register, it can not work properly?


    Best Regards,
    Taka

  • Hi Taka,

    After you do the mirror mode configuration through register access, can you try adding a soft reset?
    Set bit[14] in register 0x1Fh to enable the soft reset. This will maintain the value of the registers but reset all digital logic.

    Thank you,
    Ross
  • Hi Ross-san,

    Thank you for your reply.
    I have already tried it.  After Mirror mode is disabled by writing register 0x31, I set 0x4000 to register 0x1F.
    But, the situation remains unchanged. There is no data on RGMII RX signals.

    Is there anything else?

    Thanks,
    Taka

  • Hi Taka-san,

    I tried to recreate your case 1 in the lab with the DP83867IRPAP and RGMII RX data was always present after changing mirror mode.

    Case 1 =====================================
    1) At Power-Up
    Register 0031 is: 00B1 <------- Mirror mode Enable via Strap-pin.
    Register 0032 is: 00D0
    Register 0086 is: 0077
    Register 006E is: 8000
    Register 006F is: 0000
    No link is established with link partner(SmartBits)

    2)Write '0' to bit[0] of register 0x31 to disable Mirror mode.

    3)Write '1' to bit[14] of register 0x1f to perform software restart

    4)
    Register 0031 is: 00B0 <------- Mirror mode Disable
    Register 0032 is: 00D0
    Register 0086 is: 0077
    Register 006E is: 8000
    Register 006F is: 0000

    5) Connect cable to link partner(SmartBits) and link is established.
    Data present on RX_D0 and RX_D2 (both toggling in response to data from SmartBits).

    Best Regards,
  • Hi Rob-san,

    Thank you for your kind support.
    I checked it again, But I can't solved it......

    Anyway, You and I are using the same DP83867IRPAP board. But, the value of 0x6E&0x6F register were different.
    Please let me know about your jumpers configuration on DP83867IRPAP .

    The follows are my jumpers(straps) configuration at Power up:
    J23: Jumper Position 1-2
    J16: Jumper Position 2-3 : Mirror Mode Enable
    J22: Jumper Position 1-2
    J15: No Jumper



    Best Regards,
    Taka

  • Hi Taka-san,

    I am using an internal evaluation board with the DP83867IR. I will check it with the DP83867IRPAP EVM.

    Best Regards,