05b7abe74938019d5bd73d8c0510178ecafdf0e2
[openwrt/staging/linusw.git] /
1 From 94afd3b99c65072b76edd25f73bad89587b83261 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 7 Dec 2016 08:56:54 +0100
4 Subject: [PATCH 5/6] ARM: BCM5301X: Specify all RAM by including an extra
5 block
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 The first 128 MiB of RAM can be accessed using an alias at address 0x0.
11
12 In theory we could access whole RAM using 0x80000000 - 0xbfffffff range
13 (up to 1 GiB) but it doesn't seem to work on Northstar. For some reason
14 (hardware setup left by the bootloader maybe?) 0x80000000 - 0x87ffffff
15 range can't be used. I reproduced this problem on:
16 1) Buffalo WZR-600DHP2 (BCM47081)
17 2) Netgear R6250 (BCM4708)
18 3) D-Link DIR-885L (BCM47094)
19
20 So it seems we're forced to access first 128 MiB using alias at 0x0 and
21 the rest using real base address + 128 MiB offset which is 0x88000000.
22
23 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
24 Acked-by: Jon Mason <jon.mason@broadcom.com>
25 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
26 ---
27 arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts | 3 ++-
28 arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts | 3 ++-
29 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 3 ++-
30 arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 3 ++-
31 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 3 ++-
32 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 3 ++-
33 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 3 ++-
34 arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 3 ++-
35 arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 3 ++-
36 arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 3 ++-
37 arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 3 ++-
38 arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 3 ++-
39 arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 3 ++-
40 arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 3 ++-
41 arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 3 ++-
42 arch/arm/boot/dts/bcm47094-netgear-r8500.dts | 3 ++-
43 16 files changed, 32 insertions(+), 16 deletions(-)
44
45 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
46 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
47 @@ -21,7 +21,8 @@
48 };
49
50 memory {
51 - reg = <0x00000000 0x08000000>;
52 + reg = <0x00000000 0x08000000
53 + 0x88000000 0x08000000>;
54 };
55
56 leds {
57 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
58 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
59 @@ -21,7 +21,8 @@
60 };
61
62 memory {
63 - reg = <0x00000000 0x08000000>;
64 + reg = <0x00000000 0x08000000
65 + 0x88000000 0x08000000>;
66 };
67
68 leds {
69 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
70 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
71 @@ -21,7 +21,8 @@
72 };
73
74 memory {
75 - reg = <0x00000000 0x08000000>;
76 + reg = <0x00000000 0x08000000
77 + 0x88000000 0x18000000>;
78 };
79
80 spi {
81 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
82 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
83 @@ -21,7 +21,8 @@
84 };
85
86 memory {
87 - reg = <0x00000000 0x08000000>;
88 + reg = <0x00000000 0x08000000
89 + 0x88000000 0x08000000>;
90 };
91
92 leds {
93 --- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
94 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
95 @@ -21,7 +21,8 @@
96 };
97
98 memory {
99 - reg = <0x00000000 0x08000000>;
100 + reg = <0x00000000 0x08000000
101 + 0x88000000 0x08000000>;
102 };
103
104 leds {
105 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
106 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
107 @@ -21,7 +21,8 @@
108 };
109
110 memory {
111 - reg = <0x00000000 0x08000000>;
112 + reg = <0x00000000 0x08000000
113 + 0x88000000 0x08000000>;
114 };
115
116 leds {
117 --- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
118 +++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
119 @@ -21,7 +21,8 @@
120 };
121
122 memory {
123 - reg = <0x00000000 0x08000000>;
124 + reg = <0x00000000 0x08000000
125 + 0x88000000 0x08000000>;
126 };
127
128 leds {
129 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
130 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
131 @@ -21,7 +21,8 @@
132 };
133
134 memory {
135 - reg = <0x00000000 0x08000000>;
136 + reg = <0x00000000 0x08000000
137 + 0x88000000 0x08000000>;
138 };
139
140 spi {
141 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
142 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
143 @@ -21,7 +21,8 @@
144 };
145
146 memory {
147 - reg = <0x00000000 0x08000000>;
148 + reg = <0x00000000 0x08000000
149 + 0x88000000 0x08000000>;
150 };
151
152 gpio-keys {
153 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
154 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
155 @@ -21,7 +21,8 @@
156 };
157
158 memory {
159 - reg = <0x00000000 0x08000000>;
160 + reg = <0x00000000 0x08000000
161 + 0x88000000 0x08000000>;
162 };
163
164 leds {
165 --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
166 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
167 @@ -21,7 +21,8 @@
168 };
169
170 memory {
171 - reg = <0x00000000 0x08000000>;
172 + reg = <0x00000000 0x08000000
173 + 0x88000000 0x18000000>;
174 };
175
176 leds {
177 --- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
178 +++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
179 @@ -21,7 +21,8 @@
180 };
181
182 memory {
183 - reg = <0x00000000 0x08000000>;
184 + reg = <0x00000000 0x08000000
185 + 0x88000000 0x08000000>;
186 };
187
188 leds {
189 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
190 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
191 @@ -21,7 +21,8 @@
192 };
193
194 memory {
195 - reg = <0x00000000 0x08000000>;
196 + reg = <0x00000000 0x08000000
197 + 0x88000000 0x08000000>;
198 };
199
200 leds {
201 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
202 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
203 @@ -21,7 +21,8 @@
204 };
205
206 memory {
207 - reg = <0x00000000 0x08000000>;
208 + reg = <0x00000000 0x08000000
209 + 0x88000000 0x08000000>;
210 };
211
212 nand: nand@18028000 {
213 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
214 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
215 @@ -18,7 +18,8 @@
216 };
217
218 memory {
219 - reg = <0x00000000 0x08000000>;
220 + reg = <0x00000000 0x08000000
221 + 0x88000000 0x08000000>;
222 };
223
224 leds {
225 --- a/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
226 +++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
227 @@ -18,7 +18,8 @@
228 };
229
230 memory {
231 - reg = <0x00000000 0x08000000>;
232 + reg = <0x00000000 0x08000000
233 + 0x88000000 0x18000000>;
234 };
235
236 leds {