Page 1 of 1

Ethernet PHY manual control (HW reset)

Posted: Thu Aug 31, 2023 9:07 am
by martins
Hi, I have eth2ap based app, everything seems to be working as expected, but I would like some clarification on following scenario:

I want to start/stop the ethernet PHY chip on demand. Using

Code: Select all

esp_eth_start()/esp_eth_stop()
does stop the ethernet processing as expected, but PHY remains online.

I can put PHY reset singal to reset state manually (via gpio_set_level()) which seemingly works correctly together with esp_eth_start/stop, but I'm not too sure about that. Main concern is to make sure the PHY registers are correctly initialized after the unreset.

So how can I correctly reinit the PHY after unreset (while using driver that was installed before the reset was activated)?

Re: Ethernet PHY manual control (HW reset)

Posted: Tue Sep 05, 2023 10:41 am
by martins
Ok, so I guess I could better use:

Code: Select all

phy->pwrctl(phy, false);	// power off
phy->init(phy);		// init, including power on