~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/watchdog/renesas,wdt.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Renesas Watchdog Timer (WDT) Controller
  8 
  9 maintainers:
 10   - Wolfram Sang <wsa+renesas@sang-engineering.com>
 11   - Geert Uytterhoeven <geert+renesas@glider.be>
 12 
 13 properties:
 14   compatible:
 15     oneOf:
 16       - items:
 17           - enum:
 18               - renesas,r7s72100-wdt     # RZ/A1
 19               - renesas,r7s9210-wdt      # RZ/A2
 20           - const: renesas,rza-wdt       # RZ/A
 21 
 22       - items:
 23           - enum:
 24               - renesas,r9a06g032-wdt    # RZ/N1D
 25           - const: renesas,rzn1-wdt      # RZ/N1
 26 
 27       - items:
 28           - enum:
 29               - renesas,r9a07g043-wdt    # RZ/G2UL and RZ/Five
 30               - renesas,r9a07g044-wdt    # RZ/G2{L,LC}
 31               - renesas,r9a07g054-wdt    # RZ/V2L
 32               - renesas,r9a08g045-wdt    # RZ/G3S
 33           - const: renesas,rzg2l-wdt
 34 
 35       - items:
 36           - enum:
 37               - renesas,r9a09g011-wdt    # RZ/V2M
 38           - const: renesas,rzv2m-wdt     # RZ/V2M
 39 
 40       - items:
 41           - enum:
 42               - renesas,r8a7742-wdt      # RZ/G1H
 43               - renesas,r8a7743-wdt      # RZ/G1M
 44               - renesas,r8a7744-wdt      # RZ/G1N
 45               - renesas,r8a7745-wdt      # RZ/G1E
 46               - renesas,r8a77470-wdt     # RZ/G1C
 47               - renesas,r8a7790-wdt      # R-Car H2
 48               - renesas,r8a7791-wdt      # R-Car M2-W
 49               - renesas,r8a7792-wdt      # R-Car V2H
 50               - renesas,r8a7793-wdt      # R-Car M2-N
 51               - renesas,r8a7794-wdt      # R-Car E2
 52           - const: renesas,rcar-gen2-wdt # R-Car Gen2 and RZ/G1
 53 
 54       - items:
 55           - enum:
 56               - renesas,r8a774a1-wdt     # RZ/G2M
 57               - renesas,r8a774b1-wdt     # RZ/G2N
 58               - renesas,r8a774c0-wdt     # RZ/G2E
 59               - renesas,r8a774e1-wdt     # RZ/G2H
 60               - renesas,r8a7795-wdt      # R-Car H3
 61               - renesas,r8a7796-wdt      # R-Car M3-W
 62               - renesas,r8a77961-wdt     # R-Car M3-W+
 63               - renesas,r8a77965-wdt     # R-Car M3-N
 64               - renesas,r8a77970-wdt     # R-Car V3M
 65               - renesas,r8a77980-wdt     # R-Car V3H
 66               - renesas,r8a77990-wdt     # R-Car E3
 67               - renesas,r8a77995-wdt     # R-Car D3
 68           - const: renesas,rcar-gen3-wdt # R-Car Gen3 and RZ/G2
 69 
 70       - items:
 71           - enum:
 72               - renesas,r8a779a0-wdt     # R-Car V3U
 73               - renesas,r8a779f0-wdt     # R-Car S4-8
 74               - renesas,r8a779g0-wdt     # R-Car V4H
 75               - renesas,r8a779h0-wdt     # R-Car V4M
 76           - const: renesas,rcar-gen4-wdt # R-Car Gen4
 77 
 78       - const: renesas,r9a09g057-wdt       # RZ/V2H(P)
 79 
 80   reg:
 81     maxItems: 1
 82 
 83   interrupts:
 84     minItems: 1
 85     items:
 86       - description: Timeout
 87       - description: Parity error
 88 
 89   interrupt-names:
 90     minItems: 1
 91     items:
 92       - const: wdt
 93       - const: perrout
 94 
 95   clocks:
 96     minItems: 1
 97     items:
 98       - description: Register access clock
 99       - description: Main clock
100 
101   clock-names:
102     minItems: 1
103     items:
104       - const: pclk
105       - const: oscclk
106 
107   power-domains:
108     maxItems: 1
109 
110   resets:
111     maxItems: 1
112 
113   timeout-sec: true
114 
115 required:
116   - compatible
117   - reg
118   - clocks
119 
120 allOf:
121   - $ref: watchdog.yaml#
122 
123   - if:
124       not:
125         properties:
126           compatible:
127             contains:
128               enum:
129                 - renesas,rza-wdt
130                 - renesas,rzn1-wdt
131     then:
132       required:
133         - power-domains
134         - resets
135 
136   - if:
137       properties:
138         compatible:
139           contains:
140             enum:
141               - renesas,r9a09g057-wdt
142               - renesas,rzg2l-wdt
143               - renesas,rzv2m-wdt
144     then:
145       properties:
146         clocks:
147           minItems: 2
148         clock-names:
149           minItems: 2
150       required:
151         - clock-names
152     else:
153       properties:
154         clocks:
155           maxItems: 1
156 
157   - if:
158       properties:
159         compatible:
160           contains:
161             enum:
162               - renesas,rzg2l-wdt
163     then:
164       properties:
165         interrupts:
166           minItems: 2
167         interrupt-names:
168           minItems: 2
169       required:
170         - interrupt-names
171     else:
172       properties:
173         interrupts:
174           maxItems: 1
175 
176   - if:
177       properties:
178         compatible:
179           contains:
180             const: renesas,r9a09g057-wdt
181     then:
182       properties:
183         interrupts: false
184         interrupt-names: false
185     else:
186       required:
187         - interrupts
188 
189 additionalProperties: false
190 
191 examples:
192   - |
193     #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
194     #include <dt-bindings/power/r8a7795-sysc.h>
195     #include <dt-bindings/interrupt-controller/arm-gic.h>
196     wdt0: watchdog@e6020000 {
197         compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt";
198         reg = <0xe6020000 0x0c>;
199         interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
200         clocks = <&cpg CPG_MOD 402>;
201         power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
202         resets = <&cpg 402>;
203         timeout-sec = <60>;
204     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php