Merge tag 'xfs-5.10-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / watchdog / arm,sp805.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/watchdog/arm,sp805.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: ARM AMBA Primecell SP805 Watchdog
8
9 maintainers:
10   - Viresh Kumar <vireshk@kernel.org>
11
12 description: |+
13   The Arm SP805 IP implements a watchdog device, which triggers an interrupt
14   after a configurable time period. If that interrupt has not been serviced
15   when the next interrupt would be triggered, the reset signal is asserted.
16
17 allOf:
18   - $ref: /schemas/watchdog/watchdog.yaml#
19
20 # Need a custom select here or 'arm,primecell' will match on lots of nodes
21 select:
22   properties:
23     compatible:
24       contains:
25         const: arm,sp805
26   required:
27     - compatible
28
29 properties:
30   compatible:
31     items:
32       - const: arm,sp805
33       - const: arm,primecell
34
35   interrupts:
36     maxItems: 1
37
38   reg:
39     maxItems: 1
40
41   clocks:
42     description: |
43       Clocks driving the watchdog timer hardware. The first clock is used
44       for the actual watchdog counter. The second clock drives the register
45       interface.
46     minItems: 2
47     maxItems: 2
48
49   clock-names:
50     items:
51       - const: wdog_clk
52       - const: apb_pclk
53
54 required:
55   - compatible
56   - reg
57   - clocks
58   - clock-names
59
60 unevaluatedProperties: false
61
62 examples:
63   - |
64     #include <dt-bindings/interrupt-controller/arm-gic.h>
65     watchdog@66090000 {
66         compatible = "arm,sp805", "arm,primecell";
67         reg = <0x66090000 0x1000>;
68         interrupts = <GIC_SPI 406 IRQ_TYPE_LEVEL_HIGH>;
69         clocks = <&wdt_clk>, <&apb_pclk>;
70         clock-names = "wdog_clk", "apb_pclk";
71     };