File Index
Files and directories
Sign in
FILE

apple,wdt.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml 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
 7title: Apple SoC Watchdog
 8
 9maintainers:
10  - Sven Peter <sven@svenpeter.dev>
11
12allOf:
13  - $ref: watchdog.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - items:
19          - const: apple,t6020-wdt
20          - const: apple,t8103-wdt
21      - items:
22          - enum:
23              # Do not add additional SoC to this list.
24              - apple,s5l8960x-wdt
25              - apple,t7000-wdt
26              - apple,s8000-wdt
27              - apple,t8010-wdt
28              - apple,t8015-wdt
29              - apple,t8103-wdt
30              - apple,t8112-wdt
31              - apple,t6000-wdt
32          - const: apple,wdt
33
34  reg:
35    maxItems: 1
36
37  clocks:
38    maxItems: 1
39
40  interrupts:
41    maxItems: 1
42
43required:
44  - compatible
45  - reg
46  - clocks
47  - interrupts
48
49unevaluatedProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/interrupt-controller/apple-aic.h>
54    #include <dt-bindings/interrupt-controller/irq.h>
55
56    wdt: watchdog@50000000 {
57        compatible = "apple,t8103-wdt", "apple,wdt";
58        reg = <0x50000000 0x4000>;
59        clocks = <&clk>;
60        interrupts = <AIC_IRQ 123 IRQ_TYPE_LEVEL_HIGH>;
61    };
62
63...
~/ Read-only file preview.