Skip to content

Commit 1a73912

Browse files
Eddie Jamesrobherring
authored andcommitted
dt-bindings: i2c: i2c-fsi: Convert to json-schema
Convert to json-schema for the FSI-attached I2C controller. Signed-off-by: Eddie James <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Ninad Palsule <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 51a3f7c commit 1a73912

File tree

3 files changed

+77
-41
lines changed

3 files changed

+77
-41
lines changed

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

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/i2c/ibm,i2c-fsi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: IBM FSI-attached I2C controller
8+
9+
maintainers:
10+
- Eddie James <[email protected]>
11+
12+
description:
13+
This I2C controller is an FSI CFAM engine, providing access to a number of
14+
I2C busses. Therefore this node will always be a child of an FSI CFAM node.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- ibm,i2c-fsi
20+
21+
reg:
22+
items:
23+
- description: FSI slave address
24+
25+
"#address-cells":
26+
const: 1
27+
28+
"#size-cells":
29+
const: 0
30+
31+
patternProperties:
32+
"^i2c-bus@[0-9a-f]+$":
33+
type: object
34+
properties:
35+
reg:
36+
maxItems: 1
37+
38+
required:
39+
- reg
40+
41+
allOf:
42+
- $ref: /schemas/i2c/i2c-controller.yaml#
43+
44+
unevaluatedProperties: false
45+
46+
required:
47+
- compatible
48+
- reg
49+
50+
additionalProperties: false
51+
52+
examples:
53+
- |
54+
i2c@1800 {
55+
compatible = "ibm,i2c-fsi";
56+
reg = <0x1800 0x400>;
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
60+
i2c-bus@0 {
61+
reg = <0>;
62+
#address-cells = <1>;
63+
#size-cells = <0>;
64+
};
65+
66+
i2c-bus@1 {
67+
reg = <1>;
68+
#address-cells = <1>;
69+
#size-cells = <0>;
70+
71+
eeprom@50 {
72+
compatible = "atmel,24c64";
73+
reg = <0x50>;
74+
};
75+
};
76+
};

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8976,7 +8976,7 @@ M: Eddie James <[email protected]>
89768976
89778977
L: [email protected] (moderated for non-subscribers)
89788978
S: Maintained
8979-
F: Documentation/devicetree/bindings/i2c/i2c-fsi.txt
8979+
F: Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml
89808980
F: drivers/i2c/busses/i2c-fsi.c
89818981

89828982
FSI-ATTACHED SPI DRIVER

0 commit comments

Comments
 (0)