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