Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 9 | maintainers: |
| 10 | - Sven Peter <sven@svenpeter.dev> |
| 11 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 12 | allOf: |
| 13 | - $ref: watchdog.yaml# |
| 14 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | ... |