xref: /linux/Documentation/devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1d9b51093SMaxime Ripard# SPDX-License-Identifier: GPL-2.0
2d9b51093SMaxime Ripard%YAML 1.2
3d9b51093SMaxime Ripard---
4d9b51093SMaxime Ripard$id: http://devicetree.org/schemas/timer/allwinner,sun5i-a13-hstimer.yaml#
5d9b51093SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml#
6d9b51093SMaxime Ripard
7*dd3cb467SAndrew Lunntitle: Allwinner A13 High-Speed Timer
8d9b51093SMaxime Ripard
9d9b51093SMaxime Ripardmaintainers:
10d9b51093SMaxime Ripard  - Chen-Yu Tsai <wens@csie.org>
115c7404bbSMaxime Ripard  - Maxime Ripard <mripard@kernel.org>
12d9b51093SMaxime Ripard
13d9b51093SMaxime Ripardproperties:
14d9b51093SMaxime Ripard  compatible:
15d9b51093SMaxime Ripard    oneOf:
16d9b51093SMaxime Ripard      - const: allwinner,sun5i-a13-hstimer
17d9b51093SMaxime Ripard      - const: allwinner,sun7i-a20-hstimer
18d9b51093SMaxime Ripard      - items:
19d9b51093SMaxime Ripard          - const: allwinner,sun6i-a31-hstimer
20d9b51093SMaxime Ripard          - const: allwinner,sun7i-a20-hstimer
21d9b51093SMaxime Ripard
22d9b51093SMaxime Ripard  reg:
23d9b51093SMaxime Ripard    maxItems: 1
24d9b51093SMaxime Ripard
25d9b51093SMaxime Ripard  interrupts:
26d9b51093SMaxime Ripard    minItems: 2
27d9b51093SMaxime Ripard    items:
28d9b51093SMaxime Ripard      - description: Timer 0 Interrupt
29d9b51093SMaxime Ripard      - description: Timer 1 Interrupt
30d9b51093SMaxime Ripard      - description: Timer 2 Interrupt
31d9b51093SMaxime Ripard      - description: Timer 3 Interrupt
32d9b51093SMaxime Ripard
33d9b51093SMaxime Ripard  clocks:
34d9b51093SMaxime Ripard    maxItems: 1
35d9b51093SMaxime Ripard
36d9b51093SMaxime Ripard  resets:
37d9b51093SMaxime Ripard    maxItems: 1
38d9b51093SMaxime Ripard
39d9b51093SMaxime Ripardrequired:
40d9b51093SMaxime Ripard  - compatible
41d9b51093SMaxime Ripard  - reg
42d9b51093SMaxime Ripard  - interrupts
43d9b51093SMaxime Ripard  - clocks
44d9b51093SMaxime Ripard
45d9b51093SMaxime Ripardif:
46d9b51093SMaxime Ripard  properties:
47d9b51093SMaxime Ripard    compatible:
48d9b51093SMaxime Ripard      const: allwinner,sun5i-a13-hstimer
49d9b51093SMaxime Ripard
50d9b51093SMaxime Ripardthen:
51d9b51093SMaxime Ripard  properties:
52d9b51093SMaxime Ripard    interrupts:
53d9b51093SMaxime Ripard      minItems: 2
54d9b51093SMaxime Ripard      maxItems: 2
55d9b51093SMaxime Ripard
56d9b51093SMaxime Ripardelse:
57d9b51093SMaxime Ripard  properties:
58d9b51093SMaxime Ripard    interrupts:
59d9b51093SMaxime Ripard      minItems: 4
60d9b51093SMaxime Ripard      maxItems: 4
61d9b51093SMaxime Ripard
62d9b51093SMaxime RipardadditionalProperties: false
63d9b51093SMaxime Ripard
64d9b51093SMaxime Ripardexamples:
65d9b51093SMaxime Ripard  - |
66d9b51093SMaxime Ripard    timer@1c60000 {
67d9b51093SMaxime Ripard        compatible = "allwinner,sun7i-a20-hstimer";
68d9b51093SMaxime Ripard        reg = <0x01c60000 0x1000>;
69d9b51093SMaxime Ripard        interrupts = <0 51 1>,
70d9b51093SMaxime Ripard                     <0 52 1>,
71d9b51093SMaxime Ripard                     <0 53 1>,
72d9b51093SMaxime Ripard                     <0 54 1>;
73d9b51093SMaxime Ripard        clocks = <&ahb1_gates 19>;
74d9b51093SMaxime Ripard        resets = <&ahb1rst 19>;
75d9b51093SMaxime Ripard    };
76d9b51093SMaxime Ripard
77d9b51093SMaxime Ripard...
78