Skip to content

Commit d448837

Browse files
claudiubezneaalexandrebelloni
authored andcommitted
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>
1 parent 71c61a4 commit d448837

4 files changed

Lines changed: 918 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19721,6 +19721,14 @@ S: Supported
1972119721
F: Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
1972219722
F: drivers/counter/rz-mtu3-cnt.c
1972319723

19724+
RENESAS RTCA-3 RTC DRIVER
19725+
M: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
19726+
L: linux-rtc@vger.kernel.org
19727+
L: linux-renesas-soc@vger.kernel.org
19728+
S: Supported
19729+
F: Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml
19730+
F: drivers/rtc/rtc-renesas-rtca3.c
19731+
1972419732
RENESAS RZ/N1 A5PSW SWITCH DRIVER
1972519733
M: Clément Léger <clement.leger@bootlin.com>
1972619734
L: linux-renesas-soc@vger.kernel.org

drivers/rtc/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,6 +2005,16 @@ config RTC_DRV_MA35D1
20052005
This driver can also be built as a module, if so, the module
20062006
will be called "rtc-ma35d1".
20072007

2008+
config RTC_DRV_RENESAS_RTCA3
2009+
tristate "Renesas RTCA-3 RTC"
2010+
depends on ARCH_RENESAS
2011+
help
2012+
If you say yes here you get support for the Renesas RTCA-3 RTC
2013+
available on the Renesas RZ/G3S SoC.
2014+
2015+
This driver can also be built as a module, if so, the module
2016+
will be called "rtc-rtca3".
2017+
20082018
comment "HID Sensor RTC drivers"
20092019

20102020
config RTC_DRV_HID_SENSOR_TIME

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ obj-$(CONFIG_RTC_DRV_RX8025) += rtc-rx8025.o
158158
obj-$(CONFIG_RTC_DRV_RX8111) += rtc-rx8111.o
159159
obj-$(CONFIG_RTC_DRV_RX8581) += rtc-rx8581.o
160160
obj-$(CONFIG_RTC_DRV_RZN1) += rtc-rzn1.o
161+
obj-$(CONFIG_RTC_DRV_RENESAS_RTCA3) += rtc-renesas-rtca3.o
161162
obj-$(CONFIG_RTC_DRV_S35390A) += rtc-s35390a.o
162163
obj-$(CONFIG_RTC_DRV_S3C) += rtc-s3c.o
163164
obj-$(CONFIG_RTC_DRV_S5M) += rtc-s5m.o

0 commit comments

Comments
 (0)