File tree 1 file changed +29
-2
lines changed
1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 21
21
zephyr,flash = &flash0;
22
22
zephyr,flash-controller = &mt25ql512ab1;
23
23
zephyr,display = <dc;
24
+ zephyr,code-partition = &slot0_partition;
24
25
};
25
26
26
27
sdram2: sdram@d0000000 {
78
79
status = "okay";
79
80
};
80
81
82
+ &flash0 {
83
+ partitions {
84
+ compatible = "fixed-partitions";
85
+ #address-cells = <1>;
86
+ #size-cells = <1>;
87
+ /* Flash has 128KB sector size */
88
+ boot_partition: partition@0 {
89
+ label = "mcuboot";
90
+ reg = <0x00000000 DT_SIZE_K(128)>;
91
+ };
92
+ };
93
+ };
94
+
81
95
<dc {
82
96
pinctrl-0 = <<dc_r0_pi15 <dc_r1_pj0 <dc_r2_pj1 <dc_r3_ph9
83
97
<dc_r4_pj3 <dc_r5_pj4 <dc_r6_pj5 <dc_r7_pj6
165
179
dual-flash;
166
180
status = "okay";
167
181
182
+ /* Sector erase 64KB uniform granularity */
183
+ /* Subsector erase 4KB, 32KB granularity */
168
184
mt25ql512ab1: qspi-nor-flash-1@90000000 {
169
185
compatible = "st,stm32-qspi-nor";
170
186
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
178
194
#address-cells = <1>;
179
195
#size-cells = <1>;
180
196
181
- partition@0 {
182
- reg = <0x0 DT_SIZE_M(64)>;
197
+ slot0_partition: partition@0 {
198
+ label = "image-0";
199
+ reg = <0x00000000 DT_SIZE_K(2048)>;
200
+ };
201
+
202
+ slot1_partition: partition@200000 {
203
+ label = "image-1";
204
+ reg = <0x00200000 DT_SIZE_K(2048)>;
205
+ };
206
+
207
+ storage_partition: partition@400000 {
208
+ label = "storage";
209
+ reg = <0x00400000 DT_SIZE_K(128)>;
183
210
};
184
211
};
185
212
};
You can’t perform that action at this time.
0 commit comments