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