diff options
author | Ralph Sennhauser <ralph.sennhauser@gmail.com> | 2017-05-21 08:48:58 -0400 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2017-06-17 02:16:46 -0400 |
commit | bf6c959eb43ebe8d8ea4fac6d622a70f3ddc8e63 (patch) | |
tree | 069b54465799a8569724bacb53d5a40a7705692c | |
parent | 0ebbb9575ac6bafa1219a4ae81639712bb3054cb (diff) |
ARM: dts: armada-385-linksys: partition layout is board specific
Move the partition layout to individual boards. The Linksys WRT 3200 ACM
(Rango) comes with a 256MiB nand flash chip and different layout.
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/armada-385-linksys-caiman.dts | 67 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-385-linksys-cobra.dts | 67 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-385-linksys-shelby.dts | 67 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-385-linksys.dtsi | 64 |
4 files changed, 202 insertions, 63 deletions
diff --git a/arch/arm/boot/dts/armada-385-linksys-caiman.dts b/arch/arm/boot/dts/armada-385-linksys-caiman.dts index 05e854a14e0c..ee669ae61011 100644 --- a/arch/arm/boot/dts/armada-385-linksys-caiman.dts +++ b/arch/arm/boot/dts/armada-385-linksys-caiman.dts | |||
@@ -102,3 +102,70 @@ | |||
102 | label = "caiman:white:sata"; | 102 | label = "caiman:white:sata"; |
103 | }; | 103 | }; |
104 | }; | 104 | }; |
105 | |||
106 | &nand { | ||
107 | /* 128MiB */ | ||
108 | |||
109 | partition@0 { | ||
110 | label = "u-boot"; | ||
111 | reg = <0x0000000 0x200000>; /* 2MiB */ | ||
112 | read-only; | ||
113 | }; | ||
114 | |||
115 | partition@100000 { | ||
116 | label = "u_env"; | ||
117 | reg = <0x200000 0x40000>; /* 256KiB */ | ||
118 | }; | ||
119 | |||
120 | partition@140000 { | ||
121 | label = "s_env"; | ||
122 | reg = <0x240000 0x40000>; /* 256KiB */ | ||
123 | }; | ||
124 | |||
125 | partition@900000 { | ||
126 | label = "devinfo"; | ||
127 | reg = <0x900000 0x100000>; /* 1MiB */ | ||
128 | read-only; | ||
129 | }; | ||
130 | |||
131 | /* kernel1 overlaps with rootfs1 by design */ | ||
132 | partition@a00000 { | ||
133 | label = "kernel1"; | ||
134 | reg = <0xa00000 0x2800000>; /* 40MiB */ | ||
135 | }; | ||
136 | |||
137 | partition@1000000 { | ||
138 | label = "rootfs1"; | ||
139 | reg = <0x1000000 0x2200000>; /* 34MiB */ | ||
140 | }; | ||
141 | |||
142 | /* kernel2 overlaps with rootfs2 by design */ | ||
143 | partition@3200000 { | ||
144 | label = "kernel2"; | ||
145 | reg = <0x3200000 0x2800000>; /* 40MiB */ | ||
146 | }; | ||
147 | |||
148 | partition@3800000 { | ||
149 | label = "rootfs2"; | ||
150 | reg = <0x3800000 0x2200000>; /* 34MiB */ | ||
151 | }; | ||
152 | |||
153 | /* | ||
154 | * 38MiB, last MiB is for the BBT, not writable | ||
155 | */ | ||
156 | partition@5a00000 { | ||
157 | label = "syscfg"; | ||
158 | reg = <0x5a00000 0x2600000>; | ||
159 | }; | ||
160 | |||
161 | /* | ||
162 | * Unused area between "s_env" and "devinfo". | ||
163 | * Moved here because otherwise the renumbered | ||
164 | * partitions would break the bootloader | ||
165 | * supplied bootargs | ||
166 | */ | ||
167 | partition@180000 { | ||
168 | label = "unused_area"; | ||
169 | reg = <0x280000 0x680000>; /* 6.5MiB */ | ||
170 | }; | ||
171 | }; | ||
diff --git a/arch/arm/boot/dts/armada-385-linksys-cobra.dts b/arch/arm/boot/dts/armada-385-linksys-cobra.dts index 5b1662b95a58..5169ca89c55a 100644 --- a/arch/arm/boot/dts/armada-385-linksys-cobra.dts +++ b/arch/arm/boot/dts/armada-385-linksys-cobra.dts | |||
@@ -102,3 +102,70 @@ | |||
102 | label = "cobra:white:sata"; | 102 | label = "cobra:white:sata"; |
103 | }; | 103 | }; |
104 | }; | 104 | }; |
105 | |||
106 | &nand { | ||
107 | /* 128MiB */ | ||
108 | |||
109 | partition@0 { | ||
110 | label = "u-boot"; | ||
111 | reg = <0x0000000 0x200000>; /* 2MiB */ | ||
112 | read-only; | ||
113 | }; | ||
114 | |||
115 | partition@100000 { | ||
116 | label = "u_env"; | ||
117 | reg = <0x200000 0x40000>; /* 256KiB */ | ||
118 | }; | ||
119 | |||
120 | partition@140000 { | ||
121 | label = "s_env"; | ||
122 | reg = <0x240000 0x40000>; /* 256KiB */ | ||
123 | }; | ||
124 | |||
125 | partition@900000 { | ||
126 | label = "devinfo"; | ||
127 | reg = <0x900000 0x100000>; /* 1MiB */ | ||
128 | read-only; | ||
129 | }; | ||
130 | |||
131 | /* kernel1 overlaps with rootfs1 by design */ | ||
132 | partition@a00000 { | ||
133 | label = "kernel1"; | ||
134 | reg = <0xa00000 0x2800000>; /* 40MiB */ | ||
135 | }; | ||
136 | |||
137 | partition@1000000 { | ||
138 | label = "rootfs1"; | ||
139 | reg = <0x1000000 0x2200000>; /* 34MiB */ | ||
140 | }; | ||
141 | |||
142 | /* kernel2 overlaps with rootfs2 by design */ | ||
143 | partition@3200000 { | ||
144 | label = "kernel2"; | ||
145 | reg = <0x3200000 0x2800000>; /* 40MiB */ | ||
146 | }; | ||
147 | |||
148 | partition@3800000 { | ||
149 | label = "rootfs2"; | ||
150 | reg = <0x3800000 0x2200000>; /* 34MiB */ | ||
151 | }; | ||
152 | |||
153 | /* | ||
154 | * 38MiB, last MiB is for the BBT, not writable | ||
155 | */ | ||
156 | partition@5a00000 { | ||
157 | label = "syscfg"; | ||
158 | reg = <0x5a00000 0x2600000>; | ||
159 | }; | ||
160 | |||
161 | /* | ||
162 | * Unused area between "s_env" and "devinfo". | ||
163 | * Moved here because otherwise the renumbered | ||
164 | * partitions would break the bootloader | ||
165 | * supplied bootargs | ||
166 | */ | ||
167 | partition@180000 { | ||
168 | label = "unused_area"; | ||
169 | reg = <0x280000 0x680000>; /* 6.5MiB */ | ||
170 | }; | ||
171 | }; | ||
diff --git a/arch/arm/boot/dts/armada-385-linksys-shelby.dts b/arch/arm/boot/dts/armada-385-linksys-shelby.dts index a90937104b2b..94aa35bc0bff 100644 --- a/arch/arm/boot/dts/armada-385-linksys-shelby.dts +++ b/arch/arm/boot/dts/armada-385-linksys-shelby.dts | |||
@@ -102,3 +102,70 @@ | |||
102 | label = "shelby:white:sata"; | 102 | label = "shelby:white:sata"; |
103 | }; | 103 | }; |
104 | }; | 104 | }; |
105 | |||
106 | &nand { | ||
107 | /* 128MiB */ | ||
108 | |||
109 | partition@0 { | ||
110 | label = "u-boot"; | ||
111 | reg = <0x0000000 0x200000>; /* 2MiB */ | ||
112 | read-only; | ||
113 | }; | ||
114 | |||
115 | partition@100000 { | ||
116 | label = "u_env"; | ||
117 | reg = <0x200000 0x40000>; /* 256KiB */ | ||
118 | }; | ||
119 | |||
120 | partition@140000 { | ||
121 | label = "s_env"; | ||
122 | reg = <0x240000 0x40000>; /* 256KiB */ | ||
123 | }; | ||
124 | |||
125 | partition@900000 { | ||
126 | label = "devinfo"; | ||
127 | reg = <0x900000 0x100000>; /* 1MiB */ | ||
128 | read-only; | ||
129 | }; | ||
130 | |||
131 | /* kernel1 overlaps with rootfs1 by design */ | ||
132 | partition@a00000 { | ||
133 | label = "kernel1"; | ||
134 | reg = <0xa00000 0x2800000>; /* 40MiB */ | ||
135 | }; | ||
136 | |||
137 | partition@1000000 { | ||
138 | label = "rootfs1"; | ||
139 | reg = <0x1000000 0x2200000>; /* 34MiB */ | ||
140 | }; | ||
141 | |||
142 | /* kernel2 overlaps with rootfs2 by design */ | ||
143 | partition@3200000 { | ||
144 | label = "kernel2"; | ||
145 | reg = <0x3200000 0x2800000>; /* 40MiB */ | ||
146 | }; | ||
147 | |||
148 | partition@3800000 { | ||
149 | label = "rootfs2"; | ||
150 | reg = <0x3800000 0x2200000>; /* 34MiB */ | ||
151 | }; | ||
152 | |||
153 | /* | ||
154 | * 38MiB, last MiB is for the BBT, not writable | ||
155 | */ | ||
156 | partition@5a00000 { | ||
157 | label = "syscfg"; | ||
158 | reg = <0x5a00000 0x2600000>; | ||
159 | }; | ||
160 | |||
161 | /* | ||
162 | * Unused area between "s_env" and "devinfo". | ||
163 | * Moved here because otherwise the renumbered | ||
164 | * partitions would break the bootloader | ||
165 | * supplied bootargs | ||
166 | */ | ||
167 | partition@180000 { | ||
168 | label = "unused_area"; | ||
169 | reg = <0x280000 0x680000>; /* 6.5MiB */ | ||
170 | }; | ||
171 | }; | ||
diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385-linksys.dtsi index 4049eaf80638..485abffb4368 100644 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi | |||
@@ -172,74 +172,12 @@ | |||
172 | }; | 172 | }; |
173 | 173 | ||
174 | &nand { | 174 | &nand { |
175 | /* 128MiB or 256MiB */ | ||
175 | status = "okay"; | 176 | status = "okay"; |
176 | num-cs = <1>; | 177 | num-cs = <1>; |
177 | marvell,nand-keep-config; | 178 | marvell,nand-keep-config; |
178 | marvell,nand-enable-arbiter; | 179 | marvell,nand-enable-arbiter; |
179 | nand-on-flash-bbt; | 180 | nand-on-flash-bbt; |
180 | |||
181 | partition@0 { | ||
182 | label = "u-boot"; | ||
183 | reg = <0x0000000 0x200000>; /* 2MiB */ | ||
184 | read-only; | ||
185 | }; | ||
186 | |||
187 | partition@100000 { | ||
188 | label = "u_env"; | ||
189 | reg = <0x200000 0x40000>; /* 256KiB */ | ||
190 | }; | ||
191 | |||
192 | partition@140000 { | ||
193 | label = "s_env"; | ||
194 | reg = <0x240000 0x40000>; /* 256KiB */ | ||
195 | }; | ||
196 | |||
197 | partition@900000 { | ||
198 | label = "devinfo"; | ||
199 | reg = <0x900000 0x100000>; /* 1MiB */ | ||
200 | read-only; | ||
201 | }; | ||
202 | |||
203 | /* kernel1 overlaps with rootfs1 by design */ | ||
204 | partition@a00000 { | ||
205 | label = "kernel1"; | ||
206 | reg = <0xa00000 0x2800000>; /* 40MiB */ | ||
207 | }; | ||
208 | |||
209 | partition@1000000 { | ||
210 | label = "rootfs1"; | ||
211 | reg = <0x1000000 0x2200000>; /* 34MiB */ | ||
212 | }; | ||
213 | |||
214 | /* kernel2 overlaps with rootfs2 by design */ | ||
215 | partition@3200000 { | ||
216 | label = "kernel2"; | ||
217 | reg = <0x3200000 0x2800000>; /* 40MiB */ | ||
218 | }; | ||
219 | |||
220 | partition@3800000 { | ||
221 | label = "rootfs2"; | ||
222 | reg = <0x3800000 0x2200000>; /* 34MiB */ | ||
223 | }; | ||
224 | |||
225 | /* | ||
226 | * 38MiB, last MiB is for the BBT, not writable | ||
227 | */ | ||
228 | partition@5a00000 { | ||
229 | label = "syscfg"; | ||
230 | reg = <0x5a00000 0x2600000>; | ||
231 | }; | ||
232 | |||
233 | /* | ||
234 | * Unused area between "s_env" and "devinfo". | ||
235 | * Moved here because otherwise the renumbered | ||
236 | * partitions would break the bootloader | ||
237 | * supplied bootargs | ||
238 | */ | ||
239 | partition@180000 { | ||
240 | label = "unused_area"; | ||
241 | reg = <0x280000 0x680000>; /* 6.5MiB */ | ||
242 | }; | ||
243 | }; | 181 | }; |
244 | 182 | ||
245 | &mdio { | 183 | &mdio { |