Revise Meta(Facebook) Harma BMC(AST2600)
Subsystems (2)
v3 cover Revise Meta(Facebook) Harma BMC(AST2600)
Summary:
Revise linux device tree entry related to Meta(Facebook) Harma specific devices connected to BMC(AST2600) SoC.
Base on: https://lore.kernel.org/all/CAPSyxFRj0twCJG6Lr5UZpznrUHyd_L0Reo=kZSFwCw3FNQ+x+A at mail.gmail.com/
Change log:
v2 -> v3
- fixed dtb_check warning base on https://lore.kernel.org/all/20240801153429.1277378-1-peteryin.openbmc at gmail.com/
- Patch 0011 - remove pca9546 from i2c9
v1 -> v2
- Patch 0007 - add fru device - Patch 0008 - add temperature device - Patch 0009 - enable mctp controller
- Patch 0010 - fixed dtb_check warning
v1
- Patch 0001 - revise hsc chip
- Patch 0002 - add VR device
- Patch 0003 - add sgpio name
- Patch 0004 - add ina238
- Patch 0005 - add power monitor xdp710
- Patch 0006 - remove multi-host property
- Patch 0007 - remove pca9546
Peter Yin (11):
ARM: dts: aspeed: Harma: revise hsc chip
ARM: dts: aspeed: Harma: add VR device
ARM: dts: aspeed: Harma: add sgpio name
ARM: dts: aspeed: Harma: add ina238
ARM: dts: aspeed: Harma: add power monitor xdp710
ARM: dts: aspeed: Harma: remove multi-host property
ARM: dts: aspeed: Harma: add fru device
ARM: dts: aspeed: Harma: add temperature device
ARM: dts: aspeed: Harma: enable mctp controller
ARM: dts: aspeed: Harma: fixed dtb_check warning
ARM: dts: aspeed: Harma: remove pca9546
.../dts/aspeed/aspeed-bmc-facebook-harma.dts | 177 +++++++++++++----- 1 file changed, 132 insertions(+), 45 deletions(-)
Signature · 1 line
2.25.1
PATCH v3 1/11 ARM: dts: aspeed: Harma: revise hsc chip
Revise HSC chip name and address to match LTC4287.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +4 -5
@@ -276,11 +276,10 @@ temperature-sensor at 49 { reg = <0x49>; }; - power-monitor at 22 { - compatible = "lltc,ltc4286"; - reg = <0x22>; - adi,vrange-low-enable; - shunt-resistor-micro-ohms = <500>; + power-monitor at 44 { + compatible = "lltc,ltc4287"; + reg = <0x44>; + shunt-resistor-micro-ohms = <250>; }; };
Signature · 1 line
2.25.1
PATCH v3 2/11 ARM: dts: aspeed: Harma: add VR device
In reply to Peter YinAdd isl69260, xdpe152c4 device
--- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +24 -0
@@ -398,6 +398,30 @@ imux28: i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + power-monitor at 61 { + compatible = "isil,isl69260"; + reg = <0x61>; + }; + power-monitor at 62 { + compatible = "isil,isl69260"; + reg = <0x62>; + }; + power-monitor at 63 { + compatible = "isil,isl69260"; + reg = <0x63>; + }; + power-monitor at 64 { + compatible = "infineon,xdpe152c4"; + reg = <0x64>; + }; + power-monitor at 66 { + compatible = "infineon,xdpe152c4"; + reg = <0x66>; + }; + power-monitor at 68 { + compatible = "infineon,xdpe152c4"; + reg = <0x68>; + }; }; imux29: i2c at 1 { #address-cells = <1>;
Signature · 1 line
2.25.1
Andrew Jeffery
maintainerRe: [PATCH v3 02/11] ARM: dts: aspeed: Harma: add VR device
Quoted 17 lines · Peter Yin
Add isl69260, xdpe152c4 device
Signed-off-by Peter Yin <[email protected]>--- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +2
-0@@ -398,6 +398,30 @@ imux28: i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + power-monitor at 61 { + compatible = "isil,isl69260";
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts imux28: i2c at 0 { · line 412
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +10
-0+ reg = <0x61>; + }; + power-monitor at 62 { + compatible = "isil,isl69260"; + reg = <0x62>; + }; + power-monitor at 63 { + compatible = "isil,isl69260"; + reg = <0x63>; + };
As of v6.11-rc1 this gives me:
``` $ ./scripts/checkpatch.pl --strict -g HEAD ... WARNING: DT compatible string "isil,isl69260" appears un-documented -- check ./Documentation/devicetree/bindings/ #24: FILE: arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts:402: + compatible = "isil,isl69260"; WARNING: DT compatible string "isil,isl69260" appears un-documented -- check ./Documentation/devicetree/bindings/ #28: FILE: arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts:406: + compatible = "isil,isl69260"; WARNING: DT compatible string "isil,isl69260" appears un-documented -- check ./Documentation/devicetree/bindings/ #32: FILE: arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts:410: + compatible = "isil,isl69260"; total: 0 errors, 3 warnings, 0 checks, 30 lines checked ```
and
``` $ make CHECK_DTBS=y aspeed/aspeed-bmc-facebook-harma.dtb 2>&1 | grep isil ... arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dtb: /ahb/apb/bus at 1e78a000/i2c at 700/i2c-mux at 70/i2c at 0/power-monitor at 61: failed to match any schema with compatible: ['isil,isl69260'] arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dtb: /ahb/apb/bus at 1e78a000/i2c at 700/i2c-mux at 70/i2c at 0/power-monitor at 62: failed to match any schema with compatible: ['isil,isl69260'] arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dtb: /ahb/apb/bus at 1e78a000/i2c at 700/i2c-mux at 70/i2c at 0/power-monitor at 63: failed to match any schema with compatible: ['isil,isl69260'] ```
While there's already an Aspeed-based Quanta platform that also specifies this device, let's not add to the problems of the Aspeed devicetrees.
Please make sure to run make dtbs_check ... and checkpatch on your changes. Regarding make dtbs_check and related tests, this blog post is helpful:
Andrew
Andrew Jeffery
maintainerRe: [PATCH v3 02/11] ARM: dts: aspeed: Harma: add VR device
Quoted 63 lines · Andrew Jeffery
Quoted 17 lines · Peter Yin
Add isl69260, xdpe152c4 device
Signed-off-by Peter Yin <[email protected]>--- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +2
-0@@ -398,6 +398,30 @@ imux28: i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + power-monitor at 61 { + compatible = "isil,isl69260";arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts imux28: i2c at 0 { · line 412
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +10
-0+ reg = <0x61>; + }; + power-monitor at 62 { + compatible = "isil,isl69260"; + reg = <0x62>; + }; + power-monitor at 63 { + compatible = "isil,isl69260"; + reg = <0x63>; + };As of v6.11-rc1 this gives me:
``` $ ./scripts/checkpatch.pl --strict -g HEAD ... WARNING: DT compatible string "isil,isl69260" appears un-documented -- check ./Documentation/devicetree/bindings/ #24: FILE: arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts:402: + compatible = "isil,isl69260"; WARNING: DT compatible string "isil,isl69260" appears un-documented -- check ./Documentation/devicetree/bindings/ #28: FILE: arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts:406: + compatible = "isil,isl69260"; WARNING: DT compatible string "isil,isl69260" appears un-documented -- check ./Documentation/devicetree/bindings/ #32: FILE: arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts:410: + compatible = "isil,isl69260"; total: 0 errors, 3 warnings, 0 checks, 30 lines checked ```and
``` $ make CHECK_DTBS=y aspeed/aspeed-bmc-facebook-harma.dtb 2>&1 | grep isil ... arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dtb: /ahb/apb/bus at 1e78a000/i2c at 700/i2c-mux at 70/i2c at 0/power-monitor at 61: failed to match any schema with compatible: ['isil,isl69260'] arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dtb: /ahb/apb/bus at 1e78a000/i2c at 700/i2c-mux at 70/i2c at 0/power-monitor at 62: failed to match any schema with compatible: ['isil,isl69260'] arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dtb: /ahb/apb/bus at 1e78a000/i2c at 700/i2c-mux at 70/i2c at 0/power-monitor at 63: failed to match any schema with compatible: ['isil,isl69260'] ```While there's already an Aspeed-based Quanta platform that also specifies this device, let's not add to the problems of the Aspeed devicetrees.
Quoted 5 lines
Please make sure to run
make dtbs_check ...and checkpatch on your changes. Regardingmake dtbs_checkand related tests, this blog post is helpful:
On the basis of the reviews on [1] and Rob stating he's applied the binding patch, I've applied this series to be picked up through the BMC tree.
[1]: https://lore.kernel.org/all/20240809070056.3588694-1-peteryin.openbmc at gmail.com/
Thanks,
Andrew
PATCH v3 3/11 ARM: dts: aspeed: Harma: add sgpio name
In reply to Peter YinAdd power-chassis-control and power-chassis-power
for phosphor-power
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +3 -2
@@ -520,13 +520,14 @@ &gpio0 { /*O0-O7*/ "","","","","","","","", /*P0-P7*/ "power-button","power-host-control", "reset-button","","led-power","","","", - /*Q0-Q7*/ "","","","","","","","", + /*Q0-Q7*/ "","","","","","power-chassis-control","","", /*R0-R7*/ "","","","","","","","", /*S0-S7*/ "","","","","","","","", /*T0-T7*/ "","","","","","","","", /*U0-U7*/ "","","","","","","led-identify-gate","", /*V0-V7*/ "","","","", - "rtc-battery-voltage-read-enable","","","", + "rtc-battery-voltage-read-enable","", + "power-chassis-good","", /*W0-W7*/ "","","","","","","","", /*X0-X7*/ "","","","","","","","", /*Y0-Y7*/ "","","","","","","","",
Signature · 1 line
2.25.1
PATCH v3 4/11 ARM: dts: aspeed: Harma: add ina238
In reply to Peter YinAdd INA238 power monitor for Harma fan board.
--- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +48 -0
@@ -198,6 +198,30 @@ pwm at 5e{ #address-cells = <1>; #size-cells = <0>; }; + + power-sensor at 40 { + compatible = "ti,ina238"; + reg = <0x40>; + shunt-resistor = <1000>; + }; + + power-sensor at 41 { + compatible = "ti,ina238"; + reg = <0x41>; + shunt-resistor = <1000>; + }; + + power-sensor at 44 { + compatible = "ti,ina238"; + reg = <0x44>; + shunt-resistor = <1000>; + }; + + power-sensor at 45 { + compatible = "ti,ina238"; + reg = <0x45>; + shunt-resistor = <1000>; + }; }; &i2c1 {
@@ -224,6 +248,30 @@ pwm at 5e{ #address-cells = <1>; #size-cells = <0>; }; + + power-sensor at 40 { + compatible = "ti,ina238"; + reg = <0x40>; + shunt-resistor = <1000>; + }; + + power-sensor at 41 { + compatible = "ti,ina238"; + reg = <0x41>; + shunt-resistor = <1000>; + }; + + power-sensor at 44 { + compatible = "ti,ina238"; + reg = <0x44>; + shunt-resistor = <1000>; + }; + + power-sensor at 45 { + compatible = "ti,ina238"; + reg = <0x45>; + shunt-resistor = <1000>; + }; }; &i2c3 {
Signature · 1 line
2.25.1
PATCH v3 5/11 ARM: dts: aspeed: Harma: add power monitor xdp710
In reply to Peter YinAdd HSC xdp710 device in i2c4.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +5 -0
@@ -329,6 +329,11 @@ power-monitor at 44 { reg = <0x44>; shunt-resistor-micro-ohms = <250>; }; + + power-monitor at 40 { + compatible = "infineon,xdp710"; + reg = <0x40>; + }; }; &i2c5 {
Signature · 1 line
2.25.1
PATCH v3 6/11 ARM: dts: aspeed: Harma: remove multi-host property
In reply to Peter YinHarma is single host, so remove multi-host property
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 1 - 1 file changed, 1 deletion(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +0 -1
@@ -137,7 +137,6 @@ &mac3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_rmii4_default>; use-ncsi; - mellanox,multi-host; }; &rtc {
Signature · 1 line
2.25.1
PATCH v3 7/11 ARM: dts: aspeed: Harma: add fru device
In reply to Peter YinAdd Aegis fru device and gpio expander device in bus 11.
--- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +25 -0
@@ -427,6 +427,31 @@ eeprom at 52 { &i2c11 { status = "okay"; + + gpio at 30 { + compatible = "nxp,pca9555"; + reg = <0x30>; + gpio-controller; + #gpio-cells = <2>; + }; + gpio at 31 { + compatible = "nxp,pca9555"; + reg = <0x31>; + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "","","","", + "","","presence-cmm","", + "","","","", + "","","",""; + }; + + // Aegis FRU + eeprom at 52 { + compatible = "atmel,24c64"; + reg = <0x52>; + }; }; &i2c12 {
Signature · 1 line
2.25.1
PATCH v3 8/11 ARM: dts: aspeed: Harma: add temperature device
In reply to Peter YinAdd temperature deivce in i2c0 and i2c2
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +10 -0
@@ -221,6 +221,11 @@ power-sensor at 45 { reg = <0x45>; shunt-resistor = <1000>; }; + + temperature-sensor at 4b { + compatible = "ti,tmp75"; + reg = <0x4b>; + }; }; &i2c1 {
@@ -271,6 +276,11 @@ power-sensor at 45 { reg = <0x45>; shunt-resistor = <1000>; }; + + temperature-sensor at 4b { + compatible = "ti,tmp75"; + reg = <0x4b>; + }; }; &i2c3 {
Signature · 1 line
2.25.1
PATCH v3 9/11 ARM: dts: aspeed: Harma: enable mctp controller
In reply to Peter YinEnable the mctp controller in i2c9.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +8 -0
@@ -382,6 +382,14 @@ &i2c8 { &i2c9 { status = "okay"; + mctp-controller; + multi-master; + + mctp at 10 { + compatible = "mctp-i2c-controller"; + reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; + }; + gpio at 30 { compatible = "nxp,pca9555"; reg = <0x30>;
Signature · 1 line
2.25.1
PATCH v3 10/11 ARM: dts: aspeed: Harma: fixed dtb_check warning
In reply to Peter Yin1. revise spi-gpio node and property name.
2. revise tpm node name
3. remove max-ngpios
--- .../arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +5 -6
@@ -70,19 +70,19 @@ led-2 { }; }; - spi_gpio: spi-gpio { + spi_gpio: spi { status = "okay"; compatible = "spi-gpio"; #address-cells = <1>; #size-cells = <0>; - gpio-sck = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>; - gpio-mosi = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>; - gpio-miso = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>; + sck-gpios = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>; + mosi-gpios = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>; + miso-gpios = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>; num-chipselects = <1>; cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>; - tpmdev at 0 { + tpm at 0 { compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; spi-max-frequency = <33000000>; reg = <0>;
@@ -640,7 +640,6 @@ &gpio1 { &sgpiom0 { status = "okay"; - max-ngpios = <128>; ngpios = <128>; bus-frequency = <2000000>; gpio-line-names =
Signature · 1 line
2.25.1
PATCH v3 11/11 ARM: dts: aspeed: Harma: remove pca9546
In reply to Peter YinRemove pca9546 device from i2c bus 9.
--- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 31 ------------------- 1 file changed, 31 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +0 -31
@@ -20,10 +20,6 @@ aliases { i2c21 = &imux21; i2c22 = &imux22; i2c23 = &imux23; - i2c24 = &imux24; - i2c25 = &imux25; - i2c26 = &imux26; - i2c27 = &imux27; i2c28 = &imux28; i2c29 = &imux29; i2c30 = &imux30;
@@ -409,33 +405,6 @@ gpio at 31 { "","","",""; }; - i2c-mux at 71 { - compatible = "nxp,pca9546"; - reg = <0x71>; - #address-cells = <1>; - #size-cells = <0>; - - imux24: i2c at 0 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - }; - imux25: i2c at 1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <1>; - }; - imux26: i2c at 2 { - #address-cells = <1>; - #size-cells = <0>; - reg = <2>; - }; - imux27: i2c at 3 { - #address-cells = <1>; - #size-cells = <0>; - reg = <3>; - }; - }; // PTTV FRU eeprom at 52 { compatible = "atmel,24c64";
Signature · 1 line
2.25.1