Skip to content

Commit b8c3c32

Browse files
committed
boards: disco_l475_iot1: Enable support for MX25R6435F QSPI NOR
Configure QSPI NOR support and MX25R6435F on disco_l475_iot1 board. Signed-off-by: Erwan Gouriou <[email protected]> Signed-off-by: Piotr Mienkowski <[email protected]>
1 parent eb00b75 commit b8c3c32

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

boards/arm/disco_l475_iot1/disco_l475_iot1.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,27 @@
228228
&adc1_in14_pc5>;
229229
status = "okay";
230230
};
231+
232+
&dma1 {
233+
status = "okay";
234+
};
235+
236+
&quadspi {
237+
pinctrl-0 = <&quadspi_clk_pe10 &quadspi_ncs_pe11
238+
&quadspi_bk1_io0_pe12 &quadspi_bk1_io1_pe13
239+
&quadspi_bk1_io2_pe14 &quadspi_bk1_io3_pe15>;
240+
dmas = <&dma1 5 5 0x0000 0x03>;
241+
dma-names = "tx_rx";
242+
243+
status = "okay";
244+
245+
mx25r6435f: qspi-nor-flash@0 {
246+
compatible = "st,stm32-qspi-nor";
247+
label = "MX25R6435F";
248+
reg = <0>;
249+
spi-max-frequency = <80000000>;
250+
/* 64 Megabits = 8 Megabytes */
251+
size = <0x4000000>;
252+
status = "okay";
253+
};
254+
};

boards/arm/disco_l475_iot1/doc/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ 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+
+-----------+------------+-------------------------------------+
130+
131+
Note: QSPI NOR Support could be tested using ``samples/drivers/flash_shell``.
132+
Once the shell is started, run following command:
133+
134+
.. code-block:: console
135+
136+
uart:~$ flash set_device MX25R6435F
137+
128138
129139
Other hardware features are not yet supported on this Zephyr port.
130140

0 commit comments

Comments
 (0)