Hello,
I'm Dhanyalakshmi, and I have a task to read the register value of a device connected to the MDIO bus. I was looking for a device file for the MDIO bus, assuming it would be an easier way to communicate with the bus. However, I couldn’t find any mention of an MDIO bus device file. Is there a different name for it on the FRWY-LS1012A, or how do I interact with the MDIO bus? Can someone help me check the correct device file name?
It seems you have installed the mdio-tools package, what's further support?
In the LS1012ARDB U-boot, you could check information below:
=> mdio
mdio - MDIO utility commands
Usage:
mdio list - List MDIO buses
mdio read <phydev> [<devad>.]<reg> - read PHY's register at <devad>.<reg>
mdio write <phydev> [<devad>.]<reg> <data> - write PHY's register at <devad>.<reg>
mdio rx <phydev> [<devad>.]<reg> - read PHY's extended register at <devad>.<reg>
mdio wx <phydev> [<devad>.]<reg> <data> - write PHY's extended register at <devad>.<reg>
<phydev> may be:
<busname> <addr>
<addr>
<eth name>
<addr> <devad>, and <reg> may be ranges, e.g. 1-5.4-0x1f.
=> mdio list
PFE_MDIO:
1 - RealTek RTL8211F <--> pfe_eth1
2 - RealTek RTL8211F <--> pfe_eth0