uboot not able to read phy id during boot time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uboot not able to read phy id during boot time

2,084 Views
sameerarvikar
Contributor III

I am working on a custom board having imx6 processor

using vsc8502 phy

I am getting the error phy 25 not found in uboot,

After adding some print statements in phy.c ,i found that its happening because ,uboot is not able to read phy_id(70630) i.e register 0x2 and 0x3 of phy ,

so its (get_phy_id function ) returns ffffffff and hence this error (phy not found comes)

however as uboot booting completes I can read and write phy registers ,i can use mii command to read 0x2 and 0x3 register of phy

mii read 0x19 0x2

0007

mii read 0x19 0x3

0631

why is this happening and how can i ensure that phy registers are read at boot time

Labels (1)
Tags (2)
0 Kudos
3 Replies

1,412 Views
igorpadykov
NXP Employee
NXP Employee

Hi sameerarvikar

one can check if proper PHY address is set  ( in uboot/include/configs/board_file.h

#define CONFIG_FEC_MXC_PHYADDR), as described in similar issue on
https://community.nxp.com/thread/331776

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,412 Views
sameerarvikar
Contributor III

Hi igorpadykov ,

i have defined as follwing in the file

#define CONFIG_FEC_MXC_PHYADDR   0x19   /*25 in decimal*/

and when i do mii info

PHY 0x18: OUI = 0x01C1, Model = 0x23, Rev = 0x01,   10baseT, HDX

PHY 0x19: OUI = 0x01C1, Model = 0x23, Rev = 0x01, 100baseT, FDX

still same issue is coming

0 Kudos

1,412 Views
igorpadykov
NXP Employee
NXP Employee

Hi sameerarvikar

please check signals on phy PHYADD[] with oscilloscope

and use appropriate address in uboot code.

Best regards
igor

0 Kudos