Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Eddie James and committed by
Rob Herring (Arm)
1a73912f 51a3f7c5

+77 -41
-40
Documentation/devicetree/bindings/i2c/i2c-fsi.txt
··· 1 - Device-tree bindings for FSI-attached I2C master and busses 2 - ----------------------------------------------------------- 3 - 4 - Required properties: 5 - - compatible = "ibm,i2c-fsi"; 6 - - reg = < address size >; : The FSI CFAM address and address 7 - space size. 8 - - #address-cells = <1>; : Number of address cells in child 9 - nodes. 10 - - #size-cells = <0>; : Number of size cells in child nodes. 11 - - child nodes : Nodes to describe busses off the I2C 12 - master. 13 - 14 - Child node required properties: 15 - - reg = < port number > : The port number on the I2C master. 16 - 17 - Child node optional properties: 18 - - child nodes : Nodes to describe devices on the I2C 19 - bus. 20 - 21 - Examples: 22 - 23 - i2c@1800 { 24 - compatible = "ibm,i2c-fsi"; 25 - reg = < 0x1800 0x400 >; 26 - #address-cells = <1>; 27 - #size-cells = <0>; 28 - 29 - i2c-bus@0 { 30 - reg = <0>; 31 - }; 32 - 33 - i2c-bus@1 { 34 - reg = <1>; 35 - 36 - eeprom@50 { 37 - compatible = "vendor,dev-name"; 38 - }; 39 - }; 40 - };
+76
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml
··· 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 <eajames@linux.ibm.com> 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 + };
+1 -1
MAINTAINERS
··· 8976 8976 L: linux-i2c@vger.kernel.org 8977 8977 L: openbmc@lists.ozlabs.org (moderated for non-subscribers) 8978 8978 S: Maintained 8979 - F: Documentation/devicetree/bindings/i2c/i2c-fsi.txt 8979 + F: Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml 8980 8980 F: drivers/i2c/busses/i2c-fsi.c 8981 8981 8982 8982 FSI-ATTACHED SPI DRIVER