Procházet zdrojové kódy

Increased LAN8720 ETH-PHY reset assertion time (IDFGH-6018)

Increase reset assertion time from 100µs (as specified minimum in the datasheet) to 150µs.
Some specimen of the LAN8720 need the reset signal asserted longer than 100µs to initialise properly. Otherwise they are in a zombie state where they are establishing and loosing an Ethernet link once in a seconds interval.
Frank Sautter před 4 roky
rodič
revize
a8ed7f44bb
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      components/esp_eth/src/esp_eth_phy_lan8720.c

+ 2 - 1
components/esp_eth/src/esp_eth_phy_lan8720.c

@@ -266,7 +266,8 @@ static esp_err_t lan8720_reset_hw(esp_eth_phy_t *phy)
         gpio_pad_select_gpio(lan8720->reset_gpio_num);
         gpio_set_direction(lan8720->reset_gpio_num, GPIO_MODE_OUTPUT);
         gpio_set_level(lan8720->reset_gpio_num, 0);
-        ets_delay_us(100); // insert min input assert time
+        /* assert nRST signal on LAN8720 a little longer than the minimum specified in datasheet */
+        ets_delay_us(150);
         gpio_set_level(lan8720->reset_gpio_num, 1);
     }
     return ESP_OK;