Using MDIO/SMI to access a PHY's Control Register
Posted: Thu Oct 21, 2021 9:00 am
I've setup a basic system using the ethernet example at https://github.com/espressif/esp-idf/tr ... rnet/basic
Now I would like to be able to power down the ethernet PHY (LAN8720) at runtime by accessing its Basic Control Register, which is located at SMI address 0x00. Which ESP32 IDF functions can I use for that purpose?
Update: looks like a good candidate to power down the PHY without having to send MDIO commands by hand.
Now I would like to be able to power down the ethernet PHY (LAN8720) at runtime by accessing its Basic Control Register, which is located at SMI address 0x00. Which ESP32 IDF functions can I use for that purpose?
Update:
Code: Select all
phy->pwrctl(phy, false);