|
19 | 19 | zephyr,shell-uart = &uart4; |
20 | 20 | zephyr,flash = &flash0; |
21 | 21 | zephyr,sram = &sram0; |
| 22 | + zephyr,flash-controller = &mx66uw1g45; |
22 | 23 | }; |
23 | 24 |
|
24 | 25 | leds { |
|
57 | 58 | die-temp0 = &die_temp; |
58 | 59 | volt-sensor0 = &vref; |
59 | 60 | volt-sensor1 = &vbat; |
| 61 | + spi-flash0 = &mx66uw1g45; |
60 | 62 | }; |
61 | 63 | }; |
62 | 64 |
|
|
173 | 175 | pinctrl-names = "default"; |
174 | 176 | }; |
175 | 177 |
|
| 178 | +&flash0 { |
| 179 | + partitions { |
| 180 | + compatible = "fixed-partitions"; |
| 181 | + #address-cells = <1>; |
| 182 | + #size-cells = <1>; |
| 183 | + |
| 184 | + /* Set the partitions with first MB to make use of the whole Bank1 */ |
| 185 | + boot_partition: partition@0 { |
| 186 | + label = "mcuboot"; |
| 187 | + reg = <0x00000000 DT_SIZE_K(64)>; |
| 188 | + }; |
| 189 | + }; |
| 190 | +}; |
| 191 | + |
| 192 | +&xspi2 { |
| 193 | + pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1 |
| 194 | + &xspim_p2_io0_pn2 &xspim_p2_io1_pn3 |
| 195 | + &xspim_p2_io2_pn4 &xspim_p2_io3_pn5 |
| 196 | + &xspim_p2_io4_pn8 &xspim_p2_io5_pn9 |
| 197 | + &xspim_p2_io6_pn10 &xspim_p2_io7_pn11 |
| 198 | + &xspim_p2_dqs0_pn0>; |
| 199 | + pinctrl-names = "default"; |
| 200 | + |
| 201 | + status = "okay"; |
| 202 | + |
| 203 | + mx66uw1g45: xspi-nor-flash@70000000 { |
| 204 | + compatible = "st,stm32-xspi-nor"; |
| 205 | + reg = <0x70000000 DT_SIZE_M(128)>; /* 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