summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Olberding <molberding@nvidia.com>2026-01-20 12:34:14 -0800
committerAndrew Jeffery <andrew@codeconstruct.com.au>2026-02-23 09:43:06 +1030
commit62f0fd7599f092f07203d7113612870fe98b60d5 (patch)
treeea146ef6625acdd4228656f51f704987551458d9
parent36c1cea299fe548a02b6d652e53908ce3ffad008 (diff)
ARM: dts: aspeed: Add 128M alt flash layout to NVIDIA MSX4
Add a 128M layout for the BMC flash chip we didn't boot from. Including this allows the user to write to each partition on the alternate spi chip. This dtsi follows the existing standard of using the same layout as non alt version and prepending `alt` to each partition's name. [arj: Update subject, elide test demonstration] Signed-off-by: Marc Olberding <molberding@nvidia.com> Link: https://patch.msgid.link/20260120-alt-128-v4-1-0e5c491a532c@nvidia.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
-rw-r--r--arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-msx4-bmc.dts1
-rw-r--r--arch/arm/boot/dts/aspeed/openbmc-flash-layout-128-alt.dtsi32
2 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-msx4-bmc.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-msx4-bmc.dts
index 44f95a3986cb..a12d4164de4a 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-msx4-bmc.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-msx4-bmc.dts
@@ -67,6 +67,7 @@
spi-tx-bus-width = <1>;
spi-rx-bus-width = <1>;
status = "okay";
+ #include "openbmc-flash-layout-128-alt.dtsi"
};
};
diff --git a/arch/arm/boot/dts/aspeed/openbmc-flash-layout-128-alt.dtsi b/arch/arm/boot/dts/aspeed/openbmc-flash-layout-128-alt.dtsi
new file mode 100644
index 000000000000..08ce2eab472c
--- /dev/null
+++ b/arch/arm/boot/dts/aspeed/openbmc-flash-layout-128-alt.dtsi
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ u-boot@0 {
+ reg = <0x0 0xe0000>; // 896KB
+ label = "alt-u-boot";
+ };
+
+ u-boot-env@e0000 {
+ reg = <0xe0000 0x20000>; // 128KB
+ label = "alt-u-boot-env";
+ };
+
+ kernel@100000 {
+ reg = <0x100000 0x900000>; // 9MB
+ label = "alt-kernel";
+ };
+
+ rofs@a00000 {
+ reg = <0xa00000 0x5600000>; // 86MB
+ label = "alt-rofs";
+ };
+
+ rwfs@6000000 {
+ reg = <0x6000000 0x2000000>; // 32MB
+ label = "alt-rwfs";
+ };
+};