xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/renesas,wdt.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
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
7title: Renesas Watchdog Timer (WDT) Controller
8
9maintainers:
10  - Wolfram Sang <wsa+renesas@sang-engineering.com>
11  - Geert Uytterhoeven <geert+renesas@glider.be>
12
13allOf:
14  - $ref: "watchdog.yaml#"
15
16properties:
17  compatible:
18    oneOf:
19      - items:
20          - enum:
21              - renesas,r7s72100-wdt     # RZ/A1
22              - renesas,r7s9210-wdt      # RZ/A2
23          - const: renesas,rza-wdt       # RZ/A
24
25      - items:
26          - enum:
27              - renesas,r8a7742-wdt      # RZ/G1H
28              - renesas,r8a7743-wdt      # RZ/G1M
29              - renesas,r8a7744-wdt      # RZ/G1N
30              - renesas,r8a7745-wdt      # RZ/G1E
31              - renesas,r8a77470-wdt     # RZ/G1C
32              - renesas,r8a7790-wdt      # R-Car H2
33              - renesas,r8a7791-wdt      # R-Car M2-W
34              - renesas,r8a7792-wdt      # R-Car V2H
35              - renesas,r8a7793-wdt      # R-Car M2-N
36              - renesas,r8a7794-wdt      # R-Car E2
37          - const: renesas,rcar-gen2-wdt # R-Car Gen2 and RZ/G1
38
39      - items:
40          - enum:
41              - renesas,r8a774a1-wdt     # RZ/G2M
42              - renesas,r8a774b1-wdt     # RZ/G2N
43              - renesas,r8a774c0-wdt     # RZ/G2E
44              - renesas,r8a774e1-wdt     # RZ/G2H
45              - renesas,r8a7795-wdt      # R-Car H3
46              - renesas,r8a7796-wdt      # R-Car M3-W
47              - renesas,r8a77961-wdt     # R-Car M3-W+
48              - renesas,r8a77965-wdt     # R-Car M3-N
49              - renesas,r8a77970-wdt     # R-Car V3M
50              - renesas,r8a77980-wdt     # R-Car V3H
51              - renesas,r8a77990-wdt     # R-Car E3
52              - renesas,r8a77995-wdt     # R-Car D3
53          - const: renesas,rcar-gen3-wdt # R-Car Gen3 and RZ/G2
54
55  reg:
56    maxItems: 1
57
58  interrupts:
59    maxItems: 1
60
61  clocks:
62    maxItems: 1
63
64  power-domains:
65    maxItems: 1
66
67  resets:
68    maxItems: 1
69
70  timeout-sec: true
71
72required:
73  - compatible
74  - reg
75  - clocks
76
77if:
78  not:
79    properties:
80      compatible:
81        contains:
82          enum:
83            - renesas,rza-wdt
84then:
85  required:
86    - power-domains
87    - resets
88
89additionalProperties: false
90
91examples:
92  - |
93    #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
94    #include <dt-bindings/power/r8a7795-sysc.h>
95    wdt0: watchdog@e6020000 {
96            compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt";
97            reg = <0xe6020000 0x0c>;
98            clocks = <&cpg CPG_MOD 402>;
99            power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
100            resets = <&cpg 402>;
101            timeout-sec = <60>;
102    };
103