-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: i2c: i2c-fsi: Convert to json-schema
Convert to json-schema for the FSI-attached I2C controller. Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Ninad Palsule <ninad@linux.ibm.com> Link: https://lore.kernel.org/r/20240522192524.3286237-12-eajames@linux.ibm.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
- Loading branch information
Eddie James
authored and
Rob Herring (Arm)
committed
Jul 9, 2024
1 parent
51a3f7c
commit 1a73912
Showing
3 changed files
with
77 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/i2c/ibm,i2c-fsi.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: IBM FSI-attached I2C controller | ||
|
||
maintainers: | ||
- Eddie James <eajames@linux.ibm.com> | ||
|
||
description: | ||
This I2C controller is an FSI CFAM engine, providing access to a number of | ||
I2C busses. Therefore this node will always be a child of an FSI CFAM node. | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- ibm,i2c-fsi | ||
|
||
reg: | ||
items: | ||
- description: FSI slave address | ||
|
||
"#address-cells": | ||
const: 1 | ||
|
||
"#size-cells": | ||
const: 0 | ||
|
||
patternProperties: | ||
"^i2c-bus@[0-9a-f]+$": | ||
type: object | ||
properties: | ||
reg: | ||
maxItems: 1 | ||
|
||
required: | ||
- reg | ||
|
||
allOf: | ||
- $ref: /schemas/i2c/i2c-controller.yaml# | ||
|
||
unevaluatedProperties: false | ||
|
||
required: | ||
- compatible | ||
- reg | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
i2c@1800 { | ||
compatible = "ibm,i2c-fsi"; | ||
reg = <0x1800 0x400>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
i2c-bus@0 { | ||
reg = <0>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
}; | ||
i2c-bus@1 { | ||
reg = <1>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
eeprom@50 { | ||
compatible = "atmel,24c64"; | ||
reg = <0x50>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters