xref: /linux/Documentation/devicetree/bindings/timer/img,pistachio-gptimer.txt (revision 24bce201d79807b668bf9d9e0aca801c5c0d5f78)
1* Pistachio general-purpose timer based clocksource
2
3Required properties:
4 - compatible: "img,pistachio-gptimer".
5 - reg: Address range of the timer registers.
6 - interrupts: An interrupt for each of the four timers
7 - clocks: Should contain a clock specifier for each entry in clock-names
8 - clock-names: Should contain the following entries:
9                "sys", interface clock
10                "slow", slow counter clock
11                "fast", fast counter clock
12 - img,cr-periph: Must contain a phandle to the peripheral control
13		  syscon node.
14
15Example:
16	timer: timer@18102000 {
17		compatible = "img,pistachio-gptimer";
18		reg = <0x18102000 0x100>;
19		interrupts = <GIC_SHARED 60 IRQ_TYPE_LEVEL_HIGH>,
20			     <GIC_SHARED 61 IRQ_TYPE_LEVEL_HIGH>,
21			     <GIC_SHARED 62 IRQ_TYPE_LEVEL_HIGH>,
22			     <GIC_SHARED 63 IRQ_TYPE_LEVEL_HIGH>;
23		clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>,
24		         <&clk_periph PERIPH_CLK_COUNTER_SLOW>,
25			 <&cr_periph SYS_CLK_TIMER>;
26		clock-names = "fast", "slow", "sys";
27		img,cr-periph = <&cr_periph>;
28	};
29