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