Commit Graph
256 Commits
Author SHA1 Message Date
Xiao Xufeng c5ab07fe81 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-06-01 17:46:12 +08:00
Jiang Jiang Jian 7339fc3acb Merge branch 'feat/support_modify_regdma_link_skip_flag_dynamiclly_v5.3' into 'release/v5.3'
feat(esp_hw_support): add API to supoport modify retention skip flag dynamically (v5.3)

See merge request espressif/esp-idf!46493
2026-03-24 21:04:09 +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
hebinglin e16933fdcb fix(hal): fix the issue of dual-core contention for RTC_CNTL regs 2026-03-02 14:39:00 +08:00
muhaidong 49395a07b8 fix(wifi): fix external coexistence depends on wifi connect issue 2026-02-12 17:12:18 +08:00
liuning 5d3349a298 fix(wifi): allow to disable wifi modem clocks if wifi is not inited 2026-02-12 09:38:41 +08:00
liuning 33c463a243 feat(phy): add check for required clock bits during phy enable 2026-02-12 09:38:41 +08:00
liuning 1e1d7e687b fix(wifi): fix incomplete phy initialization issue 2026-02-12 09:38:32 +08:00
wuzhenghui 18f7e790f1 feat(esp_hw_support): add new API to get all wakeup sources 2025-08-26 21:53:56 +08:00
Li Shuai 72009edd6f fix(esp_hw_support): fix modem wakeup req always high caused by pmu min slp cycle update 2025-06-30 16:32:37 +08:00
Jiang Jiang Jian c06e9d3a73 Merge branch 'fix/fix_esp32p4_retention_cost_v5.3' into 'release/v5.3'
fix(esp_hw_support): optimize retention cost and update sleep time compensation (v5.3)

See merge request espressif/esp-idf!38745
2025-05-26 20:01:56 +08:00
Jiang Jiang Jian 96037e9cc3 Merge branch 'fix/fix_usb_hs_phy_leakage_on_deepsleep_v5.3' into 'release/v5.3'
fix(esp_hw_support): Fix deepsleep leakage after initializing USB HS phy (v5.3)

See merge request espressif/esp-idf!39169
2025-05-26 19:56:41 +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 e0d1641281 fix(esp_hw_support): Fix deepsleep leakage after initializing USB HS phy 2025-05-15 16:05:34 +08:00
wuzhenghui ad4f0a8708 fix(esp_hw_support): fix wrong APB clock freq on retenion 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
Ondrej Kosta 9f4acf245a fix(esp_eth): fixed ESP32P4 EMAC REF RMII CLK output mode
fixed units returned and used by periph_rtc_mpll_freq_set function
2025-04-01 08:34:45 +02:00
Armando 51280e0e8a fix(mspi): fixed cpu and mspi freq mismatch issue when in dfs/sleep on p4 2025-03-08 14:17:02 +08:00
Jiang Jiang Jian fed7e38609 Merge branch 'fix/esp32p4_lightsleep_fixes_v5.3' into 'release/v5.3'
fix(esp_hw_support): some fixes of esp32p4 lightsleep retention & power switch process (v5.3)

See merge request espressif/esp-idf!37097
2025-02-21 11:03:20 +08:00
wuzhenghui 1f6d8d4e5d fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management 2025-02-20 19:39:02 +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
Li Shuai c60d991c28 feat(esp_hw_support): extend sleep retention module bitmap bit width 2025-02-13 11:28:25 +08:00
Jiang Jiang Jian 86adcd99df Merge branch 'fix/fix_flash_clock_changed_after_sleep_bak_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix mspi clock freq changed after lightsleep (v5.3)

See merge request espressif/esp-idf!36003
2025-01-17 12:03:30 +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
Song Ruo Jing b0a1735b55 fix(clk): rtc_clk_cpu_freq_set_xtal will always disable CPU's PLL
Align C6/H2/C5/C61 rtc_clk_cpu_freq_set_xtal behavior to other chips
For PMU supported chips, powering down CPU PLL in sleep will be done by PMU, not sleep code
2025-01-02 21:16:27 +08:00
Song Ruo Jing c73be9a62d fix(clk): rtc_clk_cpu_freq_set_xtal will always disable CPU's PLL
Align C6/H2/C5/C61 rtc_clk_cpu_freq_set_xtal behavior to other chips
2024-12-24 22:08:46 +08:00
Jiang Jiang Jian 42ef2887f4 Merge branch 'fix/fix_regdma_wait_node_issue_v5.3' into 'release/v5.3'
fix(esp_driver_gptimer): do gptimer retention by timer unit rather than timer group (v5.3)

See merge request espressif/esp-idf!35358
2024-12-09 15:27:24 +08:00
Li Shuai 2c31e2b118 fix(esp_hw_support): fix the issue of regdma wait node to immediately return to done 2024-12-02 17:44:48 +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
morris 3eefb7d800 Merge branch 'ci/enable_esp32p4_gpio_uart_target_test_v5.3' into 'release/v5.3'
fix(gpio): esp32p4 IOs cannot keep being held in the entire deep sleep process (v5.3)

See merge request espressif/esp-idf!33523
2024-10-25 15:08:40 +08:00
Jiang Jiang Jian deed35c72e Merge branch 'fix/fix_coverity_defects_in_sleep_code_v5.3' into 'release/v5.3'
fix(esp_hw_support): fix coverity defects in sleep code (v5.3)

See merge request espressif/esp-idf!34108
2024-10-24 14:02:19 +08:00
Song Ruo Jing 16476a7a59 fix(gpio): esp32p4 IOs cannot keep being held in the entire deep sleep process 2024-10-23 18:01:50 +08:00
wuzhenghui 55ff2325c5 change(esp_hw_support): improve gpio deepsleep wakeup configuration code 2024-10-11 14:39:20 +08:00
Marius Vikhammer 7d8c955e21 fix(wdt): changed register dump on non panic task WDT to be more descriptive
Closes https://github.com/espressif/esp-idf/issues/14400
2024-09-25 10:51:47 +08:00
Armando 9011c4a3fd change(rcc): change rcc var i to rcc_cnt 2024-09-14 10:05:00 +08:00
Xiao Xufeng f81cece9d4 fix(startup): move rtc initialization before MSPI timing tuning to improve stability 2024-08-05 00:35:10 +08:00
Marius Vikhammer cf36c11b81 feat(lp-core): added support for using ETM events as wake-up source 2024-07-31 11:55:24 +08:00
Jiang Jiang Jian 86bcea64b9 Merge branch 'feature/touch_driver_ng_on_p4_v5.3' into 'release/v5.3'
feat(touch_sensor): touch driver ng on p4 (v5.3)

See merge request espressif/esp-idf!31624
2024-07-26 11:42:27 +08:00
wuzhenghui 074035aac5 feat(esp_hw_support): support esp32p4 gpio wakeup deepsleep 2024-07-16 21:58:45 +08:00
laokaiyao e6103c521a docs(touch): add doc for cap touch sens driver 2024-07-13 15:47:20 +08:00
laokaiyao 8a18ae60e0 feat(touch_sens): touch sensor driver-ng on P4 2024-07-13 15:47:20 +08:00
wuzhenghui dd5a5f1cf2 feat(esp_hw_support): support DCDC always on 2024-06-24 11:48:23 +08:00
wuzhenghui 26cb10acbf feat(esp_hw_support): optimize retention link info dump 2024-06-13 14:08:36 +08:00
gaoxu e63d6582cc feat(adc): move adc periph enable/reset functions to ll layer 2024-06-12 18:16:45 +08:00
wuzhenghui 091da3d631 fix(esp_driver_gpio): manage lp_io module clock by driver
Closes https://github.com/espressif/esp-idf/issues/13683
2024-06-06 19:27:57 +08:00
wuzhenghui 5899701b68 feat(esp_pm): fix esp32p4 cpu powerdown kconfig dependency error 2024-05-20 14:01:00 +08:00
wuzhenghui 8f33c69c30 fix(esp_hw_support): disable mpll before sleep to avoid mspi module entering an error state 2024-04-18 18:07:02 +08:00
morris b2afd70b32 Merge branch 'refactor/remove_legacy_ldo_driver' into 'master'
refactor(ldo): remove legacy private ldo driver

Closes IDF-9566

See merge request espressif/esp-idf!29834
2024-04-08 17:11:49 +08:00
wuzhenghui cbc66bd365 fix(esp_hw_support): move deepsleep phy callback before PLL disable 2024-04-02 16:38:01 +08:00