diff options
author | Vlad Zakharov <vzakhar@synopsys.com> | 2017-03-21 11:49:47 (GMT) |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2017-03-24 11:20:55 (GMT) |
commit | ad9b5f77dffaa38ea830af94cd5de3450318f97c (patch) | |
tree | 3bb41583e0f1dada28c659aafabd7cc240c88cba /doc/device-tree-bindings/timer | |
parent | d0ffda8ed208ff2957cd09ccc37e2d6dff81523e (diff) | |
download | u-boot-ad9b5f77dffaa38ea830af94cd5de3450318f97c.tar.xz |
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 <vzakhar@synopsys.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/device-tree-bindings/timer')
-rw-r--r-- | doc/device-tree-bindings/timer/arc_timer.txt | 24 |
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. |