Using MDIO/SMI to access a PHY's Control Register

geschema
Posts: 5
Joined: Thu May 06, 2021 7:59 am

Using MDIO/SMI to access a PHY's Control Register

Postby geschema » 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:

Code: Select all

phy->pwrctl(phy, false);
looks like a good candidate to power down the PHY without having to send MDIO commands by hand.

Who is online

Users browsing this forum: No registered users and 104 guests