[linux dev-4.13 1/6] ARM: dts: aspeed: import OpenBMC flash layout

Cédric Le Goater clg at kaod.org
Tue Oct 10 00:41:03 AEDT 2017


Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
 arch/arm/boot/dts/aspeed-ast2500-evb.dts           |  1 +
 arch/arm/boot/dts/aspeed-bmc-opp-flash-layout.dtsi | 26 ++++++++++++++++++++++
 arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts      |  1 +
 arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts       |  2 ++
 4 files changed, 30 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-flash-layout.dtsi

diff --git a/arch/arm/boot/dts/aspeed-ast2500-evb.dts b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
index dc7d73b02b76..68fd0ec54f3e 100644
--- a/arch/arm/boot/dts/aspeed-ast2500-evb.dts
+++ b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
@@ -26,6 +26,7 @@
 		status = "okay";
 		m25p,fast-read;
 		label = "bmc";
+#include "aspeed-bmc-opp-flash-layout.dtsi"
 	};
 };
 
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-flash-layout.dtsi b/arch/arm/boot/dts/aspeed-bmc-opp-flash-layout.dtsi
new file mode 100644
index 000000000000..4bcfd1bf8dc5
--- /dev/null
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-flash-layout.dtsi
@@ -0,0 +1,26 @@
+		label = "bmc";
+		partitions {
+				#address-cells = < 1 >;
+				#size-cells = < 1 >;
+				compatible = "fixed-partitions";
+				u-boot at 0 {
+					reg = < 0 0x60000 >;
+					label = "u-boot";
+				};
+				u-boot-env at 60000 {
+					reg = < 0x60000 0x20000 >;
+					label = "u-boot-env";
+				};
+				kernel at 80000 {
+					reg = < 0x80000 0x440000 >;
+					label = "kernel";
+				};
+				rofs at 0c0000 {
+					reg = < 0x4c0000 0x1740000 >;
+					label = "rofs";
+				};
+				rwfs at 1c00000 {
+					reg = < 0x1c00000 0x400000 >;
+					label = "rwfs";
+				};
+		};
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
index e61cac42e2f5..baf9b02d66b6 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
@@ -33,6 +33,7 @@
 		status = "okay";
 		m25p,fast-read;
 		label = "bmc";
+#include "aspeed-bmc-opp-flash-layout.dtsi"
 	};
 };
 
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
index 5d543d64ace9..440b010a9652 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
@@ -37,6 +37,8 @@
 		status = "okay";
 		m25p,fast-read;
 		label = "bmc";
+#include "aspeed-bmc-opp-flash-layout.dtsi"
+
 	};
 };
 
-- 
2.13.6



More information about the openbmc mailing list