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