summaryrefslogtreecommitdiff
path: root/doc/device-tree-bindings
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-03-24 12:19:30 (GMT)
committerTom Rini <trini@konsulko.com>2017-03-24 12:19:30 (GMT)
commit5cf618ee60a752d058a767372ca1ecb8d9c09b16 (patch)
tree417a20db2bc9bb97bcc54b5d96dc7b1ccd192d6a /doc/device-tree-bindings
parentc1daa4077365747d4f85ed8c93ba4d318d96a4af (diff)
parent3daa7c7b831ddeed0e490a899710a58691ee20c3 (diff)
downloadu-boot-fsl-qoriq-5cf618ee60a752d058a767372ca1ecb8d9c09b16.tar.xz
Merge git://git.denx.de/u-boot-arc
This replaces legacy arch/arc/lib/timer.c implementation and allows us to describe ARC Timers in Device Tree. Among other things that way we may properly inherit Timer's clock from CPU's clock s they really run synchronously.
Diffstat (limited to 'doc/device-tree-bindings')
-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 0000000..5493b21
--- /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.