Skip to content

Commit b711740

Browse files
erwangonashif
authored andcommitted
boards: disco_l475_iot1: Enable support for MX25R6435F QSPI NOR
Configure QSPI NOR support and MX25R6435F on disco_l475_iot1 board. Set MX25R6435F as flash controller and arrange partitions to take newlay available space into account. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 4de9f27 commit b711740

File tree

2 files changed

+45
-10
lines changed

2 files changed

+45
-10
lines changed

boards/arm/disco_l475_iot1/disco_l475_iot1.dts

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
zephyr,sram = &sram0;
2020
zephyr,flash = &flash0;
2121
zephyr,code-partition = &slot0_partition;
22+
zephyr,flash-controller = &mx25r6435f;
2223
};
2324

2425
leds {
@@ -173,21 +174,13 @@
173174

174175
slot0_partition: partition@20000 {
175176
label = "image-0";
176-
reg = <0x00020000 0x0006C000>;
177-
};
178-
slot1_partition: partition@8c000 {
179-
label = "image-1";
180-
reg = <0x0008C000 0x0006C000>;
177+
reg = <0x00020000 0x000D8000>;
181178
};
179+
182180
scratch_partition: partition@f8000 {
183181
label = "image-scratch";
184182
reg = <0x000F8000 0x00004000>;
185183
};
186-
187-
storage_partition: partition@fc000 {
188-
label = "storage";
189-
reg = <0x000fc000 0x00004000>;
190-
};
191184
};
192185
};
193186

@@ -228,3 +221,43 @@
228221
&adc1_in14_pc5>;
229222
status = "okay";
230223
};
224+
225+
&dma1 {
226+
status = "okay";
227+
};
228+
229+
&quadspi {
230+
pinctrl-0 = <&quadspi_clk_pe10 &quadspi_ncs_pe11
231+
&quadspi_bk1_io0_pe12 &quadspi_bk1_io1_pe13
232+
&quadspi_bk1_io2_pe14 &quadspi_bk1_io3_pe15>;
233+
dmas = <&dma1 5 5 0x0000 0x03>;
234+
dma-names = "tx_rx";
235+
236+
status = "okay";
237+
238+
mx25r6435f: qspi-nor-flash@0 {
239+
compatible = "st,stm32-qspi-nor";
240+
label = "MX25R6435F";
241+
reg = <0>;
242+
qspi-max-frequency = <50000000>;
243+
/* 64 Megabits = 8 Megabytes */
244+
size = <0x4000000>;
245+
status = "okay";
246+
247+
partitions {
248+
compatible = "fixed-partitions";
249+
#address-cells = <1>;
250+
#size-cells = <1>;
251+
252+
slot1_partition: partition@0 {
253+
label = "image-1";
254+
reg = <0x00000000 0x000D8000>;
255+
};
256+
257+
storage_partition: partition@D8000 {
258+
label = "storage";
259+
reg = <0x000D8000 DT_SIZE_M(7)>;
260+
};
261+
};
262+
};
263+
};

boards/arm/disco_l475_iot1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ The Zephyr Disco L475 IoT board configuration supports the following hardware fe
125125
+-----------+------------+-------------------------------------+
126126
| ADC | on-chip | adc |
127127
+-----------+------------+-------------------------------------+
128+
| QSPI NOR | on-chip | flash |
129+
+-----------+------------+-------------------------------------+
128130

129131
Other hardware features are not yet supported on this Zephyr port.
130132

0 commit comments

Comments
 (0)