File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 2121 zephyr,flash = &flash0;
2222 zephyr,flash-controller = &mt25ql512ab1;
2323 zephyr,display = <dc;
24+ zephyr,code-partition = &slot0_partition;
2425 };
2526
2627 sdram2: sdram@d0000000 {
7879 status = "okay";
7980};
8081
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+
8195<dc {
8296 pinctrl-0 = <<dc_r0_pi15 <dc_r1_pj0 <dc_r2_pj1 <dc_r3_ph9
8397 <dc_r4_pj3 <dc_r5_pj4 <dc_r6_pj5 <dc_r7_pj6
165179 dual-flash;
166180 status = "okay";
167181
182+ /* Sector erase 64KB uniform granularity */
183+ /* Subsector erase 4KB, 32KB granularity */
168184 mt25ql512ab1: qspi-nor-flash-1@90000000 {
169185 compatible = "st,stm32-qspi-nor";
170186 reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
178194 #address-cells = <1>;
179195 #size-cells = <1>;
180196
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)>;
183210 };
184211 };
185212 };
You can’t perform that action at this time.
0 commit comments