|
217 | 217 |
|
218 | 218 | status = "okay"; |
219 | 219 |
|
220 | | - mx25uw25645: xspi-nor-flash@0 { |
| 220 | + ext_flash_ctrl: xspi-nor-flash@0 { |
221 | 221 | compatible = "st,stm32-xspi-nor"; |
222 | 222 | reg = <0>; |
223 | 223 | size = <DT_SIZE_M(256)>; /* 256Mbits */ |
|
227 | 227 | four-byte-opcodes; |
228 | 228 | status = "okay"; |
229 | 229 |
|
230 | | - partitions { |
231 | | - compatible = "fixed-partitions"; |
232 | | - #address-cells = <1>; |
233 | | - #size-cells = <1>; |
234 | | - |
235 | | - slot0_partition: partition@0 { |
236 | | - label = "image-0"; |
237 | | - reg = <0x00000000 DT_SIZE_K(512)>; |
238 | | - }; |
239 | | - |
240 | | - slot1_partition: partition@80000 { |
241 | | - label = "image-1"; |
242 | | - reg = <0x0080000 DT_SIZE_K(512)>; |
243 | | - }; |
244 | | - |
245 | | - scratch_partition: partition@100000 { |
246 | | - label = "image-scratch"; |
247 | | - reg = <0x00100000 DT_SIZE_K(64)>; |
248 | | - }; |
249 | | - |
250 | | - storage_partition: partition@110000 { |
251 | | - label = "storage"; |
252 | | - reg = <0x00110000 DT_SIZE_K(64)>; |
| 230 | + #address-cells = <1>; |
| 231 | + #size-cells = <1>; |
| 232 | + ranges = <0x0 0x70000000 DT_SIZE_M(32)>; |
| 233 | + |
| 234 | + ext_flash: mx25uw25645: xspi-nor-flash@0 { |
| 235 | + compatible = "soc-nv-flash"; |
| 236 | + reg = <0x0 DT_SIZE_M(32)>; |
| 237 | + write-block-size = <1>; |
| 238 | + erase-block-size = <DT_SIZE_K(4)>; |
| 239 | + |
| 240 | + partitions { |
| 241 | + compatible = "fixed-partitions"; |
| 242 | + #address-cells = <1>; |
| 243 | + #size-cells = <1>; |
| 244 | + |
| 245 | + slot0_partition: partition@0 { |
| 246 | + label = "image-0"; |
| 247 | + reg = <0x00000000 DT_SIZE_K(512)>; |
| 248 | + }; |
| 249 | + |
| 250 | + slot1_partition: partition@80000 { |
| 251 | + label = "image-1"; |
| 252 | + reg = <0x0080000 DT_SIZE_K(512)>; |
| 253 | + }; |
| 254 | + |
| 255 | + scratch_partition: partition@100000 { |
| 256 | + label = "image-scratch"; |
| 257 | + reg = <0x00100000 DT_SIZE_K(64)>; |
| 258 | + }; |
| 259 | + |
| 260 | + storage_partition: partition@110000 { |
| 261 | + label = "storage"; |
| 262 | + reg = <0x00110000 DT_SIZE_K(64)>; |
| 263 | + }; |
253 | 264 | }; |
254 | 265 | }; |
255 | 266 | }; |
|
0 commit comments