|
85 | 85 | status = "okay";
|
86 | 86 | };
|
87 | 87 |
|
| 88 | +/* PLL2 for clocking the xspi peripheral */ |
| 89 | +&pll2 { |
| 90 | + div-m = <12>; |
| 91 | + mul-n = <200>; |
| 92 | + div-p = <2>; |
| 93 | + div-q = <2>; |
| 94 | + div-r = <2>; |
| 95 | + div-s = <2>; |
| 96 | + div-t = <2>; |
| 97 | + clocks = <&clk_hse>; |
| 98 | + status = "okay"; |
| 99 | +}; |
| 100 | + |
88 | 101 | &rcc {
|
89 | 102 | clocks = <&pll>;
|
90 | 103 | clock-frequency = <DT_FREQ_M(200)>;
|
|
139 | 152 | status = "okay";
|
140 | 153 | clock-frequency = <I2C_BITRATE_FAST>;
|
141 | 154 | };
|
| 155 | + |
| 156 | +&flash0 { |
| 157 | + partitions { |
| 158 | + compatible = "fixed-partitions"; |
| 159 | + #address-cells = <1>; |
| 160 | + #size-cells = <1>; |
| 161 | + |
| 162 | + /* Set the partitions with first MB to make use of the whole Bank1 */ |
| 163 | + boot_partition: partition@0 { |
| 164 | + label = "mcuboot"; |
| 165 | + reg = <0x00000000 DT_SIZE_K(64)>; |
| 166 | + }; |
| 167 | + }; |
| 168 | +}; |
| 169 | + |
| 170 | +&xspi2 { |
| 171 | + pinctrl-0 = <&xspim_p2_clk_pn6 &xspim_p2_ncs1_pn1 |
| 172 | + &xspim_p2_io0_pn2 &xspim_p2_io1_pn3 |
| 173 | + &xspim_p2_io2_pn4 &xspim_p2_io3_pn5 |
| 174 | + &xspim_p2_io4_pn8 &xspim_p2_io5_pn9 |
| 175 | + &xspim_p2_io6_pn10 &xspim_p2_io7_pn11 |
| 176 | + &xspim_p2_dqs0_pn0>; |
| 177 | + pinctrl-names = "default"; |
| 178 | + |
| 179 | + status = "okay"; |
| 180 | + |
| 181 | + mx25uw25645: xspi-nor-flash@0 { |
| 182 | + compatible = "st,stm32-xspi-nor"; |
| 183 | + reg = <0>; |
| 184 | + size = <DT_SIZE_M(256)>; /* 256Mbits */ |
| 185 | + ospi-max-frequency = <DT_FREQ_M(50)>; |
| 186 | + spi-bus-width = <XSPI_OCTO_MODE>; |
| 187 | + data-rate = <XSPI_DTR_TRANSFER>; |
| 188 | + status = "okay"; |
| 189 | + |
| 190 | + partitions { |
| 191 | + compatible = "fixed-partitions"; |
| 192 | + #address-cells = <1>; |
| 193 | + #size-cells = <1>; |
| 194 | + |
| 195 | + slot0_partition: partition@0 { |
| 196 | + label = "image-0"; |
| 197 | + reg = <0x00000000 DT_SIZE_K(512)>; |
| 198 | + }; |
| 199 | + slot1_partition: partition@80000 { |
| 200 | + label = "image-1"; |
| 201 | + reg = <0x0080000 DT_SIZE_K(512)>; |
| 202 | + }; |
| 203 | + scratch_partition: partition@100000 { |
| 204 | + label = "image-scratch"; |
| 205 | + reg = <0x00100000 DT_SIZE_K(64)>; |
| 206 | + }; |
| 207 | + storage_partition: partition@110000 { |
| 208 | + label = "storage"; |
| 209 | + reg = <0x00110000 DT_SIZE_K(64)>; |
| 210 | + }; |
| 211 | + }; |
| 212 | + }; |
| 213 | +}; |
0 commit comments