blob: 3407f2f798bc987b3e56d4e833395ceb5efddcea [file] [log] [blame]
Edward A. Jamesf7eed372017-07-14 14:35:56 -05001From 8b1e098b70d2701ad2b53d4527c2423b7c2f7ce1 Mon Sep 17 00:00:00 2001
2From: "Edward A. James" <eajames@us.ibm.com>
3Date: Wed, 16 Aug 2017 07:58:56 -0500
4Subject: [PATCH] ARM: dts: Aspeed: Witherspoon: Update BMC partitioning
5
6Add simplified partitions for BMC and alternate flash. Include these by
7default in Witherspoon.
8
9Signed-off-by: Edward A. James <eajames@us.ibm.com>
10---
11 .../boot/dts/aspeed-bmc-alt-opp-flash-layout-ubi.dtsi | 18 ++++++++++++++++++
12 arch/arm/boot/dts/aspeed-bmc-opp-flash-layout-ubi.dtsi | 18 ++++++++++++++++++
13 arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 5 +++--
14 3 files changed, 39 insertions(+), 2 deletions(-)
15 create mode 100644 arch/arm/boot/dts/aspeed-bmc-alt-opp-flash-layout-ubi.dtsi
16 create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-flash-layout-ubi.dtsi
17
18diff --git a/arch/arm/boot/dts/aspeed-bmc-alt-opp-flash-layout-ubi.dtsi b/arch/arm/boot/dts/aspeed-bmc-alt-opp-flash-layout-ubi.dtsi
19new file mode 100644
20index 0000000..9277599
21--- /dev/null
22+++ b/arch/arm/boot/dts/aspeed-bmc-alt-opp-flash-layout-ubi.dtsi
23@@ -0,0 +1,18 @@
24+ label = "alt-bmc";
25+ partitions {
26+ #address-cells = < 1 >;
27+ #size-cells = < 1 >;
28+ compatible = "fixed-partitions";
29+ u-boot@0 {
30+ reg = < 0 0x60000 >;
31+ label = "alt-u-boot";
32+ };
33+ u-boot-env@60000 {
34+ reg = < 0x60000 0x20000 >;
35+ label = "alt-u-boot-env";
36+ };
37+ obmc-ubi@80000 {
38+ reg = < 0x80000 0x1F80000 >;
39+ label = "alt-obmc-ubi";
40+ };
41+ };
42diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-flash-layout-ubi.dtsi b/arch/arm/boot/dts/aspeed-bmc-opp-flash-layout-ubi.dtsi
43new file mode 100644
44index 0000000..0059ad1
45--- /dev/null
46+++ b/arch/arm/boot/dts/aspeed-bmc-opp-flash-layout-ubi.dtsi
47@@ -0,0 +1,18 @@
48+ label = "bmc";
49+ partitions {
50+ #address-cells = < 1 >;
51+ #size-cells = < 1 >;
52+ compatible = "fixed-partitions";
53+ u-boot@0 {
54+ reg = < 0 0x60000 >;
55+ label = "u-boot";
56+ };
57+ u-boot-env@60000 {
58+ reg = < 0x60000 0x20000 >;
59+ label = "u-boot-env";
60+ };
61+ obmc-ubi@80000 {
62+ reg = < 0x80000 0x1F80000 >;
63+ label = "obmc-ubi";
64+ };
65+ };
66diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
67index dd30c20..51f965e 100644
68--- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
69+++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
70@@ -174,12 +174,13 @@
71 status = "okay";
72 m25p,fast-read;
73
Joel Stanleyd3d5e632017-12-12 13:27:13 +103074-#include "openbmc-flash-layout.dtsi"
Edward A. Jamesf7eed372017-07-14 14:35:56 -050075+#include "aspeed-bmc-opp-flash-layout-ubi.dtsi"
76 };
77 flash@1 {
78 status = "okay";
79- label = "alt";
80 m25p,fast-read;
81+
82+#include "aspeed-bmc-alt-opp-flash-layout-ubi.dtsi"
83 };
84 };
85
86--
871.8.3.1
88