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