xref: /openbmc/linux/Documentation/devicetree/bindings/timer/ti,davinci-timer.txt (revision 3eb66e91a25497065c5322b1268cbc3953642227)
1*862ceabbSDavid Lechner* Device tree bindings for Texas Instruments DaVinci timer
2*862ceabbSDavid Lechner
3*862ceabbSDavid LechnerThis document provides bindings for the 64-bit timer in the DaVinci
4*862ceabbSDavid Lechnerarchitecture devices. The timer can be configured as a general-purpose 64-bit
5*862ceabbSDavid Lechnertimer, dual general-purpose 32-bit timers. When configured as dual 32-bit
6*862ceabbSDavid Lechnertimers, each half can operate in conjunction (chain mode) or independently
7*862ceabbSDavid Lechner(unchained mode) of each other.
8*862ceabbSDavid Lechner
9*862ceabbSDavid LechnerThe timer is a free running up-counter and can generate interrupts when the
10*862ceabbSDavid Lechnercounter reaches preset counter values.
11*862ceabbSDavid Lechner
12*862ceabbSDavid LechnerAlso see ../watchdog/davinci-wdt.txt for timers that are configurable as
13*862ceabbSDavid Lechnerwatchdog timers.
14*862ceabbSDavid Lechner
15*862ceabbSDavid LechnerRequired properties:
16*862ceabbSDavid Lechner
17*862ceabbSDavid Lechner- compatible : should be "ti,da830-timer".
18*862ceabbSDavid Lechner- reg : specifies base physical address and count of the registers.
19*862ceabbSDavid Lechner- interrupts : interrupts generated by the timer.
20*862ceabbSDavid Lechner- interrupt-names: should be "tint12", "tint34", "cmpint0", "cmpint1",
21*862ceabbSDavid Lechner		   "cmpint2", "cmpint3", "cmpint4", "cmpint5", "cmpint6",
22*862ceabbSDavid Lechner		   "cmpint7" ("cmpintX" may be omitted if not present in the
23*862ceabbSDavid Lechner		   hardware).
24*862ceabbSDavid Lechner- clocks : the clock feeding the timer clock.
25*862ceabbSDavid Lechner
26*862ceabbSDavid LechnerExample:
27*862ceabbSDavid Lechner
28*862ceabbSDavid Lechner	clocksource: timer@20000 {
29*862ceabbSDavid Lechner		compatible = "ti,da830-timer";
30*862ceabbSDavid Lechner		reg = <0x20000 0x1000>;
31*862ceabbSDavid Lechner		interrupts = <21>, <22>, <74>, <75>, <76>, <77>, <78>, <79>,
32*862ceabbSDavid Lechner			     <80>, <81>;
33*862ceabbSDavid Lechner		interrupt-names = "tint12", "tint34", "cmpint0", "cmpint1",
34*862ceabbSDavid Lechner				  "cmpint2", "cmpint3", "cmpint4", "cmpint5",
35*862ceabbSDavid Lechner				  "cmpint6", "cmpint7";
36*862ceabbSDavid Lechner		clocks = <&pll0_auxclk>;
37*862ceabbSDavid Lechner	};
38