summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJonas Jensen <jonas.jensen@gmail.com>2013-07-17 10:04:57 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2013-07-18 15:27:47 +0200
commit07862c1cd6675cde2dd4bd64e64d704ea2185b79 (patch)
tree51015cae3e661add432497bf9f44711789742ee4 /Documentation
parent3d77b30efc72d126c2b74070b41a03869611228d (diff)
downloadlinux-stable-07862c1cd6675cde2dd4bd64e64d704ea2185b79.tar.gz
linux-stable-07862c1cd6675cde2dd4bd64e64d704ea2185b79.tar.bz2
linux-stable-07862c1cd6675cde2dd4bd64e64d704ea2185b79.zip
ARM: clocksource: Add support for MOXA ART SoCs
This patch adds an clocksource driver for the main timer(s) found on MOXA ART SoCs. The MOXA ART SoC provides three separate timers with individual count/load/match registers, two are used here: TIMER1: clockevents, used to support oneshot and periodic events TIMER2: set up as a free running counter, used as clocksource Timers are preconfigured by bootloader to count down and interrupt on match or zero. Count increments every APB clock cycle and is automatically reloaded when it reaches zero. Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/timer/moxa,moxart-timer.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/timer/moxa,moxart-timer.txt b/Documentation/devicetree/bindings/timer/moxa,moxart-timer.txt
new file mode 100644
index 000000000000..77c4cfa198ee
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/moxa,moxart-timer.txt
@@ -0,0 +1,17 @@
+MOXA ART timer
+
+Required properties:
+
+- compatible : Should be "moxa,moxart-timer"
+- reg : Should contain registers location and length
+- interrupts : Should contain the timer interrupt number
+- clocks : Should contain phandle for APB clock "clkapb"
+
+Example:
+
+ timer: timer@98400000 {
+ compatible = "moxa,moxart-timer";
+ reg = <0x98400000 0x42>;
+ interrupts = <19 1>;
+ clocks = <&clkapb>;
+ };