Uwe Kleine-König | 9c9b781 | 2013-10-03 21:56:29 +0200 | [diff] [blame] | 1 | * EFM32 timer hardware |
| 2 | |
| 3 | The efm32 Giant Gecko SoCs come with four 16 bit timers. Two counters can be |
| 4 | connected to form a 32 bit counter. Each timer has three Compare/Capture |
| 5 | channels and can be used as PWM or Quadrature Decoder. Available clock sources |
| 6 | are the cpu's HFPERCLK (with a 10-bit prescaler) or an external pin. |
| 7 | |
| 8 | Required properties: |
| 9 | - compatible : Should be efm32,timer |
| 10 | - reg : Address and length of the register set |
| 11 | - clocks : Should contain a reference to the HFPERCLK |
| 12 | |
| 13 | Optional properties: |
| 14 | - interrupts : Reference to the timer interrupt |
| 15 | |
| 16 | Example: |
| 17 | |
| 18 | timer@40010c00 { |
| 19 | compatible = "efm32,timer"; |
| 20 | reg = <0x40010c00 0x400>; |
| 21 | interrupts = <14>; |
| 22 | clocks = <&cmu clk_HFPERCLKTIMER3>; |
| 23 | }; |