arch/risc-v: Enable low power mode for ESP32-P4#18707
Merged
acassis merged 2 commits intoapache:masterfrom Apr 10, 2026
Merged
Conversation
This commit introduces the necessary changes to enable low power mode for ESP32-P4. Please check the corresponding documentation. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit documents the power management defconfig for the ESP32-P4-Function-EV-Board. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
acassis
approved these changes
Apr 10, 2026
fdcavalcanti
approved these changes
Apr 10, 2026
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
Introduces the necessary changes to enable low power mode for ESP32-P4.
Impact
Impact on user: Yes. Allows using the power management features on ESP32-P4.
Impact on build: No.
Impact on hardware: Yes. ESP32-P4.
Impact on documentation: Corresponding documentation is provided in a separate commit (in this same PR).
Impact on security: No.
Impact on compatibility: No.
Testing
Build the
pmdefconfig on NuttX and test light sleep and deep sleep.Building
Running
On the NSH (serial terminal) run the following commands:
Light Sleep
Deep Sleep
Results
Light Sleep
After running the commands to enter light sleep, the device should enter light sleep and wake up after 15 seconds.
Deep Sleep
After running the commands to enter deep sleep, the device should be reset after 20s by
PMU_SYS_PWR_DOWN_RESET: