Tool/software: Linux
Hi All,
I am using ZCU102 development kit. The phy chip used in this is TI DP83867IR. ZCU102 has GEM(Gigabit Ethernet Mode) controller. I want to validate the MAC to PHY communication. Tried below registers settings(values) by referring for both GEM and PHY data sheets, but MII loopback is not working. After loopback transmitted data is not received at destination location.
PHY address is 0x0c and GEM controller is 0xFF0E000.
Steps :
For DP83867
After power-on I stop booting at U-boot and issue "mii read/write" commands to set and read Phy registers.
Register --- values
0x00(BMCR) --- 0x5140 - MII loopback enabled
0xFE(LOOPCR) --- 0xE720 --
0x16(BISCR) ---- 0x0000 --- disable other loopback methods.
################################################
For GEM controller :
0xFF0E0000 (control register) -- 0x0000021C (To enable Rx, Tx, and Management port enable)
0x FF0E0004(config register) -- 0x08280400 (To enable PC_select, SGMII mode enable and Gigabit mode enable)
0x0FF0E1C ( transmit_q_ptr ) -- transmitter memory pointer - where transmit data is saved)
0x0FF0E18 ( receive_q_ptr ) -- Receiver memory pointer - To receive data from loopback)
Could you please look into my steps and guide me if I am missing anything or followed steps are correct or not.
Thanks and Regards,
Jayalaxmi