xref: /openbmc/linux/Documentation/devicetree/bindings/powerpc/fsl/mpic-timer.txt (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*180076cbSScott Wood* Freescale MPIC timers
2*180076cbSScott Wood
3*180076cbSScott WoodRequired properties:
4*180076cbSScott Wood- compatible: "fsl,mpic-global-timer"
5*180076cbSScott Wood
6*180076cbSScott Wood- reg : Contains two regions.  The first is the main timer register bank
7*180076cbSScott Wood  (GTCCRxx, GTBCRxx, GTVPRxx, GTDRxx).  The second is the timer control
8*180076cbSScott Wood  register (TCRx) for the group.
9*180076cbSScott Wood
10*180076cbSScott Wood- fsl,available-ranges: use <start count> style section to define which
11*180076cbSScott Wood  timer interrupts can be used.  This property is optional; without this,
12*180076cbSScott Wood  all timers within the group can be used.
13*180076cbSScott Wood
14*180076cbSScott Wood- interrupts: one interrupt per timer in the group, in order, starting
15*180076cbSScott Wood  with timer zero.  If timer-available-ranges is present, only the
16*180076cbSScott Wood  interrupts that correspond to available timers shall be present.
17*180076cbSScott Wood
18*180076cbSScott WoodExample:
19*180076cbSScott Wood	/* Note that this requires #interrupt-cells to be 4 */
20*180076cbSScott Wood	timer0: timer@41100 {
21*180076cbSScott Wood		compatible = "fsl,mpic-global-timer";
22*180076cbSScott Wood		reg = <0x41100 0x100 0x41300 4>;
23*180076cbSScott Wood
24*180076cbSScott Wood		/* Another AMP partition is using timers 0 and 1 */
25*180076cbSScott Wood		fsl,available-ranges = <2 2>;
26*180076cbSScott Wood
27*180076cbSScott Wood		interrupts = <2 0 3 0
28*180076cbSScott Wood		              3 0 3 0>;
29*180076cbSScott Wood	};
30*180076cbSScott Wood
31*180076cbSScott Wood	timer1: timer@42100 {
32*180076cbSScott Wood		compatible = "fsl,mpic-global-timer";
33*180076cbSScott Wood		reg = <0x42100 0x100 0x42300 4>;
34*180076cbSScott Wood		interrupts = <4 0 3 0
35*180076cbSScott Wood		              5 0 3 0
36*180076cbSScott Wood		              6 0 3 0
37*180076cbSScott Wood		              7 0 3 0>;
38*180076cbSScott Wood	};
39