ARM: i.MX: Add GPT devicetree Documentation
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 14 Mar 2013 12:08:56 +0000 (13:08 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 9 Apr 2013 14:52:52 +0000 (22:52 +0800)
The GPT binding is already used on i.MX6 and i.MX25, but not yet
documented. Add a binding document for it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Documentation/devicetree/bindings/timer/fsl,imxgpt.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.txt b/Documentation/devicetree/bindings/timer/fsl,imxgpt.txt
new file mode 100644 (file)
index 0000000..9809b11
--- /dev/null
@@ -0,0 +1,18 @@
+Freescale i.MX General Purpose Timer (GPT)
+
+Required properties:
+
+- compatible : should be "fsl,<soc>-gpt"
+- reg : Specifies base physical address and size of the registers.
+- interrupts : A list of 4 interrupts; one per timer channel.
+- clocks : The clocks provided by the SoC to drive the timer.
+
+Example:
+
+gpt1: timer@10003000 {
+       compatible = "fsl,imx27-gpt", "fsl,imx1-gpt";
+       reg = <0x10003000 0x1000>;
+       interrupts = <26>;
+       clocks = <&clks 46>, <&clks 61>;
+       clock-names = "ipg", "per";
+};