Skip to content

Commit 4800046

Browse files
Ovidiu Panaitalexandrebelloni
authored andcommitted
dt-bindings: rtc: renesas,rz-rtca3: Add RZ/V2H support
The Renesas RZ/V2H RTC IP is based on the same RTCA3 IP as RZ/G3S (r9a08g045), with the following differences: - It lacks the time capture functionality - The maximum supported periodic interrupt frequency is 128Hz instead of 256Hz - It requires two reset lines instead of one Add new compatible string "renesas,r9a09g057-rtca3" for RZ/V2H and update the binding accordingly: - Allow "resets" to contain one or two entries depending on the SoC. - Add "reset-names" property, but make it required only for RZ/V2H. Signed-off-by: Ovidiu Panait <ovidiu.panait.rb@renesas.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20251107210706.45044-2-ovidiu.panait.rb@renesas.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent bf5ef3c commit 4800046

1 file changed

Lines changed: 41 additions & 5 deletions

File tree

Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ title: Renesas RTCA-3 Real Time Clock
99
maintainers:
1010
- Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
1111

12-
allOf:
13-
- $ref: rtc.yaml#
14-
1512
properties:
1613
compatible:
1714
items:
1815
- enum:
1916
- renesas,r9a08g045-rtca3 # RZ/G3S
17+
- renesas,r9a09g057-rtca3 # RZ/V2H
2018
- const: renesas,rz-rtca3
2119

2220
reg:
@@ -48,8 +46,12 @@ properties:
4846
maxItems: 1
4947

5048
resets:
51-
items:
52-
- description: VBATTB module reset
49+
minItems: 1
50+
maxItems: 2
51+
52+
reset-names:
53+
minItems: 1
54+
maxItems: 2
5355

5456
required:
5557
- compatible
@@ -61,6 +63,39 @@ required:
6163
- power-domains
6264
- resets
6365

66+
allOf:
67+
- $ref: rtc.yaml#
68+
69+
- if:
70+
properties:
71+
compatible:
72+
contains:
73+
const: renesas,r9a08g045-rtca3
74+
then:
75+
properties:
76+
resets:
77+
items:
78+
- description: VBATTB module reset
79+
reset-names:
80+
const: vbattb
81+
- if:
82+
properties:
83+
compatible:
84+
contains:
85+
const: renesas,r9a09g057-rtca3
86+
then:
87+
properties:
88+
resets:
89+
items:
90+
- description: RTC reset
91+
- description: Reset for the RTEST registers
92+
reset-names:
93+
items:
94+
- const: rtc
95+
- const: rtest
96+
required:
97+
- reset-names
98+
6499
additionalProperties: false
65100

66101
examples:
@@ -81,4 +116,5 @@ examples:
81116
clock-names = "bus", "counter";
82117
power-domains = <&cpg>;
83118
resets = <&cpg R9A08G045_VBAT_BRESETN>;
119+
reset-names = "vbattb";
84120
};

0 commit comments

Comments
 (0)