xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/apple,wdt.yaml (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
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,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
33required:
34  - compatible
35  - reg
36  - clocks
37  - interrupts
38
39unevaluatedProperties: false
40
41examples:
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...
54