blob: 86362db158b196554c3056a867fd68aeccd77c73 [file] [log] [blame]
Eddie Jamesf7f93972019-10-01 09:46:16 -05001From 4c69603d48eebce36aedd28fc572bb43c1146f9c Mon Sep 17 00:00:00 2001
2From: Eddie James <eajames@linux.ibm.com>
3Date: Wed, 2 Oct 2019 10:13:36 -0500
4Subject: [PATCH] ARM: dts: Aspeed: Add witherspoon-128 machine
5
6Create a witherspoon machine with 128MB flash chips.
7
8Signed-off-by: Eddie James <eajames@linux.ibm.com>
9---
10 arch/arm/boot/dts/Makefile | 1 +
11 .../dts/aspeed-bmc-opp-witherspoon-128.dts | 59 +++++++++++++++++++
12 2 files changed, 60 insertions(+)
13 create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-witherspoon-128.dts
14
15diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
16index 3ad9706337a2..7f60d157ef5d 100644
17--- a/arch/arm/boot/dts/Makefile
18+++ b/arch/arm/boot/dts/Makefile
19@@ -1292,6 +1292,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
20 aspeed-bmc-opp-tacoma.dtb \
21 aspeed-bmc-opp-vesnin.dtb \
22 aspeed-bmc-opp-witherspoon.dtb \
23+ aspeed-bmc-opp-witherspoon-128.dtb \
24 aspeed-bmc-opp-zaius.dtb \
25 aspeed-bmc-portwell-neptune.dtb \
26 aspeed-bmc-quanta-q71l.dtb
27diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon-128.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon-128.dts
28new file mode 100644
29index 000000000000..1ba673a49334
30--- /dev/null
31+++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon-128.dts
32@@ -0,0 +1,59 @@
33+// SPDX-License-Identifier: GPL-2.0-or-later
34+// Copyright 2019 IBM Corp.
35+/dts-v1/;
36+
37+#include "aspeed-bmc-opp-witherspoon.dts"
38+
39+&fmc {
40+ status = "okay";
41+
42+ flash@0 {
43+ status = "okay";
44+ label = "bmc";
45+ m25p,fast-read;
46+ spi-max-frequency = <100000000>;
47+
48+ partitions {
49+ #address-cells = < 1 >;
50+ #size-cells = < 1 >;
51+ compatible = "fixed-partitions";
52+ u-boot@0 {
53+ reg = < 0 0x60000 >;
54+ label = "u-boot";
55+ };
56+ u-boot-env@60000 {
57+ reg = < 0x60000 0x20000 >;
58+ label = "u-boot-env";
59+ };
60+ obmc-ubi@80000 {
61+ reg = < 0x80000 0x7F80000>;
62+ label = "obmc-ubi";
63+ };
64+ };
65+ };
66+
67+ flash@1 {
68+ status = "okay";
69+ label = "alt-bmc";
70+ m25p,fast-read;
71+ spi-max-frequency = <100000000>;
72+
73+ partitions {
74+ #address-cells = < 1 >;
75+ #size-cells = < 1 >;
76+ compatible = "fixed-partitions";
77+ u-boot@0 {
78+ reg = < 0 0x60000 >;
79+ label = "alt-u-boot";
80+ };
81+ u-boot-env@60000 {
82+ reg = < 0x60000 0x20000 >;
83+ label = "alt-u-boot-env";
84+ };
85+ obmc-ubi@80000 {
86+ reg = < 0x80000 0x7F80000>;
87+ label = "alt-obmc-ubi";
88+ };
89+ };
90+ };
91+};
92--
932.23.0
94