1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/watchdog/renesas,wdt.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Renesas Watchdog Timer (WDT) Controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Wolfram Sang <wsa+renesas@sang-engineering.com> 11c66ec88fSEmmanuel Vadot - Geert Uytterhoeven <geert+renesas@glider.be> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotproperties: 14c66ec88fSEmmanuel Vadot compatible: 15c66ec88fSEmmanuel Vadot oneOf: 16c66ec88fSEmmanuel Vadot - items: 17c66ec88fSEmmanuel Vadot - enum: 18c66ec88fSEmmanuel Vadot - renesas,r7s72100-wdt # RZ/A1 19c66ec88fSEmmanuel Vadot - renesas,r7s9210-wdt # RZ/A2 20c66ec88fSEmmanuel Vadot - const: renesas,rza-wdt # RZ/A 21c66ec88fSEmmanuel Vadot 22c66ec88fSEmmanuel Vadot - items: 23c66ec88fSEmmanuel Vadot - enum: 24d5b0e70fSEmmanuel Vadot - renesas,r9a06g032-wdt # RZ/N1D 25d5b0e70fSEmmanuel Vadot - const: renesas,rzn1-wdt # RZ/N1 26d5b0e70fSEmmanuel Vadot 27d5b0e70fSEmmanuel Vadot - items: 28d5b0e70fSEmmanuel Vadot - enum: 29cb7aa33aSEmmanuel Vadot - renesas,r9a07g043-wdt # RZ/G2UL and RZ/Five 30e67e8565SEmmanuel Vadot - renesas,r9a07g044-wdt # RZ/G2{L,LC} 31d5b0e70fSEmmanuel Vadot - renesas,r9a07g054-wdt # RZ/V2L 32d5b0e70fSEmmanuel Vadot - const: renesas,rzg2l-wdt 33e67e8565SEmmanuel Vadot 34e67e8565SEmmanuel Vadot - items: 35e67e8565SEmmanuel Vadot - enum: 367ef62cebSEmmanuel Vadot - renesas,r9a09g011-wdt # RZ/V2M 377ef62cebSEmmanuel Vadot - const: renesas,rzv2m-wdt # RZ/V2M 387ef62cebSEmmanuel Vadot 397ef62cebSEmmanuel Vadot - items: 407ef62cebSEmmanuel Vadot - enum: 41c66ec88fSEmmanuel Vadot - renesas,r8a7742-wdt # RZ/G1H 42c66ec88fSEmmanuel Vadot - renesas,r8a7743-wdt # RZ/G1M 43c66ec88fSEmmanuel Vadot - renesas,r8a7744-wdt # RZ/G1N 44c66ec88fSEmmanuel Vadot - renesas,r8a7745-wdt # RZ/G1E 45c66ec88fSEmmanuel Vadot - renesas,r8a77470-wdt # RZ/G1C 46c66ec88fSEmmanuel Vadot - renesas,r8a7790-wdt # R-Car H2 47c66ec88fSEmmanuel Vadot - renesas,r8a7791-wdt # R-Car M2-W 48c66ec88fSEmmanuel Vadot - renesas,r8a7792-wdt # R-Car V2H 49c66ec88fSEmmanuel Vadot - renesas,r8a7793-wdt # R-Car M2-N 50c66ec88fSEmmanuel Vadot - renesas,r8a7794-wdt # R-Car E2 51c66ec88fSEmmanuel Vadot - const: renesas,rcar-gen2-wdt # R-Car Gen2 and RZ/G1 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadot - items: 54c66ec88fSEmmanuel Vadot - enum: 55c66ec88fSEmmanuel Vadot - renesas,r8a774a1-wdt # RZ/G2M 56c66ec88fSEmmanuel Vadot - renesas,r8a774b1-wdt # RZ/G2N 57c66ec88fSEmmanuel Vadot - renesas,r8a774c0-wdt # RZ/G2E 58c66ec88fSEmmanuel Vadot - renesas,r8a774e1-wdt # RZ/G2H 59c66ec88fSEmmanuel Vadot - renesas,r8a7795-wdt # R-Car H3 60c66ec88fSEmmanuel Vadot - renesas,r8a7796-wdt # R-Car M3-W 61c66ec88fSEmmanuel Vadot - renesas,r8a77961-wdt # R-Car M3-W+ 62c66ec88fSEmmanuel Vadot - renesas,r8a77965-wdt # R-Car M3-N 63c66ec88fSEmmanuel Vadot - renesas,r8a77970-wdt # R-Car V3M 64c66ec88fSEmmanuel Vadot - renesas,r8a77980-wdt # R-Car V3H 65c66ec88fSEmmanuel Vadot - renesas,r8a77990-wdt # R-Car E3 66c66ec88fSEmmanuel Vadot - renesas,r8a77995-wdt # R-Car D3 67c66ec88fSEmmanuel Vadot - const: renesas,rcar-gen3-wdt # R-Car Gen3 and RZ/G2 68c66ec88fSEmmanuel Vadot 69c9ccf3a3SEmmanuel Vadot - items: 70c9ccf3a3SEmmanuel Vadot - enum: 71d5b0e70fSEmmanuel Vadot - renesas,r8a779a0-wdt # R-Car V3U 72c9ccf3a3SEmmanuel Vadot - renesas,r8a779f0-wdt # R-Car S4-8 737ef62cebSEmmanuel Vadot - renesas,r8a779g0-wdt # R-Car V4H 74c9ccf3a3SEmmanuel Vadot - const: renesas,rcar-gen4-wdt # R-Car Gen4 75c9ccf3a3SEmmanuel Vadot 76c66ec88fSEmmanuel Vadot reg: 77c66ec88fSEmmanuel Vadot maxItems: 1 78c66ec88fSEmmanuel Vadot 797ef62cebSEmmanuel Vadot interrupts: 807ef62cebSEmmanuel Vadot minItems: 1 817ef62cebSEmmanuel Vadot items: 827ef62cebSEmmanuel Vadot - description: Timeout 837ef62cebSEmmanuel Vadot - description: Parity error 84c66ec88fSEmmanuel Vadot 857ef62cebSEmmanuel Vadot interrupt-names: 867ef62cebSEmmanuel Vadot minItems: 1 877ef62cebSEmmanuel Vadot items: 887ef62cebSEmmanuel Vadot - const: wdt 897ef62cebSEmmanuel Vadot - const: perrout 90e67e8565SEmmanuel Vadot 917ef62cebSEmmanuel Vadot clocks: 927ef62cebSEmmanuel Vadot minItems: 1 937ef62cebSEmmanuel Vadot items: 947ef62cebSEmmanuel Vadot - description: Register access clock 957ef62cebSEmmanuel Vadot - description: Main clock 96e67e8565SEmmanuel Vadot 977ef62cebSEmmanuel Vadot clock-names: 987ef62cebSEmmanuel Vadot minItems: 1 997ef62cebSEmmanuel Vadot items: 1007ef62cebSEmmanuel Vadot - const: pclk 1017ef62cebSEmmanuel Vadot - const: oscclk 102c66ec88fSEmmanuel Vadot 103c66ec88fSEmmanuel Vadot power-domains: 104c66ec88fSEmmanuel Vadot maxItems: 1 105c66ec88fSEmmanuel Vadot 106c66ec88fSEmmanuel Vadot resets: 107c66ec88fSEmmanuel Vadot maxItems: 1 108c66ec88fSEmmanuel Vadot 109c66ec88fSEmmanuel Vadot timeout-sec: true 110c66ec88fSEmmanuel Vadot 111c66ec88fSEmmanuel Vadotrequired: 112c66ec88fSEmmanuel Vadot - compatible 113c66ec88fSEmmanuel Vadot - reg 1147ef62cebSEmmanuel Vadot - interrupts 115c66ec88fSEmmanuel Vadot - clocks 116c66ec88fSEmmanuel Vadot 117e67e8565SEmmanuel VadotallOf: 118*fac71e4eSEmmanuel Vadot - $ref: watchdog.yaml# 119e67e8565SEmmanuel Vadot 120e67e8565SEmmanuel Vadot - if: 121c66ec88fSEmmanuel Vadot not: 122c66ec88fSEmmanuel Vadot properties: 123c66ec88fSEmmanuel Vadot compatible: 124c66ec88fSEmmanuel Vadot contains: 125c66ec88fSEmmanuel Vadot enum: 126c66ec88fSEmmanuel Vadot - renesas,rza-wdt 127d5b0e70fSEmmanuel Vadot - renesas,rzn1-wdt 128c66ec88fSEmmanuel Vadot then: 129c66ec88fSEmmanuel Vadot required: 130c66ec88fSEmmanuel Vadot - power-domains 131c66ec88fSEmmanuel Vadot - resets 132c66ec88fSEmmanuel Vadot 133e67e8565SEmmanuel Vadot - if: 134e67e8565SEmmanuel Vadot properties: 135e67e8565SEmmanuel Vadot compatible: 136e67e8565SEmmanuel Vadot contains: 137e67e8565SEmmanuel Vadot enum: 138e67e8565SEmmanuel Vadot - renesas,rzg2l-wdt 1397ef62cebSEmmanuel Vadot - renesas,rzv2m-wdt 1407ef62cebSEmmanuel Vadot then: 1417ef62cebSEmmanuel Vadot properties: 1427ef62cebSEmmanuel Vadot clocks: 1437ef62cebSEmmanuel Vadot minItems: 2 1447ef62cebSEmmanuel Vadot clock-names: 1457ef62cebSEmmanuel Vadot minItems: 2 1467ef62cebSEmmanuel Vadot required: 1477ef62cebSEmmanuel Vadot - clock-names 1487ef62cebSEmmanuel Vadot else: 1497ef62cebSEmmanuel Vadot properties: 1507ef62cebSEmmanuel Vadot clocks: 1517ef62cebSEmmanuel Vadot maxItems: 1 1527ef62cebSEmmanuel Vadot 1537ef62cebSEmmanuel Vadot - if: 1547ef62cebSEmmanuel Vadot properties: 1557ef62cebSEmmanuel Vadot compatible: 1567ef62cebSEmmanuel Vadot contains: 1577ef62cebSEmmanuel Vadot enum: 1587ef62cebSEmmanuel Vadot - renesas,rzg2l-wdt 159e67e8565SEmmanuel Vadot then: 160e67e8565SEmmanuel Vadot properties: 161e67e8565SEmmanuel Vadot interrupts: 1627ef62cebSEmmanuel Vadot minItems: 2 163e67e8565SEmmanuel Vadot interrupt-names: 1647ef62cebSEmmanuel Vadot minItems: 2 165e67e8565SEmmanuel Vadot required: 166e67e8565SEmmanuel Vadot - interrupt-names 167e67e8565SEmmanuel Vadot else: 168e67e8565SEmmanuel Vadot properties: 169e67e8565SEmmanuel Vadot interrupts: 170e67e8565SEmmanuel Vadot maxItems: 1 171e67e8565SEmmanuel Vadot 172c66ec88fSEmmanuel VadotadditionalProperties: false 173c66ec88fSEmmanuel Vadot 174c66ec88fSEmmanuel Vadotexamples: 175c66ec88fSEmmanuel Vadot - | 176c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/r8a7795-cpg-mssr.h> 177c66ec88fSEmmanuel Vadot #include <dt-bindings/power/r8a7795-sysc.h> 1787ef62cebSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 179c66ec88fSEmmanuel Vadot wdt0: watchdog@e6020000 { 180c66ec88fSEmmanuel Vadot compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt"; 181c66ec88fSEmmanuel Vadot reg = <0xe6020000 0x0c>; 1827ef62cebSEmmanuel Vadot interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; 183c66ec88fSEmmanuel Vadot clocks = <&cpg CPG_MOD 402>; 184c66ec88fSEmmanuel Vadot power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; 185c66ec88fSEmmanuel Vadot resets = <&cpg 402>; 186c66ec88fSEmmanuel Vadot timeout-sec = <60>; 187c66ec88fSEmmanuel Vadot }; 188