Device file name of MDIO bus in FRWY-LS1012A board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Device file name of MDIO bus in FRWY-LS1012A board

1,014 次查看
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 项奖励
回复
3 回复数

919 次查看
June_Lu
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

1,000 次查看
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 项奖励
回复

943 次查看
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 项奖励
回复