Device file name of MDIO bus in FRWY-LS1012A board

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

Device file name of MDIO bus in FRWY-LS1012A board

727 Views
Dhanyalakshmi
Contributor III

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?

0 Kudos
Reply
3 Replies

632 Views
June_Lu
NXP TechSupport
NXP TechSupport

It seems you have installed the mdio-tools package, what's further support?

0 Kudos
Reply

713 Views
June_Lu
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

656 Views
Dhanyalakshmi
Contributor III
Thank you, June, for your response. The listed commands need to be executed in Bootloader mode.

However, my query is about communicating with the MDIO bus from the Linux OS. On the FRWY-LS1012A board, there are two Ethernet PHYs connected to the MDIO bus. I want to communicate with these devices to read their register values. I was trying to determine if there is a device file that allows me to perform read operations directly.

I reviewed the board's DTS file to see if it specifies any device file for these Ethernet PHYs or the MDIO bus to enable communication, but I couldn’t find any relevant information.

Could you please let me know if there is a device file I can use to communicate with the MDIO bus?
0 Kudos
Reply