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

   ## Summary
   
   Add PWM support for the Renesas RZ/V2H (Cortex-R8, CPU0) using the
   GPT (General PWM Timer) peripheral.
   
   The series has three commits:
   
   1. `arch/arm/rzv2h`: GPT PWM driver (`rzv2h_pwm.c/.h`), Kconfig, Make.defs,
      CMake. It also drops the `INTC: connected/freed` log messages in 
`rzv2h_irq.c`, 
      which print on every interrupt-select connect and disconnect.
   2. `boards/arm/rzv2h`: PWM pin definitions in `board.h`, PWM registration
      in board bring-up, and the `pwm` defconfig for RZV2H-EVK and RZV2H-RDK.
   3. `Documentation/arm/rzv2h`: documentation for the driver and both boards.
   
   Channels 0-15 are selected individually with `CONFIG_RZV2H_GPTn_PWM`, with
   configurable frequency and duty cycle. The driver registers through the
   standard `CONFIG_PWM` upper half, so it works with the `pwm` example.
   
   ## Impact
   
   - New feature, off by default. Nothing changes for existing RZ/V2H
     configurations unless `CONFIG_RZV2H_GPTn_PWM` is enabled.
   - Two new board configurations: `rzv2h-evk:pwm` and `rzv2h-rdk:pwm`.
   - Documentation: new PWM sections for the RZ/V2H platform page and both board
     pages.
   - Other change: `rzv2h_irq.c` no longer logs at `LOG_INFO` when an
     interrupt-select line is connected or freed.
   - No compatibility or security impact expected.
   
   ## Testing
   
   Host: Linux Ubuntu 24.04, arm-none-eabi-gcc 13.2.1
   Build checks:
   - `rzv2h-evk:pwm` and `rzv2h-rdk:pwm` build with the new driver
     (`rzv2h_pwm.c`) compiling without warnings.
   - `tools/checkpatch.sh` passes on all changed files, and the pre-commit
     hooks (nxstyle, cmake-format, codespell) pass.
   
   Runtime checks on hardware:
   Board: RZ/V2H-RDK
   `./tools/configure.sh -l rzv2h-rdk:pwm && make`
   
   ```
   NuttShell (NSH) NuttX-13.1.1-RC0
   nsh> pwm -p /dev/pwm7 -f 1000 -d 50 -t 1
   pwm_main: starting output with frequency: 1000 channel: 1 duty: 00007fff
   pwm_main: stopping output
   nsh> pwm -p /dev/pwm7 -f 1000 -d 25 -t 2
   pwm_main: starting output with frequency: 1000 channel: 1 duty: 00003fff
   pwm_main: stopping output
   nsh>
   ```
   
   Board: RZ/V2H-EVK
   `./tools/configure.sh -l rzv2h-evk:pwm && make`
   
   ```
   NuttShell (NSH) NuttX-13.1.1-RC0
   nsh> pwm -p /dev/pwm7 -f 1000 -d 50 -t 1
   pwm_main: starting output with frequency: 1000 channel: 1 duty: 00007fff
   pwm_main: stopping output
   nsh> pwm -p /dev/pwm7 -f 1000 -d 25 -t 2
   pwm_main: starting output with frequency: 1000 channel: 1 duty: 00003fff
   pwm_main: stopping output
   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]

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

Reply via email to