summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVlad Zakharov <[email protected]>2017-03-21 14:49:47 +0300
committerStefan Roese <[email protected]>2017-03-29 07:38:11 +0200
commit20699e6b7949c1eb174d8315807c050cfd03da9a (patch)
treea58b71074dd8a3b660e0a90a1bcda3b78859c10b /doc
parent15f05610438981297ff628bb87e6d5789ee3fad0 (diff)
drivers: timer: Introduce ARC timer driver
This commit introduces timer driver for ARC. ARC timers are configured via ARC AUX registers so we use special functions to access timer control registers. This driver allows utilization of either timer0 or timer1 depending on which one is available in real hardware. Essentially only existing timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r--doc/device-tree-bindings/timer/arc_timer.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/device-tree-bindings/timer/arc_timer.txt b/doc/device-tree-bindings/timer/arc_timer.txt
new file mode 100644
index 00000000000..5493b21d271
--- /dev/null
+++ b/doc/device-tree-bindings/timer/arc_timer.txt
@@ -0,0 +1,24 @@
+ARC Timer
+
+Required properties:
+
+- compatible : should be "snps,arc-timer".
+- reg : Specifies timer ID, could be either 0 or 1.
+- clocks : Specifies clocks that drives the counter.
+
+Examples:
+
+timer@0 {
+ compatible = "snps,arc-timer";
+ clocks = <&core_clk>;
+ reg = <0>;
+};
+
+timer@1 {
+ compatible = "snps,arc-timer";
+ clocks = <&core_clk>;
+ reg = <1>;
+};
+
+NOTE: if you specify both timers, clocks always should be the same
+as each timer is driven by the same core clock.