fdcavalcanti opened a new pull request, #19925:
URL: https://github.com/apache/nuttx/pull/19925

   
   ## 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: add sdmmc_spi defconfig to esp32p4-tab5
   
   Adds reference to the sdmmc_spi defconfig of esp32p4-tab5, with mounting
   instructions for the SD Card.
   
   * boards/risc-v: SD Card support on esp32p4-tab5
   
   Adds support for using SD Card on esp32p4-tab5 board.
   Common source is added to esp32p4 common board directory which can be used
   on different boards.
   
   * arch/risc-v/espressif: make LDO Kconfig selectable
   
   Add a label to LDO config so it can be selected on menuconfig.
   
   
   This PR adds support for using the SD Card slot on the M5Stack Tab5 board.
   
   ## Impact
   <!-- Please fill the following sections with YES/NO and provide a brief 
explanation -->
   
   Impact on user: One new defconfig, allows for use of SD Card.
   <!-- Does it impact user's applications? How? -->
   
   Impact on build: No.
   <!-- Does it impact on building NuttX? How? (please describe the required 
changes on the build system) -->
   
   Impact on hardware: Only affects esp32p4-tab5.
   <!-- Does it impact a specific hardware supported by NuttX? -->
   
   Impact on documentation: Adds entry for the `sdmmc_spi` defconfig on the 
tab5 page.
   <!-- Does it impact the existing documentation? Please provide additional 
documentation to reflect that -->
   
   Impact on security: No.
   <!-- Does it impact NuttX's security? -->
   
   Impact on compatibility: No.
   <!-- Does it impact compatibility between previous and current versions? Is 
this a breaking change? -->
   
   ## Testing
   <!-- Please provide all the testing procedure. Consider that upstream 
reviewers should be able to reproduce the same testing performed internally -->
   
   ### Building
   - ./tool/configure.sh esp32p4-tab5:sdmmc_spi
   - Make and flash
   <!-- Provide how to build the test for each SoC being tested -->
   
   ### Results
   Check mmcsd0 is available:
   
   `nsh> ls /dev /dev: console mmcsd0 null spi2 ttyS0 zero`
   
   Then, mount FAT FS and SD Card content should appear. Read and write 
possible through echo and cat commands.
   
   ```
   nsh> mount -t vfat /dev/mmcsd0 /mnt
   nsh> ls /mnt
   /mnt: 
    hello.txt 
   nsh> cat /mnt/hello.txt
   Hello World
   nsh>
   ```
   
   ### Results
   
   It is possible to read and write data to the SD Card.


-- 
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