]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: renesas-rtca3: Add driver for RTCA-3 available on Renesas RZ/G3S SoC
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Wed, 30 Oct 2024 11:01:15 +0000 (13:01 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 31 Oct 2024 23:16:17 +0000 (00:16 +0100)
commitd4488377609e36cd9785533c29ccea4b86c292b9
tree314e1c4366a8ccf898fa1548cf345439fa921457
parent71c61a45c951eca67dd2cbc4de9cdd687ece4ead
rtc: renesas-rtca3: Add driver for RTCA-3 available on Renesas RZ/G3S SoC

The RTC IP (RTCA-3) available on the Renesas RZ/G3S SoC has calendar count
mode and binary count mode (selectable though RCR2.CNTMD) capabilities,
alarm capabilities, clock error correction capabilities. It can generate
alarm, period, carry interrupts.

Add a driver for RTCA-3 IP. The driver implements calendar count mode (as
the conversion b/w RTC and system time is simpler, done with bcd2bin(),
bin2bcd()), read and set time, read and set alarm, read and set
an offset.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://lore.kernel.org/r/20241030110120.332802-6-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
MAINTAINERS
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-renesas-rtca3.c [new file with mode: 0644]