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

dt-bindings: fsi: fsi2spi: Document SPI controller child nodes

The FSI2SPI bridge has several SPI controllers behind it, which
should be documented. Also, therefore the node needs to specify
address and size cells.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240522192524.3286237-3-eajames@linux.ibm.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Eddie James and committed by
Rob Herring (Arm)
c7bcbb8e c184d44a

+32 -4
+32 -4
Documentation/devicetree/bindings/fsi/ibm,fsi2spi.yaml
··· 9 9 maintainers: 10 10 - Eddie James <eajames@linux.ibm.com> 11 11 12 - description: | 12 + description: 13 13 This binding describes an FSI CFAM engine called the FSI2SPI. Therefore this 14 - node will always be a child of an FSI CFAM node; see fsi.txt for details on 15 - FSI slave and CFAM nodes. This FSI2SPI engine provides access to a number of 16 - SPI controllers. 14 + node will always be a child of an FSI CFAM node. This FSI2SPI engine provides 15 + access to a number of SPI controllers. 17 16 18 17 properties: 19 18 compatible: ··· 22 23 reg: 23 24 items: 24 25 - description: FSI slave address 26 + 27 + "#address-cells": 28 + const: 1 29 + 30 + "#size-cells": 31 + const: 0 32 + 33 + patternProperties: 34 + "^spi@[0-9a-f]+$": 35 + type: object 36 + $ref: /schemas/spi/ibm,spi-fsi.yaml 25 37 26 38 required: 27 39 - compatible ··· 45 35 fsi2spi@1c00 { 46 36 compatible = "ibm,fsi2spi"; 47 37 reg = <0x1c00 0x400>; 38 + #address-cells = <1>; 39 + #size-cells = <0>; 40 + 41 + spi@0 { 42 + compatible = "ibm,spi-fsi"; 43 + reg = <0>; 44 + #address-cells = <1>; 45 + #size-cells = <0>; 46 + 47 + eeprom@0 { 48 + compatible = "atmel,at25"; 49 + reg = <0>; 50 + address-width = <24>; 51 + pagesize = <256>; 52 + size = <0x80000>; 53 + spi-max-frequency = <1000000>; 54 + }; 55 + }; 48 56 };