diff mbox

[v2,14/14] Document: add device tree binding file for sp804

Message ID 1363108124-17484-15-git-send-email-haojian.zhuang@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Haojian Zhuang March 12, 2013, 5:08 p.m. UTC
Add binding document for sp804 dual timer.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
---
 .../devicetree/bindings/timer/arm,sp804.txt        |   27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/timer/arm,sp804.txt

Comments

Arnd Bergmann March 12, 2013, 7:02 p.m. UTC | #1
On Tuesday 12 March 2013, Haojian Zhuang wrote:
> Add binding document for sp804 dual timer.
> 
> Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>

Ah, I was missing this one earlier when looking at patch 2. I would actually
suggest combining both into a single patch.

	Arnd
Haojian Zhuang March 13, 2013, 1:45 a.m. UTC | #2
On 13 March 2013 03:02, Arnd Bergmann <arnd@arndb.de> wrote:
> On Tuesday 12 March 2013, Haojian Zhuang wrote:
>> Add binding document for sp804 dual timer.
>>
>> Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
>
> Ah, I was missing this one earlier when looking at patch 2. I would actually
> suggest combining both into a single patch.
>
>         Arnd

OK. I'll merge it into the patch #2.
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/timer/arm,sp804.txt b/Documentation/devicetree/bindings/timer/arm,sp804.txt
new file mode 100644
index 0000000..ec1ae45
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/arm,sp804.txt
@@ -0,0 +1,27 @@ 
+ARM sp804 Dual Timers
+---------------------------------------
+
+Required properties:
+- compatible: Should be "arm,sp804" & "arm,primecell"
+- interrupts: Should contain the list of Dual Timer interrupts
+	interrupts = <0 0 4>, <0 1 4>;
+- reg: Should contain location and length for dual timer register.
+- clocks: clock driving the dual timer hardware
+	clocks = <&timclk0 &timclk1>;
+
+Optional properties:
+- arm,sp804-clocksource: Should contain the register offset of TIMER1 or
+  TIMER2 in Dual Timer Controller.
+	arm,sp804-clocksource = <0x20>;
+
+Example:
+
+	timer0: timer@fc800000 {
+		compatible = "arm,sp804", "arm,primecell";
+		reg = <0xfc800000 0x1000>;
+		/* timer00 & timer01 */
+		interrupts = <0 0 4>, <0 1 4>;
+		clocks = <&timclk0 &timclk1>;
+		clock-names = "apb_pclk";
+		status = "disabled";
+	};