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.

DP83822IF: DP83822 PHY MII internal loopback is failing.

Part Number: DP83822IF
Other Parts Discussed in Thread: AM6421

We designed a custom board utilizing the AM6421 System on Chip (SOC) for an industrial protocol. where we connected industrial ports (PRU-ICSS) using RGMII to DP83822IFRHBT. Using MDIO we are able to connect and configure PHY in internal Loopback mode (MII). This activity to test connection between SOC to PHY . Please find attached logs for same. Also we are able to probe TX CLK , TX CTRL  , TX_DO to TX_D3. We can see signals. Can anyone help from team analyze logs & give us input? Notes - 1) we already confirmed hardware connection strapping option with SOR1 (0x467U) & SOR2 (0x468U) . Its matching. 2) Without Loppback we also tested Link status with Laptop. Its working. We are able to confirm Link status with LED indication & phy register. 3) Energy Efficient Ethernet (EEE) option is enable. 

Before LoopBack Enabled

 

PHY 1: BMCR    (0x0000)    = 0x3100

PHY 1: BMSR    (0x0001)    = 0x7849

PHY 1: PHYIDR1 (0x0002)    = 0x2000

PHY 1: PHYIDR2 (0x0003)    = 0xa240

PHY 1: ANAR    (0x0004)    = 0x01e1

PHY 1: ANLPAR  (0x0005)    = 0x0000

PHY 1: ANER    (0x0006)    = 0x0004

PHY 1: ANNPTR  (0x0007)    = 0x2001

PHY 1: ANLNPTR (0x0008)     = 0x0000

PHY 1: CR1     (0x0009)   = 0x0000

PHY 1: CR2    (0x000A)    = 0x0100

PHY 1: CR3    (0x000B)    = 0x1000

PHY 1: REGCR  (0x000D)    = 0x0000

PHY 1: ADDAR  (0x000E)    = 0x0000

PHY 1: FLDS  (0x000F)    = 0x0000

PHY 1: PHYSTS (0x0010)     = 0x4002

PHY 1: PHYSCR (0x0011)     = 0x0108

PHY 1: MISR1  (0x0012)      = 0x0000

PHY 1: MISR2  (0x0013)       = 0x0800

PHY 1: FCSCR  (0x0014)    = 0x0000

PHY 1: RECR   (0x0015)     = 0x0000

PHY 1: BISCR  (0x0016)     = 0x0100

PHY 1: RCSR   (0x0017)     = 0x0241

PHY 1: LEDCR1 (0x0018)     = 0x0400

PHY 1: PHYCR  (0x0019)    = 0x8021

PHY 1: 10BTSCR (0x001A)      = 0x0000

PHY 1: BICSR1 (0x001B)      = 0x007d

PHY 1: BICSR2 (0x001C)      = 0x05ee

PHY 1: CDCR  (0x001E)      = 0x0102

PHY 1: PHYRCR (0x001F)       = 0x0000

PHY 1: MLEDCR (0x0025)       = 0x0000

 

PHY 1: COMPT (0x0027)       = 0x2001

PHY 1: COMPT (0x003E)       = 0x0102

PHY 1: PTPCFG (0x003F)       = 0x0000

PHY 1:   (0x0040)       = 0x3100

PHY 1: TXCPSR (0x0042)       = 0x2000

EnetPhy_bindDriver: PHY 1: OUI:080028 Model:24 Ver:00 <-> 'dp83822' : OK

 

PHY 1 is alive

PHY 2 is alive

 

After LoopBack Enabled

 

PHY 1: BMCR    (0x0000)    = 0x6100

PHY 1: BMSR    (0x0001)    = 0x7849

PHY 1: PHYIDR1 (0x0002)    = 0x2000

PHY 1: PHYIDR2 (0x0003)    = 0xa240

PHY 1: ANAR    (0x0004)    = 0x01e1

PHY 1: ANLPAR  (0x0005)    = 0x0000

PHY 1: ANER    (0x0006)    = 0x0004

PHY 1: ANNPTR  (0x0007)    = 0x2001

PHY 1: ANLNPTR (0x0008)     = 0x0000

PHY 1: CR1     (0x0009)   = 0x0000

PHY 1: CR2    (0x000A)    = 0x0100

PHY 1: CR3    (0x000B)    = 0x1000

PHY 1: REGCR  (0x000D)    = 0x401f

PHY 1: ADDAR  (0x000E)    = 0x0000

PHY 1: FLDS  (0x000F)    = 0x0000

PHY 1: PHYSTS (0x0010)     = 0x000c

PHY 1: PHYSCR (0x0011)     = 0x0108

PHY 1: MISR1  (0x0012)      = 0x0000

PHY 1: MISR2  (0x0013)       = 0x0800

PHY 1: FCSCR  (0x0014)    = 0x0000

PHY 1: RECR   (0x0015)     = 0x0000

PHY 1: BISCR  (0x0016)     = 0x0100

PHY 1: RCSR   (0x0017)     = 0x0241

PHY 1: LEDCR1 (0x0018)     = 0x0400

PHY 1: PHYCR  (0x0019)    = 0x0021

PHY 1: 10BTSCR (0x001A)      = 0x0000

PHY 1: BICSR1 (0x001B)      = 0x007d

PHY 1: BICSR2 (0x001C)      = 0x05ee

PHY 1: CDCR  (0x001E)      = 0x0102

PHY 1: PHYRCR (0x001F)       = 0x0000

PHY 1: MLEDCR (0x0025)       = 0x0000

PHY 1: COMPT (0x0027)       = 0x2001

PHY 1: COMPT (0x003E)       = 0x0102

PHY 1: PTPCFG (0x003F)       = 0x0000

PHY 1:   (0x0040)       = 0x6100

PHY 1: TXCPSR (0x0042)       = 0x2000

PHY 1: SOR1 (0x467U)  = 0x4ec3

PHY 1: SOR2 (0x468U)  = 0x0000