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