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 CHIP MDIO register read/write

Part Number: DP83867CR

Tool/software: Linux

Hello

I'm using dp83867 phy chip with custom board.

I'm going to read  & write phy chip mdio register.

There is R/W function for register in linux driver dp83867.c

ex)

val = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4);

phy_write_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4, val);

How can I use these function in user application to control register?

or another way to R/W phy chip register in user application?

Thanks in advance

billy