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

dt-bindings: i2c: nxp,pca9541: convert to DT schema

Convert the bindings for NXP PCA9541 I2C bus master selector to DT
schema.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Peter Rosin <peda@axentia.se>
Acked-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230731163833.319258-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Andi Shyti
4f68ead6 adcf6eae

+56 -29
-29
Documentation/devicetree/bindings/i2c/nxp,pca9541.txt
··· 1 - * NXP PCA9541 I2C bus master selector 2 - 3 - Required Properties: 4 - 5 - - compatible: Must be "nxp,pca9541" 6 - 7 - - reg: The I2C address of the device. 8 - 9 - The following required properties are defined externally: 10 - 11 - - I2C arbitration bus node. See i2c-arb.txt in this directory. 12 - 13 - 14 - Example: 15 - 16 - i2c-arbitrator@74 { 17 - compatible = "nxp,pca9541"; 18 - reg = <0x74>; 19 - 20 - i2c-arb { 21 - #address-cells = <1>; 22 - #size-cells = <0>; 23 - 24 - eeprom@54 { 25 - compatible = "atmel,24c08"; 26 - reg = <0x54>; 27 - }; 28 - }; 29 - };
+56
Documentation/devicetree/bindings/i2c/nxp,pca9541.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/nxp,pca9541.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP PCA9541 I2C bus master selector 8 + 9 + maintainers: 10 + - Peter Rosin <peda@axentia.se> 11 + 12 + properties: 13 + compatible: 14 + const: nxp,pca9541 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + i2c-arb: 20 + type: object 21 + $ref: /schemas/i2c/i2c-controller.yaml 22 + unevaluatedProperties: false 23 + description: 24 + I2C arbitration bus node. 25 + 26 + required: 27 + - compatible 28 + - reg 29 + - i2c-arb 30 + 31 + additionalProperties: false 32 + 33 + examples: 34 + - | 35 + #include <dt-bindings/gpio/gpio.h> 36 + #include <dt-bindings/interrupt-controller/irq.h> 37 + 38 + i2c { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + 42 + i2c-arbitrator@74 { 43 + compatible = "nxp,pca9541"; 44 + reg = <0x74>; 45 + 46 + i2c-arb { 47 + #address-cells = <1>; 48 + #size-cells = <0>; 49 + 50 + eeprom@54 { 51 + compatible = "atmel,24c08"; 52 + reg = <0x54>; 53 + }; 54 + }; 55 + }; 56 + };