Thanks for the reply igor
There is MII read uboot commands to read the MDIO lines.
i am able to read for the NXP EVK but for our board with DP83848 TI Ethernet Phy we are getting "NULL device name!".
please find the below trace for MII read commands for NXP EVK
------------------------------------
u-boot=> mii read 0-1 0-6
addr=00 reg=00 data=1000
addr=00 reg=01 data=796D
addr=00 reg=02 data=004D
addr=00 reg=03 data=D074
addr=00 reg=04 data=11E1
addr=00 reg=05 data=CDE1
addr=00 reg=06 data=000F
addr=01 reg=00 data=FFFF
addr=01 reg=01 data=FFFF
addr=01 reg=02 data=FFFF
addr=01 reg=03 data=FFFF
addr=01 reg=04 data=FFFF
addr=01 reg=05 data=FFFF
addr=01 reg=06 data=FFFF ---------------------------------------
u-boot=> mdio read 0 00
0 is not a known ethernet
Reading from bus FEC0
PHY at address 0:
0 - 0x1000 --------------------------------------
u-boot=> mii info
PHY 0x00: OUI = 0x1374, Model = 0x07, Rev = 0x04, 1000baseX, FDX
---------------------------------------
please find the below trace for the Same commands for DP83848 TI Ethernet Phy
----------------------------------------------------------
u-boot=> mii read 0-1 0-6
NULL device name!
No such device: <NULL>
Error reading from the PHY addr=00 reg=00
NULL device name!
No such device: <NULL>
Error reading from the PHY addr=00 reg=01
NULL device name!
No such device: <NULL>
-------------------------------------------------------
u-boot=> mdio read 0 00
0 is not a known ethernet
No such device:
Reading from bus
PHY at address 0: ------------------------------------------------------------
u-boot=> mii info
NULL device name!
No such device: <NULL>
NULL device name! ----------------------------------------------------------l
Can we use mii and mdio read / write commands to access the Ethernet Phy register independently irrespectively to MII/RMII mode hardware configuration.?
Please advice how to proceed ahead
Schematic