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

   # arch/arm/rzv2h: Add OpenAMP/RPMsg support for Renesas RZ/V2H
   
   ## Summary
   
   Add OpenAMP/RPMsg support for the Renesas RZ/V2H (Cortex-R8, CPU0)
   enabling inter-processor communication between the CR8_0 NuttX core
   and the CA55 Linux core.
   
   - RPMsg/RPTUN (`rzv2h_rptun`): uses the RZ/V2H MHU-B (Message Handling
     Unit) for inter-core notification and shared memory vrings for data
     transfer. Available on both RZV2H-EVK and RZV2H-RDK.
   - The resource table (`rzv2h_rsctable`) defines the vring and shared
     memory regions visible to both cores.
   - The MPU region for the shared memory carveout is added to
     `rzv2h_mpu_region.c`.
   
   The series has three commits:
   
   1. `arch/arm/rzv2h`: the RPTUN driver, Kconfig, Make.defs, CMake, and
      the MPU region addition.
   2. `boards/arm/rzv2h`: resource table, RPMsg pin definitions in `board.h`,
      linker script carveout, board bring-up registration, and the
      `nsh-openamp` defconfig for both boards.
   3. `Documentation/arm/rzv2h`: documentation for the driver, setup
      procedure, and both boards.
   
   ## Impact
   
   - New feature, off by default. Nothing changes for existing RZ/V2H
     configurations unless OpenAMP is enabled.
   - Two new board configurations: `rzv2h-evk:nsh-openamp` and
     `rzv2h-rdk:nsh-openamp`.
   - Documentation: new OpenAMP section 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-openamp` and `rzv2h-rdk:nsh-openamp` build with the
     new driver compiling without warnings.
   - `tools/checkpatch.sh` passes on all changed files; pre-commit hooks
     (nxstyle, cmake-format, codespell) pass.
   
   Runtime checks on hardware 
   - **Board: RZ/V2H-EVK**, `rzv2h-evk:nsh-openamp`
   - **Board: RZ/V2H-RDK**, `rzv2h-rdk:nsh-openamp`
   (RPMsg echo test between CA55 Linux and CR8_0 NuttX, 471 messages,
   error count = 0):
   
   **CR8_0 NuttX console:**
   
   ```
   nsh> RZ/V2H RPMsg endpoint rpmsg-service-1 created at address 0
   RZ/V2H RPMsg echo: shutdown received
   RZ/V2H RPTUN ready for next Linux session
   RZ/V2H RPMsg endpoint rpmsg-service-1 created at address 0
   RZ/V2H RPMsg echo: shutdown received
   RZ/V2H RPTUN ready for next Linux session
   RZ/V2H RPMsg endpoint rpmsg-service-1 created at address 0
   RZ/V2H RPMsg echo: shutdown received
   RZ/V2H RPTUN ready for next Linux session
   RZ/V2H RPMsg endpoint rpmsg-service-1 created at address 0
   RZ/V2H RPMsg echo: shutdown received
   RZ/V2H RPTUN ready for next Linux session
   ```
   
   **CA55 Linux console:**
   
   ```
   ubuntu@ubuntu:~$ sudo rpmsg_sample_client
   [642] Successfully probed IPI device.
   [642] Successfully opened uio device: 42f00000.rsctbl.
   [642] Successfully opened uio device: 43000000.vring-ctl0.
   [642] Successfully opened uio device: 43200000.vring-shm0.
   [642] Successfully opened uio device: 43100000.vring-ctl1.
   [642] Successfully opened uio device: 43500000.vring-shm1.
   [642] Successfully opened uio device: 42f01000.mhu-shm.
   [642] Initialize remoteproc successfully.
   ...
   [CR8_0 ] received payload number 468 of size 485
   [CR8_0 ] sending payload number 469 of size 486
   [CR8_0 ] received payload number 469 of size 486
   [CR8_0 ] sending payload number 470 of size 487
   [CR8_0 ] received payload number 470 of size 487
   [CR8_0 ] sending payload number 471 of size 488
   [CR8_0 ] received payload number 471 of size 488
   [CR8_0 ] ************************************
   [CR8_0 ] Test Results: Error count = 0
   [CR8_0 ] ************************************
   [CR8_0 ] Quitting application .. Echo test end
   [CR8_0 ] Stopping application...
   ```
   


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

  • [PR] arch/arm/rzv2h: Add Open... binhnguyen2434 (via GitHub) via commits

Reply via email to