Skip to content

Commit 34b0cfc

Browse files
added qspi raw support via symbols for giga, h7 and c33
1 parent 602f443 commit 34b0cfc

File tree

6 files changed

+20
-66
lines changed

6 files changed

+20
-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.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,7 @@ CONFIG_BT_BUF_ACL_RX_SIZE=255
9999
CONFIG_BT_BUF_CMD_TX_SIZE=255
100100
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
101101
CONFIG_BT_MAX_CONN=4
102+
103+
CONFIG_FLASH=y
104+
CONFIG_FLASH_PAGE_LAYOUT=y
105+
CONFIG_FLASH_RENESAS_RA_QSPI=y

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
@@ -100,3 +100,8 @@ CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
100100
CONFIG_BT_RX_STACK_SIZE=4096
101101

102102
CONFIG_STM32H7_BOOT_M4_AT_INIT=n
103+
104+
CONFIG_FLASH=y
105+
CONFIG_FLASH_STM32_QSPI=y
106+
CONFIG_FLASH_MAP=y
107+
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

@@ -371,3 +372,9 @@
371372
<&adc1 13>; /* Hack for D20 */
372373
};
373374
};
375+
376+
377+
/* QSPI flash (MX25L12833F) is already configured in arduino_portenta_h7-common.dtsi
378+
* with the correct pins: IO2=PF7, IO3=PD13 (different from Giga R1!)
379+
*/
380+
qspi_flash: &mx25l12833f {};

0 commit comments

Comments
 (0)