xref: /freebsd/sys/contrib/device-tree/Bindings/timer/rockchip,rk-timer.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotRockchip rk timer
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: should be:
5*c66ec88fSEmmanuel Vadot  "rockchip,rv1108-timer", "rockchip,rk3288-timer": for Rockchip RV1108
6*c66ec88fSEmmanuel Vadot  "rockchip,rk3036-timer", "rockchip,rk3288-timer": for Rockchip RK3036
7*c66ec88fSEmmanuel Vadot  "rockchip,rk3066-timer", "rockchip,rk3288-timer": for Rockchip RK3066
8*c66ec88fSEmmanuel Vadot  "rockchip,rk3188-timer", "rockchip,rk3288-timer": for Rockchip RK3188
9*c66ec88fSEmmanuel Vadot  "rockchip,rk3228-timer", "rockchip,rk3288-timer": for Rockchip RK3228
10*c66ec88fSEmmanuel Vadot  "rockchip,rk3229-timer", "rockchip,rk3288-timer": for Rockchip RK3229
11*c66ec88fSEmmanuel Vadot  "rockchip,rk3288-timer": for Rockchip RK3288
12*c66ec88fSEmmanuel Vadot  "rockchip,rk3368-timer", "rockchip,rk3288-timer": for Rockchip RK3368
13*c66ec88fSEmmanuel Vadot  "rockchip,rk3399-timer": for Rockchip RK3399
14*c66ec88fSEmmanuel Vadot- reg: base address of the timer register starting with TIMERS CONTROL register
15*c66ec88fSEmmanuel Vadot- interrupts: should contain the interrupts for Timer0
16*c66ec88fSEmmanuel Vadot- clocks : must contain an entry for each entry in clock-names
17*c66ec88fSEmmanuel Vadot- clock-names : must include the following entries:
18*c66ec88fSEmmanuel Vadot  "timer", "pclk"
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotExample:
21*c66ec88fSEmmanuel Vadot	timer: timer@ff810000 {
22*c66ec88fSEmmanuel Vadot		compatible = "rockchip,rk3288-timer";
23*c66ec88fSEmmanuel Vadot		reg = <0xff810000 0x20>;
24*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
25*c66ec88fSEmmanuel Vadot		clocks = <&xin24m>, <&cru PCLK_TIMER>;
26*c66ec88fSEmmanuel Vadot		clock-names = "timer", "pclk";
27*c66ec88fSEmmanuel Vadot	};
28