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

   ## Summary
   
   Add QSPI support for the Renesas RZ/V2H (Cortex-R8, CR8_0 core) through the
   xSPI controller, using the HAL Renesas `r_xspi_qspi` driver, for RZV2H-EVK
   and RZV2H-RDK.
   
   `rzv2h_qspi.c` implements the standard NuttX `struct qspi_dev_s` interface in
   manual-command mode (`R_XSPI_QSPI_DirectTransfer()`, at most 8 bytes per
   transaction), so QSPI NOR flash can be driven by the NuttX MTD drivers such
   as `n25qxxx`. Both boards fit a Micron MT25QU512ABB (512 Mbit) flash on 
xSPI0.
   
   The series has three commits:
   
   1. `arch/arm/rzv2h`: the QSPI driver (`rzv2h_qspi.c/.h`), the
      `CONFIG_RZV2H_QSPI` option, Make.defs, CMake.
   2. `boards/arm/rzv2h`: xSPI0 pin definitions in `board.h`, pin setup at boot,
      MTD registration during board bring-up, the board Kconfig and the
      `nsh-xspi` defconfig.
   3. `Documentation/arm/rzv2h`: documentation for the driver and both boards.
   
   The board Kconfig selects the chip select (CS0 or CS1), the read protocol
   (1S-1S-1S, 1S-2S-2S, 1S-4S-4S or 4S-4S-4S), the flash partitioning
   (firmware, parameters and the remaining space, with `CONFIG_MTD_PARTITION`)
   and an optional syslog file on the mounted flash.
   
   ## Impact
   
   - New feature, off by default. Nothing changes for existing RZ/V2H
     configurations unless `CONFIG_RZV2H_QSPI` is enabled.
   - Two new board configurations: `rzv2h-evk:nsh-xspi` and
     `rzv2h-rdk:nsh-xspi`.
   - Documentation: new QSPI sections for the RZ/V2H platform page and both
     board pages.
   - No compatibility or security impact expected.
   
   ## Testing
   
   Host: Linux Ubuntu 24.04, arm-none-eabi-gcc 13.2.1
   
   Build checks:
   - `rzv2h-evk:nsh-xspi` and `rzv2h-rdk:nsh-xspi` build with the new driver
     (`rzv2h_qspi.c`) compiling without warnings.
   - `tools/checkpatch.sh` passes on all changed files and commit messages, and
     the pre-commit hooks (nxstyle, cmake-format, codespell) pass.
   
   Runtime checks on hardware (loop-back mode):
   Board: RZ/V2H-RDK
   `./tools/configure.sh -l rzv2h-rdk:nsh-xspi && make`
   ```
   NuttShell (NSH) NuttX-13.1.1-RC0
   nsh> ls -l /mnt/qspi
   /mnt/qspi:
    drwxrwxrwx           0 .
    dr-xr-xr-x           0 ..
   nsh> echo "hello" > /mnt/qspi/test.txt
   nsh> cat /mnt/qspi/test.txt
   hello
   nsh>
   ```
   
   Board: RZ/V2H-EVK
   `./tools/configure.sh -l rzv2h-evk:nsh-xspi && make`
   ```
   NuttShell (NSH) NuttX-13.1.1-RC0
   nsh> ls -l /mnt/qspi
   /mnt/qspi:
    drwxrwxrwx           0 .
    dr-xr-xr-x           0 ..
   nsh> echo "hello" > /mnt/qspi/test.txt
   nsh> cat /mnt/qspi/test.txt
   hello
   nsh>
   ```


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