diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-10-03 15:56:29 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-10-22 16:36:33 -0400 |
commit | 9c9b781804e0a278e258f81dfc31c50f80867730 (patch) | |
tree | ed03e43c78b0a08262c0fbab84d0891bfbee908c /Documentation/devicetree/bindings/timer/efm32,timer.txt | |
parent | fdfcab17a26ab2179c9d233f8a1b63e93cff9a4a (diff) |
clocksource: Provide timekeeping for efm32 SoCs
An efm32 features 4 16-bit timers with a 10-bit prescaler. This driver
provides clocksource and clock event device using one timer instance
each.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/timer/efm32,timer.txt')
-rw-r--r-- | Documentation/devicetree/bindings/timer/efm32,timer.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/timer/efm32,timer.txt b/Documentation/devicetree/bindings/timer/efm32,timer.txt new file mode 100644 index 000000000000..97a568f696c9 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/efm32,timer.txt | |||
@@ -0,0 +1,23 @@ | |||
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 | }; | ||