Skip to content

Commit 5cacd26

Browse files
prabhakarladWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: renesas,wdt: Add support for RZ/T2H and RZ/N2H
Extend the Renesas WDT device tree bindings to support the watchdog timer found on the RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs. The RZ/T2H WDT is mostly compatible with the one found on the RZ/V2H(P), but includes an additional register and differs in the clock division ratio settings for the WDTCR[CKS] field. To reflect these differences, introduce a new compatible string, "renesas,r9a09g077-wdt". The binding schema is updated accordingly. On RZ/T2H, the WDT does not require the "resets" property. It also requires two register regions and the presence of a "power-domains" property. The "clock-names" property is limited to a single entry, "pclk", for this SoC. The RZ/N2H SoC uses the same WDT IP as the RZ/T2H. It is supported by using "renesas,r9a09g087-wdt" as the primary compatible string, with "renesas,r9a09g077-wdt" listed as a fallback to describe the shared hardware features. Example: wdt0: watchdog@80082000 { compatible = "renesas,r9a09g077-wdt"; reg = <0 0x80082000 0 0x400>, <0 0x81295100 0 0x04>; clocks = <&cpg CPG_CORE R9A09G077_CLK_PCLKL>; clock-names = "pclk"; power-domains = <&cpg>; status = "disabled"; }; Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent bdbb4a2 commit 5cacd26

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,17 @@ properties:
8181
- renesas,r9a09g056-wdt # RZ/V2N
8282
- const: renesas,r9a09g057-wdt # RZ/V2H(P)
8383

84-
- const: renesas,r9a09g057-wdt # RZ/V2H(P)
84+
- enum:
85+
- renesas,r9a09g057-wdt # RZ/V2H(P)
86+
- renesas,r9a09g077-wdt # RZ/T2H
87+
88+
- items:
89+
- const: renesas,r9a09g087-wdt # RZ/N2H
90+
- const: renesas,r9a09g077-wdt # RZ/T2H
8591

8692
reg:
87-
maxItems: 1
93+
minItems: 1
94+
maxItems: 2
8895

8996
interrupts:
9097
minItems: 1
@@ -132,6 +139,7 @@ allOf:
132139
compatible:
133140
contains:
134141
enum:
142+
- renesas,r9a09g077-wdt
135143
- renesas,rza-wdt
136144
- renesas,rzn1-wdt
137145
then:
@@ -183,7 +191,9 @@ allOf:
183191
properties:
184192
compatible:
185193
contains:
186-
const: renesas,r9a09g057-wdt
194+
enum:
195+
- renesas,r9a09g057-wdt
196+
- renesas,r9a09g077-wdt
187197
then:
188198
properties:
189199
interrupts: false
@@ -192,6 +202,26 @@ allOf:
192202
required:
193203
- interrupts
194204

205+
- if:
206+
properties:
207+
compatible:
208+
contains:
209+
const: renesas,r9a09g077-wdt
210+
then:
211+
properties:
212+
resets: false
213+
clock-names:
214+
maxItems: 1
215+
reg:
216+
minItems: 2
217+
required:
218+
- clock-names
219+
- power-domains
220+
else:
221+
properties:
222+
reg:
223+
maxItems: 1
224+
195225
additionalProperties: false
196226

197227
examples:

0 commit comments

Comments
 (0)