Skip to contentSkip to conversation

Revise Meta(Facebook) Harma BMC(AST2600)

PATCH In review Peter Yin 2 participants 5 messages Aug 28, 2025 – Sep 3, 2025

Subsystems (2)

v3 of 5 In review Latest is v5 →

lore
Share & tools
lore

Peter Yin

author
#0 lore raw

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.

v2 -> v3
- Patch 0003 - add HSC mp5990

v1 -> v2
- Patch 0002 - add power-12v-memory-good

v1
- Patch 0001 - add power monitor support
- Patch 0002 - revise gpio name

Base: tags/v6.17-rc3-39-g07d9df80082b

Peter Yin (3):
ARM: dts: aspeed: harma: add power monitor support
ARM: dts: aspeed: harma: revise gpio name
ARM: dts: aspeed: harma: add mp5990

 .../dts/aspeed/aspeed-bmc-facebook-harma.dts  | 31 +++++++++++++------
 1 file changed, 22 insertions(+), 9 deletions(-)
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH v3 1/3 ARM: dts: aspeed: harma: add power monitor support

Add INA238 device on I2C bus 4 for the PDB board power monitoring.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +6 -0
index b9a93f23bd0a..741d2d9b6d03 100644
@@ -373,6 +373,12 @@ power-monitor@40 {
 		compatible = "infineon,xdp710";
 		reg = <0x40>;
 	};
+
+	power-sensor@45 {
+		compatible = "ti,ina238";
+		reg = <0x45>;
+		shunt-resistor = <500>;
+	};
 };
 
 &i2c5 {
Signature · 1 line
2.43.0
author
#2 lore raw

PATCH v3 2/3 ARM: dts: aspeed: harma: revise gpio name

In reply to Peter Yin

Update GPIO label definitions in the device tree to reflect the correct power and control signal names. This includes:

- Rename "fcb0-activate" to "fcb1-activate" and "fcb2-activate"
- Add labels for:
- power-p3v3-standby
- power-p1v8-good
- power-pvdd33-s5
- power-pvdd18-s5
- power-asic-good
- power-12v-memory-good

- Replace unnamed GPIOs with appropriate labels such as:
- irq-pvddcore0-ocp-alert
- irq-pvddcore1-ocp-alert

---
 .../dts/aspeed/aspeed-bmc-facebook-harma.dts  | 21 +++++++++++--------
 1 file changed, 12 insertions(+), 9 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +12 -9
index 741d2d9b6d03..81278a7702de 100644
@@ -234,7 +234,7 @@ gpio@12 {
 		"","",
 		"","",
 		"","",
-		"","fcb1-activate",
+		"","fcb2-activate",
 		"","";
 	};
 };
@@ -308,7 +308,7 @@ gpio@12 {
 		"","",
 		"","",
 		"","",
-		"","fcb0-activate",
+		"","fcb1-activate",
 		"","";
 	};
 };
@@ -698,14 +698,14 @@ &sgpiom0 {
 	"","",
 	/*A4-A7 line 8-15*/
 	"","power-config-asic-module-enable",
-	"","power-config-asic-power-good",
-	"","power-config-pdb-power-good",
+	"power-p3v3-standby","power-config-asic-power-good",
+	"power-p1v8-good","power-config-pdb-power-good",
 	"presence-cpu","smi-control-n",
 	/*B0-B3 line 16-23*/
 	"","nmi-control-n",
-	"","nmi-control-sync-flood-n",
-	"","",
+	"power-pvdd33-s5","nmi-control-sync-flood-n",
 	"","",
+	"power-pvdd18-s5","",
 	/*B4-B7 line 24-31*/
 	"","FM_CPU_SP5R1",
 	"reset-cause-rsmrst","FM_CPU_SP5R2",
@@ -749,7 +749,7 @@ &sgpiom0 {
 	/*F4-F7 line 88-95*/
 	"presence-asic-modules-0","rt-cpu0-p1-force-enable",
 	"presence-asic-modules-1","bios-debug-msg-disable",
-	"","uart-control-buffer-select",
+	"power-asic-good","uart-control-buffer-select",
 	"presence-cmm","ac-control-n",
 	/*G0-G3 line 96-103*/
 	"FM_CPU_CORETYPE2","",
@@ -801,7 +801,7 @@ &sgpiom0 {
 	"asic0-card-type-detection2-n","",
 	"uart-switch-lsb","",
 	"uart-switch-msb","",
-	"","",
+	"power-12v-memory-good","",
 	/*M4-M7 line 200-207*/
 	"","","","","","","","",
 	/*N0-N3 line 208-215*/
@@ -809,7 +809,10 @@ &sgpiom0 {
 	/*N4-N7 line 216-223*/
 	"","","","","","","","",
 	/*O0-O3 line 224-231*/
-	"","","","","","","","",
+	"","",
+	"irq-pvddcore0-ocp-alert","",
+	"irq-pvddcore1-ocp-alert","",
+	"","",
 	/*O4-O7 line 232-239*/
 	"","","","","","","","",
 	/*P0-P3 line 240-247*/
Signature · 1 line
2.43.0
author
#3 lore raw

PATCH v3 3/3 ARM: dts: aspeed: harma: add mp5990

In reply to Peter Yin

Add support for the HSC MP5990 device on the Harma platform.

This change updates the device tree to include the MP5990 HSC (Hot Swap Controller), allowing proper configuration and integration with the platform.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +4 -0
index 81278a7702de..23eaf47a38e8 100644
@@ -520,6 +520,10 @@ imux28: i2c@0 {
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <0>;
+			power-sensor@20 {
+				compatible = "mps,mp5990";
+				reg = <0x20>;
+			};
 			power-monitor@61 {
 				compatible = "isil,isl69260";
 				reg = <0x61>;
Signature · 1 line
2.43.0
maintainer
#4 lore raw

Re: [PATCH v3 3/3] ARM: dts: aspeed: harma: add mp5990

Hi Peter,

Quoted 17 lines · Peter Yin

Add support for the HSC MP5990 device on the Harma platform.

This change updates the device tree to include the MP5990 HSC (Hot Swap Controller), allowing proper configuration and integration with the platform.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 4 ++++

 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +0 -0
index 81278a7702de..23eaf47a38e8 100644

arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts imux28: i2c@0 { · line 529

Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +4 -0
@@ -520,6 +520,10 @@ imux28: i2c@0 {
                         #address-cells = <1>;
                         #size-cells = <0>;
                         reg = <0>;
+                       power-sensor@20 {
+                               compatible = "mps,mp5990";
+                               reg = <0x20>;
+                       };
                         power-monitor@61 {
                                 compatible = "isil,isl69260";
                                 reg = <0x61>;

I've applied the series, however, can you please send a follow-up patch adding new-lines between the child nodes of imux28? It's not consistent with the rest of the devicetree and is a bit dense.

Thanks,

Andrew