treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / timer / allwinner,sun4i-a10-timer.yaml
blob23e989e0976630382d70ab5ddaeeb3b4c3542b61
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#
7 title: Allwinner A10 Timer Device Tree Bindings
9 maintainers:
10   - Chen-Yu Tsai <wens@csie.org>
11   - Maxime Ripard <mripard@kernel.org>
13 properties:
14   compatible:
15     enum:
16       - allwinner,sun4i-a10-timer
17       - allwinner,sun8i-a23-timer
18       - allwinner,sun8i-v3s-timer
19       - allwinner,suniv-f1c100s-timer
21   reg:
22     maxItems: 1
24   interrupts:
25     description:
26       List of timers interrupts
28   clocks:
29     maxItems: 1
31 allOf:
32   - if:
33       properties:
34         compatible:
35           items:
36             const: allwinner,sun4i-a10-timer
38     then:
39       properties:
40         interrupts:
41           minItems: 6
42           maxItems: 6
44   - if:
45       properties:
46         compatible:
47           items:
48             const: allwinner,sun8i-a23-timer
50     then:
51       properties:
52         interrupts:
53           minItems: 2
54           maxItems: 2
56   - if:
57       properties:
58         compatible:
59           items:
60             const: allwinner,sun8i-v3s-timer
62     then:
63       properties:
64         interrupts:
65           minItems: 3
66           maxItems: 3
68   - if:
69       properties:
70         compatible:
71           items:
72             const: allwinner,suniv-f1c100s-timer
74     then:
75       properties:
76         interrupts:
77           minItems: 3
78           maxItems: 3
80 required:
81   - compatible
82   - reg
83   - interrupts
84   - clocks
86 additionalProperties: false
88 examples:
89   - |
90     timer {
91         compatible = "allwinner,sun4i-a10-timer";
92         reg = <0x01c20c00 0x400>;
93         interrupts = <22>,
94                      <23>,
95                      <24>,
96                      <25>,
97                      <67>,
98                      <68>;
99         clocks = <&osc>;
100     };