Skip to content

Commit 7806d5b

Browse files
FRASTMcarlescufi
authored andcommitted
boards: arm: stm32f723 disco kit has quadspi NOR flash
Enables the quadspi interface of the stm32f723e_disco board to access the mx25r512 512Mbits NOR flash Pins of the bk1 quadspi bus are connected to the external NOR flash on the board HW. Signed-off-by: Francois Ramu <[email protected]>
1 parent c3e9879 commit 7806d5b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

boards/arm/stm32f723e_disco/stm32f723e_disco.dts

+21
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
zephyr,shell-uart = &usart6;
1919
zephyr,sram = &sram0;
2020
zephyr,flash = &flash0;
21+
zephyr,flash-controller = &mx25r512;
2122
};
2223

2324
leds {
@@ -49,6 +50,7 @@
4950
led1 = &red_led;
5051
led2 = &green_led;
5152
sw0 = &user_button;
53+
spi-flash0 = &mx25r512;
5254
};
5355
};
5456

@@ -112,6 +114,25 @@
112114
status = "okay";
113115
};
114116

117+
&quadspi {
118+
pinctrl-names = "default";
119+
pinctrl-0 = <&quadspi_clk_pb2 &quadspi_bk1_ncs_pb6
120+
&quadspi_bk1_io0_pc9 &quadspi_bk1_io1_pc10
121+
&quadspi_bk1_io2_pe2 &quadspi_bk1_io3_pd13>;
122+
flash-id = <1>;
123+
status = "okay";
124+
125+
mx25r512: qspi-nor-flash@0 {
126+
compatible = "st,stm32-qspi-nor";
127+
reg = <0>;
128+
qspi-max-frequency = <8000000>;
129+
size = <DT_SIZE_M(512)>; /* 64 MBytes */
130+
status = "okay";
131+
spi-bus-width = <4>;
132+
writeoc = "PP_1_4_4";
133+
};
134+
};
135+
115136
zephyr_udc0: &usbotg_fs {
116137
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
117138
pinctrl-names = "default";

0 commit comments

Comments
 (0)