Skip to content

Commit 6058ecd

Browse files
added qspi raw support via symbols for giga, h7 and c33
1 parent a9e89fb commit 6058ecd

File tree

5 files changed

+16
-66
lines changed

5 files changed

+16
-66
lines changed

libraries/QSPI/README.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
status = "okay";
2828
};
2929

30+
qspi_flash: &n25q128a1 {};
31+
3032
&i2c4 {
3133
status = "okay";
3234
gc2145: gc2145@3c {
@@ -334,22 +336,6 @@
334336
};
335337

336338

337-
&quadspi {
338-
pinctrl-0 = <&quadspi_clk_pf10 &quadspi_bk1_ncs_pg6
339-
&quadspi_bk1_io0_pd11 &quadspi_bk1_io1_pd12
340-
&quadspi_bk1_io2_pe2 &quadspi_bk1_io3_pf6>;
341-
pinctrl-names = "default";
342-
status = "okay";
343-
344-
qspi_flash: qspi-nor-flash@0 {
345-
compatible = "st,stm32-qspi-nor";
346-
reg = <0>;
347-
size = <DT_SIZE_M(128)>; /* 128 Mbits (16 MB) */
348-
qspi-max-frequency = <72000000>;
349-
spi-bus-width = <4>;
350-
status = "okay";
351-
};
352-
};
353339

354340
&flash0 {
355341
partitions {

variants/arduino_portenta_c33_r7fa6m5bh3cfc/arduino_portenta_c33_r7fa6m5bh3cfc.overlay

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
};
66
};
77

8+
qspi_flash: &at25sf128a {};
9+
810
&flash0 {
911
partitions {
1012
mcuboot: partition@0 {

variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,8 @@ CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
110110
CONFIG_BT_RX_STACK_SIZE=4096
111111

112112
CONFIG_STM32H7_BOOT_M4_AT_INIT=n
113+
114+
CONFIG_FLASH=y
115+
CONFIG_FLASH_STM32_QSPI=y
116+
CONFIG_FLASH_MAP=y
117+
CONFIG_FLASH_PAGE_LAYOUT=y

variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
status = "okay";
1515
};
1616

17+
1718
&i2c3 {
1819
status = "okay";
1920

@@ -389,3 +390,9 @@ qspi_flash: &mx25l12833f {};
389390
<&adc1 13>; /* Hack for D20 */
390391
};
391392
};
393+
394+
395+
/* QSPI flash (MX25L12833F) is already configured in arduino_portenta_h7-common.dtsi
396+
* with the correct pins: IO2=PF7, IO3=PD13 (different from Giga R1!)
397+
*/
398+
qspi_flash: &mx25l12833f {};

0 commit comments

Comments
 (0)