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 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.