Commit Graph

58 Commits

Author SHA1 Message Date
Renz Bagaporo
1f5cba3070 fix(ulp): clarify buildv2 child marker
Rename the internal ULP child-build marker to __ULP_BUILDV2 so component CMake files make the build-system scope explicit.

Document that the marker is currently set only by the IDF_BUILD_V2 ULP child path.
2026-07-29 13:08:23 +09:00
wuzhenghui
11ccd4c304 feat(esp_hw_support): support esp32s31 clock tree management 2026-07-22 16:32:12 +08:00
Renz Bagaporo
7d75f85221 feat(ulp): build ULP full subprojects as CMake v2 children 2026-07-15 09:14:35 +09:00
morris
4704a99af3 refactor(sdm): move sleep retention config into driver layer
Move SDM regdma retention descriptors out of esp_hal_gpio and into
per-target
esp_driver_sdm sources so the driver owns its backup scope and restore
flow.
2026-07-06 15:09:37 +08:00
morris
38c4f27102 fix(iomux): move clock source gating to IOMUX consumers
Remove io_mux_set_clock_source internal source enabling and make SDM,
ana_cmpr, and gpio glitch filter drivers explicitly manage clock source
enable/disable with safe cleanup paths.
2026-05-22 19:10:08 +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
wuzhenghui
b7ec505923 feat(esp_driver_gpio): support rtc_io edge wakeup deepsleep 2026-05-20 11:04:00 +08:00
Marius Vikhammer
89a9f70098 Merge branch 'fix/rtc-io-invalid-clock-access-c5' into 'master'
fix(rtc_io): fixed invalid clock access on C5

See merge request espressif/esp-idf!48408
2026-05-14 13:47:43 +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
wuzhenghui
c67d98fb10 change(soc): move _RTC_GPIO_EDGE_WAKEUP_SUPPORTED to soc_caps.h 2026-05-13 10:51:24 +08:00
Marius Vikhammer
80966c6156 fix(rtc_io): fixed invalid clock access on C5
(cherry picked from commit 2bcbe0e3650df4596f38b65444707bee09725b67)
2026-05-12 10:28:30 +08:00
Alexey Gerenkov
f16bb34ff7 fix(build): fix Clang 21 build warnings/errors 2026-05-07 17:42:38 +03:00
wuzhenghui
7c10126309 feat(esp_hw_support): isolate all digital io to suppress pad leakage on TOP pd sleep 2026-05-07 08:39:56 +08:00
Song Ruo Jing
e689feee9d refactor(rtcio): align LP GPIO matrix related APIs with GPIO matrix APIs 2026-04-29 12:17:37 +08:00
Song Ruo Jing
1d50587ab2 refactor(rtcio): split rtcio/gpio switch with rtc iomux func sel func
This allows rtc_gpio_deinit to always switch the pad back to GPIO,
regardless of lp io clock enabled or not, so that gpio_config can
always switch the IO back to GPIO use after wakeup from deep sleep.
2026-04-29 12:17:37 +08:00
Chen Jichang
06644b7b7a fix(gpio): fix s31 gpio register write half word 2026-04-15 14:01:45 +08:00
Song Ruo Jing
9c2a8281c1 fix(uart): lp uart rx iomux pin was not working as expected
Introduced in 8818157e42
The workaround in the commit routes the signal to LP GPIO matrix first.
When uses LP IOMUX pin as UART RX, the signal did not bypass the matrix,
which caused the issue.

This commit adds rtc_gpio_iomux_input and rtc_gpio_iomux_output APIs
to align with existing GPIO driver APIs.
2026-04-09 17:07:01 +08:00
morris
e69f2c8346 refactor(gpio): derive SDM registers from GPIO_EXT
Use GPIO_EXT.sigma_delta as the SDM register base on GPIO_EXT-based targets and remove standalone SDM symbols to eliminate manual offset/address maintenance risks.
2026-04-08 15:07:27 +08:00
morris
572e732aca refactor(gpio): derive ETM registers from GPIO_EXT
Use GPIO_EXT.etm as the ETM register base and remove standalone GPIO_ETM symbols to avoid manual offset address maintenance errors across targets.
2026-04-08 15:07:27 +08:00
morris
b79cf6d8eb feat(gpio): support glitch filter on esp32s31 2026-04-08 15:07:27 +08:00
morris
43bc8c2fe5 feat(etm): add ETM LL and GPIO ETM support on esp32s31
Enable ETM caps and add S31 ETM/GPIO LL and retention support for
GPTimer ETM builds.
2026-04-07 14:47:36 +08:00
Chen Chen
cbb529bf97 feat(rtcio): support rtcio on esp32s31 2026-04-01 08:51:47 +08:00
laokaiyao
b5c68aa481 feat(gpio): support to attach gpio signals internally 2026-03-31 12:26:35 +08:00
wuzhenghui
b6fcdb1f48 feat(esp_hw_support): support GPIO wakeup deepsleep on esp32/esp32s2/esp32s3
and expand gpio_wakeup_mask/gpio_trigger_mode to 64bit
2026-03-25 10:49:47 +08:00
morris
9cad94e697 feat(ana_cmpr): support analog comparator on esp32h21 2026-03-23 10:28:29 +08:00
Song Ruo Jing
e3a2865606 Merge branch 'bugfix/lp_io_clock_control' into 'master'
fix(rtcio): RTC GPIO configuration should be written only if LP IO clock exists

Closes IDF-14951

See merge request espressif/esp-idf!46146
2026-03-04 19:23:33 +08:00
wuzhenghui
e923a54686 fix(esp_hw_support): fix build dependencies for peripherals that do not yet support retention 2026-03-03 21:32:00 +08:00
Song Ruo Jing
d4005779e0 fix(uart): improve uart rx glitch filter test case failing rate
Not all IO glitch simulation functions were in iram before,
making the glitch too long to be filtered.
2026-03-03 16:19:15 +08:00
Song Ruo Jing
acb49e9520 fix(rtcio): RTC GPIO configuration should be written if LP IO clock exists 2026-03-02 15:03:30 +08:00
He Binglin
1b547ca0ba Merge branch 'bugfix/esp_idf_s3_deepsleep_dead' into 'master'
fix(hal): fix the issue of dual-core contention for RTC_CNTL regs

See merge request espressif/esp-idf!41680
2026-03-02 11:35:53 +08:00
Song Ruo Jing
476004e4b8 fix(gpio): add esp_gpio_reserve check to gpio_config 2026-02-26 16:26:58 +08:00
Song Ruo Jing
e5ff2747aa fix(gpio): GPIO_IS_VALID_xxx macros should exclude IO exceeds 64
Closes https://github.com/espressif/esp-idf/issues/18148
2026-02-26 16:26:58 +08:00
wuzhenghui
3ac387a2d6 feat(esp_hw_support): esp32s31 PMU basic support 2026-02-11 15:03:39 +08:00
hebinglin
baeabe48c3 fix(hal): fix the issue of dual-core contention for RTC_CNTL regs 2026-02-10 12:08:03 +08:00
Armando (Dou Yiwen)
9040191fcc Merge branch 'feat/esp_hal_sdmmc' into 'master'
sd: esp_hal_sd component

Closes IDF-15167 and IDF-14096

See merge request espressif/esp-idf!45225
2026-02-03 08:20:18 +00:00
armando
bb6ea458d2 change(gpio): move gpio_num.h to gpio hal 2026-02-02 09:47:54 +08:00
wuzhenghui
e80eb6c5c8 change(hal): deprecate 'gpio deep sleep wakeup' naming in hal
rename `gpio_hal_deepsleep_wakeup_enable/disable` to
       `gpio_hal_wakeup_enable/disable_on_hp_periph_powerdown_sleep`

rename `gpio_hal_deepsleep_wakeup_is_enabled` to
       `gpio_hal_wakeup_is_enabled_on_hp_periph_powerdown_sleep`

rename `gpio_ll_deepsleep_wakeup_enable/disable` to
       `gpio_ll_wakeup_enable/disable_on_hp_periph_powerdown_sleep`
2026-01-21 19:48:26 +08:00
wuzhenghui
d188ad96b7 change(soc): rename peripheral powerdowned sleep wakeable IO soc_caps
rename SOC_GPIO_DEEP_SLEEP_WAKE_VALID_GPIO_MASK to SOC_GPIO_HP_PERIPH_PD_SLEEP_WAKEABLE_MASK
rename SOC_GPIO_DEEP_SLEEP_WAKE_SUPPORTED_PIN_CNT to SOC_GPIO_HP_PERIPH_PD_SLEEP_WAKEABLE_PIN_CNT
rename SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP to SOC_GPIO_SUPPORT_HP_PERIPH_PD_SLEEP_WAKEUP
2026-01-21 19:47:33 +08:00
Song Ruo Jing
ce6e80c129 Merge branch 'refactor/esp_hal_clock' into 'master'
refactor(clk): split clock HAL into separate component

Closes IDF-14108

See merge request espressif/esp-idf!44768
2026-01-19 11:33:35 +08:00
morris
5fe2a941f5 Merge branch 'feat/dedic_gpio_s31' into 'master'
feat(gpio): support dedicated gpio for s31

Closes IDF-14782

See merge request espressif/esp-idf!45093
2026-01-16 11:11:22 +08:00
wanckl
81b035a098 fix(driver_spi): fixed spi still got input after re-install 2026-01-15 19:11:29 +08:00
Chen Chen
a8ef2b0c0c feat(gpio): support dedicated gpio for s31 2026-01-15 14:48:55 +08:00
Song Ruo Jing
62511d61e9 refactor(clk): split clock HAL into separate component 2026-01-13 15:50:20 +08:00
Chen Chen
43dbdd75a3 feat(sdm): support SDM on esp32s31 2026-01-13 15:09:55 +08:00
hebinglin
0856806db0 change(hal): add lpio oe and out inv ll apis 2025-12-30 20:18:04 +08:00
morris
c7117a8f03 Merge branch 'feat/s31_gpio_support' into 'master'
feat(gpio): basic support of gpio on s31

Closes IDF-14780

See merge request espressif/esp-idf!44228
2025-12-29 09:35:20 +08:00
C.S.M
73acca80d7 Merge branch 'refactor/cleanup_hal_files' into 'master'
refactor(hal): Cleanup some missing hal files

See merge request espressif/esp-idf!44567
2025-12-26 17:03:52 +08:00
Chen Chen
f98b9e2b21 feat(gpio): basic support of gpio on s31 2025-12-26 14:54:56 +08:00
C.S.M
4034446cc7 refactor(hal): Cleanup some missing hal files 2025-12-26 10:33:32 +08:00
Song Ruo Jing
74aeb3f41f refactor(uart): split UART HAL into separate component 2025-12-25 14:41:28 +08:00