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