GNU Linux-libre 5.15.137-gnu
[releases.git] / Documentation / devicetree / bindings / watchdog / allwinner,sun4i-a10-wdt.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/watchdog/allwinner,sun4i-a10-wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Allwinner A10 Watchdog Device Tree Bindings
8
9 allOf:
10   - $ref: "watchdog.yaml#"
11
12 maintainers:
13   - Chen-Yu Tsai <wens@csie.org>
14   - Maxime Ripard <mripard@kernel.org>
15
16 properties:
17   compatible:
18     oneOf:
19       - const: allwinner,sun4i-a10-wdt
20       - const: allwinner,sun6i-a31-wdt
21       - items:
22           - enum:
23               - allwinner,sun50i-a64-wdt
24               - allwinner,sun50i-a100-wdt
25               - allwinner,sun50i-h6-wdt
26               - allwinner,sun50i-h616-wdt
27           - const: allwinner,sun6i-a31-wdt
28       - items:
29           - const: allwinner,suniv-f1c100s-wdt
30           - const: allwinner,sun4i-a10-wdt
31
32   reg:
33     maxItems: 1
34
35   clocks:
36     maxItems: 1
37
38   interrupts:
39     maxItems: 1
40
41 required:
42   - compatible
43   - reg
44   - clocks
45   - interrupts
46
47 unevaluatedProperties: false
48
49 examples:
50   - |
51     wdt: watchdog@1c20c90 {
52         compatible = "allwinner,sun4i-a10-wdt";
53         reg = <0x01c20c90 0x10>;
54         interrupts = <24>;
55         clocks = <&osc24M>;
56         timeout-sec = <10>;
57     };
58
59 ...