This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/DP83867CR:PHY 芯片 MDIO 寄存器读取/写入

Guru**** 2553450 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/624528/linux-dp83867cr-phy-chip-mdio-register-read-write

器件型号:DP83867CR

工具/软件:Linux

你好

我将 dp83867 phy 芯片与定制板配合使用。

我将读取 和写入 phy 芯片 MDIO 寄存器。

Linux 驱动程序 dp83867.c 中有用于寄存器的 R/W 函数

示例)

Val = phy_read_md (phydev、DP83867_DEVADDR、DP83867_CFG4);

PHY_WRITE_MMD (phydev、DP83867_DEVADDR、DP83867_CFG4、val);

如何在用户应用中使用这些函数来控制寄存器?

或通过其他方法在用户应用中注册 R/W phy 芯片?

提前感谢

比利