Skip to content

arch/risc-v/espressif: Fix PM wakeup sources#18814

Merged
simbit18 merged 3 commits intoapache:masterfrom
eren-terzioglu:esp_fix_wakeup_sources
Apr 27, 2026
Merged

arch/risc-v/espressif: Fix PM wakeup sources#18814
simbit18 merged 3 commits intoapache:masterfrom
eren-terzioglu:esp_fix_wakeup_sources

Conversation

@eren-terzioglu
Copy link
Copy Markdown
Contributor

Summary

  • Docs/platforms/risc-v: Add autopm docs

Add autopm docs for esp32p4

  • boards/risc-v/esp32p4: Add autopm defconfig

Add autopm defconfig for esp32p4

  • arch/risc-v/espressif: Fix PM wakeup sources

Fix PM wakeup sources for esp32[-c6|-h2|-p4]

Impact

Impact on user: Yes, wakeup modes for C6 , H2 and P4 fixed

Impact on build: No

Impact on hardware: No

Impact on documentation: Related docs added

Impact on security: No

Impact on compatibility: No

Testing

esp32c6-devkitc:pm used with CONFIG_PM_GPIO_WAKEUP and COFNIG_PM_GPIO_WAKEUP_GPIO2 options

Building

make distclean && ./tools/configure.sh esp32c6-devkitc:pm && kconfig-tweak -e CONFIG_PM_GPIO_WAKEUP && kconfig-tweak -e COFNIG_PM_GPIO_WAKEUP_GPIO2 && make olddefconfig && make -j && make download ESPTOOL_PORT=/dev/ttyUSB0

Running

Commands to run

pmconfig relax idle
pmconfig relax normal
pmconfig relax normal

Results

nsh> pmconfig relax idle
nsh> pmconfig relax normal
nsh> pmconfig relax normal
up_idlepm: newstate= 2 oldstate=0
esp_pmstandby: Returned from light-sleep with: GPIO, slept for 259 ms
esp_pmstandby: GPIO wakeup mask: 4
up_idlepm: newstate= 0 oldstate=2
nsh>

@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Size: M The size of the change in this PR is medium Board: risc-v labels Apr 27, 2026
Fix PM wakeup sources for esp32[-c6|-h2|-p4]

Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
Add autopm defconfig for esp32p4

Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
Add autopm docs for esp32p4

Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
@simbit18 simbit18 merged commit 64cf226 into apache:master Apr 27, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Area: Documentation Improvements or additions to documentation Board: risc-v Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants