Skip to contentSkip to conversation

ARM: dts: aspeed: bletchley: Update Bletchley devicetree

PATCH In review Potin Lai 4 participants 7 messages Dec 26, 2022 – Jan 23, 2023

Subsystems (2)
lore
Share & tools
lore

Potin Lai

author
#0 lore raw

cover ARM: dts: aspeed: bletchley: Update Bletchley devicetree

Update Bletchley BMC devicetree.

Potin Lai (2):
ARM: dts: aspeed: bletchley: rename flash1 label
ARM: dts: aspeed: bletchley: enable wdtrst1

 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 1/2 ARM: dts: aspeed: bletchley: rename flash1 label

In OpenBMC, phosphor-software-manager use "alt-bmc" for secondary falsh label.
Rename flash1 label to "alt-bmc" to support dual image feature inOpenBMC.

---
 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +1 -1
index a619eec70633..791f83aaac50 100644
@@ -307,7 +307,7 @@ flash at 0 {
 	flash at 1 {
 		status = "okay";
 		m25p,fast-read;
-		label = "flash1";
+		label = "alt-bmc";
 		spi-max-frequency = <50000000>;
 	};
 };
Signature · 1 line
2.31.1
#2 lore raw

PATCH 1/2 ARM: dts: aspeed: bletchley: rename flash1 label

Quoted 18 lines · Potin Lai

In OpenBMC, phosphor-software-manager use "alt-bmc" for secondary falsh label.
Rename flash1 label to "alt-bmc" to support dual image feature inOpenBMC.

---
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +0 -0
index a619eec70633..791f83aaac50 100644

arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts flash at 0 { · line 311

Quoted 6 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +1 -1
@@ -307,7 +307,7 @@ flash at 0 {
 	flash at 1 {
 		status = "okay";
 		m25p,fast-read;
-		label = "flash1";
+		label = "alt-bmc";
 		spi-max-frequency = <50000000>;

This is correct, and I see it?s been merged into 6.3.
Just something you may want do to as a follow-up change to add the partitions to the alternate flash device. Similar to the include line for:

flash at 0{
?
label = ?bmc?
...
#include "openbmc-flash-layout-128.dtsi?
};

You probably want an include for the alt partitions and add this include line at the end:
flash at 1{
?
label = ?alt-bmc?;
...
+ #include "openbmc-flash-layout-128-alt.dtsi?
};

There?s not a file "openbmc-flash-layout-128-alt.dtsi? that exists today, so you?d need to create it by copying it the existing "openbmc-flash-layout-128.dtsi? and just add an ?alt-? prefix to the partition labels, this is the change that was done to create the file "openbmc-flash-layout-64-alt.dtsi? for 64MB flash chips as an example: https://lore.kernel.org/openbmc/Yboga8RUoYrXoPB1 at heinlein/t/#maca042c23241f765fc2aaaa9d90131ee69b8cf81

The function that you gain by adding ?alt-? partitions to the secondary flash device is that the phosphor-software-manager code will auto-mount the partitions including the read-write filesystem for syncing/backup and also create the d-bus version interfaces for this secondary flash device.

This is probably more information that you?d want, but you may had noticed that IBM?s 128MB tacoma system "aspeed-bmc-opp-tacoma.dts? does not have partitions for the secondary device, and the reason is that the 2nd NOR chip is not used, instead we have an eMMC card attached and use the u-boot partition from the primary NOR flash device. Otherwise we would had created the "openbmc-flash-layout-128-alt.dtsi? file already.

Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +0 -0
 	};
 };
Signature · 1 line
2.31.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20230123/233fe1bc/attachment-0001.htm>

author
#3 lore raw

PATCH 2/2 ARM: dts: aspeed: bletchley: enable wdtrst1

In reply to Potin Lai

Enable WDTRST1 external signal to send a reset pluse to peripherals while BMC reset.

---
 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +11 -0
index 791f83aaac50..050ed7e810fa 100644
@@ -1064,3 +1064,14 @@ pinctrl_gpiov2_unbiased_default: gpiov2 {
 		bias-disable;
 	};
 };
+
+&wdt1 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_wdtrst1_default>;
+	aspeed,reset-type = "soc";
+	aspeed,external-signal;
+	aspeed,ext-push-pull;
+	aspeed,ext-active-high;
+	aspeed,ext-pulse-duration = <256>;
+};
Signature · 1 line
2.31.1
#4 lore raw

Re: [PATCH 2/2] ARM: dts: aspeed: bletchley: enable wdtrst1

Quoted 2 lines · Potin Lai

Enable WDTRST1 external signal to send a reset pluse to peripherals while BMC reset.

nit: s/pluse/pulse

Quoted 28 lines
---
 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +11 -0
index 791f83aaac50..050ed7e810fa 100644
@@ -1064,3 +1064,14 @@ pinctrl_gpiov2_unbiased_default: gpiov2 {
 		bias-disable;
 	};
 };
+
+&wdt1 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_wdtrst1_default>;
+	aspeed,reset-type = "soc";
+	aspeed,external-signal;
+	aspeed,ext-push-pull;
+	aspeed,ext-active-high;
+	aspeed,ext-pulse-duration = <256>;
+};
Signature · 1 line
2.31.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/20230103/252a9a57/attachment.sig>
Reviewed-by on the v1 series
#5 lore raw
In reply to Potin Lai
Quoted 5 lines · Potin Lai

Update Bletchley BMC devicetree.

Potin Lai (2):
ARM: dts: aspeed: bletchley: rename flash1 label
ARM: dts: aspeed: bletchley: enable wdtrst1

Series is

Quoted 7 lines
 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
Signature · 1 line
2.31.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/20230103/abf39bd9/attachment.sig>
maintainer
#6 lore raw
Quoted 11 lines · Patrick Williams
Quoted 5 lines · Potin Lai

Update Bletchley BMC devicetree.

Potin Lai (2):
ARM: dts: aspeed: bletchley: rename flash1 label
ARM: dts: aspeed: bletchley: enable wdtrst1

Series is

Merged for submission in v6.3.

Cheers,

Joel