Skip to content

Commit c6d1a7c

Browse files
Anson-Huangrobherring
authored andcommitted
dt-bindings: i2c: Convert mxs i2c to json-schema
Convert the MXS I2C binding to DT schema format using json-schema Signed-off-by: Anson Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 046f3f7 commit c6d1a7c

File tree

2 files changed

+51
-25
lines changed

2 files changed

+51
-25
lines changed

Documentation/devicetree/bindings/i2c/i2c-mxs.txt

Lines changed: 0 additions & 25 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/i2c/i2c-mxs.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale MXS Inter IC (I2C) Controller
8+
9+
maintainers:
10+
- Shawn Guo <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- fsl,imx23-i2c
16+
- fsl,imx28-i2c
17+
18+
reg:
19+
maxItems: 1
20+
21+
interrupts:
22+
maxItems: 1
23+
24+
clock-frequency:
25+
enum: [ 100000, 400000 ]
26+
27+
dmas:
28+
maxItems: 1
29+
30+
dma-names:
31+
const: rx-tx
32+
33+
required:
34+
- compatible
35+
- reg
36+
- interrupts
37+
- dmas
38+
- dma-names
39+
40+
additionalProperties: false
41+
42+
examples:
43+
- |
44+
i2c@80058000 {
45+
compatible = "fsl,imx28-i2c";
46+
reg = <0x80058000 2000>;
47+
interrupts = <111>;
48+
clock-frequency = <100000>;
49+
dmas = <&dma_apbx 6>;
50+
dma-names = "rx-tx";
51+
};

0 commit comments

Comments
 (0)