xref: /freebsd/sys/contrib/device-tree/Bindings/timer/fsl,imxgpt.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/fsl,imxgpt.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: Freescale i.MX General Purpose Timer (GPT)
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Sascha Hauer <s.hauer@pengutronix.de>
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadotproperties:
13*c66ec88fSEmmanuel Vadot  compatible:
14*c66ec88fSEmmanuel Vadot    oneOf:
15*c66ec88fSEmmanuel Vadot      - const: fsl,imx1-gpt
16*c66ec88fSEmmanuel Vadot      - const: fsl,imx21-gpt
17*c66ec88fSEmmanuel Vadot      - items:
18*c66ec88fSEmmanuel Vadot          - const: fsl,imx27-gpt
19*c66ec88fSEmmanuel Vadot          - const: fsl,imx21-gpt
20*c66ec88fSEmmanuel Vadot      - const: fsl,imx31-gpt
21*c66ec88fSEmmanuel Vadot      - items:
22*c66ec88fSEmmanuel Vadot          - enum:
23*c66ec88fSEmmanuel Vadot              - fsl,imx25-gpt
24*c66ec88fSEmmanuel Vadot              - fsl,imx50-gpt
25*c66ec88fSEmmanuel Vadot              - fsl,imx51-gpt
26*c66ec88fSEmmanuel Vadot              - fsl,imx53-gpt
27*c66ec88fSEmmanuel Vadot              - fsl,imx6q-gpt
28*c66ec88fSEmmanuel Vadot          - const: fsl,imx31-gpt
29*c66ec88fSEmmanuel Vadot      - const: fsl,imx6dl-gpt
30*c66ec88fSEmmanuel Vadot      - items:
31*c66ec88fSEmmanuel Vadot          - enum:
32*c66ec88fSEmmanuel Vadot              - fsl,imx6sl-gpt
33*c66ec88fSEmmanuel Vadot              - fsl,imx6sx-gpt
34*c66ec88fSEmmanuel Vadot          - const: fsl,imx6dl-gpt
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot  reg:
37*c66ec88fSEmmanuel Vadot    maxItems: 1
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot  interrupts:
40*c66ec88fSEmmanuel Vadot    maxItems: 1
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadot  clocks:
43*c66ec88fSEmmanuel Vadot    items:
44*c66ec88fSEmmanuel Vadot      - description: SoC GPT ipg clock
45*c66ec88fSEmmanuel Vadot      - description: SoC GPT per clock
46*c66ec88fSEmmanuel Vadot
47*c66ec88fSEmmanuel Vadot  clock-names:
48*c66ec88fSEmmanuel Vadot    items:
49*c66ec88fSEmmanuel Vadot      - const: ipg
50*c66ec88fSEmmanuel Vadot      - const: per
51*c66ec88fSEmmanuel Vadot
52*c66ec88fSEmmanuel Vadotrequired:
53*c66ec88fSEmmanuel Vadot  - compatible
54*c66ec88fSEmmanuel Vadot  - reg
55*c66ec88fSEmmanuel Vadot  - interrupts
56*c66ec88fSEmmanuel Vadot  - clocks
57*c66ec88fSEmmanuel Vadot  - clock-names
58*c66ec88fSEmmanuel Vadot
59*c66ec88fSEmmanuel VadotadditionalProperties: false
60*c66ec88fSEmmanuel Vadot
61*c66ec88fSEmmanuel Vadotexamples:
62*c66ec88fSEmmanuel Vadot  - |
63*c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/imx27-clock.h>
64*c66ec88fSEmmanuel Vadot
65*c66ec88fSEmmanuel Vadot    timer@10003000 {
66*c66ec88fSEmmanuel Vadot        compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
67*c66ec88fSEmmanuel Vadot        reg = <0x10003000 0x1000>;
68*c66ec88fSEmmanuel Vadot        interrupts = <26>;
69*c66ec88fSEmmanuel Vadot        clocks = <&clks IMX27_CLK_GPT1_IPG_GATE>,
70*c66ec88fSEmmanuel Vadot                 <&clks IMX27_CLK_PER1_GATE>;
71*c66ec88fSEmmanuel Vadot        clock-names = "ipg", "per";
72*c66ec88fSEmmanuel Vadot    };
73