blob: 01644c517a1fdc1206e72ea40906c66f93e3d4f7 [file] [log] [blame]
Edward A. James34525922017-05-23 16:25:43 -05001From af9bc81e2158c326552c013d6591f533b69286e3 Mon Sep 17 00:00:00 2001
2From: "Edward A. James" <eajames@us.ibm.com>
3Date: Thu, 25 May 2017 09:59:09 -0500
4Subject: [PATCH linux dev-4.10 v2] arm: dts: aspeed: Add missing clock sources
5 for barreleye
6
7Reorganize flash controllers into the ast2400 config. Barreleye wasn't
8booting with the new aspeed-smc driver.
9
10Signed-off-by: Edward A. James <eajames@us.ibm.com>
11---
12 arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts | 44 ++++++++--------------
13 arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 52 ++++++++------------------
14 arch/arm/boot/dts/aspeed-g4.dtsi | 34 +++++++++++++++++
15 3 files changed, 66 insertions(+), 64 deletions(-)
16
17diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts b/arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts
18index be1f2d1..7a616bb 100644
19--- a/arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts
20+++ b/arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts
21@@ -31,34 +31,6 @@
22 };
23 };
24
25- ahb {
26- bmc_pnor: fmc@1e620000 {
27- reg = < 0x1e620000 0x94
28- 0x20000000 0x02000000 >;
29- #address-cells = <1>;
30- #size-cells = <0>;
31- compatible = "aspeed,ast2400-fmc";
32- flash@0 {
33- reg = < 0 >;
34- compatible = "jedec,spi-nor" ;
35-#include "aspeed-bmc-opp-flash-layout.dtsi"
36- };
37- };
38-
39- host_pnor: spi@1e630000 {
40- reg = < 0x1e630000 0x18
41- 0x30000000 0x02000000 >;
42- #address-cells = <1>;
43- #size-cells = <0>;
44- compatible = "aspeed,ast2400-spi";
45- flash@0 {
46- reg = < 0 >;
47- compatible = "jedec,spi-nor" ;
48- label = "pnor";
49- };
50- };
51- };
52-
53 leds {
54 compatible = "gpio-leds";
55
56@@ -76,6 +48,22 @@
57 };
58 };
59
60+&bmc_pnor {
61+ status = "okay";
62+ flash@0 {
63+ status = "okay";
64+ m25p,fast-read;
65+#include "aspeed-bmc-opp-flash-layout.dtsi"
66+ };
67+};
68+
69+&host_pnor {
70+ flash@0 {
71+ status = "okay";
72+ m25p,fast-read;
73+ };
74+};
75+
76 &pinctrl {
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_flbusy_default &pinctrl_flwp_default
79diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
80index b4faa1d..e55abe6 100644
81--- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
82+++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
83@@ -47,42 +47,6 @@
84 };
85 };
86
87- ahb {
88- bmc_pnor: fmc@1e620000 {
89- reg = < 0x1e620000 0x94
90- 0x20000000 0x02000000 >;
91- #address-cells = <1>;
92- #size-cells = <0>;
93- compatible = "aspeed,ast2400-fmc";
94- aspeed,fmc-has-dma;
95- interrupts = <19>;
96- clocks = <&clk_ahb>;
97- clock-names = "ahb";
98- flash@0 {
99- reg = < 0 >;
100- compatible = "jedec,spi-nor" ;
101- m25p,fast-read;
102-#include "aspeed-bmc-opp-flash-layout.dtsi"
103- };
104- };
105-
106- host_pnor: spi@1e630000 {
107- reg = < 0x1e630000 0x18
108- 0x30000000 0x02000000 >;
109- #address-cells = <1>;
110- #size-cells = <0>;
111- compatible = "aspeed,ast2400-spi";
112- clocks = <&clk_ahb>;
113- clock-names = "ahb";
114- flash {
115- reg = < 0 >;
116- compatible = "jedec,spi-nor" ;
117- label = "pnor";
118- m25p,fast-read;
119- };
120- };
121- };
122-
123 gpio-fsi {
124 compatible = "fsi-master-gpio", "fsi-master";
125
126@@ -94,6 +58,22 @@
127 };
128 };
129
130+&bmc_pnor {
131+ status = "okay";
132+ flash@0 {
133+ status = "okay";
134+ m25p,fast-read;
135+#include "aspeed-bmc-opp-flash-layout.dtsi"
136+ };
137+};
138+
139+&host_pnor {
140+ flash@0 {
141+ status = "okay";
142+ m25p,fast-read;
143+ };
144+};
145+
146 &pinctrl {
147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_flbusy_default &pinctrl_flwp_default
149diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi
150index d8827d5..9fb7889 100644
151--- a/arch/arm/boot/dts/aspeed-g4.dtsi
152+++ b/arch/arm/boot/dts/aspeed-g4.dtsi
153@@ -44,6 +44,40 @@
154 #size-cells = <1>;
155 ranges;
156
157+ bmc_pnor: fmc@1e620000 {
158+ reg = < 0x1e620000 0x94
159+ 0x20000000 0x02000000 >;
160+ #address-cells = <1>;
161+ #size-cells = <0>;
162+ compatible = "aspeed,ast2400-fmc";
163+ status = "disabled";
164+ aspeed,fmc-has-dma;
165+ interrupts = <19>;
166+ clocks = <&clk_ahb>;
167+ clock-names = "ahb";
168+ flash@0 {
169+ reg = < 0 >;
170+ compatible = "jedec,spi-nor" ;
171+ status = "disabled";
172+ };
173+ };
174+
175+ host_pnor: spi@1e630000 {
176+ reg = < 0x1e630000 0x18
177+ 0x30000000 0x02000000 >;
178+ #address-cells = <1>;
179+ #size-cells = <0>;
180+ compatible = "aspeed,ast2400-spi";
181+ status = "disabled";
182+ clocks = <&clk_ahb>;
183+ clock-names = "ahb";
184+ flash@0 {
185+ reg = < 0 >;
186+ compatible = "jedec,spi-nor" ;
187+ status = "disabled";
188+ };
189+ };
190+
191 vic: interrupt-controller@1e6c0080 {
192 compatible = "aspeed,ast2400-vic";
193 interrupt-controller;
194--
1951.8.3.1
196