Skip to content

Commit c7bcbb8

Browse files
Eddie Jamesrobherring
authored andcommitted
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent c184d44 commit c7bcbb8

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

Documentation/devicetree/bindings/fsi/ibm,fsi2spi.yaml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ title: IBM FSI-attached SPI controllers
99
maintainers:
1010
- Eddie James <[email protected]>
1111

12-
description: |
12+
description:
1313
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.
1716

1817
properties:
1918
compatible:
@@ -24,6 +23,17 @@ properties:
2423
items:
2524
- description: FSI slave address
2625

26+
"#address-cells":
27+
const: 1
28+
29+
"#size-cells":
30+
const: 0
31+
32+
patternProperties:
33+
"^spi@[0-9a-f]+$":
34+
type: object
35+
$ref: /schemas/spi/ibm,spi-fsi.yaml
36+
2737
required:
2838
- compatible
2939
- reg
@@ -35,4 +45,22 @@ examples:
3545
fsi2spi@1c00 {
3646
compatible = "ibm,fsi2spi";
3747
reg = <0x1c00 0x400>;
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
51+
spi@0 {
52+
compatible = "ibm,spi-fsi";
53+
reg = <0>;
54+
#address-cells = <1>;
55+
#size-cells = <0>;
56+
57+
eeprom@0 {
58+
compatible = "atmel,at25";
59+
reg = <0>;
60+
address-width = <24>;
61+
pagesize = <256>;
62+
size = <0x80000>;
63+
spi-max-frequency = <1000000>;
64+
};
65+
};
3866
};

0 commit comments

Comments
 (0)