ARM: dts: aspeed: Add Balcones system
Subsystems (5)
Eddie James
maintainerv7 cover ARM: dts: aspeed: Add Balcones system
The Balcones system is similar to Bonnell but with a POWER11 processor.
Changes since v7:
- Remove un-documented fan properties under max31785 nodes
- Change fan-x to fan@x in max31790 documentation.
Changes since v5:
- Add patch to add address and size cells to max31790 document
- Don't remove address and size cells in max31785 fixes change
Changes since v4:
- Add patch to fix max31785 warnings
- Add patch to fix missing Bonnell documentation
Changes since v3:
- Add max31785 to the max31790 document instead of to trivial-devices
- Fix minor formatting in dps310 document
Changes since v2:
- Fix a couple of incorrect i2c addresses
- Document dps310 and max31785 properly
- Drop the UCD binding documentation update, it's been fixed
Changes since v1:
- Add all the ucd9000 driver supported compatible strings
- Fix node ordering in Balcones device tree
- Improve commit message to explain addition of ibm-power11-dual.dtsi
Eddie James (7):
dt-bindings: arm: aspeed: add IBM Balcones board
dt-bindings: arm: aspeed: add IBM Bonnell board
dt-bindings: iio: Add Infineon DPS310 sensor documentation
dt-bindings: hwmon: Move max31785 compatibles to max31790 document
dt-bindings: hwmon: max31790: Use addressed fan nodes
ARM: dts: aspeed: Add Balcones system
ARM: dts: aspeed: Fix max31785 fan properties
.../bindings/arm/aspeed/aspeed.yaml | 2 + .../devicetree/bindings/hwmon/max31785.txt | 22 - .../bindings/hwmon/maxim,max31790.yaml | 22 +- .../iio/pressure/infineon,dps310.yaml | 44 + .../devicetree/bindings/trivial-devices.yaml | 2 - MAINTAINERS | 1 + arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-balcones.dts | 609 ++++++++++++++ .../dts/aspeed/aspeed-bmc-ibm-bonnell.dts | 4 - .../dts/aspeed/aspeed-bmc-ibm-everest.dts | 8 - .../dts/aspeed/aspeed-bmc-ibm-rainier.dts | 12 - .../boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 36 - .../arm/boot/dts/aspeed/ibm-power11-dual.dtsi | 779 ++++++++++++++++++ .../arm/boot/dts/aspeed/ibm-power11-quad.dtsi | 769 +---------------- 14 files changed, 1456 insertions(+), 855 deletions(-) delete mode 100644 Documentation/devicetree/bindings/hwmon/max31785.txt create mode 100644 Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dts create mode 100644 arch/arm/boot/dts/aspeed/ibm-power11-dual.dtsi
Signature · 1 line
2.51.0
Eddie James
maintainerPATCH v7 1/7 dt-bindings: arm: aspeed: add IBM Balcones board
Document a new AST2600 BMC board for IBM P11 server.
--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
@@ -93,6 +93,7 @@ properties: - facebook,minerva-cmc - facebook,santabarbara-bmc - facebook,yosemite4-bmc + - ibm,balcones-bmc - ibm,blueridge-bmc - ibm,everest-bmc - ibm,fuji-bmc
Signature · 1 line
2.51.0
Eddie James
maintainerPATCH v7 2/7 dt-bindings: arm: aspeed: add IBM Bonnell board
In reply to Eddie JamesDocument the existing AST2600 BMC board for IBM P10 server.
--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
@@ -95,6 +95,7 @@ properties: - facebook,yosemite4-bmc - ibm,balcones-bmc - ibm,blueridge-bmc + - ibm,bonnell-bmc - ibm,everest-bmc - ibm,fuji-bmc - ibm,rainier-bmc
Signature · 1 line
2.51.0
Eddie James
maintainerPATCH v7 3/7 dt-bindings: iio: Add Infineon DPS310 sensor documentation
In reply to Eddie JamesThe DPS310 is a barometric pressure and temperature sensor with an I2C interface. Remove it from trivial-devices.yaml and add its own documentation.
--- .../iio/pressure/infineon,dps310.yaml | 44 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - MAINTAINERS | 1 + 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml new file +44 -0
@@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/infineon,dps310.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Infineon DPS310 barometric pressure and temperature sensor + +maintainers: + - Eddie James <[email protected]> + +description: + The DPS310 is a barometric pressure and temperature sensor with an I2C + interface. + +properties: + compatible: + enum: + - infineon,dps310 + + reg: + maxItems: 1 + + "#io-channel-cells": + const: 0 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pressure-sensor@76 { + compatible = "infineon,dps310"; + reg = <0x76>; + #io-channel-cells = <0>; + }; + };
Documentation/devicetree/bindings/trivial-devices.yaml +0 -2
@@ -127,8 +127,6 @@ properties: - ibm,cffps2 # IBM On-Chip Controller hwmon device - ibm,p8-occ-hwmon - # Infineon barometric pressure and temperature sensor - - infineon,dps310 # Infineon IR36021 digital POL buck controller - infineon,ir36021 # Infineon IRPS5401 Voltage Regulator (PMIC)
MAINTAINERS +1 -0
@@ -12191,6 +12191,7 @@ INFINEON DPS310 Driver M: Eddie James <[email protected]> L: [email protected] S: Maintained +F: Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml F: drivers/iio/pressure/dps310.c INFINEON PEB2466 ASoC CODEC
Signature · 1 line
2.51.0
Eddie James
maintainerPATCH v7 4/7 dt-bindings: hwmon: Move max31785 compatibles to max31790 document
In reply to Eddie JamesThe binding for the max31785 is the same as the max31790, so just add some compatible strings for the max31785 chip.
--- .../devicetree/bindings/hwmon/max31785.txt | 22 ------------------- .../bindings/hwmon/maxim,max31790.yaml | 6 ++++- 2 files changed, 5 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/hwmon/max31785.txt
Documentation/devicetree/bindings/hwmon/max31785.txt deleted +0 -22
@@ -1,22 +0,0 @@ -Bindings for the Maxim MAX31785 Intelligent Fan Controller -========================================================== - -Reference: - -https://datasheets.maximintegrated.com/en/ds/MAX31785.pdf - -The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan -management with temperature and remote voltage sensing. Various fan control -features are provided, including PWM frequency control, temperature hysteresis, -dual tachometer measurements, and fan health monitoring. - -Required properties: -- compatible : One of "maxim,max31785" or "maxim,max31785a" -- reg : I2C address, one of 0x52, 0x53, 0x54, 0x55. - -Example: - - fans@52 { - compatible = "maxim,max31785"; - reg = <0x52>; - };
Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml +5 -1
@@ -20,7 +20,11 @@ description: > properties: compatible: - const: maxim,max31790 + enum: + - maxim,max31785 + - maxim,max31785a + - maxim,max31785b + - maxim,max31790 reg: maxItems: 1
Signature · 1 line
2.51.0
Eddie James
maintainerPATCH v7 5/7 dt-bindings: hwmon: max31790: Use addressed fan nodes
In reply to Eddie JamesSince fan properties can include reg, the fan controller should be able to specify address-cells and size-cells properties and use an addressed fan child node.
--- .../bindings/hwmon/maxim,max31790.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml +13 -3
@@ -35,11 +35,17 @@ properties: resets: maxItems: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + "#pwm-cells": const: 1 patternProperties: - "^fan-[0-9]+$": + "^fan@[0-9]+$": $ref: fan-common.yaml# unevaluatedProperties: false
@@ -60,13 +66,17 @@ examples: reg = <0x20>; clocks = <&sys_clk>; resets = <&reset 0>; + #address-cells = <1>; #pwm-cells = <1>; + #size-cells = <0>; - fan-0 { + fan@0 { + reg = <0x0>; pwms = <&pwm_provider 1>; }; - fan-1 { + fan@1 { + reg = <0x1>; pwms = <&pwm_provider 2>; }; };
Signature · 1 line
2.51.0
Re: [PATCH v7 5/7] dt-bindings: hwmon: max31790: Use addressed fan nodes
Quoted 9 lines · Eddie James
Since fan properties can include reg, the fan controller should be able to specify address-cells and size-cells properties and use an addressed fan child node.
Signed-off-by Eddie James <[email protected]>--- .../bindings/hwmon/maxim,max31790.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
Eddie James
maintainerPATCH v7 6/7 ARM: dts: aspeed: Add Balcones system
In reply to Eddie JamesThe Balcones system is similar to Bonnell but with a POWER11 processor. Like POWER10, the POWER11 is a dual-chip module, so a dual chip FSI tree is needed. Therefore, split up the quad chip FSI tree.
--- arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-balcones.dts | 609 ++++++++++++++ .../arm/boot/dts/aspeed/ibm-power11-dual.dtsi | 779 ++++++++++++++++++ .../arm/boot/dts/aspeed/ibm-power11-quad.dtsi | 769 +---------------- 4 files changed, 1391 insertions(+), 767 deletions(-) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dts create mode 100644 arch/arm/boot/dts/aspeed/ibm-power11-dual.dtsi
arch/arm/boot/dts/aspeed/Makefile +1 -0
@@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-facebook-yamp.dtb \ aspeed-bmc-facebook-yosemitev2.dtb \ aspeed-bmc-facebook-yosemite4.dtb \ + aspeed-bmc-ibm-balcones.dtb \ aspeed-bmc-ibm-blueridge.dtb \ aspeed-bmc-ibm-bonnell.dtb \ aspeed-bmc-ibm-everest.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dts new file +609 -0
609 lines not on this page · raw message
arch/arm/boot/dts/aspeed/ibm-power11-dual.dtsi new file +779 -0
779 lines not on this page · raw message
arch/arm/boot/dts/aspeed/ibm-power11-quad.dtsi +2 -767
802 lines not on this page · raw message
Signature · 1 line
2.51.0
Andrew Jeffery
maintainerQuoted 8 lines · Eddie James
The Balcones system is similar to Bonnell but with a POWER11 processor. Like POWER10, the POWER11 is a dual-chip module, so a dual chip FSI tree is needed. Therefore, split up the quad chip FSI tree.
Signed-off-by Eddie James <[email protected]>---
arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-balcones.dts | 609 ++++++++++++++
Looking at Balcones specifically, there's still an immediate concern:
/home/andrew/src/kernel.org/linux/origin/build.arm.aspeed_g5/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: pressure-sensor@76 (infineon,dps310): '#io-channel-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
On the whole though it's much cleaner than other IBM devicetrees, just the DTSI warnings remain. I'd appreciate it if you have some time for cleanups to Rainier, Everest and Bonnell, the number of warnings is really quite large :(
Andrew
Eddie James
maintainerQuoted 5 lines · Andrew Jeffery
Quoted 4 lines · Eddie James
The Balcones system is similar to Bonnell but with a POWER11 processor. Like POWER10, the POWER11 is a dual-chip module, so a dual chip FSI tree is needed. Therefore, split up the quad chip FSI tree.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Eddie James <[email protected]>--- arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-balcones.dts | 609 ++++++++++++++Looking at Balcones specifically, there's still an immediate concern:
/home/andrew/src/kernel.org/linux/origin/build.arm.aspeed_g5/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: pressure-sensor@76 (infineon,dps310): '#io-channel-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
Hmm, patch 3 in the series fixes this. Did you apply that one? Here is my output from CHECK_DTBS for balcones:
$ make CHECK_DTBS=y dtbs DTC [C] arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb /home/eajames/development/linux/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: timer (arm,armv7-timer): 'clocks' does not match any of the regexes: '^pinctrl-[0-9]+$' from schema $id: http://devicetree.org/schemas/timer/arm,arch_timer.yaml# /home/eajames/development/linux/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: sdram@1e6e0000 (aspeed,ast2600-sdram-edac): compatible: ['aspeed,ast2600-sdram-edac', 'syscon'] is too long from schema $id: http://devicetree.org/schemas/edac/aspeed,ast2400-sdram-edac.yaml# /home/eajames/development/linux/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: bus@1e600000 (aspeed,ast2600-ahbc): compatible: ['aspeed,ast2600-ahbc', 'syscon'] is too long from schema $id: http://devicetree.org/schemas/bus/aspeed,ast2600-ahbc.yaml# /home/eajames/development/linux/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: syscon@1e6e2000 (aspeed,ast2600-scu): 'smp-memram@180' does not match any of the regexes: '^interrupt-controller@[0-9a-f]+$', '^p2a-control@[0-9a-f]+$', '^pinctrl(@[0-9a-f]+)?$', '^pinctrl-[0-9]+$', '^silicon-id@[0-9a-f]+$' from schema $id: http://devicetree.org/schemas/mfd/aspeed,ast2x00-scu.yaml# arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: /ahb/apb/syscon@1e6e2000/smp-memram@180: failed to match any schema with compatible: ['aspeed,ast2600-smpmem'] /home/eajames/development/linux/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: adc@1e6e9000 (aspeed,ast2600-adc0): 'interrupts' does not match any of the regexes: '^pinctrl-[0-9]+$' from schema $id: http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml# /home/eajames/development/linux/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: adc@1e6e9100 (aspeed,ast2600-adc1): 'interrupts' does not match any of the regexes: '^pinctrl-[0-9]+$' from schema $id: http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml# /home/eajames/development/linux/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: crypto@1e6fa000 (aspeed,ast2600-acry): 'aspeed,ahbc' does not match any of the regexes: '^pinctrl-[0-9]+$' from schema $id: http://devicetree.org/schemas/crypto/aspeed,ast2600-acry.yaml# arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: /ahb/apb/lpc@1e789000/lhc@a0: failed to match any schema with compatible: ['aspeed,ast2600-lhc'] arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: /ahb/apb/lpc@1e789000/ibt@140: failed to match any schema with compatible: ['aspeed,ast2600-ibt-bmc'] arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: /ahb/apb/dma-controller@1e79e000: failed to match any schema with compatible: ['aspeed,ast2600-udma']
Quoted 5 lines
On the whole though it's much cleaner than other IBM devicetrees, just the DTSI warnings remain. I'd appreciate it if you have some time for cleanups to Rainier, Everest and Bonnell, the number of warnings is really quite large :(
Yea, I can try and get to it eventually :)
Thanks!
Eddie
Quoted 3 lines
Andrew
Andrew Jeffery
maintainerQuoted 11 lines · Eddie James
Quoted 9 lines · Andrew Jeffery
Quoted 8 lines · Eddie James
The Balcones system is similar to Bonnell but with a POWER11 processor. Like POWER10, the POWER11 is a dual-chip module, so a dual chip FSI tree is needed. Therefore, split up the quad chip FSI tree.
Signed-off-by Eddie James <[email protected]>---
arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-balcones.dts | 609 ++++++++++++++
Quoted 8 lines
Quoted 4 lines
Looking at Balcones specifically, there's still an immediate concern:
/home/andrew/src/kernel.org/linux/origin/build.arm.aspeed_g5/arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-balcones.dtb: pressure-sensor@76 (infineon,dps310): '#io-channel-cells' does not match any of the regexes: '^pinctrl-[0-9]+$' from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#Hmm, patch 3 in the series fixes this.
Indeed.
Quoted 2 lines
Did you apply that one?
I hadn't, as I can only take patches 1-2 and 6-7 through the bmc tree. 3 and 4-5 should go through the iio and hwmon trees respectively.
Having tested after integrating the whole series I've applied 1-2 and 6-7 to aspeed/arm/dt.
Thanks,
Andrew
Eddie James
maintainerPATCH v7 7/7 ARM: dts: aspeed: Fix max31785 fan properties
In reply to Eddie JamesRemove non-existant fan properties from max31785 nodes.
--- .../dts/aspeed/aspeed-bmc-ibm-bonnell.dts | 4 --- .../dts/aspeed/aspeed-bmc-ibm-everest.dts | 8 ----- .../dts/aspeed/aspeed-bmc-ibm-rainier.dts | 12 ------- .../boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 36 ------------------- 4 files changed, 60 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-bonnell.dts +0 -4
@@ -277,15 +277,11 @@ max31785@52 { #size-cells = <0>; fan0: fan@0 { - compatible = "pmbus-fan"; reg = <0>; - tach-pulses = <2>; }; fan1: fan@1 { - compatible = "pmbus-fan"; reg = <1>; - tach-pulses = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-everest.dts +0 -8
@@ -2066,27 +2066,19 @@ max31785@52 { reg = <0x52>; fan@0 { - compatible = "pmbus-fan"; reg = <0>; - tach-pulses = <2>; }; fan@1 { - compatible = "pmbus-fan"; reg = <1>; - tach-pulses = <2>; }; fan@2 { - compatible = "pmbus-fan"; reg = <2>; - tach-pulses = <2>; }; fan@3 { - compatible = "pmbus-fan"; reg = <3>; - tach-pulses = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-rainier.dts +0 -12
@@ -1080,39 +1080,27 @@ max: max31785@52 { #size-cells = <0>; fan0: fan@0 { - compatible = "pmbus-fan"; reg = <0>; - tach-pulses = <2>; }; fan1: fan@1 { - compatible = "pmbus-fan"; reg = <1>; - tach-pulses = <2>; }; fan2: fan@2 { - compatible = "pmbus-fan"; reg = <2>; - tach-pulses = <2>; }; fan3: fan@3 { - compatible = "pmbus-fan"; reg = <3>; - tach-pulses = <2>; }; fan4: fan@4 { - compatible = "pmbus-fan"; reg = <4>; - tach-pulses = <2>; }; fan5: fan@5 { - compatible = "pmbus-fan"; reg = <5>; - tach-pulses = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts +0 -36
@@ -481,55 +481,19 @@ max31785@52 { #size-cells = <0>; fan@0 { - compatible = "pmbus-fan"; reg = <0>; - tach-pulses = <2>; - maxim,fan-rotor-input = "tach"; - maxim,fan-pwm-freq = <25000>; - maxim,fan-dual-tach; - maxim,fan-no-watchdog; - maxim,fan-no-fault-ramp; - maxim,fan-ramp = <2>; - maxim,fan-fault-pin-mon; }; fan@1 { - compatible = "pmbus-fan"; reg = <1>; - tach-pulses = <2>; - maxim,fan-rotor-input = "tach"; - maxim,fan-pwm-freq = <25000>; - maxim,fan-dual-tach; - maxim,fan-no-watchdog; - maxim,fan-no-fault-ramp; - maxim,fan-ramp = <2>; - maxim,fan-fault-pin-mon; }; fan@2 { - compatible = "pmbus-fan"; reg = <2>; - tach-pulses = <2>; - maxim,fan-rotor-input = "tach"; - maxim,fan-pwm-freq = <25000>; - maxim,fan-dual-tach; - maxim,fan-no-watchdog; - maxim,fan-no-fault-ramp; - maxim,fan-ramp = <2>; - maxim,fan-fault-pin-mon; }; fan@3 { - compatible = "pmbus-fan"; reg = <3>; - tach-pulses = <2>; - maxim,fan-rotor-input = "tach"; - maxim,fan-pwm-freq = <25000>; - maxim,fan-dual-tach; - maxim,fan-no-watchdog; - maxim,fan-no-fault-ramp; - maxim,fan-ramp = <2>; - maxim,fan-fault-pin-mon; }; };
Signature · 1 line
2.51.0