|
57 | 57 | die-temp0 = &die_temp;
|
58 | 58 | volt-sensor0 = &vref;
|
59 | 59 | volt-sensor1 = &vbat;
|
| 60 | + spi-flash0 = &mx66uw1g45; |
60 | 61 | };
|
61 | 62 | };
|
62 | 63 |
|
|
173 | 174 | pinctrl-names = "default";
|
174 | 175 | };
|
175 | 176 |
|
| 177 | +&flash0 { |
| 178 | + partitions { |
| 179 | + compatible = "fixed-partitions"; |
| 180 | + #address-cells = <1>; |
| 181 | + #size-cells = <1>; |
| 182 | + |
| 183 | + /* Set the partitions with first MB to make use of the whole Bank1 */ |
| 184 | + boot_partition: partition@0 { |
| 185 | + label = "mcuboot"; |
| 186 | + reg = <0x00000000 DT_SIZE_K(64)>; |
| 187 | + }; |
| 188 | + }; |
| 189 | +}; |
| 190 | + |
| 191 | +&xspi2 { |
| 192 | + pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1 |
| 193 | + &xspim_p2_io0_pn2 &xspim_p2_io1_pn3 |
| 194 | + &xspim_p2_io2_pn4 &xspim_p2_io3_pn5 |
| 195 | + &xspim_p2_io4_pn8 &xspim_p2_io5_pn9 |
| 196 | + &xspim_p2_io6_pn10 &xspim_p2_io7_pn11 |
| 197 | + &xspim_p2_dqs0_pn0>; |
| 198 | + pinctrl-names = "default"; |
| 199 | + |
| 200 | + status = "okay"; |
| 201 | + |
| 202 | + mx66uw1g45: xspi-nor-flash@0 { |
| 203 | + compatible = "st,stm32-xspi-nor"; |
| 204 | + reg = <0>; |
| 205 | + size = <DT_SIZE_M(1024)>; /* 1 Gbits */ |
| 206 | + ospi-max-frequency = <DT_FREQ_M(50)>; |
| 207 | + spi-bus-width = <XSPI_OCTO_MODE>; |
| 208 | + data-rate = <XSPI_DTR_TRANSFER>; |
| 209 | + status = "okay"; |
| 210 | + |
| 211 | + partitions { |
| 212 | + compatible = "fixed-partitions"; |
| 213 | + #address-cells = <1>; |
| 214 | + #size-cells = <1>; |
| 215 | + |
| 216 | + slot0_partition: partition@0 { |
| 217 | + label = "image-0"; |
| 218 | + reg = <0x00000000 DT_SIZE_K(512)>; |
| 219 | + }; |
| 220 | + slot1_partition: partition@80000 { |
| 221 | + label = "image-1"; |
| 222 | + reg = <0x0080000 DT_SIZE_K(512)>; |
| 223 | + }; |
| 224 | + scratch_partition: partition@100000 { |
| 225 | + label = "image-scratch"; |
| 226 | + reg = <0x00100000 DT_SIZE_K(64)>; |
| 227 | + }; |
| 228 | + storage_partition: partition@110000 { |
| 229 | + label = "storage"; |
| 230 | + reg = <0x00110000 DT_SIZE_K(64)>; |
| 231 | + }; |
| 232 | + }; |
| 233 | + }; |
| 234 | +}; |
| 235 | + |
176 | 236 | &die_temp {
|
177 | 237 | status = "okay";
|
178 | 238 | };
|
|
0 commit comments