Skip to content

Commit df8cad6

Browse files
Anson-Huangrobherring
authored andcommitted
dt-bindings: timer: Convert i.MX GPT to json-schema
Convert the i.MX GPT binding to DT schema format using json-schema. Signed-off-by: Anson Huang <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent fafcc40 commit df8cad6

File tree

2 files changed

+72
-45
lines changed

2 files changed

+72
-45
lines changed

Documentation/devicetree/bindings/timer/fsl,imxgpt.txt

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
7+
title: Freescale i.MX General Purpose Timer (GPT)
8+
9+
maintainers:
10+
- Sascha Hauer <[email protected]>
11+
12+
properties:
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+
52+
required:
53+
- compatible
54+
- reg
55+
- interrupts
56+
- clocks
57+
- clock-names
58+
59+
additionalProperties: false
60+
61+
examples:
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+
};

0 commit comments

Comments
 (0)