xref: /freebsd/sys/contrib/device-tree/Bindings/timer/brcm,bcm2835-system-timer.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotBCM2835 System Timer
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe System Timer peripheral provides four 32-bit timer channels and a
4*c66ec88fSEmmanuel Vadotsingle 64-bit free running counter. Each channel has an output compare
5*c66ec88fSEmmanuel Vadotregister, which is compared against the 32 least significant bits of the
6*c66ec88fSEmmanuel Vadotfree running counter values, and generates an interrupt.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotRequired properties:
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel Vadot- compatible : should be "brcm,bcm2835-system-timer"
11*c66ec88fSEmmanuel Vadot- reg : Specifies base physical address and size of the registers.
12*c66ec88fSEmmanuel Vadot- interrupts : A list of 4 interrupt sinks; one per timer channel.
13*c66ec88fSEmmanuel Vadot- clock-frequency : The frequency of the clock that drives the counter, in Hz.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotExample:
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadottimer {
18*c66ec88fSEmmanuel Vadot	compatible = "brcm,bcm2835-system-timer";
19*c66ec88fSEmmanuel Vadot	reg = <0x7e003000 0x1000>;
20*c66ec88fSEmmanuel Vadot	interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
21*c66ec88fSEmmanuel Vadot	clock-frequency = <1000000>;
22*c66ec88fSEmmanuel Vadot};
23