Message ID | 1363108124-17484-15-git-send-email-haojian.zhuang@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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
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 --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"; + };
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