Skip to content

Commit 2e710fc

Browse files
Anson-HuangDaniel Lezcano
authored andcommitted
dt-bindings: timer: gpt: update binding doc
The i.MX GPT timer driver binding doc is out of date, update it according to current GPT timer driver. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 7d10532 commit 2e710fc

1 file changed

Lines changed: 33 additions & 6 deletions

File tree

‎Documentation/devicetree/bindings/timer/fsl,imxgpt.txt‎

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,44 @@ Freescale i.MX General Purpose Timer (GPT)
22

33
Required properties:
44

5-
- compatible : should be "fsl,<soc>-gpt"
6-
- reg : Specifies base physical address and size of the registers.
7-
- interrupts : A list of 4 interrupts; one per timer channel.
8-
- clocks : The clocks provided by the SoC to drive the timer.
5+
- compatible : should be one of following:
6+
for i.MX1:
7+
- "fsl,imx1-gpt";
8+
for i.MX21:
9+
- "fsl,imx21-gpt";
10+
for i.MX27:
11+
- "fsl,imx27-gpt", "fsl,imx21-gpt";
12+
for i.MX31:
13+
- "fsl,imx31-gpt";
14+
for i.MX25:
15+
- "fsl,imx25-gpt", "fsl,imx31-gpt";
16+
for i.MX50:
17+
- "fsl,imx50-gpt", "fsl,imx31-gpt";
18+
for i.MX51:
19+
- "fsl,imx51-gpt", "fsl,imx31-gpt";
20+
for i.MX53:
21+
- "fsl,imx53-gpt", "fsl,imx31-gpt";
22+
for i.MX6Q:
23+
- "fsl,imx6q-gpt", "fsl,imx31-gpt";
24+
for i.MX6DL:
25+
- "fsl,imx6dl-gpt";
26+
for i.MX6SL:
27+
- "fsl,imx6sl-gpt", "fsl,imx6dl-gpt";
28+
for i.MX6SX:
29+
- "fsl,imx6sx-gpt", "fsl,imx6dl-gpt";
30+
- reg : specifies base physical address and size of the registers.
31+
- interrupts : should be the gpt interrupt.
32+
- clocks : the clocks provided by the SoC to drive the timer, must contain
33+
an entry for each entry in clock-names.
34+
- clock-names : must include "ipg" entry first, then "per" entry.
935

1036
Example:
1137

1238
gpt1: timer@10003000 {
13-
compatible = "fsl,imx27-gpt", "fsl,imx1-gpt";
39+
compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
1440
reg = <0x10003000 0x1000>;
1541
interrupts = <26>;
16-
clocks = <&clks 46>, <&clks 61>;
42+
clocks = <&clks IMX27_CLK_GPT1_IPG_GATE>,
43+
<&clks IMX27_CLK_PER1_GATE>;
1744
clock-names = "ipg", "per";
1845
};

0 commit comments

Comments
 (0)