xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/allwinner,sun4i-a10-wdt.yaml (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
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
7title: Allwinner A10 Watchdog Device Tree Bindings
8
9allOf:
10  - $ref: "watchdog.yaml#"
11
12maintainers:
13  - Chen-Yu Tsai <wens@csie.org>
14  - Maxime Ripard <mripard@kernel.org>
15
16properties:
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
41required:
42  - compatible
43  - reg
44  - clocks
45  - interrupts
46
47unevaluatedProperties: false
48
49examples:
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...
60