eren-terzioglu opened a new pull request, #17414:
URL: https://github.com/apache/nuttx/pull/17414

   ## Summary
   
   <!-- This field should contain a summary of the changes. It will be 
pre-filled with the commit's message and descriptions. Adjust it accordingly -->
   
   * Documentation/xtensa/esp32[-s2]: Add PM docs
   
   Add PM docs for esp32s2
   
   * boards/xtensa/esp32[-s2|-s3]: Refactor PM board layer
   
   Refactor PM board layer for Xtensa based Espressif devices
   
   * arch/xtensa/esp32[-s2|-s3]: Refactor PM support
   
   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
   <!-- Please provide all the testing procedure. Consider that upstream 
reviewers should be able to reproduce the same testing performed internally -->
   
   ### Building
   <!-- Provide how to build the test for each SoC being tested -->
   
   Used configs:
   
   ```
   esp32s2-saola-1:pm
   esp32s3-devkit:pm
   ```
   
   
   ```
   make -j distclean && ./tools/configure.sh esp32s2-saola-1:pm && make -j && 
make download ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BAUD=921600 ESPTOOL_BINDIR=./
   ```
   
   ### Running
   
   <!--Provide how to run the test for each SoC being tested-->
   
   To let device into light-sleep mode, these commands applied:
   
   ```
   nsh> pmconfig relax idle
   nsh> pmconfig relax normal
   nsh> pmconfig relax normal
   ```
   
   To let device into deep-sleep mode, these commands applied:
   
   ```
   nsh> pmconfig relax standby
   nsh> pmconfig relax idle
   nsh> pmconfig relax normal
   nsh> pmconfig relax normal
   ```
   
   ### Results
   
   <!--Provide tests' results and runtime logs-->
   
   After these commands applied, device will stop responding to `nsh` and after 
a while it will start responding. On deep sleep, device should reset with 
`DSLEEP` or `SLEEP_WAKEUP` reset reason


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to