mdio-tools cannot used on DPAA Ethernet ports.
We use mdio_proxy_module in LSDK 21.08.
mdio_proxy_module:
url: https://github.com/nxp-qoriq/mdio-proxy-module.git
tag: LSDK-21.08
However you need to port the source code to make it suitable for your version Linux Kernel.
To find out mdio bus name, you need to do the following.
find /sys | grep -i class|grep -i mdio
Please refer to my following log.
root@localhost:~# find /sys | grep -i class|grep -i mdio /sys/class/mdio_bus
/sys/class/mdio_bus/0x0000000001afc000
/sys/class/mdio_bus/0x0000000001aeb000
/sys/class/mdio_bus/0x0000000001af3000
/sys/class/mdio_bus/0x0000000001ae5000
/sys/class/mdio_bus/0x0000000001ae7000
/sys/class/mdio_bus/0x0000000001ae1000
/sys/class/mdio_bus/fixed-0
/sys/class/mdio_bus/0x0000000001afd000
/sys/class/mdio_bus/0x0000000001af1000
/sys/class/mdio_bus/0x0000000001ae9000
/sys/class/mdio_bus/0x0000000001ae3000
root@localhost:~# ./mdio-app 0x0000000001afc000 0 c22 0
Got back data: 0x1040
root@localhost:~# ./mdio-app 0x0000000001afc000 0 c22 1
Got back data: 0x7989
root@localhost:~# ./mdio-app 0x0000000001afc000 0 c22 2
Got back data: 0x001c
root@localhost:~#