1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/watchdog/faraday,ftwdt010.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Faraday Technology FTWDT010 watchdog
8
9maintainers:
10  - Linus Walleij <linus.walleij@linaro.org>
11  - Corentin Labbe <clabbe@baylibre.com>
12
13description: |
14  This is an IP part from Faraday Technology found in the Gemini
15  SoCs and others.
16
17allOf:
18  - $ref: "watchdog.yaml#"
19
20properties:
21  compatible:
22    oneOf:
23      - const: faraday,ftwdt010
24      - items:
25          - enum:
26              - cortina,gemini-watchdog
27              - moxa,moxart-watchdog
28          - const: faraday,ftwdt010
29
30  reg:
31    maxItems: 1
32
33  resets:
34    maxItems: 1
35
36  clocks:
37    maxItems: 1
38
39  clock-names:
40    const: PCLK
41
42  interrupts:
43    maxItems: 1
44
45required:
46  - compatible
47  - reg
48
49unevaluatedProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/interrupt-controller/irq.h>
54    watchdog@41000000 {
55      compatible = "faraday,ftwdt010";
56      reg = <0x41000000 0x1000>;
57      interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
58      timeout-secs = <5>;
59    };
60  - |
61    watchdog: watchdog@98500000 {
62      compatible = "moxa,moxart-watchdog", "faraday,ftwdt010";
63      reg = <0x98500000 0x10>;
64      clocks = <&clk_apb>;
65      clock-names = "PCLK";
66    };
67...
68