summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-22 22:28:53 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-10-23 07:37:03 +0800
commita54915d8a13ce800645655728a2f203aeda98740 (patch)
treeb78265a3c855d30a49a75c9271ae63cd5bd6e1c8 /doc
parent8f41b8785be20da320a544206f8c6e4f352bc9f4 (diff)
downloadblackbird-obmc-uboot-a54915d8a13ce800645655728a2f203aeda98740.tar.gz
blackbird-obmc-uboot-a54915d8a13ce800645655728a2f203aeda98740.zip
nios2: convert altera timer to driver model
Convert altera timer to driver model. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Chin Liang See <clsee@altera.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/device-tree-bindings/timer/altera_timer.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/device-tree-bindings/timer/altera_timer.txt b/doc/device-tree-bindings/timer/altera_timer.txt
new file mode 100644
index 0000000000..904a5846d7
--- /dev/null
+++ b/doc/device-tree-bindings/timer/altera_timer.txt
@@ -0,0 +1,19 @@
+Altera Timer
+
+Required properties:
+
+- compatible : should be "altr,timer-1.0"
+- reg : Specifies base physical address and size of the registers.
+- interrupt-parent: phandle of the interrupt controller
+- interrupts : Should contain the timer interrupt number
+- clock-frequency : The frequency of the clock that drives the counter, in Hz.
+
+Example:
+
+timer {
+ compatible = "altr,timer-1.0";
+ reg = <0x00400000 0x00000020>;
+ interrupt-parent = <&cpu>;
+ interrupts = <11>;
+ clock-frequency = <125000000>;
+};
OpenPOWER on IntegriCloud