xref: /freebsd/sys/contrib/device-tree/Bindings/timer/energymicro,efm32-timer.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* EFM32 timer hardware
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe efm32 Giant Gecko SoCs come with four 16 bit timers. Two counters can be
4*c66ec88fSEmmanuel Vadotconnected to form a 32 bit counter. Each timer has three Compare/Capture
5*c66ec88fSEmmanuel Vadotchannels and can be used as PWM or Quadrature Decoder. Available clock sources
6*c66ec88fSEmmanuel Vadotare the cpu's HFPERCLK (with a 10-bit prescaler) or an external pin.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotRequired properties:
9*c66ec88fSEmmanuel Vadot- compatible : Should be "energymicro,efm32-timer"
10*c66ec88fSEmmanuel Vadot- reg : Address and length of the register set
11*c66ec88fSEmmanuel Vadot- clocks : Should contain a reference to the HFPERCLK
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotOptional properties:
14*c66ec88fSEmmanuel Vadot- interrupts : Reference to the timer interrupt
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample:
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadottimer@40010c00 {
19*c66ec88fSEmmanuel Vadot	compatible = "energymicro,efm32-timer";
20*c66ec88fSEmmanuel Vadot	reg = <0x40010c00 0x400>;
21*c66ec88fSEmmanuel Vadot	interrupts = <14>;
22*c66ec88fSEmmanuel Vadot	clocks = <&cmu clk_HFPERCLKTIMER3>;
23*c66ec88fSEmmanuel Vadot};
24