ARM: dts: aspeed: Add IBM P11 BMC Boards
Subsystems (7)
Eddie James
maintainerv4 cover ARM: dts: aspeed: Add IBM P11 BMC Boards
Add the Blueridge and Fuji BMC systems. Document many missing FSI related properties, and fix existing warnings. Make some minor fixes in OCC and SCOM drivers for the updated bindings.
Changes since v2:
- Split up the DTS patches
- Add documentation patches
Changes since v3:
- Remove references to fsi.txt
- Change ibm,p10-spi to ibm,spi-fsi
- Change ibm,fsi2pib to ibm,p9-scom
- Change ibm,hub-fsi-controller to ibm,p9-fsi-controller
- Fix warnings
- Fix formatting
- Add device driver fixes
Eddie James (17):
dt-bindings: spi: Document the IBM FSI-attached SPI controller
dt-bindings: fsi: fsi2spi: Document SPI controller child nodes
dt-bindings: fsi: Document the IBM SCOM engine
dt-bindings: fsi: p9-occ: Convert to json-schema
dt-bindings: fsi: Document the IBM SBEFIFO engine
dt-bindings: fsi: Document the FSI controller common properties
dt-bindings: fsi: ibm,i2cr-fsi-master: Reference common FSI controller
dt-bindings: fsi: ast2600-fsi-master: Convert to json-schema
dt-bindings: fsi: Document the FSI Hub Controller
dt-bindings: i2c: i2c-fsi: Convert to json-schema
dt-bindings: arm: aspeed: add IBM P11 BMC boards
ARM: dts: aspeed: Add IBM P11 FSI devices
ARM: dts: aspeed: Add IBM P11 Blueridge BMC system
ARM: dts: aspeed: Add IBM P11 Fuji BMC system
fsi: occ: Get device number from FSI minor number API
fsi: occ: Find next available child rather than node name match
fsi: scom: Update compatible string to match documentation
.../bindings/arm/aspeed/aspeed.yaml | 2 + .../fsi/aspeed,ast2600-fsi-master.yaml | 81 + .../bindings/fsi/fsi-controller.yaml | 66 + .../bindings/fsi/fsi-master-aspeed.txt | 36 - .../devicetree/bindings/fsi/ibm,fsi2spi.yaml | 36 +- .../bindings/fsi/ibm,i2cr-fsi-master.yaml | 5 +- .../bindings/fsi/ibm,p9-fsi-controller.yaml | 45 + .../devicetree/bindings/fsi/ibm,p9-occ.txt | 16 - .../devicetree/bindings/fsi/ibm,p9-occ.yaml | 41 + .../bindings/fsi/ibm,p9-sbefifo.yaml | 51 + .../devicetree/bindings/fsi/ibm,p9-scom.yaml | 37 + .../devicetree/bindings/i2c/i2c-fsi.txt | 40 - .../devicetree/bindings/i2c/ibm,i2c-fsi.yaml | 58 + .../devicetree/bindings/spi/ibm,spi-fsi.yaml | 55 + MAINTAINERS | 2 +- arch/arm/boot/dts/aspeed/Makefile | 2 + .../dts/aspeed/aspeed-bmc-ibm-blueridge.dts | 1689 +++++++ .../boot/dts/aspeed/aspeed-bmc-ibm-fuji.dts | 3877 +++++++++++++++++ .../arm/boot/dts/aspeed/ibm-power11-quad.dtsi | 1538 +++++++ drivers/fsi/fsi-occ.c | 49 +- drivers/fsi/fsi-scom.c | 2 +- 21 files changed, 7590 insertions(+), 138 deletions(-) create mode 100644 Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml create mode 100644 Documentation/devicetree/bindings/fsi/fsi-controller.yaml delete mode 100644 Documentation/devicetree/bindings/fsi/fsi-master-aspeed.txt create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-fsi-controller.yaml delete mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-scom.yaml delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt create mode 100644 Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml create mode 100644 Documentation/devicetree/bindings/spi/ibm,spi-fsi.yaml create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-blueridge.dts create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-fuji.dts create mode 100644 arch/arm/boot/dts/aspeed/ibm-power11-quad.dtsi
Signature · 1 line
2.39.3
Eddie James
maintainerPATCH v4 1/17 spi: dt-bindings: Document the IBM FSI-attached SPI controller
IBM Power processors have a SPI controller that can be accessed over FSI from a service processor. Document it.
---
Changes since v2:
- Change name from ibm,p10-spi to ibm,spi-fsi for two reasons. One, this matches the I2C controller binding (ibm,i2c-fsi), and two, this binding is specifically for the FSI-attached SPI controllers on the P10 but accessed from the service processor. P10 SPI controllers accessed from the P10 would have different bindings.
- Fix warnings by using generic FSI parent node
- Fix prefix
.../devicetree/bindings/spi/ibm,spi-fsi.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/ibm,spi-fsi.yaml
Documentation/devicetree/bindings/spi/ibm,spi-fsi.yaml new file +55 -0
@@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/ibm,spi-fsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached SPI Controller + +maintainers: + - Eddie James <[email protected]> + +description: + A SPI controller found on IBM Power processors, accessed over FSI from a + service processor. This node will always be a child node of an ibm,fsi2spi + node. + +properties: + compatible: + enum: + - ibm,spi-fsi + + reg: + maxItems: 1 + +required: + - compatible + - reg + +allOf: + - $ref: spi-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + fsi { + #address-cells = <1>; + #size-cells = <0>; + + spi at 0 { + compatible = "ibm,spi-fsi"; + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + size = <0x80000>; + address-width = <24>; + pagesize = <256>; + spi-max-frequency = <1000000>; + }; + }; + };
Signature · 1 line
2.39.3
Re: [PATCH v4 01/17] spi: dt-bindings: Document the IBM FSI-attached SPI controller
Quoted 5 lines · Eddie James
IBM Power processors have a SPI controller that can be accessed over FSI from a service processor. Document it.
Signed-off-by Eddie James <[email protected]>---
---
This is an automated instruction, just in case, because many review tags are being ignored. If you know the process, you can skip it (please do not feel offended by me posting it here - no bad intentions intended). If you do not know the process, here is a short explanation:
Please add Acked-by/Reviewed-by/Tested-by tags when posting new versions, under or above your Signed-off-by tag. Tag is "received", when provided in a message replied to you on the mailing list. Tools like b4 can help here. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for tags received on the version they apply.
https://elixir.bootlin.com/linux/v6.5-rc3/source/Documentation/process/submitting-patches.rst#L577
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 2/17 dt-bindings: fsi: fsi2spi: Document SPI controller child nodes
In reply to Eddie JamesThe FSI2SPI bridge has several SPI controllers behind it, which should be documented. Also, therefore the node needs to specify address and size cells.
--- .../devicetree/bindings/fsi/ibm,fsi2spi.yaml | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/fsi/ibm,fsi2spi.yaml +32 -4
@@ -9,11 +9,10 @@ title: IBM FSI-attached SPI controllers maintainers: - Eddie James <[email protected]> -description: | +description: This binding describes an FSI CFAM engine called the FSI2SPI. Therefore this - node will always be a child of an FSI CFAM node; see fsi.txt for details on - FSI slave and CFAM nodes. This FSI2SPI engine provides access to a number of - SPI controllers. + node will always be a child of an FSI CFAM node. This FSI2SPI engine provides + access to a number of SPI controllers. properties: compatible:
@@ -24,6 +23,17 @@ properties: items: - description: FSI slave address + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^spi@[0-9a-f]+$": + type: object + $ref: /schemas/spi/ibm,spi-fsi.yaml + required: - compatible - reg
@@ -35,4 +45,22 @@ examples: fsi2spi at 1c00 { compatible = "ibm,fsi2spi"; reg = <0x1c00 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + spi at 0 { + compatible = "ibm,spi-fsi"; + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; };
Signature · 1 line
2.39.3
Re: [PATCH v4 02/17] dt-bindings: fsi: fsi2spi: Document SPI controller child nodes
Quoted 6 lines · Eddie James
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]>---
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 3/17 dt-bindings: fsi: Document the IBM SCOM engine
In reply to Eddie JamesThe SCOM engine provides an interface to the POWER processor PIB (Pervasive Interconnect Bus).
---
Changes since v3:
- Change name to ibm,p9-scom from ibm,fsi2pib to be more specific.
.../devicetree/bindings/fsi/ibm,p9-scom.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-scom.yaml
Documentation/devicetree/bindings/fsi/ibm,p9-scom.yaml new file +37 -0
@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/ibm,p9-scom.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached SCOM engine + +maintainers: + - Eddie James <[email protected]> + +description: + The SCOM engine is an interface to the POWER processor PIB (Pervasive + Interconnect Bus). This node will always be a child of an FSI CFAM node. + +properties: + compatible: + enum: + - ibm,p9-scom + - ibm,i2cr-scom + + reg: + items: + - description: FSI slave address + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + scom at 1000 { + compatible = "ibm,p9-scom"; + reg = <0x1000 0x400>; + };
Signature · 1 line
2.39.3
Eddie James
maintainerPATCH v4 4/17 dt-bindings: fsi: p9-occ: Convert to json-schema
In reply to Eddie JamesConver to json-schema for the OCC documentation. Also document the fact that the OCC "bridge" device will often have the hwmon node as a child.
---
Changes since v3:
- Move required below other properties
- Drop "occ-" in child node
- Drop hwmon unit address
- Complete example
- Change commit message to match similar commits
.../devicetree/bindings/fsi/ibm,p9-occ.txt | 16 -------- .../devicetree/bindings/fsi/ibm,p9-occ.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml
Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt deleted +0 -16
@@ -1,16 +0,0 @@ -Device-tree bindings for FSI-attached POWER9/POWER10 On-Chip Controller (OCC) ------------------------------------------------------------------------------ - -This is the binding for the P9 or P10 On-Chip Controller accessed over FSI from -a service processor. See fsi.txt for details on bindings for FSI slave and CFAM -nodes. The OCC is not an FSI slave device itself, rather it is accessed -through the SBE FIFO. - -Required properties: - - compatible = "ibm,p9-occ" or "ibm,p10-occ" - -Examples: - - occ { - compatible = "ibm,p9-occ"; - };
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
2.39.3
Re: [PATCH v4 04/17] dt-bindings: fsi: p9-occ: Convert to json-schema
Quoted 61 lines · Eddie James
Conver to json-schema for the OCC documentation. Also document the fact that the OCC "bridge" device will often have the hwmon node as a child.
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Move required below other properties
- Drop "occ-" in child node
- Drop hwmon unit address
- Complete example
- Change commit message to match similar commits.../devicetree/bindings/fsi/ibm,p9-occ.txt | 16 -------- .../devicetree/bindings/fsi/ibm,p9-occ.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.yamlDocumentation/devicetree/bindings/fsi/ibm,p9-occ.txt deleted +0
-16@@ -1,16 +0,0 @@ -Device-tree bindings for FSI-attached POWER9/POWER10 On-Chip Controller (OCC) ------------------------------------------------------------------------------ - -This is the binding for the P9 or P10 On-Chip Controller accessed over FSI from -a service processor. See fsi.txt for details on bindings for FSI slave and CFAM -nodes. The OCC is not an FSI slave device itself, rather it is accessed -through the SBE FIFO. - -Required properties: - - compatible = "ibm,p9-occ" or "ibm,p10-occ" - -Examples: - - occ { - compatible = "ibm,p9-occ"; - };Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +14
-0@@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/ibm,p9-occ.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached On-Chip Controller (OCC) + +maintainers: + - Eddie James <[email protected]> + +description: + The POWER processor On-Chip Controller (OCC) helps manage power and + thermals for the system, accessed through the FSI-attached SBEFIFO
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml line 24
Quoted 10 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +10
-0+ from a service processor. + +properties: + compatible: + enum: + - ibm,p9-occ + - ibm,p10-occ + +patternProperties: + "^hwmon":
And now it raises questions:
1. Other devices on FSI bus have unit addresses, so why this does not?
2. This suggest only one hwmon, so ^hwmon$, which is then not a patternProperty but property.
3. But the true problem why do you even need two empty nodes? These should be combined into one node.
Quoted 7 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +7
-0+ type: object + $ref: /schemas/hwmon/ibm,occ-hwmon.yaml + +required: + - compatible + +additionalProperties: false
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml line 41
Quoted 10 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +10
-0+ +examples: + - | + occ { + compatible = "ibm,p9-occ"; + + hwmon { + compatible = "ibm,p9-occ-hwmon"; + }; + };
Best regards,
Krzysztof
Eddie James
maintainerRe: [PATCH v4 04/17] dt-bindings: fsi: p9-occ: Convert to json-schema
Quoted 70 lines · Krzysztof Kozlowski
Quoted 69 lines · Eddie James
Conver to json-schema for the OCC documentation. Also document the fact that the OCC "bridge" device will often have the hwmon node as a child.
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Move required below other properties
- Drop "occ-" in child node
- Drop hwmon unit address
- Complete example
- Change commit message to match similar commits.../devicetree/bindings/fsi/ibm,p9-occ.txt | 16 -------- .../devicetree/bindings/fsi/ibm,p9-occ.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 16 deletions(-)delete mode 100644
Documentation/devicetree/bindings/fsi/ibm,p9-occ.txtcreate mode 100644Documentation/devicetree/bindings/fsi/ibm,p9-occ.yamlDocumentation/devicetree/bindings/fsi/ibm,p9-occ.txt deleted +0
-16@@ -1,16 +0,0 @@ -Device-tree bindings for FSI-attached POWER9/POWER10 On-Chip Controller (OCC) ------------------------------------------------------------------------------ - -This is the binding for the P9 or P10 On-Chip Controller accessed over FSI from -a service processor. See fsi.txt for details on bindings for FSI slave and CFAM -nodes. The OCC is not an FSI slave device itself, rather it is accessed -through the SBE FIFO. - -Required properties: - - compatible = "ibm,p9-occ" or "ibm,p10-occ" - -Examples: - - occ { - compatible = "ibm,p9-occ"; - };Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +22
-0@@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/ibm,p9-occ.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached On-Chip Controller (OCC) + +maintainers: + - Eddie James <[email protected]> + +description: + The POWER processor On-Chip Controller (OCC) helps manage power and + thermals for the system, accessed through the FSI-attached SBEFIFO + from a service processor. + +properties: + compatible: + enum: + - ibm,p9-occ + - ibm,p10-occ +
Quoted 8 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml line 24
Quoted 2 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +2
-0+patternProperties: + "^hwmon":And now it raises questions:
1. Other devices on FSI bus have unit addresses, so why this does not?
2. This suggest only one hwmon, so ^hwmon$, which is then not a patternProperty but property.
3. But the true problem why do you even need two empty nodes? These should be combined into one node.
1. This is not truly on the FSI bus. It is on the SBEFIFO "bus"
2. True enough, I'll change it to property.
3. If this binding was being designed now, I'd agree with you, but the two nodes (occ and occ-hwmon) are already documented, I'm just changing to yaml here... Changing that would require a lot of changes and would break the two drivers.
Quoted 21 lines
Quoted 8 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +7
-0+ type: object + $ref: /schemas/hwmon/ibm,occ-hwmon.yaml + +required: + - compatible + +additionalProperties: falseDocumentation/devicetree/bindings/fsi/ibm,p9-occ.yaml line 41
Quoted 10 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +10
-0+ +examples: + - | + occ { + compatible = "ibm,p9-occ"; + + hwmon { + compatible = "ibm,p9-occ-hwmon"; + }; + };Best regards,
Krzysztof
Re: [PATCH v4 04/17] dt-bindings: fsi: p9-occ: Convert to json-schema
Quoted 82 lines · Eddie James
Quoted 70 lines · Krzysztof Kozlowski
Quoted 69 lines · Eddie James
Conver to json-schema for the OCC documentation. Also document the fact that the OCC "bridge" device will often have the hwmon node as a child.
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Move required below other properties
- Drop "occ-" in child node
- Drop hwmon unit address
- Complete example
- Change commit message to match similar commits.../devicetree/bindings/fsi/ibm,p9-occ.txt | 16 -------- .../devicetree/bindings/fsi/ibm,p9-occ.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 16 deletions(-)delete mode 100644
Documentation/devicetree/bindings/fsi/ibm,p9-occ.txtcreate mode 100644Documentation/devicetree/bindings/fsi/ibm,p9-occ.yamlDocumentation/devicetree/bindings/fsi/ibm,p9-occ.txt deleted +0
-16@@ -1,16 +0,0 @@ -Device-tree bindings for FSI-attached POWER9/POWER10 On-Chip Controller (OCC) ------------------------------------------------------------------------------ - -This is the binding for the P9 or P10 On-Chip Controller accessed over FSI from -a service processor. See fsi.txt for details on bindings for FSI slave and CFAM -nodes. The OCC is not an FSI slave device itself, rather it is accessed -through the SBE FIFO. - -Required properties: - - compatible = "ibm,p9-occ" or "ibm,p10-occ" - -Examples: - - occ { - compatible = "ibm,p9-occ"; - };Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +22
-0@@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/ibm,p9-occ.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached On-Chip Controller (OCC) + +maintainers: + - Eddie James <[email protected]> + +description: + The POWER processor On-Chip Controller (OCC) helps manage power and + thermals for the system, accessed through the FSI-attached SBEFIFO + from a service processor. + +properties: + compatible: + enum: + - ibm,p9-occ + - ibm,p10-occ +Quoted 8 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml line 24
Quoted 2 lines
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml new file +2
-0+patternProperties: + "^hwmon":And now it raises questions:
1. Other devices on FSI bus have unit addresses, so why this does not?
2. This suggest only one hwmon, so ^hwmon$, which is then not a patternProperty but property.
3. But the true problem why do you even need two empty nodes? These should be combined into one node.
Quoted 8 lines
1. This is not truly on the FSI bus. It is on the SBEFIFO "bus"
2. True enough, I'll change it to property.
3. If this binding was being designed now, I'd agree with you, but the two nodes (occ and occ-hwmon) are already documented, I'm just changing to yaml here... Changing that would require a lot of changes and would break the two drivers.
No child was documented before and documenting things post-factum does not allow to bypass regular review rules.
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 5/17 dt-bindings: fsi: Document the IBM SBEFIFO engine
In reply to Eddie JamesThe SBEFIFO engine provides an interface to the POWER processor Self Boot Engine (SBE).
---
Changes since v3:
- Drop occ unit address
.../bindings/fsi/ibm,p9-sbefifo.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +51 -0
@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/ibm,p9-sbefifo.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached SBEFIFO engine + +maintainers: + - Eddie James <[email protected]> + +description: + The SBEFIFO is an FSI CFAM engine that provides an interface to the + POWER processor Self Boot Engine (SBE). This node will always be a child + of an FSI CFAM node. + +properties: + compatible: + enum: + - ibm,p9-sbefifo + - ibm,odyssey-sbefifo + + reg: + items: + - description: FSI slave address + +patternProperties: + "^occ": + type: object + $ref: ibm,p9-occ.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + fsi-slave-engine at 2400 { + compatible = "ibm,p9-sbefifo"; + reg = <0x2400 0x400>; + + occ { + compatible = "ibm,p9-occ"; + + hwmon { + compatible = "ibm,p9-occ-hwmon"; + }; + }; + };
Signature · 1 line
2.39.3
Re: [PATCH v4 05/17] dt-bindings: fsi: Document the IBM SBEFIFO engine
Quoted 38 lines · Eddie James
The SBEFIFO engine provides an interface to the POWER processor Self Boot Engine (SBE).
Signed-off-by Eddie James <[email protected]>Acked-by Conor Dooley <[email protected]>Reviewed-by Andrew Jeffery <[email protected]>---
Changes since v3:
- Drop occ unit address.../bindings/fsi/ibm,p9-sbefifo.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yamlDocumentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +18
-0@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/ibm,p9-sbefifo.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached SBEFIFO engine + +maintainers: + - Eddie James <[email protected]> + +description: + The SBEFIFO is an FSI CFAM engine that provides an interface to the + POWER processor Self Boot Engine (SBE). This node will always be a child + of an FSI CFAM node. + +properties: + compatible:
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml line 28
Quoted 10 lines
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +10
-0+ enum: + - ibm,p9-sbefifo + - ibm,odyssey-sbefifo + + reg: + items: + - description: FSI slave address + +patternProperties: + "^occ":
Same questions as patch #4.
Quoted 10 lines
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +10
-0+ type: object + $ref: ibm,p9-occ.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples:
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml line 48
Quoted 10 lines
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +10
-0+ - | + fsi-slave-engine at 2400 { + compatible = "ibm,p9-sbefifo"; + reg = <0x2400 0x400>; + + occ { + compatible = "ibm,p9-occ"; + + hwmon { + compatible = "ibm,p9-occ-hwmon";
Three nodes which should be just one node.
Best regards,
Krzysztof
Eddie James
maintainerRe: [PATCH v4 05/17] dt-bindings: fsi: Document the IBM SBEFIFO engine
Quoted 64 lines · Krzysztof Kozlowski
Quoted 38 lines · Eddie James
The SBEFIFO engine provides an interface to the POWER processor Self Boot Engine (SBE).
Signed-off-by Eddie James <[email protected]>Acked-by Conor Dooley <[email protected]>Reviewed-by Andrew Jeffery <[email protected]>---
Changes since v3:
- Drop occ unit address.../bindings/fsi/ibm,p9-sbefifo.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+)create mode 100644
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yamlDocumentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +18
-0@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/ibm,p9-sbefifo.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached SBEFIFO engine + +maintainers: + - Eddie James <[email protected]> + +description: + The SBEFIFO is an FSI CFAM engine that provides an interface to the + POWER processor Self Boot Engine (SBE). This node will always be a child + of an FSI CFAM node. + +properties: + compatible:Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml line 28
Quoted 10 lines
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +10
-0+ enum: + - ibm,p9-sbefifo + - ibm,odyssey-sbefifo + + reg: + items: + - description: FSI slave address + +patternProperties: + "^occ":Same questions as patch #4.
Quoted 13 lines
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +13
-0+ type: object + $ref: ibm,p9-occ.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + fsi-slave-engine at 2400 { + compatible = "ibm,p9-sbefifo";
Quoted 8 lines
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml line 48
Quoted 7 lines
Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.yaml new file +7
-0+ reg = <0x2400 0x400>; + + occ { + compatible = "ibm,p9-occ"; + + hwmon { + compatible = "ibm,p9-occ-hwmon";Three nodes which should be just one node.
The other two are already documented... The SBEFIFO should have documented a long time ago, and designed accordingly. However keep in mind, the OCC nodes are optional on SBEFIFOs, since the Odyssey chip SBEFIFOs are not connected to OCCs.
Thanks for your detailed review.
Eddie
Quoted 4 lines
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 6/17 dt-bindings: fsi: Document the FSI controller common properties
In reply to Eddie JamesSince there are multiple FSI controllers documented, the common properties should be documented separately and then referenced from the specific controller documentation.
---
Changes since v3:
- Add chip-id description
- Use a real compatible
- Re-order example properties
.../bindings/fsi/fsi-controller.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/fsi-controller.yaml
Documentation/devicetree/bindings/fsi/fsi-controller.yaml new file +66 -0
@@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/fsi-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: FSI Controller Common Properties + +maintainers: + - Eddie James <[email protected]> + +description: + FSI (FRU (Field Replaceable Unit) Service Interface) is a two wire bus. The + FSI bus is connected to a CFAM (Common FRU Access Macro) which contains + various engines such as I2C controllers, SPI controllers, etc. + +properties: + "#address-cells": + const: 2 + + "#size-cells": + const: 0 + + no-scan-on-init: + $ref: /schemas/types.yaml#/definitions/flag + description: + The FSI controller cannot scan the bus during initialization. + +patternProperties: + "cfam@[0-9a-f],[0-9a-f]": + type: object + properties: + chip-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Processor index + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + required: + - reg + + additionalProperties: true + +additionalProperties: true + +examples: + - | + fsi { + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + }; + };
Signature · 1 line
2.39.3
Re: [PATCH v4 06/17] dt-bindings: fsi: Document the FSI controller common properties
Documentation/devicetree/bindings/fsi/fsi-controller.yaml line 36
Quoted 9 lines · Eddie James
Documentation/devicetree/bindings/fsi/fsi-controller.yaml new file +9
-0+ +patternProperties: + "cfam@[0-9a-f],[0-9a-f]": + type: object + properties: + chip-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Processor index
fsi.txt tells a bit more about it, so extend the description.
Quoted 20 lines
Documentation/devicetree/bindings/fsi/fsi-controller.yaml new file +20
-0+ + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + required: + - reg + + additionalProperties: true + +additionalProperties: true + +examples: + - | + fsi {
Documentation/devicetree/bindings/fsi/fsi-controller.yaml line 66
Quoted 10 lines
Documentation/devicetree/bindings/fsi/fsi-controller.yaml new file +10
-0+ #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + }; + };
Drop the example, it's not being validated/used.
Best regards,
Krzysztof
Eddie James
maintainerRe: [PATCH v4 06/17] dt-bindings: fsi: Document the FSI controller common properties
Quoted 11 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/fsi/fsi-controller.yaml line 36
Quoted 9 lines · Eddie James
Documentation/devicetree/bindings/fsi/fsi-controller.yaml new file +9
-0+ +patternProperties: + "cfam@[0-9a-f],[0-9a-f]": + type: object + properties: + chip-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Processor indexfsi.txt tells a bit more about it, so extend the description.
Ack.
Thanks,
Eddie
Quoted 25 lines
Quoted 25 lines
Documentation/devicetree/bindings/fsi/fsi-controller.yaml new file +23
-0+ + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + required: + - reg + + additionalProperties: true + +additionalProperties: true + +examples: + - | + fsi { + #address-cells = <2>; + #size-cells = <0>; +
Quoted 8 lines
Documentation/devicetree/bindings/fsi/fsi-controller.yaml line 66
Quoted 7 lines
Documentation/devicetree/bindings/fsi/fsi-controller.yaml new file +7
-0+ cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + }; + };Drop the example, it's not being validated/used.
Ack.
Quoted 4 lines
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 7/17 dt-bindings: fsi: ibm,i2cr-fsi-master: Reference common FSI controller
In reply to Eddie JamesRemove the common properties from the I2CR documentation and instead point to the common FSI controller documentation.
---
Changes since v3:
- Re-order allOf to below required
.../devicetree/bindings/fsi/ibm,i2cr-fsi-master.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/fsi/ibm,i2cr-fsi-master.yaml +4 -1
@@ -26,7 +26,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: fsi-controller.yaml# + +unevaluatedProperties: false examples: - |
Signature · 1 line
2.39.3
Re: [PATCH v4 07/17] dt-bindings: fsi: ibm,i2cr-fsi-master: Reference common FSI controller
Quoted 8 lines · Eddie James
Remove the common properties from the I2CR documentation and instead point to the common FSI controller documentation.
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Re-order allOf to below required
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 8/17 dt-bindings: fsi: ast2600-fsi-master: Convert to json-schema
In reply to Eddie JamesConvert to json-schema for the AST2600 FSI master documentation.
---
Changes since v3:
- Remove quotes around compatible strings
- Re-order allOf to below required
- Add child node in the example
- Change commit message to match similar commits
.../fsi/aspeed,ast2600-fsi-master.yaml | 81 +++++++++++++++++++ .../bindings/fsi/fsi-master-aspeed.txt | 36 --------- 2 files changed, 81 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml delete mode 100644 Documentation/devicetree/bindings/fsi/fsi-master-aspeed.txt
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +81 -0
@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/aspeed,ast2600-fsi-master.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed FSI master + +maintainers: + - Eddie James <[email protected]> + +description: + The AST2600 and later contain two identical FSI masters. They share a + clock and have a separate interrupt line and output pins. + +properties: + compatible: + enum: + - aspeed,ast2600-fsi-master + - aspeed,ast2700-fsi-master + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + cfam-reset-gpios: + maxItems: 1 + description: + Output GPIO pin for CFAM reset + + fsi-routing-gpios: + maxItems: 1 + description: + Output GPIO pin for setting the FSI mux (internal or cabled) + + fsi-mux-gpios: + maxItems: 1 + description: + Input GPIO pin for detecting the desired FSI mux state + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +allOf: + - $ref: fsi-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/clock/ast2600-clock.h> + #include <dt-bindings/gpio/aspeed-gpio.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + fsi-master at 1e79b000 { + compatible = "aspeed,ast2600-fsi-master"; + reg = <0x1e79b000 0x94>; + #address-cells = <2>; + #size-cells = <0>; + interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fsi1_default>; + clocks = <&syscon ASPEED_CLK_GATE_FSICLK>; + fsi-routing-gpios = <&gpio0 ASPEED_GPIO(Q, 7) GPIO_ACTIVE_HIGH>; + fsi-mux-gpios = <&gpio0 ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>; + cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_LOW>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + }; + };
Documentation/devicetree/bindings/fsi/fsi-master-aspeed.txt deleted +0 -36
@@ -1,36 +0,0 @@ -Device-tree bindings for AST2600 FSI master -------------------------------------------- - -The AST2600 contains two identical FSI masters. They share a clock and have a -separate interrupt line and output pins. - -Required properties: - - compatible: "aspeed,ast2600-fsi-master" - - reg: base address and length - - clocks: phandle and clock number - - interrupts: platform dependent interrupt description - - pinctrl-0: phandle to pinctrl node - - pinctrl-names: pinctrl state - -Optional properties: - - cfam-reset-gpios: GPIO for CFAM reset - - - fsi-routing-gpios: GPIO for setting the FSI mux (internal or cabled) - - fsi-mux-gpios: GPIO for detecting the desired FSI mux state - - -Examples: - - fsi-master { - compatible = "aspeed,ast2600-fsi-master", "fsi-master"; - reg = <0x1e79b000 0x94>; - interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_fsi1_default>; - clocks = <&syscon ASPEED_CLK_GATE_FSICLK>; - - fsi-routing-gpios = <&gpio0 ASPEED_GPIO(Q, 7) GPIO_ACTIVE_HIGH>; - fsi-mux-gpios = <&gpio0 ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>; - - cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_LOW>; - };
Signature · 1 line
2.39.3
Re: [PATCH v4 08/17] dt-bindings: fsi: ast2600-fsi-master: Convert to json-schema
Quoted 1 line · Eddie James
Convert to json-schema for the AST2600 FSI master documentation.
Please mention all the changes from pure conversion.
Quoted 31 lines
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Remove quotes around compatible strings
- Re-order allOf to below required
- Add child node in the example
- Change commit message to match similar commits.../fsi/aspeed,ast2600-fsi-master.yaml | 81 +++++++++++++++++++ .../bindings/fsi/fsi-master-aspeed.txt | 36 --------- 2 files changed, 81 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml delete mode 100644 Documentation/devicetree/bindings/fsi/fsi-master-aspeed.txtDocumentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +10
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/aspeed,ast2600-fsi-master.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed FSI master + +maintainers: + - Eddie James <[email protected]>
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml line 20
Quoted 10 lines
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +10
-0+ +description: + The AST2600 and later contain two identical FSI masters. They share a + clock and have a separate interrupt line and output pins. + +properties: + compatible: + enum: + - aspeed,ast2600-fsi-master + - aspeed,ast2700-fsi-master
There was no such compatible before.
How does this even validate? Where is fsi-master? You dropped a compatible without any explanation.
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml line 27
Quoted 7 lines
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +7
-0+ + reg: + maxItems: 1 + + clocks: + maxItems: 1 +
Best regards,
Krzysztof
Eddie James
maintainerRe: [PATCH v4 08/17] dt-bindings: fsi: ast2600-fsi-master: Convert to json-schema
Quoted 3 lines · Krzysztof Kozlowski
Quoted 1 line · Eddie James
Convert to json-schema for the AST2600 FSI master documentation.
Please mention all the changes from pure conversion.
Sure.
Quoted 43 lines
Quoted 31 lines
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Remove quotes around compatible strings
- Re-order allOf to below required
- Add child node in the example
- Change commit message to match similar commits.../fsi/aspeed,ast2600-fsi-master.yaml | 81 +++++++++++++++++++ .../bindings/fsi/fsi-master-aspeed.txt | 36 --------- 2 files changed, 81 insertions(+), 36 deletions(-)create mode 100644
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yamldelete mode 100644Documentation/devicetree/bindings/fsi/fsi-master-aspeed.txtDocumentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +10
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/aspeed,ast2600-fsi-master.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed FSI master + +maintainers: + - Eddie James <[email protected]>Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml line 20
Quoted 10 lines
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +10
-0+ +description: + The AST2600 and later contain two identical FSI masters. They share a + clock and have a separate interrupt line and output pins. + +properties: + compatible: + enum: + - aspeed,ast2600-fsi-master + - aspeed,ast2700-fsi-masterThere was no such compatible before.
Quoted 2 lines
How does this even validate? Where is fsi-master? You dropped a compatible without any explanation.
I can make it a separate change to add ast2700.
I suppose I don't understand having two compatibles... Aspeed master shouldn't use "fsi-master" as that is too generic, right? Why wouldn't it validate? Devicetrees using "fsi-master" also use "aspeed,ast2600-fsi-master" so they should be OK...
Quoted 12 lines
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml line 27
Quoted 8 lines
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +7
-0+ + reg: + maxItems: 1 + + clocks: + maxItems: 1 +Best regards,
Krzysztof
Re: [PATCH v4 08/17] dt-bindings: fsi: ast2600-fsi-master: Convert to json-schema
Quoted 57 lines · Eddie James
Quoted 3 lines · Krzysztof Kozlowski
Quoted 1 line · Eddie James
Convert to json-schema for the AST2600 FSI master documentation.
Please mention all the changes from pure conversion.
Sure.
Quoted 43 lines
Quoted 31 lines
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Remove quotes around compatible strings
- Re-order allOf to below required
- Add child node in the example
- Change commit message to match similar commits.../fsi/aspeed,ast2600-fsi-master.yaml | 81 +++++++++++++++++++ .../bindings/fsi/fsi-master-aspeed.txt | 36 --------- 2 files changed, 81 insertions(+), 36 deletions(-)create mode 100644
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yamldelete mode 100644Documentation/devicetree/bindings/fsi/fsi-master-aspeed.txtDocumentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +10
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/aspeed,ast2600-fsi-master.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed FSI master + +maintainers: + - Eddie James <[email protected]>Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml line 20
Quoted 10 lines
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +10
-0+ +description: + The AST2600 and later contain two identical FSI masters. They share a + clock and have a separate interrupt line and output pins. + +properties: + compatible: + enum: + - aspeed,ast2600-fsi-master + - aspeed,ast2700-fsi-masterThere was no such compatible before.
Quoted 2 lines
How does this even validate? Where is fsi-master? You dropped a compatible without any explanation.
Quoted 5 lines
I can make it a separate change to add ast2700.
I suppose I don't understand having two compatibles... Aspeed master shouldn't use "fsi-master" as that is too generic, right? Why wouldn't
Not necessarily, depends. Dropping it silently is confusing. What about other users? firmware, bootloaders, out-of-tree, other OS? Did you investigate all of them?
Quoted 2 lines
it validate? Devicetrees using "fsi-master" also use "aspeed,ast2600-fsi-master" so they should be OK...
No, because the compatibles do not match. Run validation and you will see the errors.
I am fine with dropping such compatible, which is not used by current kernel ABI, but first DTS must be fixed and second some explanation and justification is needed.
Best regards,
Krzysztof
Eddie James
maintainerRe: [PATCH v4 08/17] dt-bindings: fsi: ast2600-fsi-master: Convert to json-schema
Quoted 54 lines · Krzysztof Kozlowski
Quoted 53 lines · Eddie James
Quoted 3 lines · Krzysztof Kozlowski
Quoted 1 line · Eddie James
Convert to json-schema for the AST2600 FSI master documentation.
Please mention all the changes from pure conversion.
Sure.
Quoted 44 lines
Quoted 30 lines
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Remove quotes around compatible strings
- Re-order allOf to below required
- Add child node in the example
- Change commit message to match similar commits.../fsi/aspeed,ast2600-fsi-master.yaml | 81 +++++++++++++++++++ .../bindings/fsi/fsi-master-aspeed.txt | 36 --------- 2 files changed, 81 insertions(+), 36 deletions(-)create mode 100644
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yamldelete mode 100644Documentation/devicetree/bindings/fsi/fsi-master-aspeed.txtDocumentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +10
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/aspeed,ast2600-fsi-master.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed FSI master + +maintainers: + - Eddie James <[email protected]>Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml line 20
Quoted 10 lines
Documentation/devicetree/bindings/fsi/aspeed,ast2600-fsi-master.yaml new file +10
-0+ +description: + The AST2600 and later contain two identical FSI masters. They share a + clock and have a separate interrupt line and output pins. + +properties: + compatible: + enum: + - aspeed,ast2600-fsi-master + - aspeed,ast2700-fsi-masterThere was no such compatible before.
How does this even validate? Where is fsi-master? You dropped a compatible without any explanation.
Quoted 8 lines
Quoted 5 lines
I can make it a separate change to add ast2700.
I suppose I don't understand having two compatibles... Aspeed master shouldn't use "fsi-master" as that is too generic, right? Why wouldn't
Not necessarily, depends. Dropping it silently is confusing. What about other users? firmware, bootloaders, out-of-tree, other OS? Did you investigate all of them?
The old format file actually only used fsi-master in the example, not in the actual properties description. So I didn't really drop a compatible. Device trees using "fsi-master" are just buggy and should be fixed eventually, but I don't think it needs to be part of this series.
Thanks,
Eddie
Quoted 13 lines
Quoted 3 lines
it validate? Devicetrees using "fsi-master" also use "aspeed,ast2600-fsi-master" so they should be OK...
No, because the compatibles do not match. Run validation and you will see the errors.
I am fine with dropping such compatible, which is not used by current kernel ABI, but first DTS must be fixed and second some explanation and justification is needed.
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 9/17 dt-bindings: fsi: Document the FSI Hub Controller
In reply to Eddie JamesDocument the FSI Hub Controller CFAM engine.
---
Changes since v3:
- Change name from ibm,hub-fsi-controller to ibm,p9-fsi-controller
.../bindings/fsi/ibm,p9-fsi-controller.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-fsi-controller.yaml
Documentation/devicetree/bindings/fsi/ibm,p9-fsi-controller.yaml new file +45 -0
@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/fsi/ibm,p9-fsi-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM FSI-attached FSI Hub Controller + +maintainers: + - Eddie James <[email protected]> + +description: + The FSI Hub Controller is an FSI controller, providing a number of FSI links, + located on a CFAM. Therefore this node will always be a child of an FSI CFAM + node. + +properties: + compatible: + enum: + - ibm,p9-fsi-controller + + reg: + items: + - description: FSI slave address + +allOf: + - $ref: fsi-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + fsi at 3400 { + compatible = "ibm,p9-fsi-controller"; + reg = <0x3400 0x400>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + }; + };
Signature · 1 line
2.39.3
Re: [PATCH v4 09/17] dt-bindings: fsi: Document the FSI Hub Controller
Quoted 7 lines · Eddie James
Document the FSI Hub Controller CFAM engine.
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- Change name from ibm,hub-fsi-controller to ibm,p9-fsi-controller
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 10/17 dt-bindings: i2c: i2c-fsi: Convert to json-schema
In reply to Eddie JamesConvert to json-schema for the FSI-attached I2C controller.
---
Changes since v3:
- Update MAINTAINERS
- Change commit message to match similar commits
.../devicetree/bindings/i2c/i2c-fsi.txt | 40 ------------- .../devicetree/bindings/i2c/ibm,i2c-fsi.yaml | 58 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 59 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt create mode 100644 Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml
Documentation/devicetree/bindings/i2c/i2c-fsi.txt deleted +0 -40
@@ -1,40 +0,0 @@ -Device-tree bindings for FSI-attached I2C master and busses ------------------------------------------------------------ - -Required properties: - - compatible = "ibm,i2c-fsi"; - - reg = < address size >; : The FSI CFAM address and address - space size. - - #address-cells = <1>; : Number of address cells in child - nodes. - - #size-cells = <0>; : Number of size cells in child nodes. - - child nodes : Nodes to describe busses off the I2C - master. - -Child node required properties: - - reg = < port number > : The port number on the I2C master. - -Child node optional properties: - - child nodes : Nodes to describe devices on the I2C - bus. - -Examples: - - i2c at 1800 { - compatible = "ibm,i2c-fsi"; - reg = < 0x1800 0x400 >; - #address-cells = <1>; - #size-cells = <0>; - - i2c-bus at 0 { - reg = <0>; - }; - - i2c-bus at 1 { - reg = <1>; - - eeprom at 50 { - compatible = "vendor,dev-name"; - }; - }; - };
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml new file +58 -0
58 lines not on this page · raw message
MAINTAINERS +1 -1
@@ -8924,7 +8924,7 @@ M: Eddie James <[email protected]> L: linux-i2c at vger.kernel.org L: openbmc at lists.ozlabs.org (moderated for non-subscribers) S: Maintained -F: Documentation/devicetree/bindings/i2c/i2c-fsi.txt +F: Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml F: drivers/i2c/busses/i2c-fsi.c FSI-ATTACHED SPI DRIVER
Signature · 1 line
2.39.3
Re: [PATCH v4 10/17] dt-bindings: i2c: i2c-fsi: Convert to json-schema
Quoted 10 lines · Eddie James
Convert to json-schema for the FSI-attached I2C controller.
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- UpdateMAINTAINERS
- Change commit message to match similar commits.../devicetree/bindings/i2c/i2c-fsi.txt | 40 ------------- .../devicetree/bindings/i2c/ibm,i2c-fsi.yaml | 58 +++++++++++++++++++
Please split independent patches to separate patchsets, so they can be reviewed and picked up by respective maintainers.
I don't see any dependency here. Neither in 1st patch.
Quoted 5 lines
MAINTAINERS | 2 +- 3 files changed, 59 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt create mode 100644 Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml
...
Quoted 41 lines
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml new file +35
-0@@ -0,0 +1,58 @@ +# 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 <[email protected]> + +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 + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +unevaluatedProperties: false + +examples: + - |
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml line 45
Quoted 10 lines
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml new file +10
-0+ i2c at 1800 { + compatible = "ibm,i2c-fsi"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + i2c-bus at 0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>;
This does not look right. Why do you have multiple i2c-bus children? I do not think i2c-controller.yaml schema allows this.
Best regards,
Krzysztof
Eddie James
maintainerRe: [PATCH v4 10/17] dt-bindings: i2c: i2c-fsi: Convert to json-schema
Quoted 9 lines · Krzysztof Kozlowski
Quoted 8 lines · Eddie James
Convert to json-schema for the FSI-attached I2C controller.
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- UpdateMAINTAINERS
- Change commit message to match similar commits
Quoted 7 lines
Quoted 2 lines
.../devicetree/bindings/i2c/i2c-fsi.txt | 40 ------------- .../devicetree/bindings/i2c/ibm,i2c-fsi.yaml | 58 +++++++++++++++++++Please split independent patches to separate patchsets, so they can be reviewed and picked up by respective maintainers.
I don't see any dependency here. Neither in 1st patch.
OK, I guess that makes it complicated for Andrew to pull together with the device tree changes in a way that avoids warnings, but I agree there is no direct dependency.
Quoted 54 lines
Quoted 7 lines
MAINTAINERS | 2 +- 3 files changed, 59 insertions(+), 41 deletions(-)delete mode 100644
Documentation/devicetree/bindings/i2c/i2c-fsi.txtcreate mode 100644Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml...
Quoted 45 lines
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml new file +39
-0@@ -0,0 +1,58 @@ +# 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 <[email protected]> + +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 + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + i2c at 1800 { + compatible = "ibm,i2c-fsi"; + reg = <0x1800 0x400>; + #address-cells = <1>;
Quoted 8 lines
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml line 45
Quoted 6 lines
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml new file +6
-0+ #size-cells = <0>; + + i2c-bus at 0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>;This does not look right. Why do you have multiple i2c-bus children? I do not think
i2c-controller.yamlschema allows this.
It does seem to allow it, as this validates here and in the device tree. It is this way because the I2C controller provides multiple busses. Should I change it so to add "bus" pattern properties that reference i2c-controller.yaml?
Thanks,
Eddie
Quoted 4 lines
Best regards,
Krzysztof
Re: [PATCH v4 10/17] dt-bindings: i2c: i2c-fsi: Convert to json-schema
Quoted 17 lines · Eddie James
Quoted 15 lines · Krzysztof Kozlowski
Quoted 10 lines · Eddie James
Convert to json-schema for the FSI-attached I2C controller.
Signed-off-by Eddie James <[email protected]>---
Changes since v3:
- UpdateMAINTAINERS
- Change commit message to match similar commits.../devicetree/bindings/i2c/i2c-fsi.txt | 40 ------------- .../devicetree/bindings/i2c/ibm,i2c-fsi.yaml | 58 +++++++++++++++++++Please split independent patches to separate patchsets, so they can be reviewed and picked up by respective maintainers.
Quoted 6 lines
Quoted 1 line
I don't see any dependency here. Neither in 1st patch.
OK, I guess that makes it complicated for Andrew to pull together with the device tree changes in a way that avoids warnings, but I agree there is no direct dependency.
SoC tree should not pull subsystem patches. Plus DTS must be separate from drivers...
Quoted 17 lines
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml new file +7
-0+ +examples: + - | + i2c at 1800 { + compatible = "ibm,i2c-fsi"; + reg = <0x1800 0x400>; + #address-cells = <1>;Quoted 8 lines
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml line 45
Quoted 6 lines
Documentation/devicetree/bindings/i2c/ibm,i2c-fsi.yaml new file +6
-0+ #size-cells = <0>; + + i2c-bus at 0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>;This does not look right. Why do you have multiple i2c-bus children? I do not think
i2c-controller.yamlschema allows this.
Quoted 1 line
It does seem to allow it, as this validates here and in the device tree.
Only because children are treated as I2C devices.
Quoted 1 line
It is this way because the I2C controller provides multiple busses.
It does not look like I2C controller anymore. I think I2C controller sits on the bus, not on multiple busses. How are SDA/SCL lines connected?
This looks like you are describing something which is not I2C bus controller as I2C bus controller...
I'll let I2C maintainer comment on that - is this real I2C bus which consists of multiple buses.
Quoted 2 lines
Should I change it so to add "bus" pattern properties that reference
i2c-controller.yaml?
Not sure if I get it right... whatever is the I2C bus controller, should reference i2c-controller.yaml. Not some other entity.
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 11/17 dt-bindings: arm: aspeed: add IBM P11 BMC boards
In reply to Eddie JamesDocument two new AST2600 BMC boards for IBM P11 systems.
--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +2 -0
@@ -86,7 +86,9 @@ properties: - facebook,harma-bmc - facebook,minerva-cmc - facebook,yosemite4-bmc + - ibm,blueridge-bmc - ibm,everest-bmc + - ibm,fuji-bmc - ibm,rainier-bmc - ibm,system1-bmc - ibm,tacoma-bmc
Signature · 1 line
2.39.3
Re: [PATCH v4 11/17] dt-bindings: arm: aspeed: add IBM P11 BMC boards
Quoted 4 lines · Eddie James
Document two new AST2600 BMC boards for IBM P11 systems.
Signed-off-by Eddie James <[email protected]>---
Best regards,
Krzysztof
Eddie James
maintainerPATCH v4 12/17 ARM: dts: aspeed: Add IBM P11 FSI devices
In reply to Eddie JamesAdd the P11 FSI device tree for use in upcoming BMC systems. Unlike P10, there is no system with only two processors, so only the quad processor FSI layout is necessary.
---
Changes since v3:
- Re-order everything
- Update compatibles with the updated names from the documentation
.../arm/boot/dts/aspeed/ibm-power11-quad.dtsi | 1538 +++++++++++++++++ 1 file changed, 1538 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/ibm-power11-quad.dtsi
arch/arm/boot/dts/aspeed/ibm-power11-quad.dtsi new file +1538 -0
@@ -0,0 +1,1538 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright 2024 IBM Corp. + +/ { + aliases { + i2c100 = &cfam0_i2c0; + i2c101 = &cfam0_i2c1; + i2c110 = &cfam0_i2c10; + i2c111 = &cfam0_i2c11; + i2c112 = &cfam0_i2c12; + i2c113 = &cfam0_i2c13; + i2c114 = &cfam0_i2c14; + i2c115 = &cfam0_i2c15; + i2c202 = &cfam1_i2c2; + i2c203 = &cfam1_i2c3; + i2c210 = &cfam1_i2c10; + i2c211 = &cfam1_i2c11; + i2c214 = &cfam1_i2c14; + i2c215 = &cfam1_i2c15; + i2c216 = &cfam1_i2c16; + i2c217 = &cfam1_i2c17; + i2c300 = &cfam2_i2c0; + i2c301 = &cfam2_i2c1; + i2c310 = &cfam2_i2c10; + i2c311 = &cfam2_i2c11; + i2c312 = &cfam2_i2c12; + i2c313 = &cfam2_i2c13; + i2c314 = &cfam2_i2c14; + i2c315 = &cfam2_i2c15; + i2c402 = &cfam3_i2c2; + i2c403 = &cfam3_i2c3; + i2c410 = &cfam3_i2c10; + i2c411 = &cfam3_i2c11; + i2c414 = &cfam3_i2c14; + i2c415 = &cfam3_i2c15; + i2c416 = &cfam3_i2c16; + i2c417 = &cfam3_i2c17; + + sbefifo100 = &sbefifo100; + sbefifo101 = &sbefifo101; + sbefifo110 = &sbefifo110; + sbefifo111 = &sbefifo111; + sbefifo112 = &sbefifo112; + sbefifo113 = &sbefifo113; + sbefifo114 = &sbefifo114; + sbefifo115 = &sbefifo115; + sbefifo202 = &sbefifo202; + sbefifo203 = &sbefifo203; + sbefifo210 = &sbefifo210; + sbefifo211 = &sbefifo211; + sbefifo214 = &sbefifo214; + sbefifo215 = &sbefifo215; + sbefifo216 = &sbefifo216; + sbefifo217 = &sbefifo217; + sbefifo300 = &sbefifo300; + sbefifo301 = &sbefifo301; + sbefifo310 = &sbefifo310; + sbefifo311 = &sbefifo311; + sbefifo312 = &sbefifo312; + sbefifo313 = &sbefifo313; + sbefifo314 = &sbefifo314; + sbefifo315 = &sbefifo315; + sbefifo402 = &sbefifo402; + sbefifo403 = &sbefifo403; + sbefifo410 = &sbefifo410; + sbefifo411 = &sbefifo411; + sbefifo414 = &sbefifo414; + sbefifo415 = &sbefifo415; + sbefifo416 = &sbefifo416; + sbefifo417 = &sbefifo417; + + scom100 = &scom100; + scom101 = &scom101; + scom110 = &scom110; + scom111 = &scom111; + scom112 = &scom112; + scom113 = &scom113; + scom114 = &scom114; + scom115 = &scom115; + scom202 = &scom202; + scom203 = &scom203; + scom210 = &scom210; + scom211 = &scom211; + scom214 = &scom214; + scom215 = &scom215; + scom216 = &scom216; + scom217 = &scom217; + scom300 = &scom300; + scom301 = &scom301; + scom310 = &scom310; + scom311 = &scom311; + scom312 = &scom312; + scom313 = &scom313; + scom314 = &scom314; + scom315 = &scom315; + scom402 = &scom402; + scom403 = &scom403; + scom410 = &scom410; + scom411 = &scom411; + scom414 = &scom414; + scom415 = &scom415; + scom416 = &scom416; + scom417 = &scom417; + + spi10 = &cfam0_spi0; + spi11 = &cfam0_spi1; + spi12 = &cfam0_spi2; + spi13 = &cfam0_spi3; + spi20 = &cfam1_spi0; + spi21 = &cfam1_spi1; + spi22 = &cfam1_spi2; + spi23 = &cfam1_spi3; + spi30 = &cfam2_spi0; + spi31 = &cfam2_spi1; + spi32 = &cfam2_spi2; + spi33 = &cfam2_spi3; + spi40 = &cfam3_spi0; + spi41 = &cfam3_spi1; + spi42 = &cfam3_spi2; + spi43 = &cfam3_spi3; + }; +}; + +&fsim0 { + #address-cells = <2>; + #size-cells = <0>; + status = "okay"; + cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_HIGH>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom at 1000 { + compatible = "ibm,p9-scom"; + reg = <0x1000 0x400>; + }; + + i2c at 1800 { + compatible = "ibm,i2c-fsi"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + cfam0_i2c0: i2c-bus at 0 { + reg = <0>; /* OMI01 */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom100: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo100: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam0_i2c1: i2c-bus at 1 { + reg = <1>; /* OMI23 */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom101: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo101: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam0_i2c10: i2c-bus at a { + reg = <10>; /* OP3A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom110: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo110: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam0_i2c11: i2c-bus at b { + reg = <11>; /* OP3B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom111: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo111: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam0_i2c12: i2c-bus at c { + reg = <12>; /* OP4A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom112: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo112: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam0_i2c13: i2c-bus at d { + reg = <13>; /* OP4B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom113: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo113: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam0_i2c14: i2c-bus at e { + reg = <14>; /* OP5A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom114: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo114: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam0_i2c15: i2c-bus at f { + reg = <15>; /* OP5B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom115: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo115: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + }; + + fsi2spi at 1c00 { + compatible = "ibm,fsi2spi"; + reg = <0x1c00 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + cfam0_spi0: spi at 0 { + compatible = "ibm,spi-fsi"; + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam0_spi1: spi at 20 { + compatible = "ibm,spi-fsi"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam0_spi2: spi at 40 { + compatible = "ibm,spi-fsi"; + reg = <0x40>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam0_spi3: spi at 60 { + compatible = "ibm,spi-fsi"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + }; + + sbefifo at 2400 { + compatible = "ibm,p9-sbefifo"; + reg = <0x2400 0x400>; + + occ { + compatible = "ibm,p10-occ"; + + hwmon { + compatible = "ibm,p10-occ-hwmon"; + ibm,no-poll-on-init; + }; + }; + }; + + fsi_hub0: fsi at 3400 { + compatible = "ibm,p9-fsi-controller"; + reg = <0x3400 0x400>; + #address-cells = <2>; + #size-cells = <0>; + }; + }; +}; + +&fsi_hub0 { + cfam at 1,0 { + reg = <1 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <1>; + + scom at 1000 { + compatible = "ibm,p9-scom"; + reg = <0x1000 0x400>; + }; + + i2c at 1800 { + compatible = "ibm,i2c-fsi"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + cfam1_i2c2: i2c-bus at 2 { + reg = <2>; /* OMI45 */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom202: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo202: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam1_i2c3: i2c-bus at 3 { + reg = <3>; /* OMI67 */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom203: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo203: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam1_i2c10: i2c-bus at a { + reg = <10>; /* OP3A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom210: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo210: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam1_i2c11: i2c-bus at b { + reg = <11>; /* OP3B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom211: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo211: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam1_i2c14: i2c-bus at e { + reg = <14>; /* OP5A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom214: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo214: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam1_i2c15: i2c-bus at f { + reg = <15>; /* OP5B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom215: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo215: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam1_i2c16: i2c-bus at 10 { + reg = <16>; /* OP6A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom216: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo216: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam1_i2c17: i2c-bus at 11 { + reg = <17>; /* OP6B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom217: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo217: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + }; + + fsi2spi at 1c00 { + compatible = "ibm,fsi2spi"; + reg = <0x1c00 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + cfam1_spi0: spi at 0 { + compatible = "ibm,spi-fsi"; + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam1_spi1: spi at 20 { + compatible = "ibm,spi-fsi"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam1_spi2: spi at 40 { + compatible = "ibm,spi-fsi"; + reg = <0x40>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam1_spi3: spi at 60 { + compatible = "ibm,spi-fsi"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + }; + + sbefifo at 2400 { + compatible = "ibm,p9-sbefifo"; + reg = <0x2400 0x400>; + + occ { + compatible = "ibm,p10-occ"; + + hwmon { + compatible = "ibm,p10-occ-hwmon"; + ibm,no-poll-on-init; + }; + }; + }; + + fsi at 3400 { + compatible = "ibm,p9-fsi-controller"; + reg = <0x3400 0x400>; + #address-cells = <2>; + #size-cells = <0>; + no-scan-on-init; + }; + }; + + cfam at 2,0 { + reg = <2 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <2>; + + scom at 1000 { + compatible = "ibm,p9-scom"; + reg = <0x1000 0x400>; + }; + + i2c at 1800 { + compatible = "ibm,i2c-fsi"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + cfam2_i2c0: i2c-bus at 0 { + reg = <0>; /* OM01 */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom300: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo300: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam2_i2c1: i2c-bus at 1 { + reg = <1>; /* OM23 */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom301: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo301: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam2_i2c10: i2c-bus at a { + reg = <10>; /* OP3A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom310: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo310: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam2_i2c11: i2c-bus at b { + reg = <11>; /* OP3B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom311: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo311: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam2_i2c12: i2c-bus at c { + reg = <12>; /* OP4A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom312: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo312: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam2_i2c13: i2c-bus at d { + reg = <13>; /* OP4B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom313: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo313: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam2_i2c14: i2c-bus at e { + reg = <14>; /* OP5A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom314: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo314: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam2_i2c15: i2c-bus at f { + reg = <15>; /* OP5B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom315: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo315: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + }; + + fsi2spi at 1c00 { + compatible = "ibm,fsi2spi"; + reg = <0x1c00 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + cfam2_spi0: spi at 0 { + compatible = "ibm,spi-fsi"; + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam2_spi1: spi at 20 { + compatible = "ibm,spi-fsi"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam2_spi2: spi at 40 { + compatible = "ibm,spi-fsi"; + reg = <0x40>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam2_spi3: spi at 60 { + compatible = "ibm,spi-fsi"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + }; + + sbefifo at 2400 { + compatible = "ibm,p9-sbefifo"; + reg = <0x2400 0x400>; + + occ { + compatible = "ibm,p10-occ"; + + hwmon { + compatible = "ibm,p10-occ-hwmon"; + ibm,no-poll-on-init; + }; + }; + }; + + fsi at 3400 { + compatible = "ibm,p9-fsi-controller"; + reg = <0x3400 0x400>; + #address-cells = <2>; + #size-cells = <0>; + no-scan-on-init; + }; + }; + + cfam at 3,0 { + reg = <3 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <3>; + + scom at 1000 { + compatible = "ibm,p9-scom"; + reg = <0x1000 0x400>; + }; + + i2c at 1800 { + compatible = "ibm,i2c-fsi"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + cfam3_i2c2: i2c-bus at 2 { + reg = <2>; /* OM45 */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom402: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo402: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam3_i2c3: i2c-bus at 3 { + reg = <3>; /* OM67 */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom403: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo403: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam3_i2c10: i2c-bus at a { + reg = <10>; /* OP3A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom410: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo410: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam3_i2c11: i2c-bus at b { + reg = <11>; /* OP3B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom411: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo411: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam3_i2c14: i2c-bus at e { + reg = <14>; /* OP5A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom414: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo414: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam3_i2c15: i2c-bus at f { + reg = <15>; /* OP5B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom415: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo415: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam3_i2c16: i2c-bus at 10 { + reg = <16>; /* OP6A */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom416: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo416: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + + cfam3_i2c17: i2c-bus at 11 { + reg = <17>; /* OP6B */ + #address-cells = <1>; + #size-cells = <0>; + + fsi at 20 { + compatible = "ibm,i2cr-fsi-master"; + reg = <0x20>; + #address-cells = <2>; + #size-cells = <0>; + + cfam at 0,0 { + reg = <0 0>; + #address-cells = <1>; + #size-cells = <1>; + chip-id = <0>; + + scom417: scom at 1000 { + compatible = "ibm,i2cr-scom"; + reg = <0x1000 0x400>; + }; + + sbefifo417: sbefifo at 2400 { + compatible = "ibm,odyssey-sbefifo"; + reg = <0x2400 0x400>; + }; + }; + }; + }; + }; + + fsi2spi at 1c00 { + compatible = "ibm,fsi2spi"; + reg = <0x1c00 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + cfam3_spi0: spi at 0 { + compatible = "ibm,spi-fsi"; + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam3_spi1: spi at 20 { + compatible = "ibm,spi-fsi"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam3_spi2: spi at 40 { + compatible = "ibm,spi-fsi"; + reg = <0x40>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + + cfam3_spi3: spi at 60 { + compatible = "ibm,spi-fsi"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom at 0 { + compatible = "atmel,at25"; + reg = <0>; + address-width = <24>; + pagesize = <256>; + size = <0x80000>; + spi-max-frequency = <1000000>; + }; + }; + }; + + sbefifo at 2400 { + compatible = "ibm,p9-sbefifo"; + reg = <0x2400 0x400>; + + occ { + compatible = "ibm,p10-occ"; + + hwmon { + compatible = "ibm,p10-occ-hwmon"; + ibm,no-poll-on-init; + }; + }; + }; + + fsi at 3400 { + compatible = "ibm,p9-fsi-controller"; + reg = <0x3400 0x400>; + #address-cells = <2>; + #size-cells = <0>; + no-scan-on-init; + }; + }; +};
Signature · 1 line
2.39.3
Eddie James
maintainerPATCH v4 13/17 ARM: dts: aspeed: Add IBM P11 Blueridge BMC system
In reply to Eddie JamesAdd the device tree for the new BMC system. The Blueridge is a P11 system with four processors.
---
Changes since v3:
- Fix node names to be generic
- Re-order properties to be consistent
arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-blueridge.dts | 1689 +++++++++++++++++ 2 files changed, 1690 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-blueridge.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
@@ -33,6 +33,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-facebook-yamp.dtb \ aspeed-bmc-facebook-yosemitev2.dtb \ aspeed-bmc-facebook-yosemite4.dtb \ + aspeed-bmc-ibm-blueridge.dtb \ aspeed-bmc-ibm-bonnell.dtb \ aspeed-bmc-ibm-everest.dtb \ aspeed-bmc-ibm-rainier.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-blueridge.dts new file +1689 -0
1,689 lines not on this page · raw message
Signature · 1 line
2.39.3
Eddie James
maintainerPATCH v4 14/17 ARM: dts: aspeed: Add IBM P11 Fuji BMC system
In reply to Eddie JamesAdd the device tree for the new BMC system. The Fuji is a P11 system with eight processors.
---
Changes since v3:
- Fix node names to be generic
- Re-order properties to be consistent
- Update compatibles with the updated names from the documentation
arch/arm/boot/dts/aspeed/Makefile | 1 + .../boot/dts/aspeed/aspeed-bmc-ibm-fuji.dts | 3877 +++++++++++++++++ 2 files changed, 3878 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-fuji.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
@@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-ibm-blueridge.dtb \ aspeed-bmc-ibm-bonnell.dtb \ aspeed-bmc-ibm-everest.dtb \ + aspeed-bmc-ibm-fuji.dtb \ aspeed-bmc-ibm-rainier.dtb \ aspeed-bmc-ibm-rainier-1s4u.dtb \ aspeed-bmc-ibm-rainier-4u.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-fuji.dts new file +3877 -0
2,993 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.39.3
Part of the diff is not shown here. View the raw message.
Eddie James
maintainerPATCH v4 15/17 fsi: occ: Get device number from FSI minor number API
In reply to Eddie JamesRemove the IDA indexing for OCC devices and instead use the FSI minor number API. This will make the OCC numbering consistent with other FSI engines and make the "reg" device tree property unnecessary.
--- drivers/fsi/fsi-occ.c | 47 +++++++++---------------------------------- 1 file changed, 9 insertions(+), 38 deletions(-)
drivers/fsi/fsi-occ.c +9 -38
@@ -4,9 +4,9 @@#include <linux/err.h> #include <linux/errno.h> #include <linux/fs.h> +#include <linux/fsi.h> #include <linux/fsi-sbefifo.h> #include <linux/gfp.h> -#include <linux/idr.h> #include <linux/kernel.h> #include <linux/list.h> #include <linux/miscdevice.h>
@@ -44,6 +44,7 @@ struct occ {struct device *sbefifo;char name[32 ];int idx; +dev_t devt;bool platform_hwmon;u8 sequence_number;void *buffer;
@@ -75,8 +76,6 @@ struct occ_client {#define to_client (x) container_of((x), struct occ_client, xfr) -static DEFINE_IDA (occ_ida); -static int occ_open (struct inode *inode,struct file *file) {struct occ_client *client =kzalloc (sizeof (*client),GFP_KERNEL );
@@ -622,7 +621,6 @@ static int occ_unregister_of_child(struct device *dev, void *data)static int occ_probe (struct platform_device *pdev) {int rc; -u32 reg;char child_name[32 ];struct occ *occ;struct platform_device *hwmon_dev =NULL ;
@@ -637,6 +635,10 @@ static int occ_probe(struct platform_device *pdev)if (!occ)return -ENOMEM ; + rc =fsi_get_new_minor (to_fsi_dev (dev->parent), fsi_dev_occ, &occ->devt, &occ->idx); +if (rc) +return rc; +/* SBE words are always four bytes */ occ->buffer =kvmalloc (OCC_MAX_RESP_WORDS *4 ,GFP_KERNEL );if (!occ->buffer)
@@ -651,24 +653,6 @@ static int occ_probe(struct platform_device *pdev)*/ occ->sequence_number = (u8)((jiffies %0xff ) +1 );mutex_init (&occ->occ_lock); - -if (dev->of_node) { - rc =of_property_read_u32 (dev->of_node,"reg" , ®); -if (!rc) { -/* make sure we don't have a duplicate from dts */ - occ->idx =ida_simple_get (&occ_ida, reg, reg +1 , -GFP_KERNEL ); -if (occ->idx <0 ) - occ->idx =ida_simple_get (&occ_ida,1 ,INT_MAX , -GFP_KERNEL ); - }else { - occ->idx =ida_simple_get (&occ_ida,1 ,INT_MAX , -GFP_KERNEL ); - } - }else { - occ->idx =ida_simple_get (&occ_ida,1 ,INT_MAX ,GFP_KERNEL ); - } -platform_set_drvdata (pdev, occ);snprintf (occ->name,sizeof (occ->name),"occ%d" , occ->idx);
@@ -680,7 +664,7 @@ static int occ_probe(struct platform_device *pdev) rc =misc_register (&occ->mdev);if (rc) {dev_err (dev,"failed to register miscdevice: %d\n" , rc); -ida_simple_remove (&occ_ida, occ->idx); +fsi_free_minor (occ->devt);kvfree (occ->buffer);return rc; }
@@ -719,7 +703,7 @@ static int occ_remove(struct platform_device *pdev)else device_for_each_child (&pdev->dev,NULL , occ_unregister_of_child); -ida_simple_remove (&occ_ida, occ->idx); +fsi_free_minor (occ->devt);return 0 ; }
@@ -746,20 +730,7 @@ static struct platform_driver occ_driver = { .remove = occ_remove, }; -static int occ_init (void ) -{ -return platform_driver_register (&occ_driver); -} - -static void occ_exit (void ) -{ -platform_driver_unregister (&occ_driver); - -ida_destroy (&occ_ida); -} - -module_init (occ_init); -module_exit (occ_exit); +module_platform_driver (occ_driver);MODULE_AUTHOR ("Eddie James <[email protected]>" );MODULE_DESCRIPTION ("BMC P9 OCC driver" );
Signature · 1 line
2.39.3
Eddie James
maintainerPATCH v4 16/17 fsi: occ: Find next available child rather than node name match
In reply to Eddie JamesThere's no reason to restrict the creation of the hwmon device to a matching child node name. Just get the first available one. There should only be one child node anyway.
--- drivers/fsi/fsi-occ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fsi/fsi-occ.c +1 -1
@@ -669,7 +669,7 @@ static int occ_probe(struct platform_device *pdev)return rc; } - hwmon_node =of_get_child_by_name (dev->of_node, hwmon_dev_info.name); + hwmon_node =of_get_next_available_child (dev->of_node,NULL );if (hwmon_node) {snprintf (child_name,sizeof (child_name),"%s.%d" , hwmon_dev_info.name, occ->idx); hwmon_dev =of_platform_device_create (hwmon_node, child_name, dev);
Signature · 1 line
2.39.3
Eddie James
maintainerPATCH v4 17/17 fsi: scom: Update compatible string to match documentation
In reply to Eddie JamesUse p9-scom instead of fsi2pib.
--- drivers/fsi/fsi-scom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fsi/fsi-scom.c +1 -1
@@ -589,7 +589,7 @@ static int scom_remove(struct device *dev) }static const struct of_device_id scom_of_ids[] = { - { .compatible ="ibm,fsi2pib" }, + { .compatible ="ibm,p9-scom" }, { } };MODULE_DEVICE_TABLE (of, scom_of_ids);
Signature · 1 line
2.39.3
Re: [PATCH v4 17/17] fsi: scom: Update compatible string to match documentation
Quoted 1 line · Eddie James
Use p9-scom instead of fsi2pib.
Why? Commits must *always* say why you are doing it. What is easy to see.
Quoted 11 lines
Signed-off-by Eddie James <[email protected]>--- drivers/fsi/fsi-scom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/fsi/fsi-scom.c +0
-0
drivers/fsi/fsi-scom.c static int scom_remove(struct device *dev) · line 592
Quoted 5 lines
drivers/fsi/fsi-scom.c +1
-1@@ -589,7 +589,7 @@ static int scom_remove(struct device *dev) }static const struct of_device_id scom_of_ids[] = { - { .compatible ="ibm,fsi2pib" }, + { .compatible ="ibm,p9-scom" },
This breaks all users without any explanation in the commit!
Best regards,
Krzysztof