Imx8mp wake-on-lan

hi @jeremias.tx I took the mdio-tool from this Microchip repo and compile it with the sdk generated from yocto.
The tool seems to work, I can read the PHY registers:

torizon@CB20300132:~$ sudo  ./mdio-tool r ethernet0 0x01 7
0x796d
torizon@CB20300132:~$ sudo  ./mdio-tool r ethernet0 0x00 7
0x1140
torizon@CB20300132:~$ sudo  ./mdio-tool r ethernet0 0x02 7
0x0022
torizon@CB20300132:~$ sudo  ./mdio-tool r ethernet0 0x03 7
0x1642
torizon@CB20300132:~$ sudo  ./mdio-tool r ethernet0 0x04 7
0x05e1

I will try now to configure the link-up detection for WOL, following this sequence


in attachment the compiled tool
mdio-tool (17.6 KB)