xref: /linux/Documentation/devicetree/bindings/timer/ti,da830-timer.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/timer/ti,da830-timer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI DaVinci Timer
8
9maintainers:
10  - Kousik Sanagavarapu <five231003@gmail.com>
11
12description: |
13  This is a 64-bit timer found on TI's DaVinci architecture devices. The timer
14  can be configured as a general-purpose 64-bit timer, dual general-purpose
15  32-bit timers. When configured as dual 32-bit timers, each half can operate
16  in conjunction (chain mode) or independently (unchained mode) of each other.
17
18  The timer is a free running up-counter and can generate interrupts when the
19  counter reaches preset counter values.
20
21properties:
22  compatible:
23    const: ti,da830-timer
24
25  reg:
26    maxItems: 1
27
28  interrupts:
29    minItems: 2
30    maxItems: 10
31
32  interrupt-names:
33    minItems: 2
34    items:
35      - const: tint12
36      - const: tint34
37      - const: cmpint0
38      - const: cmpint1
39      - const: cmpint2
40      - const: cmpint3
41      - const: cmpint4
42      - const: cmpint5
43      - const: cmpint6
44      - const: cmpint7
45
46  clocks:
47    maxItems: 1
48
49required:
50  - compatible
51  - reg
52  - interrupts
53  - interrupt-names
54  - clocks
55
56additionalProperties: false
57
58examples:
59  - |
60    timer@20000 {
61        compatible = "ti,da830-timer";
62        reg = <0x20000 0x1000>;
63        interrupts = <21>, <22>;
64        interrupt-names = "tint12", "tint34";
65        clocks = <&pll0_auxclk>;
66    };
67
68...
69