help on MDIO commands in u-boot

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

help on MDIO commands in u-boot

19,739 Views
chandrashekhar
Contributor III

Hi,

Can someone help me in using "mdio" commands on u-boot? How to read the different pages of PHY registers? I need dump of all phy registers, how to do that?

Regards

Chandra

Tags (2)
2 Replies

7,941 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Chandra,

Please check whether the following would be helpful for you.

=> mdio list

FSL_MDIO0:

0 - RealTek RTL8211E <--> FM1@DTSEC2

1 - RealTek RTL8211E <--> FM1@DTSEC4

2 - RealTek RTL8211E <--> FM1@DTSEC5

3 - RealTek RTL8211DN <--> FM1@DTSEC3

=> mii read 0-1 0-6

addr=00 reg=00 data=1140

addr=00 reg=01 data=7969

addr=00 reg=02 data=001C

addr=00 reg=03 data=C915

addr=00 reg=04 data=01E1

addr=00 reg=05 data=C1E1

addr=00 reg=06 data=000D

addr=01 reg=00 data=1140

addr=01 reg=01 data=796D

addr=01 reg=02 data=001C

addr=01 reg=03 data=C915

addr=01 reg=04 data=01E1

addr=01 reg=05 data=C1E1

addr=01 reg=06 data=000D

=> mdio read 0 00

0 is not a known ethernet

Reading from bus FSL_MDIO0

PHY at address 0:

0 - 0x1140


Have a great day,
Yiping Wang

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

7,941 Views
chandrashekhar
Contributor III


Hi Yiping,

Thanks for the response. To select the different pages of PHY register we need to first use command "mdio write" to select the page. After that same command will work as you mentioned.

Regards,

Chandra

0 Kudos
Reply