Commit Graph
3196 Commits
Author SHA1 Message Date
Li Shuai 648916ce41 change(esp_hw_support): add reference bitmap for multiple module attach/detach 2026-05-21 11:46:16 +08:00
Li Shuai aa56e1af2e feat(esp_hw_support): support sleep retention module runtime attach and detach 2026-05-21 11:46:16 +08:00
Li Shuai c4a8b106ce change(esp_hw_support): duplicate module sleep retention entries context to support module attach and detach 2026-05-21 11:46:16 +08:00
armando 6d12e30433 feat(ldo): support s31 psram sdmmc power domain
Move S31 PSRAM/SDMMC power setup onto the common LDO path so shared users can control the domain consistently.
2026-05-21 09:09:14 +08:00
Wu Zheng Hui 91e66a8d19 Merge branch 'feat/support_io_edge_wakeup' into 'master'
feat(esp_hw_support): support rtc io edge wakeup sleep

Closes FCS-1880 and IDF-11812

See merge request espressif/esp-idf!48410
2026-05-20 19:37:35 +08:00
ShenWeilong cf813a4a1e feat(ble): Added ble support for esp32h21 2026-05-20 19:24:08 +08:00
hebinglin 8545a91284 feat(esp_hw_support): keep esp32h21 apm_func_ctrl value after sleep 2026-05-20 15:06:58 +08:00
wuzhenghui 2f845ec76d feat(esp_hw_support): update edge wakeup CI test cases 2026-05-20 11:04:05 +08:00
wuzhenghui b7ec505923 feat(esp_driver_gpio): support rtc_io edge wakeup deepsleep 2026-05-20 11:04:00 +08:00
wuzhenghui 15e4028e2d fix(esp_hw_support): fix psram data corrupt after lightsleep if halfsleep is enabled 2026-05-19 19:26:29 +08:00
Konstantin Kondrashov b853ad7091 fix(pmu_sleep): Wait eFuse memory update after sleep for ESP32H4 2026-05-19 14:11:34 +03:00
Frantisek Hrbata d43470cf93 Merge branch 'fix/cmakev2-bootloader-spiram-source-guards' into 'master'
fix(esp_hw_support): guard SPIRAM uses with !BOOTLOADER_BUILD

See merge request espressif/esp-idf!48447
2026-05-19 11:32:53 +02:00
Shu Chen 51ac8546d5 Merge branch 'feat/add_target_esp32h21' into 'master'
Feat/add target esp32h21

See merge request espressif/esp-idf!48531
2026-05-19 02:39:37 +00:00
zhuanghang 26df946075 feat(802.15.4): supported 802.15.4 for esp32h21 2026-05-18 15:15:32 +08:00
He Binglin 49d8998189 Merge branch 'bugfix/esp_idf_s2_rtc_wdt_mistakenly_enabled' into 'master'
Bugfix/esp idf s2 rtc wdt mistakenly enabled

See merge request espressif/esp-idf!48582
2026-05-18 14:42:17 +08:00
hebinglin 482eb947c7 fix(esp_hw_support): fix rtc wdt mistakenly enabled during lslp in esp32s2 2026-05-15 17:31:51 +08:00
morris b264544bd9 Merge branch 'feat/support_gdma_sleep_retention_on_s31' into 'master'
feat(gdma): support gdma sleep retention on s31

Closes IDF-14760 and IDF-15640

See merge request espressif/esp-idf!46959
2026-05-15 14:44:08 +08:00
gaoxu 03c8862a9f feat(adc): support ADC single ended oneshot and continuous mode on ESP32-S31 2026-05-14 16:31:29 +08:00
Alexey Gerenkov edb75262a1 Merge branch 'feature/update-esp-clang-to-esp-21.1.3_20260304' into 'master'
feat(tools): update esp-clang version to esp-21.1.3_20260408

Closes IDF-14965, LLVM-501, and LLVM-531

See merge request espressif/esp-idf!46361
2026-05-13 22:54:10 +08:00
Michael (XIAO Xufeng) 636f56f6ce Merge branch 'fix/s3_xip_opt_os_startup' into 'master'
fix(mspi): fixed possible boot failure in some builds when psram is enabled

Closes IDF-15634 and IDF-15637

See merge request espressif/esp-idf!48258
2026-05-13 18:55:35 +08:00
Chen Jichang cc3edfa727 feat(gdma): support gdma sleep retention on s31 2026-05-13 18:09:17 +08:00
Gao Xu 69136606ab Merge branch 'feat/s31_rng_basic_support' into 'master'
Feat/s31 rng support

Closes IDF-14632, WIFIBUG-1875, and TZ-2554

See merge request espressif/esp-idf!47217
2026-05-13 17:47:59 +08:00
Xiao Xufeng a671c83b0b fix(mspi): fixed possible boot failure in some builds when psram is enabled
A typical scenario is: when XIP on PSRAM enabled, compiler optimization level is Os. Under certain binary layout, boot hangs and backtrace points to `esp_sleep_config_gpio_isolate`.

The root cause is that, during PSRAM initialization, it calls esp_gpio_reserve, which happens to place before the reported function. However, after call, there is no barrier before the clock adjustment in `mspi_timing_enter_low_speed_mode`. The clock gets changed when the cache is still fetching data, resulting in the corrupted data in the end of the cache line.

This commits add spi_flash_disable_cache as a barrier to make sure the cache transactions is finished before the clock switch.
2026-05-13 16:46:20 +08:00
morris 7ff718a988 Merge branch 'bugfix/timer_group_sleep_retention_esp32s31' into 'master'
fix(drivers): fixed the gptimer/MCPWM sleep retention driver support on esp32s31

Closes IDFGH-17654, IDF-15651, IDF-15647, IDF-15641, IDF-14746, IDF-15644, IDF-15646, and IDF-15649

See merge request espressif/esp-idf!48394
2026-05-13 15:56:22 +08:00
gaoxu 07aaba7c7b refactor(rng): move rng read data function to rng_ll.h and update docs of RNG source 2026-05-13 15:09:55 +08:00
morris 3d452de7a3 fix(drivers): sleep retention failure on esp32s31 2026-05-13 11:12:08 +08:00
Marius VikhammerandCursor 8f6ea2a1ba test(ci): re-enable ESP32-H4 in core system test apps
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 09:00:12 +08:00
Frantisek Hrbata aecc2d200b fix(esp_hw_support): guard SPIRAM-dependent code with !BOOTLOADER_BUILD
The bootloader subproject's full Kconfig discovery resolves CONFIG_SPIRAM=y
when the parent app has it enabled, even though esp_psram is not linked
into the bootloader (the CMake gate is
'if(NOT non_os_build) if(CONFIG_SPIRAM) idf_component_optional_requires(PRIVATE esp_psram)').
Shared sources in esp_hw_support that #include esp_psram private headers
or call esp_psram functions guarded only by '#if CONFIG_SPIRAM' then fail
to compile in the bootloader with
"fatal error: esp_private/esp_psram_extram.h: No such file or directory".

Mirror the CMake gate in source guards: every '#if CONFIG_SPIRAM' block in
a bootloader-compiled source that touches esp_psram becomes
'#if !BOOTLOADER_BUILD && CONFIG_SPIRAM'. The leaked CONFIG_SPIRAM value
in the bootloader's sdkconfig.h is then harmless because every dependent
block evaluates to false.

Sites updated:
- esp_memory_utils.c: include of esp_psram_extram.h and all
  esp_psram_check_ptr_addr() call sites
- port/esp32{c5,c61,p4,s31}/cpu_region_protect.c: include of
  esp_psram_extram.h (inner SPIRAM_FETCH/RODATA/PRE_CONFIGURE blocks are
  already inside outer !BOOTLOADER_BUILD guards)
- port/esp32{p4,s31}/pmu_sleep.c: include of esp_psram_impl.h and
  esp_psram_impl_{enter,exit}_halfsleep_mode() call sites

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-05-12 12:19:24 +02:00
C.S.M 036fcf8e37 Merge branch 'feat/bod_bringup_s31' into 'master'
feat(bod): Add bod support on esp32s31

Closes IDF-14658

See merge request espressif/esp-idf!48310
2026-05-12 15:29:19 +08:00
Marius Vikhammer 03f87411a2 ci(hw_support): add depends_components for hw-support test-apps 2026-05-12 14:12:49 +08:00
C.S.M 2b7992213c feat(bod): Add bod support on esp32s31 2026-05-12 12:30:35 +08:00
Chen Ji Chang 3333b9b17c Merge branch 'feat/enable_h4_ci_target_test' into 'master'
ci(esp32h4): enable ci target test

Closes IDF-12328 and IDF-13766

See merge request espressif/esp-idf!47350
2026-05-12 11:23:28 +08:00
wanckl 2521f3887a fix(esp_hw_support): fixed spi buslock multi dev acq/release logic issue 2026-05-11 19:36:40 +08:00
Chen Jichang 3c3b9a6a4e ci(esp32h4): disable tests which cannot pass 2026-05-11 16:48:58 +08:00
Chen Jichang 645ff40cde ci(esp32h4): enable ci target test 2026-05-11 16:48:58 +08:00
cjin 19760a8722 feat(ble): supported ble light sleep feat on esp32h4 2026-05-11 08:34:15 +08:00
cjin b6643c4786 feat(ble): supported ble light sleep feat on esp32s31 2026-05-11 08:34:15 +08:00
sibeibei 45a6998129 fix(wifi): IRAM for regdma path used in modem pd light sleep 2026-05-09 14:48:24 +08:00
Jiang Jiang Jian 166054ab3c Merge branch 'feat/support_lp_debug_probe' into 'master'
feat(esp_hw_support): support esp32p4 VDD_BAT sleep mode main power control by LP_Probe

Closes IDF-15413

See merge request espressif/esp-idf!46509
2026-05-08 17:23:15 +08:00
Jiang Jiang Jian 57309c9f32 Merge branch 'fix/disable_core1_branch_predictor_in_sleep_process' into 'master'
fix(esp_hw_support): fix core1 branch predictor access ext mem after cache disabled by core0

See merge request espressif/esp-idf!48251
2026-05-08 14:49:15 +08:00
wuzhenghui 799669c7a4 feat(esp_hw_support): support main power control during VBAT powered deep sleep 2026-05-08 14:24:35 +08:00
wuzhenghui 5c2e3b768e feat(esp_hw_support): support LP_Probe in debug probe driver & sig inversion 2026-05-08 10:21:38 +08:00
Alexey Gerenkov f16bb34ff7 fix(build): fix Clang 21 build warnings/errors 2026-05-07 17:42:38 +03:00
wuzhenghui d0766f2a7f fix(esp_hw_support): fix core1 branch predictor access ext mem after cache disabled by core0 2026-05-07 20:58:55 +08:00
Jiang Jiang Jian d9cfb2908a Merge branch 'bugfix/idf_13957' into 'master'
bugfix: fix wifi loss packet and missing interrupt issues when switching root clock source

Closes WIFI-7270, IDF-13957, and IDF-11064

See merge request espressif/esp-idf!46459
2026-05-07 20:57:31 +08:00
Jiang Jiang Jian 39f0ef3528 Merge branch 'feat/support_s31_sleep_features' into 'master'
feat(esp_hw_support): support esp32s31 lowpower features

Closes IDF-5660, IDF-14643, IDF-14645, IDF-14647, IDF-14648, IDF-14784, PM-708, and PM-714

See merge request espressif/esp-idf!47216
2026-05-07 19:22:58 +08:00
wuzhenghui 3a40436e63 refactor(esp_hw_support): refactor cache ops to sleep_cache.c 2026-05-07 12:02:06 +08:00
wuzhenghui 820475f0e7 fix(esp_hw_support): 1v8 flash/psram dedicate ldo depends on pd_cur on 2026-05-07 12:02:06 +08:00
wuzhenghui d3c5129050 fix(driver): fix retention unsupported mouldes TOP pd test 2026-05-07 12:02:05 +08:00
wuzhenghui 3f6957450f feat(esp_hw_support): support psram PD_TOP retention 2026-05-07 12:02:01 +08:00