Skip to content

Commit 1b51ec3

Browse files
Anson-Huangrobherring
authored andcommitted
dt-bindings: clock: Convert i.MX27 clock to json-schema
Convert the i.MX27 clock binding to DT schema format using json-schema. Signed-off-by: Anson Huang <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent 40df60f commit 1b51ec3

File tree

2 files changed

+55
-27
lines changed

2 files changed

+55
-27
lines changed

Documentation/devicetree/bindings/clock/imx27-clock.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/imx27-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Clock bindings for Freescale i.MX27
8+
9+
maintainers:
10+
- Fabio Estevam <[email protected]>
11+
12+
description: |
13+
The clock consumer should specify the desired clock by having the clock
14+
ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx27-clock.h
15+
for the full list of i.MX27 clock IDs.
16+
17+
properties:
18+
compatible:
19+
const: fsl,imx27-ccm
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
'#clock-cells':
28+
const: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
- '#clock-cells'
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
#include <dt-bindings/clock/imx27-clock.h>
40+
41+
clock-controller@10027000 {
42+
compatible = "fsl,imx27-ccm";
43+
reg = <0x10027000 0x1000>;
44+
interrupts = <31>;
45+
#clock-cells = <1>;
46+
};
47+
48+
serial@1000a000 {
49+
compatible = "fsl,imx27-uart", "fsl,imx21-uart";
50+
reg = <0x1000a000 0x1000>;
51+
interrupts = <20>;
52+
clocks = <&clks IMX27_CLK_UART1_IPG_GATE>,
53+
<&clks IMX27_CLK_PER1_GATE>;
54+
clock-names = "ipg", "per";
55+
};

0 commit comments

Comments
 (0)