Commit Graph

279 Commits

Author SHA1 Message Date
muhaidong 76ab9e82c2 docs(wifi): update wifi fragment doc 2026-01-14 19:31:53 +08:00
Island da5ff0c78c Merge branch 'fix/add_soc_caps_for_pawr_feat_v5.5' into 'release/v5.5'
fix(ble): add soc caps feat for PAwR (v5.5)

See merge request espressif/esp-idf!44150
2025-12-26 14:21:25 +08:00
Xiao Xufeng faf6cc4f84 feat(spi_flash): implement dynamic CPU frequency switching workaround for encrypted writes
This commit implements a workaround that allows ESP32-C5 to run at 240MHz CPU frequency
normally, while automatically reducing CPU frequency during encrypted flash writes to
ensure correct operation. The frequency limit is chip revision dependent:
- v1.2 and above: limited to 160MHz during encrypted writes
- v1.0 and below: limited to 80MHz during encrypted writes

Key implementation details:
- Frequency limiting is triggered automatically when esp_flash_write_encrypted() is called
- Uses start() flags (ESP_FLASH_START_FLAG_LIMIT_CPU_FREQ) to integrate with OS layer
- Works with both PM enabled and disabled configurations
- Frequency is automatically restored after encrypted write completes
- For ESP32-C5 with 120MHz flash, Flash clock and timing registers are adjusted when
  CPU frequency is reduced to 80MHz
- SPI1 timing registers are configured during frequency switching since encrypted writes
  use SPI1 and must work correctly at reduced CPU frequencies

Code improvements:
- Use SOC_MSPI_FREQ_AXI_CONSTRAINED capability macro instead of hardcoded chip checks
- Control workaround via Kconfig (CONFIG_PM_WORKAROUND_FREQ_LIMIT_ENABLED) instead of
  hardcoded macros
- Add comprehensive test cases covering various PM configurations and edge cases

This workaround enables ESP32-C5 applications to benefit from 240MHz CPU performance
while maintaining reliable encrypted flash write functionality.
2025-12-17 03:33:29 +08:00
Jin Chen 7569042a61 fix(ble): add soc caps config for pawr feat on ESP32C61
(cherry picked from commit d667a418261d00a0f5c8a9a359324f72d64447ff)

Co-authored-by: cjin <jinchen@espressif.com>
2025-12-11 16:23:10 +08:00
wuzhenghui 104145de7f fix(esp_system): fix mspi write stuck after cpu/digital reset on c5/c61 2025-12-02 13:34:17 +08:00
Song Ruo Jing 9589ab5361 feat(gpio): add IO hold support for Deep-sleep for ESP32-P4 ECO5 2025-11-13 11:36:15 +08:00
harshal.patil 317a6f074d fix(mbedtls/port): Align AES and SHA DMA buffers to 16 when SPIRAM encryption is enabled
- Targets that support GDMA and MSPI encryption module need data and addresses aligned to 16
2025-11-11 17:45:11 +05:30
morris d3177152b3 Merge branch 'bugfix/gpio_esp32_workaround_v5.5' into 'release/v5.5'
fix(gpio): fix ESP32 GPIO sleep mode handling (v5.5)

See merge request espressif/esp-idf!41214
2025-09-01 14:54:37 +08:00
Jiang Jiang Jian d421c9963e Merge branch 'feat/support_c5_c61_clkoutput_v5.5' into 'release/v5.5'
feat(esp_hw_support): support clock output feature on esp32c5/esp32c61 (v5.5)

See merge request espressif/esp-idf!41108
2025-09-01 14:43:15 +08:00
yinqingzhao 5714153832 feat(phy): add phy calibration independent support 2025-08-22 10:49:23 +08:00
Song Ruo Jing 54534c8637 fix(gpio): fix ESP32 GPIO sleep mode handling
The previous workaround does not work, the backup/restore should apply to RTC IO registers.
2025-08-13 20:27:55 +08:00
wuzhenghui cafe454113 feat(esp_hw_support): support clock output feature on esp32c5/esp32c61 2025-08-08 11:36:28 +08:00
Jiang Jiang Jian f365dbe2ac Merge branch 'feat/c61_psram_timing_tuning_v5.5' into 'release/v5.5'
psram: psram 80M timing tuning on c61 (v5.5)

See merge request espressif/esp-idf!40914
2025-07-31 15:30:18 +08:00
armando 4b36b0a1ff feat(psram): psram 80M timing tuning on c61 2025-07-30 16:55:01 +08:00
gaoxu 4b46a16922 feat(adc): support ADC calibration on ESP32C61 2025-07-26 20:59:51 +08:00
Jiang Jiang Jian 8f36e23cc4 Merge branch 'fix/backport_some_wifi_fixes_v5.5' into 'release/v5.5'
fix(wifi): backport some wifi fixes to v5.5

See merge request espressif/esp-idf!40815
2025-07-25 23:33:52 +08:00
akshat 05fd283bb5 fix(wifi): Add suport for FTM in ESP32C61
Resolve FTM failure in 40M Bandwidth
2025-07-25 14:25:38 +08:00
gaoxu 62b9e1620d feat(sdio): support sdio on esp32c61 2025-07-24 14:13:23 +08:00
Jiang Jiang Jian 3c39b32195 Chip/support esp32c61 v5.5 2025-07-22 12:21:36 +08:00
Jan Beran f0a4d73ea1 change(gen_soc_caps_kconfig): check if config options have the same type
Also introduce ignore pragma to prevent some #defines from .h files to
be translated to Kconfig files.
2025-06-11 14:19:50 +08:00
chaijie@espressif.com 63f72f659d feat(power_glich): support power_glitch of esp32c5_eco1 and above, eco32c61 eco2 and above 2025-05-20 21:14:33 +08:00
Song Ruo Jing 40cc70c325 fix(gpio): fix IO22-24 GPIO/IOMUX registers not restored after TOP PD for C61 2025-04-18 19:03:16 +08:00
Chen Ji Chang 8a9d659882 Merge branch 'feat/support_gdma_on_h4' into 'master'
feat(gdma): support gdma on esp32h4

Closes IDF-12382

See merge request espressif/esp-idf!38340
2025-04-17 11:34:56 +08:00
Wu Zheng Hui d98c580d40 Merge branch 'fix/esp32p4_xtal_path_not_on_top' into 'master'
fix(esp_hw_support): fix esp32p4 xtal_xpd depends on TOP power domain

See merge request espressif/esp-idf!38328
2025-04-15 14:54:13 +08:00
Chen Jichang e353f92b66 feat(gdma): support gdma on esp32h4 2025-04-15 11:15:40 +08:00
morris 2b5d91ad1c refactor(ana_cmpr): enhanced the driver implementation 2025-04-11 17:45:32 +08:00
morris 62c1e8171e refactor(soc): update soc_etm for esp32c61 2025-04-10 18:50:36 +08:00
Jiang Jiang Jian b93ac4734b Merge branch 'bugfix/fix_modem_state_rx_bcn_failed' into 'master'
fix(wifi):fix modem state rx bcn failed when tbtt update, support modem state for coexist

Closes WIFI-6538, WIFIBUG-1052, WIFIBUG-128, WIFIBUG-1064, and WIFIBUG-1088

See merge request espressif/esp-idf!37238
2025-04-09 17:58:50 +08:00
Kevin (Lao Kaiyao) ab36ffad1f Merge branch 'refactor/update_c61_bus_monitor_regs' into 'master'
refactor(esp32c61): update c61 bus monitor regs

See merge request espressif/esp-idf!38205
2025-04-09 17:41:28 +08:00
wuzhenghui 5fbc742248 fix(esp_hw_support): fix esp32p4 xtal_xpd depends on TOP power domain 2025-04-09 17:10:57 +08:00
Li Shuai 29a470b530 fix(esp_hw_support): fix modem wakeup req always high caused by pmu min slp cycle update 2025-04-09 15:26:57 +08:00
laokaiyao db85cd02be refactor(esp32c61): bus_monitor backward compatible refactor 2025-04-08 22:50:04 +08:00
laokaiyao ba0a2db037 refactor(esp32c61): update bus_monitor registers for C61 2025-04-08 22:50:04 +08:00
Song Ruo Jing afccb78720 fix(ledc): align ledc register typo with TRM 2025-04-07 19:54:56 +08:00
wanckl 51873d46aa feat(driver_spi): add h21 spi drivers supports 2025-04-03 11:27:29 +08:00
Geng Yuchao abded4ab44 feat(ble):Support Bluetooth LE 5.1 direction finding feature 2025-03-21 16:34:31 +08:00
Li Shuai 157faa3344 feat(esp_hw_support): support runtime clock for peripherals to be ungated during sleep 2025-03-18 10:42:15 +08:00
Armando (Dou Yiwen) 97b7b880c7 Merge branch 'refactor/rng_ll_c61' into 'master'
rng: refactor to use hal/ll apis for esp32c61

Closes IDF-12467

See merge request espressif/esp-idf!37019
2025-02-24 15:47:38 +08:00
Armando d598c9db7c refactor(rng): refactor to use hal/ll apis for c61 2025-02-24 11:16:48 +08:00
morris 90d59288b1 change(etm): update soc register files for esp32c1
removed unavailable fields
2025-02-20 14:20:05 +08:00
Jiang Jiang Jian 2e5e9fc4aa Merge branch 'feature/nan_support_c5' into 'master'
Enable Wi-Fi Aware (NAN) on ESP32C5 and ESP32C61

Closes IDF-10599 and IDF-10628

See merge request espressif/esp-idf!30495
2025-02-13 16:52:00 +08:00
Kevin (Lao Kaiyao) c542692cc2 Merge branch 'docs/fix_i2s_tdm_programming_guide' into 'master'
docs(i2s): fix i2s capability in doc and code

Closes IDF-11854

See merge request espressif/esp-idf!36815
2025-02-13 14:49:59 +08:00
Wan Lei 68b79fc138 Merge branch 'fix/spi_master_halt_using_rc_fast' into 'master'
fix(spi_master): fix spi halt when remove device who using rc_fast

See merge request espressif/esp-idf!31079
2025-02-12 15:18:22 +08:00
Jiang Jiang Jian 44a27d3113 Merge branch 'fix/disable_wfe_feature_for_e906_chips' into 'master'
change(esp_hw_support): disable CPU wait-for-event mode on cpu start

See merge request espressif/esp-idf!36388
2025-02-11 11:30:29 +08:00
laokaiyao d4481517f7 fix(i2s): fixed the pdm2pcm capability on c5 and c61 2025-02-10 20:33:56 +08:00
Li Shuai aff82ccc65 fix(esp_hw_support): fix the issue of mmu table content loss due to default sd signal 2025-02-10 17:54:04 +08:00
Nachiket Kukade 4b89f9934b feat(wifi): Enable Wi-Fi Aware (NAN) for ESP32C5 and ESP32C61 2025-02-10 14:57:53 +08:00
Jiang Jiang Jian c28599dad9 Merge branch 'bugfix/pm-340' into 'master'
revert the fix of idf_size error caused by ldgen

Closes PM-340

See merge request espressif/esp-idf!36763
2025-02-10 10:58:31 +08:00
wanlei cc7adfa068 fix(spi_master): fix spi halt when remove device who using rc_fast 2025-02-10 10:51:33 +08:00
Igor Udot 5f37de2889 Merge branch 'feat/lp-uart-wakeup-mode3' into 'master'
Added support for UART wakeup modes

Closes IDF-10202

See merge request espressif/esp-idf!31965
2025-02-06 11:15:37 +08:00