xref: /freebsd/sys/contrib/device-tree/Bindings/timer/spreadtrum,sprd-timer.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotSpreadtrum timers
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe Spreadtrum SC9860 platform provides 3 general-purpose timers.
4*c66ec88fSEmmanuel VadotThese timers can support 32bit or 64bit counter, as well as supporting
5*c66ec88fSEmmanuel Vadotperiod mode or one-shot mode, and they are can be wakeup source
6*c66ec88fSEmmanuel Vadotduring deep sleep.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotRequired properties:
9*c66ec88fSEmmanuel Vadot- compatible: should be "sprd,sc9860-timer" for SC9860 platform.
10*c66ec88fSEmmanuel Vadot- reg: The register address of the timer device.
11*c66ec88fSEmmanuel Vadot- interrupts: Should contain the interrupt for the timer device.
12*c66ec88fSEmmanuel Vadot- clocks: The phandle to the source clock (usually a 32.768 KHz fixed clock).
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel VadotExample:
15*c66ec88fSEmmanuel Vadot	timer@40050000 {
16*c66ec88fSEmmanuel Vadot		compatible = "sprd,sc9860-timer";
17*c66ec88fSEmmanuel Vadot		reg = <0 0x40050000 0 0x20>;
18*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
19*c66ec88fSEmmanuel Vadot		clocks = <&ext_32k>;
20*c66ec88fSEmmanuel Vadot	};
21