xref: /freebsd/sys/contrib/device-tree/Bindings/timer/allwinner,sun4i-a10-timer.yaml (revision 643ac419fafba89f5adda0e0ea75b538727453fb)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/timer/allwinner,sun4i-a10-timer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 Timer Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13properties:
14  compatible:
15    enum:
16      - allwinner,sun4i-a10-timer
17      - allwinner,sun8i-a23-timer
18      - allwinner,sun8i-v3s-timer
19      - allwinner,suniv-f1c100s-timer
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    minItems: 2
26    maxItems: 6
27    description:
28      List of timers interrupts
29
30  clocks:
31    maxItems: 1
32
33allOf:
34  - if:
35      properties:
36        compatible:
37          items:
38            const: allwinner,sun4i-a10-timer
39
40    then:
41      properties:
42        interrupts:
43          minItems: 6
44          maxItems: 6
45
46  - if:
47      properties:
48        compatible:
49          items:
50            const: allwinner,sun8i-a23-timer
51
52    then:
53      properties:
54        interrupts:
55          minItems: 2
56          maxItems: 2
57
58  - if:
59      properties:
60        compatible:
61          items:
62            const: allwinner,sun8i-v3s-timer
63
64    then:
65      properties:
66        interrupts:
67          minItems: 3
68          maxItems: 3
69
70  - if:
71      properties:
72        compatible:
73          items:
74            const: allwinner,suniv-f1c100s-timer
75
76    then:
77      properties:
78        interrupts:
79          minItems: 3
80          maxItems: 3
81
82required:
83  - compatible
84  - reg
85  - interrupts
86  - clocks
87
88additionalProperties: false
89
90examples:
91  - |
92    timer@1c20c00 {
93        compatible = "allwinner,sun4i-a10-timer";
94        reg = <0x01c20c00 0x400>;
95        interrupts = <22>,
96                     <23>,
97                     <24>,
98                     <25>,
99                     <67>,
100                     <68>;
101        clocks = <&osc>;
102    };
103
104...
105