Commit Graph

615 Commits

Author SHA1 Message Date
Jiang Jiang Jian
103e6ef6d3 Merge branch 'feat/pm_components_ram_optimize_v5.4' into 'release/v5.4'
feat(pm): pm components ram optimize (v5.4)

See merge request espressif/esp-idf!52428
2026-09-18 10:33:09 +08:00
morris
97f74a7fdf Merge branch 'fix/usb_bbpll_light_sleep_backport_v5.4' into 'release/v5.4'
fix(usb_phy): Fixed USB PHY clock during low-power modes (backport to v5.4)

See merge request espressif/esp-idf!52784
2026-09-17 09:59:10 +08:00
wuzhenghui
791360a0f2 change(esp_hw_support): optimize retention driver RAM cost
(cherry picked from commit 11c590c053)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 19:56:17 +08:00
Tomas Rezucha
b3f98785e7 fix(usb_phy): Fixed USB PHY clock during low-power modes
On ESP32-S3, USB PHY is clocked from BBPLL,
however if the BBPLL is not used as CPU clock source,
the power management unit can turn it off.
This commit registers USB as BBPLL consumer so it is not turned off.

Closes https://github.com/espressif/esp-idf/issues/15451
2026-09-15 13:59:58 +02:00
cjin
74b9e617d5 fix(phy): add fe dependency when enable rf with regdma 2026-09-15 11:36:18 +08:00
cjin
ff113a01f9 feat(modem): add phy retention related api 2026-09-15 11:36:15 +08:00
cjin
520f9ec6a5 feat(phy): add skip list to sleep phy link context and fix deinit crash 2026-09-14 19:37:59 +08:00
cjin
7d9240e67d feat(sleep): add config SOC_PM_SUPPORT_REGDMA_TRIGGERED_PHY 2026-09-14 19:37:59 +08:00
cjin
85fece0652 feat(sleep_modem): allow multi modem to enable rf with regdma 2026-09-14 19:37:57 +08:00
cjin
fd844bd2d3 feat(modem): rename the sleep modem functions 2026-09-14 19:18:40 +08:00
cjin
740bb89567 feat(phy): added skip method for phy retention list 2026-09-14 19:18:40 +08:00
cjin
5f74a4da51 feat(phy): rename sleep modem state to sleep phy 2026-09-14 19:18:39 +08:00
wuzhenghui
8266cc4e69 fix(esp_hw_support): update memory pointer checks for SPM support 2026-07-10 17:16:48 +08:00
wanckl
8ee2dce0d6 fix(esp_hw_support): fixed spi buslock multi dev acq/release logic issue 2026-06-24 16:27:09 +08:00
harshal.patil
ad8d86f725 fix(esp_common): Add esp_fault_internal.h for use by G0 components
In release/v5.x, esp_fault.h resides in the esp_hw_support (G1)
component, so the G0 components (hal, esp_rom) must not depend on it.
Copy its contents to esp_common as esp_fault_internal.h, keep
esp_fault.h as a compatibility wrapper around it, and switch the hal
and esp_rom ECDSA/ECC code to the internal header.
2026-06-22 11:17:50 +05:30
morris
ed980bd744 Merge branch 'fix/s3_xip_opt_os_startup_v5.4' into 'release/v5.4'
fix(mspi): fixed possible boot failure in some builds when psram is enabled (v5.4)

See merge request espressif/esp-idf!48585
2026-06-08 10:39:18 +08:00
wuzhenghui
54fcd16880 docs(system): update GPIO wakeup section for clarity on EXT0 and EXT1 support 2026-06-03 17:30:26 +08:00
Xiao Xufeng
c8447b51e2 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-31 01:46:45 +08:00
gaoxu
e9120b7572 fix(tsens): fix temp_sensor affect by adc reset 2026-04-22 14:53:57 +08:00
armando
604772875c fix(spm): rename scp (scratchpad) to spm (scratchpad memory) 2026-03-19 16:27:44 +08:00
armando
01942e4eef change(mem): deprecated tcm and added scp memory utils 2026-03-18 09:48:08 +08:00
Li Shuai
475900c1fa fix(esp_hw_support): fix analog i2c master race cause by phy retention link 2026-03-12 14:44:13 +08:00
Jiang Jiang Jian
d1733defe6 Merge branch 'feat/support_modify_regdma_link_skip_flag_dynamiclly_v5.4' into 'release/v5.4'
feat(esp_hw_support): add API to supoport modify retention skip flag dynamically (v5.4)

See merge request espressif/esp-idf!46492
2026-03-12 14:29:44 +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
muhaidong
89b8ccbba9 fix(wifi): fix external coexistence depends on wifi connect issue 2026-03-10 16:28:03 +08:00
liuning
cb683b0192 fix(wifi): allow to disable wifi modem clocks if wifi is not inited 2026-03-09 16:54:51 +08:00
liuning
11f962d8c7 feat(phy): add check for required clock bits during phy enable 2026-03-09 16:54:45 +08:00
liuning
3ce165d115 bugfix(wifi): fix incomplete phy initialization due to absence of bb clocks at coexistence scenarios 2026-03-06 17:27:05 +08:00
Jiang Jiang Jian
fb9c37ee48 Merge branch 'refactor/spi_flash_private_v5.4' into 'release/v5.4'
fix(spi_flash): fixed overboundary check skipping of erase and write_encrypted (v5.4)

See merge request espressif/esp-idf!45664
2026-03-03 10:48:35 +08:00
hebinglin
1d2ffd5941 fix(hal): fix the issue of dual-core contention for RTC_CNTL regs 2026-03-02 12:22:15 +08:00
Xiao Xufeng
a0cdaad414 change(spi_flash): Flash frequency will not be decreased during DFS on ESP32-P4, when PSRAM is not enabled. 2026-02-05 16:04:14 +08:00
Song Ruo Jing
1c3a4aafcf feat(gpio): add IO hold support for Deep-sleep for ESP32-P4 ECO5 2025-11-18 11:30:24 +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
d4b3d01b4d feat(esp_hw_support): update cpu_pd support for esp32p4 v3.0 2025-11-04 16:03:27 +08:00
Jiang Jiang Jian
94657ad3bf Merge branch 'fix/tcm-mem-not-considered-in-esp_ptr_eexecutable_v5.4' into 'release/v5.4'
fix(memory-utils): Check TCM in esp_ptr_internal and esp_ptr_byte_accessible (v5.4)

See merge request espressif/esp-idf!39984
2025-09-19 02:22:38 +08:00
wuzhenghui
7635a54b1e feat(esp_hw_support): add new API to get all wakeup sources 2025-08-26 21:53:01 +08:00
John Boiles
8f937d3b0a fix(memory-utils): Use esp_ptr_in_tcm to check TCM range 2025-08-21 09:40:27 +02:00
John Boiles
b025006b95 fix(memory-utils): Check TCM in esp_ptr_internal and esp_ptr_byte_accessible
Modifies `esp_ptr_internal` and `esp_ptr_byte_accessible` to also check TCM
when `SOC_MEM_TCM_SUPPORTED`.
2025-08-21 09:40:27 +02:00
Jiang Jiang Jian
b53f520ebc Merge branch 'fix/fix_esp_timer_accuracy_when_do_dfs_v5.4' into 'release/v5.4'
fix(esp_hw_support): improve esp timer accuracy on DFS for esp32 & esp32s2 (v5.4)

See merge request espressif/esp-idf!39340
2025-05-26 19:46:58 +08:00
Jiang Jiang Jian
12143d6587 Merge branch 'contrib/github_pr_15942_v5.4' into 'release/v5.4'
fix(esp_hw_support): Fix compile error on esp_cpu_int_has_handler on ESP32-P4 (GitHub PR) (v5.4)

See merge request espressif/esp-idf!39118
2025-05-26 19:38:22 +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
1811757ad9 fix(esp_hw_support): Fix deepsleep leakage after initializing USB HS phy 2025-05-15 16:05:05 +08:00
Weltenprinz
d34bdc8394 fix(esp_hw_support): Fix compile error on esp_cpu_int_has_handler on ESP32-P4
Merges https://github.com/espressif/esp-idf/pull/15942
Closes https://github.com/espressif/esp-idf/issues/15941
2025-05-13 18:20:42 +03:00
Li Shuai
7014cfc831 fix(esp_hw_support): fix modem wakeup req always high caused by pmu min slp cycle update 2025-05-07 14:25:05 +08:00
wuzhenghui
8cfe912053 fix(esp_hw_support): fix wrong APB clock freq on retenion 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
Jiang Jiang Jian
19e864060a Merge branch 'fix/rmii_ref_ckl_v5.4' into 'release/v5.4'
fix(esp_eth): fixed ESP32P4 EMAC REF RMII CLK output mode (v5.4)

See merge request espressif/esp-idf!38039
2025-04-07 13:58:48 +08:00
Marius Vikhammer
6f13ac088f Merge branch 'fix/memory-utils-ptr-executable_v5.4' into 'release/v5.4'
fix(memory-utils): Missing case in esp_ptr_executable logic (backport v5.4)

See merge request espressif/esp-idf!37101
2025-04-03 14:58:36 +08:00
Guillaume Souchere
2bdfba3c30 fix(memory-utils): Missing case in esp_ptr_executable logic
esp_ptr_executable does not consider that the PSRAM and FLASH
memory mapping are not always matching.

Added a "pointer is in PSRAM" specific check in the logic to
fix the issue.
2025-04-02 08:44:22 +02:00