xref: /freebsd/sys/contrib/device-tree/Bindings/timer/fsl,imxgpt.yaml (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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,imxrt1050-gpt
35              - fsl,imxrt1170-gpt
36          - const: fsl,imx6dl-gpt
37
38  reg:
39    maxItems: 1
40
41  interrupts:
42    maxItems: 1
43
44  clocks:
45    items:
46      - description: SoC GPT ipg clock
47      - description: SoC GPT per clock
48
49  clock-names:
50    items:
51      - const: ipg
52      - const: per
53
54required:
55  - compatible
56  - reg
57  - interrupts
58  - clocks
59  - clock-names
60
61additionalProperties: false
62
63examples:
64  - |
65    #include <dt-bindings/clock/imx27-clock.h>
66
67    timer@10003000 {
68        compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
69        reg = <0x10003000 0x1000>;
70        interrupts = <26>;
71        clocks = <&clks IMX27_CLK_GPT1_IPG_GATE>,
72                 <&clks IMX27_CLK_PER1_GATE>;
73        clock-names = "ipg", "per";
74    };
75