Commit Graph
100 Commits
Author SHA1 Message Date
wuzhenghui 82712313ea change(heap): reserve DMA pool with low priority MALLOC_CAP_DEFAULT caps 2026-07-09 17:37:14 +08:00
wuzhenghui 08d98dbc59 fix(esp_hw_support): use same lock for lightsleep/deepsleep process 2026-06-22 11:30:05 +08:00
wuzhenghui 60f4050a4b fix(esp_pm): malloc pm_lock in internal mem 2026-06-16 17:56:52 +08:00
wuzhenghui 125d520cb3 docs(system): update GPIO wakeup section for clarity on EXT0 and EXT1 support 2026-06-03 21:13:33 +08:00
wuzhenghui bc549f10e0 fix(esp_hw_support): fix possible dead lock in deepsleep process 2026-06-02 17:47:08 +08:00
wuzhenghui 396f113d48 fix(esp_hw_support): add validation for gpio_pin_mask 2026-06-01 19:35:23 +08:00
wuzhenghui f7f0dcaeb7 fix(esp_hw_support): fix core1 branch predictor access ext mem after cache disabled by core0 2026-05-13 12:23:57 +08:00
wuzhenghui 02223a7e11 feat(example): implement power management example for ESP chips 2026-05-12 11:13:10 +08:00
wuzhenghui 36f058e58c feat(esp_hw_support): add RV FP test cases 2026-03-12 15:12:46 +08:00
wuzhenghui 1eb5493b6f feat(esp_hw_support): support esp32p4 RV FPU context retention in pd_cpu sleep 2026-03-12 15:12:42 +08:00
wuzhenghui 05dfa6f5d1 feat(esp_hw_support): add API to supoport modify retention skip flag dynamically 2026-03-11 20:00:24 +08:00
wuzhenghui f1285fc8dc fix(esp_rom): sync spi_flash_disable/enable_cache patches to rom implementation 2026-03-10 14:26:00 +08:00
wuzhenghui 68b9df7ceb fix(esp_hw_support): fix sleep exception if CONFIG_SPI_FLASH_ROM_IMPL enabled 2026-03-10 14:22:25 +08:00
wuzhenghui 5f2cd42bd8 fix(soc): link rtc_io_num_map to DRAM 2026-02-14 11:19:22 +08:00
wuzhenghui 9e61f2949e feat(example): add cache safe check for wifi powersave example CI 2026-02-13 12:22:58 +08:00
wuzhenghui dbc44bd5ba fix(esp_hw_support): fix esp_sleep_enable_gpio_wakeup_on_hp_periph_powerdown bad logic 2026-02-13 12:12:17 +08:00
wuzhenghui 3311a0601c fix(esp_hw_support): make esp_deep_sleep_enable_gpio_wakeup available to PD_TOP lightsleep 2026-02-13 12:11:55 +08:00
wuzhenghui ae2128e627 fix(example): fix uninitialized gpio/rtcio in deepsleep example 2026-02-13 12:11:29 +08:00
wuzhenghui 78af319a83 fix(esp_hw_support): fix TOP domain to CNNT domian dependency 2026-02-05 10:25:15 +08:00
wuzhenghui 88b480268d fix: add reference count control for modem clock devices 2026-01-30 10:49:56 +08:00
wuzhenghui 9e3aa38706 fix(esp_system): fix rom secure boot fast wake feature for c5/c6/h2/h21 2026-01-12 19:13:41 +08:00
wuzhenghui 92ed9c8d90 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:43:50 +08:00
wuzhenghui 454d1ac65d 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:33:09 +08:00
wuzhenghui 29cbccc072 fix(esp_system): fix XTAL32K power breaks ADC function on 32k XTAL clock pin 2025-11-14 17:01:21 +08:00
wuzhenghui d90989f6b0 fix(esp_hw_support): add dependency of the TOP domain to the RTC_PERIPH domain for esp32c6 2025-11-14 16:44:21 +08:00
wuzhenghui c586d1bfd6 change(esp_hw_support): set HP LDO powerdown in sleep by default 2025-11-04 16:40:03 +08:00
wuzhenghui 0254133fcf fix(esp_hw_support): fix mie lost after pd_cpu sleep request reject 2025-11-04 16:34:48 +08:00
wuzhenghui 6424f6982e fix(esp_hw_support): add the TOP domain's power-off dependency on the CNNT domain 2025-11-04 16:34:09 +08:00
wuzhenghui 7eb6e53250 fix(esp_system): fix ext 32k io revoking breaks sleep io holding 2025-10-10 20:24:30 +08:00
wuzhenghui 3d1c2d98c4 change(esp_hw_support): remove DCDC-to-LDO power switch support in ESP32P4 lightsleep 2025-09-29 14:21:48 +08:00
wuzhenghui c9db7f3b06 change(esp_hw_support): control DCDC switch by PMU FSM while control DCDC_EN by software 2025-09-29 14:17:13 +08:00
wuzhenghui 18f7e790f1 feat(esp_hw_support): add new API to get all wakeup sources 2025-08-26 21:53:56 +08:00
wuzhenghui f7966c21b7 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:34:04 +08:00
wuzhenghui badef456a3 change(esp_hw_support): always do hardware clock enable in modem module enabling 2025-08-08 12:05:12 +08:00
wuzhenghui beabc5bbf8 fix(esp_hw_support): fix MODEM_ADC_COMMON_FE destroyed by modem powerdown lightsleep 2025-08-08 12:05:05 +08:00
wuzhenghui 7ac245d489 fix(esp_hw_support): fix esp32 APP_CPU accessing RTCFAST memory in sleep code 2025-07-14 14:07:55 +08:00
wuzhenghui bd79398ec6 feat(esp_hw_support): enable wakeup tests for more chips 2025-06-23 10:01:24 +08:00
wuzhenghui 34035452af fix(hal): fix pmu_ll_ext1_clear_wakeup_status API 2025-06-23 10:00:52 +08:00
wuzhenghui 80267209c7 change(bt): increase BTDM_MODEM_WAKE_UP_DELAY 2025-06-16 17:27:08 +08:00
wuzhenghui e25f0faf89 change(esp_timer): make esp_timer timming drift always be negative 2025-06-16 17:27:08 +08:00
wuzhenghui cc10f1e54a fix(esp_hw_support): config lact in critical 2025-06-16 17:27:08 +08:00
wuzhenghui 162681d8ea ci(esp_timer): add UT case for esp_timer period alarm with DFS 2025-05-22 15:14:44 +08:00
wuzhenghui 326b32bd74 feat(esp_hw_support): compensate the error introduced to LACT during APB frequency switching 2025-05-22 15:14:43 +08:00
wuzhenghui bc1624879c fix(esp_hw_support): update systimer step immediately when XTAL changes on esp32s2 2025-05-22 15:14:43 +08:00
wuzhenghui 85aad225d0 fix(esp_hw_support): update LACT clock prescale immediately when APB changes on esp32 2025-05-22 15:14:39 +08:00
wuzhenghui 6866e9d40e fix(esp_hw_support): fix esp32p4 may get stuck when entering deepsleep 2025-05-20 16:01:20 +08:00
wuzhenghui e0d1641281 fix(esp_hw_support): Fix deepsleep leakage after initializing USB HS phy 2025-05-15 16:05:34 +08:00
wuzhenghui ce414f6ca6 fix(esp_hw_support): always disable USJ pad in sleep to supress leakage 2025-05-13 20:13:42 +08:00
wuzhenghui 9321f7ef75 fix(esp_hw_support): specify optimize options to avoid dirtying L2 mem after L1D$ writeback 2025-05-07 11:42:36 +08:00
wuzhenghui ad4f0a8708 fix(esp_hw_support): fix wrong APB clock freq on retenion 2025-05-07 11:42:35 +08:00
wuzhenghui 38d6e17516 feat(esp_hw_support): count pau backup time into sleep rejection judgment 2025-05-07 11:42:35 +08:00
wuzhenghui 61e32da02c feat(esp_hw_support): remeasure sleep_time_overhead_out if min_freq_mhz changed 2025-05-07 11:42:35 +08:00
wuzhenghui 1b47abed1b feat(esp_hw_support): use non-lock regi2c fast-up cpll/mpll enable process after sleep wakeup 2025-05-07 11:42:33 +08:00
wuzhenghui 50846c2595 feat(esp_hw_support): optimize esp32p4 GPIO retention link 2025-05-07 11:36:44 +08:00
wuzhenghui 86d68da4ed fix(esp_hw_support): iomux slp_sel is not avaliable to isolate mspi pin leakage on esp32p4 2025-05-07 11:36:44 +08:00
wuzhenghui c9946759dd fix(esp_hw_support): fix usj pad config bad retention
Closes https://github.com/espressif/esp-idf/issues/15797
2025-04-25 15:55:22 +08:00
wuzhenghui 5ce6c51c28 fix(esp_hw_support): fix unused OSC source deinit breaks XTAL32K configuration 2025-04-16 17:19:08 +08:00
wuzhenghui 8d55741d32 fix(esp_hw_support): fix current leakage if ext32k slow clock source not exists 2025-04-16 17:19:04 +08:00
wuzhenghui 9131a6f556 change(esp_hw_support): allow sar power keep on during lightsleep
Closes https://github.com/espressif/esp-idf/issues/12426
2025-04-16 16:05:38 +08:00
wuzhenghui d8e9167dcf fix(esp_hw_support): fix esp32p4 xtal_xpd depends on TOP power domain 2025-04-16 15:43:05 +08:00
wuzhenghui 1677013d7b fix(esp_hw_support): fixed gpio sleep switching filling junk data to the console UART FIFO 2025-04-16 15:24:52 +08:00
wuzhenghui 28882e9b29 fix(esp_hw_support): fix min sleep time calculation missmatch in powerdown flash decision 2025-04-03 11:44:31 +08:00
wuzhenghui fbda052593 change(esp_hw_support): only do mpll disable in lightsleep process 2025-03-08 14:17:05 +08:00
wuzhenghui f99c3c6343 fix(esp_system): fix possible cache_error by another core accessing flash in esp_restart 2025-03-07 11:05:41 +08:00
wuzhenghui 0d8c311296 change(doc): added more usage notes & warings about PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP 2025-02-28 16:45:51 +08:00
wuzhenghui f72d3ea516 fix(esp_hw_support): fix lightsleep destroys deepsleep rtc parameters 2025-02-26 17:31:35 +08:00
wuzhenghui 1f6d8d4e5d fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management 2025-02-20 19:39:02 +08:00
wuzhenghui 7147d7b366 change(esp_hw_support): wrapper sleep dcdc/ldo ops with ll 2025-02-19 21:37:38 +08:00
wuzhenghui 367fda4447 feat(esp_hw_support): add branch prediction config retention 2025-02-19 21:37:16 +08:00
wuzhenghui 2445545a17 fix(esp_hw_support): fix DCDC switch bad software powerdown 2025-02-19 21:36:40 +08:00
wuzhenghui 08e7ef62da change(esp_hw_support): define Cache invalidate in sleep process to avoid dirtying the L1 Cache 2025-02-19 21:36:13 +08:00
wuzhenghui 022def4ac5 feat(esp_hw_support): do mstatus restore on each core 2025-02-19 21:34:36 +08:00
wuzhenghui f52b2275d9 feat(esp_hw_support): do esp32p4 l1 cache invalidate by regdma 2025-02-19 21:33:08 +08:00
wuzhenghui ca9cca73ff feat(esp_hw_support): do esp32p4 l1&l2 cache regs retention by regdma 2025-02-19 21:32:15 +08:00
wuzhenghui cbd3df38d9 fix(esp_hw_support): fix lp/hp clock wait time calculation 2025-02-17 21:49:26 +08:00
wuzhenghui 812a609eca change(esp_hw_support): wait pll calibration done in regdma link instead of wait fixed value 2025-02-17 19:13:17 +08:00
wuzhenghui 0e2335f6f9 fix(esp_hw_support): add timer wakeup sleep duration check
Closes https://github.com/espressif/esp-idf/issues/15255
2025-02-17 19:09:44 +08:00
wuzhenghui 12db9e4225 fix(esp_hw_support): fix branch predictor access flash after cache disabled 2025-01-22 19:27:37 +08:00
wuzhenghui e6808779dc fix(esp_hw_support): fix p4 OTG phy bad suspend cause high power consumption on sleep 2025-01-15 10:20:58 +08:00
wuzhenghui f87077b825 fix(esp_hw_support): fix modem power enable failed after modem state wakeup 2025-01-09 11:13:29 +08:00
wuzhenghui d1475b5d72 fix(esp_hw_support): fix mspi clock freq changed after lightsleep 2024-12-26 19:26:44 +08:00
wuzhenghui a18fe20e9b fix(esp_hw_support): fix esp32p4 JTAG pad deepsleep current leakage 2024-12-26 16:05:14 +08:00
wuzhenghui 3260d95cab fix(esp_pm): enable RTC_PERIPH domain once in esp_pm_trace_init 2024-12-26 14:10:29 +08:00
wuzhenghui f2f87de88d fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy 2024-12-26 11:36:00 +08:00
wuzhenghui 1a23d3cd53 fix(esp_driver_gptimer): do gptimer retention by timer unit rather than timer group 2024-12-03 10:44:56 +08:00
wuzhenghui 97d9f01134 fix(esp_hw_support): remove p4 wdt retention on entry2 2024-12-02 17:44:53 +08:00
wuzhenghui 57aa7fece9 fix(esp_hw_support): fix retention link dump helper functions 2024-12-02 17:44:53 +08:00
wuzhenghui 7563ae5e70 fix(esp_system): deselect all modem modules clk source selection before clk init 2024-11-27 17:02:53 +08:00
wuzhenghui b57d6ecc81 fix(esp_pm): fix deadlock in pm_mode switching 2024-11-15 11:26:26 +08:00
wuzhenghui 2607022204 fix(esp_pm): fix missed ccompare update when another core is already in do_switch 2024-11-15 11:26:25 +08:00
wuzhenghui 06fa736f84 fix(esp_pm): move clock module out of TOP_DOMAIN_PERIPHERALS_BM 2024-11-13 16:12:02 +08:00
wuzhenghui 14f37bd8e8 fix(esp_hw_support): disable sar power when esp32p4 going to deepsleep 2024-11-13 11:35:26 +08:00
wuzhenghui 9c195f52a3 fix(esp_system): writeback L1 Dcache before disable L2 if PSRAM used 2024-11-11 14:03:08 +08:00
wuzhenghui d93d99f134 fix(esp_hw_support): skip some wakeup steps if sleep is rejected
1. Skip esp_timer time compensation to avoid introducing errors into rtc_timer
    2. Ignore sleep_time_overhead_out measurements when sleep is rejected
2024-11-04 14:23:53 +08:00
wuzhenghui e488d7669a fix(esp_hw_support): only support power down flash after revison v1.0 on esp32p4 2024-11-01 16:26:29 +08:00
wuzhenghui 655a99bec8 fix(esp_hw_support): fix writeback cache to psram after vo2 powerdown 2024-11-01 14:14:35 +08:00
wuzhenghui f2fb17cb87 fix(esp_hw_support): disable unused clock sources after rtc clock switching complete 2024-10-28 19:54:06 +08:00
wuzhenghui 2153a6b81e fix(esp_hw_support): enable all supported slow clock at pmu_init 2024-10-28 12:14:54 +08:00
wuzhenghui 855bba0582 feat(esp_hw_support): support power down PSRAM or Flash during sleep for esp32p4 v1.0 2024-10-23 16:03:39 +08:00
wuzhenghui a70fe8bdee change(esp_hw_support): switch hp_sys default power mode with clock src selection 2024-10-11 16:06:10 +08:00