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
7title: Apple SoC Watchdog
8
9allOf:
10  - $ref: "watchdog.yaml#"
11
12maintainers:
13  - Sven Peter <sven@svenpeter.dev>
14
15properties:
16  compatible:
17    items:
18      - enum:
19          - apple,t8103-wdt
20          - apple,t6000-wdt
21      - const: apple,wdt
22
23  reg:
24    maxItems: 1
25
26  clocks:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35  - clocks
36  - interrupts
37
38unevaluatedProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/interrupt-controller/apple-aic.h>
43    #include <dt-bindings/interrupt-controller/irq.h>
44
45    wdt: watchdog@50000000 {
46        compatible = "apple,t8103-wdt", "apple,wdt";
47        reg = <0x50000000 0x4000>;
48        clocks = <&clk>;
49        interrupts = <AIC_IRQ 123 IRQ_TYPE_LEVEL_HIGH>;
50    };
51
52...
53