xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/renesas,wdt.yaml (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
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              - renesas,r8a779a0-wdt     # R-Car V3U
54          - const: renesas,rcar-gen3-wdt # R-Car Gen3 and RZ/G2
55
56  reg:
57    maxItems: 1
58
59  interrupts:
60    maxItems: 1
61
62  clocks:
63    maxItems: 1
64
65  power-domains:
66    maxItems: 1
67
68  resets:
69    maxItems: 1
70
71  timeout-sec: true
72
73required:
74  - compatible
75  - reg
76  - clocks
77
78if:
79  not:
80    properties:
81      compatible:
82        contains:
83          enum:
84            - renesas,rza-wdt
85then:
86  required:
87    - power-domains
88    - resets
89
90additionalProperties: false
91
92examples:
93  - |
94    #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
95    #include <dt-bindings/power/r8a7795-sysc.h>
96    wdt0: watchdog@e6020000 {
97            compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt";
98            reg = <0xe6020000 0x0c>;
99            clocks = <&cpg CPG_MOD 402>;
100            power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
101            resets = <&cpg 402>;
102            timeout-sec = <60>;
103    };
104