Linux 6.7-rc7
[linux-modified.git] / Documentation / devicetree / bindings / watchdog / apple,wdt.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/watchdog/apple,wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Apple SoC Watchdog
8
9 allOf:
10   - $ref: watchdog.yaml#
11
12 maintainers:
13   - Sven Peter <sven@svenpeter.dev>
14
15 properties:
16   compatible:
17     items:
18       - enum:
19           - apple,t8103-wdt
20           - apple,t8112-wdt
21           - apple,t6000-wdt
22       - const: apple,wdt
23
24   reg:
25     maxItems: 1
26
27   clocks:
28     maxItems: 1
29
30   interrupts:
31     maxItems: 1
32
33 required:
34   - compatible
35   - reg
36   - clocks
37   - interrupts
38
39 unevaluatedProperties: false
40
41 examples:
42   - |
43     #include <dt-bindings/interrupt-controller/apple-aic.h>
44     #include <dt-bindings/interrupt-controller/irq.h>
45
46     wdt: watchdog@50000000 {
47         compatible = "apple,t8103-wdt", "apple,wdt";
48         reg = <0x50000000 0x4000>;
49         clocks = <&clk>;
50         interrupts = <AIC_IRQ 123 IRQ_TYPE_LEVEL_HIGH>;
51     };
52
53 ...