arch/xtensa/esp32[-s2|-s3]: Refactor PM support - #17414
Merged
xiaoxiang781216 merged 3 commits intoDec 1, 2025
Merged
Conversation
Refactor PM modes for Xtensa based Espressif devices Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
Refactor PM board layer for Xtensa based Espressif devices Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
Add PM docs for esp32s2 Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
eren-terzioglu
requested review from
acassis,
fdcavalcanti,
gustavonihei,
pkarashchenko,
simbit18 and
tmedicci
as code owners
December 1, 2025 12:50
fdcavalcanti
approved these changes
Dec 1, 2025
acassis
approved these changes
Dec 1, 2025
jerpelea
approved these changes
Dec 1, 2025
xiaoxiang781216
approved these changes
Dec 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add PM docs for esp32s2
Refactor PM board layer for Xtensa based Espressif devices
Refactor PM modes for Xtensa based Espressif devices
Impact
Impact on user: Yes, users can use light sleep and deep sleep with different wakeup modes (ext0, gpio, ext1)
Impact on build: No
Impact on hardware: PM mode supported for esp32s2
Impact on documentation: Yes, newly added config docs added
Impact on security: No
Impact on compatibility: No
Testing
Building
Used configs:
Running
To let device into light-sleep mode, these commands applied:
To let device into deep-sleep mode, these commands applied:
Results
After these commands applied, device will stop responding to
nshand after a while it will start responding. On deep sleep, device should reset withDSLEEPorSLEEP_WAKEUPreset reason