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