Commit Graph
100 Commits
Author SHA1 Message Date
wuzhenghui 13aa2ca226 fix(esp_hw_support): fix core1 branch predictor access ext mem after cache disabled by core0 2026-05-13 12:22:59 +08:00
wuzhenghui c7cc3263a7 feat(example): implement power management example for ESP chips 2026-05-12 11:12:08 +08:00
wuzhenghui 378255d28c fix(soc): link rtc_io_num_map to DRAM 2026-03-15 13:12:55 +08:00
wuzhenghui 9d8ef5b11b feat(example): add cache safe check for wifi powersave example CI 2026-03-15 13:12:55 +08:00
wuzhenghui a5b4fc36e9 feat(esp_hw_support): add RV FP test cases 2026-03-12 11:36:48 +08:00
wuzhenghui efba30b427 feat(esp_hw_support): support esp32p4 RV FPU context retention in pd_cpu sleep 2026-03-12 11:36:48 +08:00
wuzhenghui af9c605877 feat(esp_hw_support): add API to supoport modify retention skip flag dynamically 2026-03-11 19:59:23 +08:00
wuzhenghui 0c0844b253 fix(esp_rom): sync spi_flash_disable/enable_cache patches to rom implementation 2026-03-10 14:26:39 +08:00
wuzhenghui 27652bf7d7 fix(esp_hw_support): fix sleep exception if CONFIG_SPI_FLASH_ROM_IMPL enabled 2026-03-10 14:20:23 +08:00
wuzhenghui 737d311807 fix(esp_hw_support): fix esp_sleep_enable_gpio_wakeup_on_hp_periph_powerdown bad logic 2026-02-13 16:27:36 +08:00
wuzhenghui 9997d2e15a fix(esp_hw_support): make esp_deep_sleep_enable_gpio_wakeup available to PD_TOP lightsleep 2026-02-13 16:27:36 +08:00
wuzhenghui bf31d0396e fix(example): fix uninitialized gpio/rtcio in deepsleep example 2026-02-13 16:27:32 +08:00
wuzhenghui d827011de8 fix: add reference count control for modem clock devices 2026-01-30 10:49:22 +08:00
wuzhenghui 6bb8c3d988 feat(esp_hw_support): support esp32p4 ADC_TESEN_MONITOR mode 2026-01-29 20:25:24 +08:00
wuzhenghui 542756888b fix(soc): fix LP_UART clock source definitions to FOSC instead of LP_FAST 2026-01-29 20:25:16 +08:00
wuzhenghui 6e79470894 fix(esp_system): fix rom secure boot fast wake feature for c5/c6/h2/h21 2026-01-12 19:04:07 +08:00
wuzhenghui d1f8126813 fix(esp_hw_support): fix TOP domain to CNNT domian dependency 2026-01-12 16:15:21 +08:00
wuzhenghui 38ea06b8aa test(esp_pm): add test case for USJ printing performance during wake-up
Add a new test case to verify that USJ printing doesn't block CPU on chip
wake-up from light sleep. The test measures the average time per print
operation and ensures it's below 5000 microseconds.
2025-11-14 17:42:44 +08:00
wuzhenghui b63b422620 fix(esp_driver_usb_serial_jtag): check USJ accessibility before read/write
Add connection checks to usb_serial_jtag_write and usb_serial_jtag_read
functions to return -EIO error code when the USB Serial JTAG is not
connected.
2025-11-14 17:27:34 +08:00
wuzhenghui b6fcb783f5 fix(esp_hw_support): add dependency of the TOP domain to the RTC_PERIPH domain for esp32c6 2025-11-14 16:43:14 +08:00
wuzhenghui 7168e29678 fix(esp_system): fix XTAL32K power breaks ADC function on 32k XTAL clock pin 2025-11-14 14:14:29 +08:00
wuzhenghui 18475ffbe5 fix(esp_hw_support): add p4 rev3.0 MSPI workaround for deepsleep 2025-11-04 16:03:31 +08:00
wuzhenghui e46e51fafb fix(esp_hw_support): fix mie lost after pd_cpu sleep request reject 2025-11-04 16:03:31 +08:00
wuzhenghui b8bf30b2c0 change(esp_hw_support): set HP/LP mem in retention mode in sleep 2025-11-04 16:03:30 +08:00
wuzhenghui 5d99ba05a1 change(esp_hw_support): update TOP pd sleep dependency
Disable peripheral powerdown lightsleep if PSRAM if enabled on P4 v3
Force powerdown Flash if peripheral power down lightsleep is enabled
2025-11-04 16:03:30 +08:00
wuzhenghui c87b576745 fix(esp_hw_support): add PD_TOP lightsleep mspi failure workaround for p4 rev3 2025-11-04 16:03:29 +08:00
wuzhenghui a0a4495eee fix(esp_hw_support): fix esp32p4 v3 cache error false alarm after PD_TOP wakeup 2025-11-04 16:03:29 +08:00
wuzhenghui 1956ea5ac2 fix(esp_hw_support): fix P4 v3.0 USB leakage on PU_CNNT lightsleep 2025-11-04 16:03:29 +08:00
wuzhenghui df78f0a5f0 fix(esp_hw_support): add the TOP domain's power-off dependency on the CNNT domain 2025-11-04 16:03:28 +08:00
wuzhenghui d0f1aa7648 change(esp_hw_support): allocate memory with MALLOC_CAP_RETENTION for regdma link 2025-11-04 16:03:28 +08:00
wuzhenghui 9a5f1475e8 change(soc): reset L2 Cache sync after config restore 2025-11-04 16:03:28 +08:00
wuzhenghui d4b3d01b4d feat(esp_hw_support): update cpu_pd support for esp32p4 v3.0 2025-11-04 16:03:27 +08:00
wuzhenghui 819fa8ccb2 feat(esp_hw_support): update pmu support for esp32p4 v3.0 2025-11-04 16:03:27 +08:00
wuzhenghui 03227b9c14 feat(soc): support esp32p4 rev3.0 soc 2025-11-04 16:03:27 +08:00
wuzhenghui b20d8c1afb fix(esp_system): fix ext 32k io revoking breaks sleep io holding 2025-10-10 20:20:50 +08:00
wuzhenghui ee7f15d5ea change(esp_hw_support): remove DCDC-to-LDO power switch support in ESP32P4 lightsleep 2025-09-29 14:15:38 +08:00
wuzhenghui 072bca4296 change(esp_hw_support): control DCDC switch by PMU FSM while control DCDC_EN by software 2025-09-29 14:11:06 +08:00
wuzhenghui 7635a54b1e feat(esp_hw_support): add new API to get all wakeup sources 2025-08-26 21:53:01 +08:00
wuzhenghui 9298596ea7 fix(esp_hw_support): test ESP_SLEEP_RTC_USE_RC_FAST_MODE sleep submode after reset 2025-08-20 17:33:35 +08:00
wuzhenghui 1e979793b4 fix(esp_hw_support): fix ESP_SLEEP_RTC_USE_RC_FAST_MODE sub_mode lost after cpu/sys reset
Closes https://github.com/espressif/esp-idf/issues/16243
2025-08-20 17:33:10 +08:00
wuzhenghui f1066f5f34 change(esp_hw_support): warning in esp_sleep_pd_config instead of assert
Closes https://github.com/espressif/esp-idf/issues/16872#event-18649904083
2025-08-08 14:32:00 +08:00
wuzhenghui 881b02598c change(esp_hw_support): always do hardware clock enable in modem module enabling 2025-08-08 11:53:41 +08:00
wuzhenghui 40ba25aecd fix(esp_hw_support): fix MODEM_ADC_COMMON_FE destroyed by modem powerdown lightsleep 2025-08-08 11:53:30 +08:00
wuzhenghui 1de92b2e70 fix(esp_hw_support): enable ESP_SLEEP_RTC_FAST_USE_XTAL_MODE only once in RTC_FAST selection 2025-07-25 16:51:58 +08:00
wuzhenghui 2a815e9037 fix(esp_hw_support): fix assert when changing 8MD256 RTC slow clock source during OTA 2025-07-25 16:51:49 +08:00
wuzhenghui ea314e9dd9 feat(esp_hw_support): add core1 enter deepsleep test case 2025-07-14 11:49:56 +08:00
wuzhenghui d8e73e94f2 fix(esp_hw_support): fix esp32 APP_CPU accessing RTCFAST memory in sleep code
Closes https://github.com/espressif/esp-idf/issues/16243
2025-07-14 11:49:52 +08:00
wuzhenghui 37d25de531 fix(esp_system): force enable uart0 sclk in esp_restart 2025-07-03 19:16:56 +08:00
wuzhenghui 28aa20045e feat(esp_hw_support): enable wakeup tests for more chips 2025-06-23 09:57:42 +08:00
wuzhenghui 5bc5a1474c fix(hal): fix pmu_ll_ext1_clear_wakeup_status API 2025-06-23 09:54:07 +08:00
wuzhenghui 2519605acb change(bt): increase BTDM_MODEM_WAKE_UP_DELAY 2025-06-13 20:37:35 +08:00
wuzhenghui 626123bbeb change(esp_timer): make esp_timer timming drift always be negative 2025-06-13 20:37:30 +08:00
wuzhenghui 5b64757042 fix(esp_hw_support): config lact in critical 2025-06-13 12:06:18 +08:00
wuzhenghui 3fa79684cd ci(esp_timer): add UT case for esp_timer period alarm with DFS 2025-05-22 15:18:22 +08:00
wuzhenghui b5da8a52c6 feat(esp_hw_support): compensate the error introduced to LACT during APB frequency switching 2025-05-22 15:18:21 +08:00
wuzhenghui db6aedef25 fix(esp_hw_support): update systimer step immediately when XTAL changes on esp32s2 2025-05-22 15:18:21 +08:00
wuzhenghui 78e9c47580 fix(esp_hw_support): update LACT clock prescale immediately when APB changes on esp32 2025-05-22 15:18:16 +08:00
wuzhenghui e27321ab51 fix(esp_hw_support): fix esp32p4 may get stuck when entering deepsleep 2025-05-20 15:52:52 +08:00
wuzhenghui 1811757ad9 fix(esp_hw_support): Fix deepsleep leakage after initializing USB HS phy 2025-05-15 16:05:05 +08:00
wuzhenghui daaba0f36c fix(esp_hw_support): always disable USJ pad in sleep to supress leakage 2025-05-13 20:11:18 +08:00
wuzhenghui 33aca83c63 change(ci): remove esp32c5 from readme since esp32c5 skipped CI build 2025-04-25 17:13:27 +08:00
wuzhenghui dbd4934205 fix(esp_hw_support): specify optimize options to avoid dirtying L2 mem after L1D$ writeback 2025-04-25 17:13:27 +08:00
wuzhenghui 8cfe912053 fix(esp_hw_support): fix wrong APB clock freq on retenion 2025-04-25 17:13:26 +08:00
wuzhenghui 192ffcb894 feat(esp_hw_support): count pau backup time into sleep rejection judgment 2025-04-25 17:13:26 +08:00
wuzhenghui 41e6e25e2d feat(esp_hw_support): remeasure sleep_time_overhead_out if min_freq_mhz changed 2025-04-25 17:13:26 +08:00
wuzhenghui 81860c55d6 feat(esp_hw_support): use non-lock regi2c fast-up cpll/mpll enable process after sleep wakeup 2025-04-25 17:13:22 +08:00
wuzhenghui c29cd7333b fix(esp_hw_support): fix usj pad config bad retention
Closes https://github.com/espressif/esp-idf/issues/15797
2025-04-25 15:52:10 +08:00
wuzhenghui 41dd6ef81a feat(esp_hw_support): optimize esp32p4 GPIO retention link 2025-04-25 15:26:05 +08:00
wuzhenghui d9fdab14d0 fix(esp_hw_support): iomux slp_sel is not avaliable to isolate mspi pin leakage on esp32p4 2025-04-25 15:26:02 +08:00
wuzhenghui e22c4a146d change(esp_hw_support): allow sar power keep on during lightsleep
Closes https://github.com/espressif/esp-idf/issues/12426
2025-04-16 15:51:48 +08:00
wuzhenghui d2755374e0 fix(esp_hw_support): fix esp32p4 xtal_xpd depends on TOP power domain 2025-04-16 15:37:11 +08:00
wuzhenghui 76d021ad11 fix(esp_hw_support): fixed gpio sleep switching filling junk data to the console UART FIFO 2025-04-16 15:23:27 +08:00
wuzhenghui 7643f77225 feat(esp_hw_support): enable auto clock gating for multi peripherals 2025-04-16 15:08:51 +08:00
wuzhenghui ba88b91e28 fix(esp_hw_support): fix unused OSC source deinit breaks XTAL32K configuration 2025-04-16 14:56:49 +08:00
wuzhenghui 54c4606111 fix(esp_hw_support): fix current leakage if ext32k slow clock source not exists 2025-04-16 14:56:12 +08:00
wuzhenghui ddd19eee94 fix(esp_hw_support): fix min sleep time calculation missmatch in powerdown flash decision 2025-04-03 11:51:57 +08:00
wuzhenghui 6de3fde3c2 fix(esp_system): fix possible cache_error by another core accessing flash in esp_restart 2025-03-10 11:40:10 +08:00
wuzhenghui 7f88cf3ee9 change(esp_hw_support): only do mpll disable in lightsleep process 2025-03-08 14:06:12 +08:00
wuzhenghui e549dca8ae change(doc): added more usage notes & warings about PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP 2025-02-28 16:43:02 +08:00
wuzhenghui 6e2b2a0e54 fix(esp_hw_support): fix lightsleep destroys deepsleep rtc parameters 2025-02-26 16:51:46 +08:00
wuzhenghui 8e6ec50bcc fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management 2025-02-21 09:50:42 +08:00
wuzhenghui b654a78646 change(esp_hw_support): wrapper sleep dcdc/ldo ops with ll 2025-02-19 14:32:22 +08:00
wuzhenghui 8233c250de feat(esp_hw_support): add branch prediction config retention 2025-02-19 14:32:19 +08:00
wuzhenghui a63e9c5aef fix(esp_hw_support): fix DCDC switch bad software powerdown 2025-02-19 14:32:15 +08:00
wuzhenghui 4542c463c6 change(esp_hw_support): not use ROM Cache invalidate in sleep process to avoid dirtying the L1 Cache 2025-02-19 14:32:12 +08:00
wuzhenghui ea05eba7f5 feat(esp_hw_support): do mstatus restore on each core 2025-02-19 14:32:08 +08:00
wuzhenghui 228e74e06c feat(esp_hw_support): do esp32p4 l1 cache invalidate by regdma 2025-02-19 14:32:04 +08:00
wuzhenghui f3cc52d234 feat(esp_hw_support): do esp32p4 l1&l2 cache regs retention by regdma 2025-02-19 14:32:00 +08:00
wuzhenghui 95fb085fe3 fix(esp_hw_support): add timer wakeup sleep duration check
Closes https://github.com/espressif/esp-idf/issues/15255
2025-02-18 19:21:57 +08:00
wuzhenghui 1e11f287e1 change(esp_hw_support): disable CPU wait-for-event mode on cpu start 2025-02-18 19:21:09 +08:00
wuzhenghui 003a7f6bcb fix(esp_hw_support): fix lp/hp clock wait time calculation after wait pll ready 2025-02-17 16:53:28 +08:00
wuzhenghui 67a4de4e77 change(esp_hw_support): switch to sleep_flags earlier to identify sleep state 2025-02-17 16:53:28 +08:00
wuzhenghui 87c4227e44 change(esp_hw_support): wait pll calibration done in regdma link instead of wait fixed value 2025-02-17 16:53:27 +08:00
wuzhenghui cfcd8990f6 fix(esp_hw_support): fix branch predictor access flash after cache disabled 2025-01-22 19:24:48 +08:00
wuzhenghui 9b7ce542f2 fix(esp_hw_support): fix p4 OTG phy bad suspend cause high power consumption on sleep 2025-01-14 14:22:39 +08:00
wuzhenghui 667011cd46 fix(esp_hw_support): fix tsens power enable failed after modem state wakeup 2025-01-10 10:21:39 +08:00
wuzhenghui 0609f9111e fix(esp_hw_support): fix mspi clock freq changed after lightsleep 2024-12-26 19:25:48 +08:00
wuzhenghui c7c70a8ec6 fix(esp_hw_support): fix esp32p4 JTAG pad deepsleep current leakage 2024-12-26 16:03:42 +08:00
wuzhenghui e49faab8d4 fix(esp_pm): enable RTC_PERIPH domain once in esp_pm_trace_init 2024-12-26 14:09:52 +08:00
wuzhenghui 7df7db7284 fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy 2024-12-26 11:35:04 +08:00