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: How to operate Loopback mode of DP83867IRRGZ

Part Number: DP83867IR


Hi team,

My customer have some issue on Phy DP 83867, currently the result is.

  1. The MDIO interface is working and I can read the Phy register by MDIO interface.
  2. But the data bus between MAC and PHY is un-working.

 

Their questions is:

  1. How to make sure the BUS is working at LOOP back mode?
  2. How to control MAC to send raw data and compare   the return value?
  3. Did you have test example code?

Thanks.

  • Hello Feng,

    1. The "8.4.4 Loopback Mode" section of the datasheet explains the different loopback modes within the PHY, including what registers need to be configured to enable the different loopback modes.
    2. You will have to refer to the MAC datasheet for this one
    3. What test code are you looking for? To set the PHY to loopback you need to write the required values to through the SMI interface (MDIO/MDC).

    Thanks,

    Vibhu

  • Hi Vibhu,

    Thank for your reply.

    Currency the PHY DP83867 can working right now, I think it is came from by FPGA clock setting and pin assignment issue.

    But customer have another question.

    How to define the RX/TX internal delay value in Linux device-tree?

     

    Example:

    Ethernet-phy@0 {

           reg = <0>;

           ti,rx-internal-delay = <??? DP83867_RGMIIDCTL_2_25_NS>;

           ti,tx-internal-delay = <??? DP83867_RGMIIDCTL_2_75_NS>;

           ti,fifo-depth = <??? DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;

        };

     

     

     

  • Hello Feng,

    I would suggest experimenting with the RGMII TX and RX delays. The skew required depends on how your board is set up and how long the traces are. You shouldn't have to change the fifo-depth is there a reason you are using this control?

    Thanks,

    Vibhu