Skip to content

Commit ab02a00

Browse files
bijudasWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: renesas,wdt: Add support for RZ/G2L
Describe the WDT hardware in the RZ/G2L series. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 7d608c3 commit ab02a00

File tree

1 file changed

+57
-18
lines changed

1 file changed

+57
-18
lines changed

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

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ maintainers:
1010
- Wolfram Sang <[email protected]>
1111
- Geert Uytterhoeven <[email protected]>
1212

13-
allOf:
14-
- $ref: "watchdog.yaml#"
15-
1613
properties:
1714
compatible:
1815
oneOf:
@@ -22,6 +19,11 @@ properties:
2219
- renesas,r7s9210-wdt # RZ/A2
2320
- const: renesas,rza-wdt # RZ/A
2421

22+
- items:
23+
- enum:
24+
- renesas,r9a07g044-wdt # RZ/G2{L,LC}
25+
- const: renesas,rzg2l-wdt # RZ/G2L
26+
2527
- items:
2628
- enum:
2729
- renesas,r8a7742-wdt # RZ/G1H
@@ -56,11 +58,13 @@ properties:
5658
reg:
5759
maxItems: 1
5860

59-
interrupts:
60-
maxItems: 1
61+
interrupts: true
6162

62-
clocks:
63-
maxItems: 1
63+
interrupt-names: true
64+
65+
clocks: true
66+
67+
clock-names: true
6468

6569
power-domains:
6670
maxItems: 1
@@ -75,17 +79,52 @@ required:
7579
- reg
7680
- clocks
7781

78-
if:
79-
not:
80-
properties:
81-
compatible:
82-
contains:
83-
enum:
84-
- renesas,rza-wdt
85-
then:
86-
required:
87-
- power-domains
88-
- resets
82+
allOf:
83+
- $ref: "watchdog.yaml#"
84+
85+
- if:
86+
not:
87+
properties:
88+
compatible:
89+
contains:
90+
enum:
91+
- renesas,rza-wdt
92+
then:
93+
required:
94+
- power-domains
95+
- resets
96+
97+
- if:
98+
properties:
99+
compatible:
100+
contains:
101+
enum:
102+
- renesas,rzg2l-wdt
103+
then:
104+
properties:
105+
interrupts:
106+
maxItems: 2
107+
interrupt-names:
108+
items:
109+
- const: wdt
110+
- const: perrout
111+
clocks:
112+
items:
113+
- description: Register access clock
114+
- description: Main clock
115+
clock-names:
116+
items:
117+
- const: pclk
118+
- const: oscclk
119+
required:
120+
- clock-names
121+
- interrupt-names
122+
else:
123+
properties:
124+
interrupts:
125+
maxItems: 1
126+
clocks:
127+
maxItems: 1
89128

90129
additionalProperties: false
91130

0 commit comments

Comments
 (0)