binhnguyen2434 opened a new pull request, #22125:
URL: https://github.com/apache/nuttx/pull/22125
# arch/arm/rzv2h: Add RTC support for Renesas RZ/V2H
## Summary
Add RTC support for the Renesas RZ/V2H (Cortex-R8, CPU0) through the
`r_rtc` peripheral.
- RTC (`rzv2h_rtc`): calendar, one-shot alarm, periodic wakeup, and
system-clock seeding on boot. Available on RZV2H-EVK.
- RTC open is performed after interrupt initialization to ensure alarm
interrupts are ready before the driver starts.
The series has three commits:
1. `arch/arm/rzv2h`: the RTC driver, Kconfig, Make.defs, CMake.
2. `boards/arm/rzv2h`: RTC device registration in board bring-up and
the `alarm` defconfig.
3. `Documentation/arm/rzv2h`: documentation for the driver and board.
## Impact
- New feature, off by default. Nothing changes for existing RZ/V2H
configurations unless RTC is enabled.
- One new board configuration: `rzv2h-evk:alarm`.
- Documentation: new RTC section for the RZ/V2H platform page and the
EVK board page.
- No compatibility or security impact expected.
## Testing
Host: Linux Ubuntu 24.04, arm-none-eabi-gcc 13.2.1
Build checks:
- `rzv2h-evk:alarm` builds 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:alarm`
(set time, verify tick, one-shot alarm):
```
nsh> date
Sat, Sep 15 05:04:35 374677
nsh> date -s "Sep 15 05:04:35 2020"
nsh> date
Tue, Sep 15 05:04:36 2020
nsh> date
Tue, Sep 15 05:04:38 2020
nsh> alarm 1
alarm_daemon started
alarm_daemon: Running
Opening /dev/rtc0
Alarm 0 set in 1 seconds
nsh> alarm_daemon: alarm 0 received
alarm 3
Opening /dev/rtc0
Alarm 0 set in 3 seconds
nsh> alarm_daemon: alarm 0 received
```
--
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]