Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ovidiu Panait and committed by
Alexandre Belloni
4800046b bf5ef3ce

+41 -5
+41 -5
Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml
··· 9 9 maintainers: 10 10 - Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> 11 11 12 - allOf: 13 - - $ref: rtc.yaml# 14 - 15 12 properties: 16 13 compatible: 17 14 items: 18 15 - enum: 19 16 - renesas,r9a08g045-rtca3 # RZ/G3S 17 + - renesas,r9a09g057-rtca3 # RZ/V2H 20 18 - const: renesas,rz-rtca3 21 19 22 20 reg: ··· 46 48 maxItems: 1 47 49 48 50 resets: 49 - items: 50 - - description: VBATTB module reset 51 + minItems: 1 52 + maxItems: 2 53 + 54 + reset-names: 55 + minItems: 1 56 + maxItems: 2 51 57 52 58 required: 53 59 - compatible ··· 62 60 - clock-names 63 61 - power-domains 64 62 - resets 63 + 64 + allOf: 65 + - $ref: rtc.yaml# 66 + 67 + - if: 68 + properties: 69 + compatible: 70 + contains: 71 + const: renesas,r9a08g045-rtca3 72 + then: 73 + properties: 74 + resets: 75 + items: 76 + - description: VBATTB module reset 77 + reset-names: 78 + const: vbattb 79 + - if: 80 + properties: 81 + compatible: 82 + contains: 83 + const: renesas,r9a09g057-rtca3 84 + then: 85 + properties: 86 + resets: 87 + items: 88 + - description: RTC reset 89 + - description: Reset for the RTEST registers 90 + reset-names: 91 + items: 92 + - const: rtc 93 + - const: rtest 94 + required: 95 + - reset-names 65 96 66 97 additionalProperties: false 67 98 ··· 116 81 clock-names = "bus", "counter"; 117 82 power-domains = <&cpg>; 118 83 resets = <&cpg R9A08G045_VBAT_BRESETN>; 84 + reset-names = "vbattb"; 119 85 };