Skip to contentSkip to conversation

Revise Meta(Facebook) Harma BMC(AST2600)

PATCH Superseded Peter Yin 2 participants 8 messages Jan 4, 2024

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Peter Yin

author
#0 lore raw

v2 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/CACPK8XePx+PvDKzPMjPRn_g9z8yrtAmLvP8Qbepm1AVjuCbaKw at mail.gmail.com/

Change log:

v1 -> v2
- Add infineon,slb9670 information for tpm.
- Patch 0006 - Add PDB temperature.

v1
- Patch 0001 - Revise SGPIO line name.
- Patch 0002 - Mapping ttyS2 to UART4.
- Patch 0003 - Remove Vuart.
- Patch 0004 - Add cpu power good line name.
- Patch 0005 - Add spi-gpio.

Peter Yin (6):
ARM: dts: aspeed: Harma: Revise SGPIO line name.
ARM: dts: aspeed: Harma: mapping ttyS2 to UART4.
ARM: dts: aspeed: Harma: Remove Vuart
ARM: dts: aspeed: Harma: Add cpu power good line name
ARM: dts: aspeed: Harma: Add spi-gpio
ARM: dts: aspeed: Harma: Add PDB temperature

 .../dts/aspeed/aspeed-bmc-facebook-harma.dts  | 38 +++++++++++++++----
 1 file changed, 30 insertions(+), 8 deletions(-)
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH v2 1/6 ARM: dts: aspeed: Harma: Revise SGPIO line name.

The same name as reset-control-smb-e1s
change to reset-control-smb-e1s-0 and reset-control-smb-e1s-0.

---

Revise linux device tree entry related to Meta(Facebook) Harma specific devices connected to BMC(AST2600) SoC.

Base on : https://lore.kernel.org/all/CACPK8XePx+PvDKzPMjPRn_g9z8yrtAmLvP8Qbepm1AVjuCbaKw at mail.gmail.com/

Change log:

v1 -> v2
- Add infineon,slb9670 information for tpm.
- Patch 0006 - Add PDB temperature.

v1
- Patch 0001 - Revise SGPIO line name.
- Patch 0002 - Mapping ttyS2 to UART4.
- Patch 0003 - Remove Vuart.
- Patch 0004 - Add cpu power good line name.
- Patch 0005 - Add spi-gpio.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +2 -2
index 7db3f9eb0016..8a173863ef24 100644
@@ -505,9 +505,9 @@ &sgpiom0 {
 	"","reset-control-cpu0-p1-mux",
 	"","reset-control-e1s-mux",
 	"power-host-good","reset-control-mb-mux",
-	"","reset-control-smb-e1s",
+	"","reset-control-smb-e1s-0",
 	/*E0-E3 line 64-71*/
-	"","reset-control-smb-e1s",
+	"","reset-control-smb-e1s-1",
 	"host-ready-n","reset-control-srst",
 	"presence-e1s-0","reset-control-usb-hub",
 	"","reset-control",
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH v2 2/6 ARM: dts: aspeed: Harma: mapping ttyS2 to UART4.

In reply to Peter Yin

Change routing to match SOL(Serial Over LAN) settings.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +2 -2
index 8a173863ef24..a0056d633eb1 100644
@@ -12,8 +12,8 @@ / {
 
 	aliases {
 		serial0 = &uart1;
-		serial1 = &uart6;
-		serial2 = &uart2;
+		serial1 = &uart2;
+		serial2 = &uart4;
 		serial4 = &uart5;
 
 		i2c20 = &imux20;
Signature · 1 line
2.25.1
author
#3 lore raw

PATCH v2 3/6 ARM: dts: aspeed: Harma: Remove Vuart

In reply to Peter Yin

Remove vuart to avoid port conflict with uart2

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +0 -4
index a0056d633eb1..5d692e9f541e 100644
@@ -100,10 +100,6 @@ &uart_routing {
 	status = "okay";
 };
 
-&vuart1 {
-	status = "okay";
-};
-
 &wdt1 {
 	status = "okay";
 	pinctrl-names = "default";
Signature · 1 line
2.25.1
author
#4 lore raw

PATCH v2 4/6 ARM: dts: aspeed: Harma: Add cpu power good line name

In reply to Peter Yin

Add a line name for cpu power good.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +1 -1
index 5d692e9f541e..36aad01dda20 100644
@@ -501,7 +501,7 @@ &sgpiom0 {
 	"","reset-control-cpu0-p1-mux",
 	"","reset-control-e1s-mux",
 	"power-host-good","reset-control-mb-mux",
-	"","reset-control-smb-e1s-0",
+	"power-cpu-good","reset-control-smb-e1s-0",
 	/*E0-E3 line 64-71*/
 	"","reset-control-smb-e1s-1",
 	"host-ready-n","reset-control-srst",
Signature · 1 line
2.25.1
author
#5 lore raw

PATCH v2 5/6 ARM: dts: aspeed: Harma: Add spi-gpio

In reply to Peter Yin

Add spi-gpio for tpm device.

---
 .../dts/aspeed/aspeed-bmc-facebook-harma.dts  | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +21 -0
index 36aad01dda20..ca3052cce0e0 100644
@@ -28,6 +28,8 @@ aliases {
 		i2c29 = &imux29;
 		i2c30 = &imux30;
 		i2c31 = &imux31;
+
+		spi1 = &spi_gpio;
 	};
 
 	chosen {
@@ -67,6 +69,25 @@ led-2 {
 			gpios = <&gpio0 124 GPIO_ACTIVE_HIGH>;
 		};
 	};
+
+	spi_gpio: spi-gpio {
+		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>;
+		num-chipselects = <1>;
+		cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
+
+		tpmdev at 0 {
+			compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
+			spi-max-frequency = <33000000>;
+			reg = <0>;
+		};
+	};
 };
 
 // HOST BIOS Debug
Signature · 1 line
2.25.1
author
#6 lore raw

PATCH v2 6/6 ARM: dts: aspeed: Harma: Add PDB temperature

In reply to Peter Yin

Add PDB temperature sensor.

---
 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
index ca3052cce0e0..4d5d1c822fa3 100644
@@ -260,6 +260,11 @@ delta_brick at 69 {
 		compatible = "pmbus";
 		reg = <0x69>;
 	};
+
+	tmp75 at 49 {
+		compatible = "ti,tmp75";
+		reg = <0x49>;
+	};
 };
 
 &i2c5 {
Signature · 1 line
2.25.1
Reviewed-by on the v2 series
#7 lore raw
In reply to Peter Yin
Quoted 27 lines · Peter Yin

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/CACPK8XePx+PvDKzPMjPRn_g9z8yrtAmLvP8Qbepm1AVjuCbaKw at mail.gmail.com/

Change log:

v1 -> v2
- Add infineon,slb9670 information for tpm.
- Patch 0006 - Add PDB temperature.

v1
- Patch 0001 - Revise SGPIO line name.
- Patch 0002 - Mapping ttyS2 to UART4.
- Patch 0003 - Remove Vuart.
- Patch 0004 - Add cpu power good line name.
- Patch 0005 - Add spi-gpio.

Peter Yin (6):
ARM: dts: aspeed: Harma: Revise SGPIO line name.
ARM: dts: aspeed: Harma: mapping ttyS2 to UART4.
ARM: dts: aspeed: Harma: Remove Vuart
ARM: dts: aspeed: Harma: Add cpu power good line name
ARM: dts: aspeed: Harma: Add spi-gpio
ARM: dts: aspeed: Harma: Add PDB temperature

Quoted 6 lines
 .../dts/aspeed/aspeed-bmc-facebook-harma.dts  | 38 +++++++++++++++----
 1 file changed, 30 insertions(+), 8 deletions(-)
Signature · 1 line
2.25.1
Signature · 8 lines
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20240104/b2a931a4/attachment.sig>