Skip to content

Commit 67e35ad

Browse files
Anson-Huangrobherring
authored andcommitted
dt-bindings: clock: Convert i.MX1 clock to json-schema
Convert the i.MX1 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 80540e1 commit 67e35ad

File tree

2 files changed

+51
-26
lines changed

2 files changed

+51
-26
lines changed

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

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/imx1-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Clock bindings for Freescale i.MX1 CPUs
8+
9+
maintainers:
10+
- Alexander Shiyan <[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/imx1-clock.h
15+
for the full list of i.MX1 clock IDs.
16+
17+
properties:
18+
compatible:
19+
const: fsl,imx1-ccm
20+
21+
reg:
22+
maxItems: 1
23+
24+
'#clock-cells':
25+
const: 1
26+
27+
required:
28+
- compatible
29+
- reg
30+
- '#clock-cells'
31+
32+
additionalProperties: false
33+
34+
examples:
35+
- |
36+
#include <dt-bindings/clock/imx1-clock.h>
37+
38+
clock-controller@21b000 {
39+
#clock-cells = <1>;
40+
compatible = "fsl,imx1-ccm";
41+
reg = <0x0021b000 0x1000>;
42+
};
43+
44+
pwm@208000 {
45+
#pwm-cells = <2>;
46+
compatible = "fsl,imx1-pwm";
47+
reg = <0x00208000 0x1000>;
48+
interrupts = <34>;
49+
clocks = <&clks IMX1_CLK_DUMMY>, <&clks IMX1_CLK_PER1>;
50+
clock-names = "ipg", "per";
51+
};

0 commit comments

Comments
 (0)