feat(phy): update PHY libraries and improve PLL temperature tracking

1. Allow customization of temperature deltas for PHY track PLL.

2. Fix abnormal PHY state which may trigger task watchdog timeout.
This commit is contained in:
sibeibei
2026-05-15 17:14:39 +08:00
committed by zwx
parent 26bf1eba50
commit 65d9ecb75c
4 changed files with 57 additions and 0 deletions
+3
View File
@@ -336,6 +336,9 @@ void esp_phy_enable(esp_phy_modem_t modem)
assert(phy_module_has_clock_bits(PHY_INIT_MODEM_CLOCK_REQUIRED_BITS));
if (s_is_phy_calibrated == false) {
esp_phy_load_cal_and_init();
#if CONFIG_ESP_PHY_PLL_TRACK_TEMP_DEBUG
phy_track_temp_debug(CONFIG_ESP_PHY_PLL_TRACK_TEMP_DEBUG_FLAG, CONFIG_ESP_PHY_PLL_TRACK_TEMP_DELTA);
#endif
s_is_phy_calibrated = true;
} else {
#if SOC_PM_SUPPORT_PMU_MODEM_STATE && CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP
@@ -118,6 +118,9 @@ void esp_phy_enable(esp_phy_modem_t modem)
if (!s_phy_is_enabled) {
register_chipv7_phy(NULL, NULL, PHY_RF_CAL_FULL);
phy_version_print();
#if CONFIG_ESP_PHY_PLL_TRACK_TEMP_DEBUG
phy_track_temp_debug(CONFIG_ESP_PHY_PLL_TRACK_TEMP_DEBUG_FLAG, CONFIG_ESP_PHY_PLL_TRACK_TEMP_DELTA);
#endif
s_phy_is_enabled = true;
} else {
phy_wakeup_init();