Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions boards/renesas/ek_ra6e2/ek_ra6e2-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,16 @@
<RA_PSEL(RA_PSEL_GPT1, 4, 8)>;
};
};

qspi_default: qspi_default {
group1 {
/* QSPICLK QSSL QIO0 QIO1 QIO2 QIO3 */
psels = <RA_PSEL(RA_PSEL_QSPI, 1, 0)>,
<RA_PSEL(RA_PSEL_QSPI, 1, 12)>,
<RA_PSEL(RA_PSEL_QSPI, 1, 2)>,
<RA_PSEL(RA_PSEL_QSPI, 1, 1)>,
<RA_PSEL(RA_PSEL_QSPI, 1, 4)>,
<RA_PSEL(RA_PSEL_QSPI, 1, 3)>;
};
};
};
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6e2/ek_ra6e2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,17 @@
&wdt {
status = "okay";
};

&qspi0 {
pinctrl-0 = <&qspi_default>;
pinctrl-names = "default";
status = "okay";

at25sf128a: qspi-nor-flash@60000000 {
compatible = "renesas,ra-qspi-nor";
reg = <0x60000000 DT_SIZE_M(16)>;
status = "okay";
write-block-size = <1>;
erase-block-size = <4096>;
};
};
12 changes: 12 additions & 0 deletions boards/renesas/ek_ra6m3/ek_ra6m3-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,16 @@
drive-strength = "high";
};
};

qspi_default: qspi_default {
group1 {
/* QSPICLK QSSL QIO0 QIO1 QIO2 QIO3 */
psels = <RA_PSEL(RA_PSEL_QSPI, 3, 5)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 6)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 7)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 8)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 9)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 10)>;
};
};
};
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6m3/ek_ra6m3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,17 @@
status = "okay";
};
};

&qspi0 {
pinctrl-0 = <&qspi_default>;
pinctrl-names = "default";
status = "okay";

mx25l25645g: qspi-nor-flash@60000000 {
compatible = "renesas,ra-qspi-nor";
reg = <0x60000000 DT_SIZE_M(32)>;
status = "okay";
write-block-size = <1>;
erase-block-size = <4096>;
};
};
12 changes: 12 additions & 0 deletions boards/renesas/ek_ra6m4/ek_ra6m4-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,16 @@
drive-strength = "high";
};
};

qspi_default: qspi_default {
group1 {
/* QSPICLK QSSL QIO0 QIO1 QIO2 QIO3 */
psels = <RA_PSEL(RA_PSEL_QSPI, 3, 5)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 6)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 7)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 8)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 9)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 10)>;
};
};
};
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6m4/ek_ra6m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,17 @@ arduino_spi: &spi0 {};
status = "okay";
};
};

&qspi0 {
pinctrl-0 = <&qspi_default>;
pinctrl-names = "default";
status = "okay";

mx25l25645g: qspi-nor-flash@60000000 {
compatible = "renesas,ra-qspi-nor";
reg = <0x60000000 DT_SIZE_M(32)>;
status = "okay";
write-block-size = <1>;
erase-block-size = <4096>;
};
};
12 changes: 12 additions & 0 deletions boards/renesas/ek_ra6m5/ek_ra6m5-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,16 @@
drive-strength = "high";
};
};

qspi_default: qspi_default {
group1 {
/* QSPICLK QSSL QIO0 QIO1 QIO2 QIO3 */
psels = <RA_PSEL(RA_PSEL_QSPI, 3, 5)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 6)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 7)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 8)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 9)>,
<RA_PSEL(RA_PSEL_QSPI, 3, 10)>;
};
};
};
14 changes: 14 additions & 0 deletions boards/renesas/ek_ra6m5/ek_ra6m5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,17 @@ arduino_spi: &spi0 {};
status = "okay";
};
};

&qspi0 {
pinctrl-0 = <&qspi_default>;
pinctrl-names = "default";
status = "okay";

mx25l25645g: qspi-nor-flash@60000000 {
compatible = "renesas,ra-qspi-nor";
reg = <0x60000000 DT_SIZE_M(32)>;
status = "okay";
write-block-size = <1>;
erase-block-size = <4096>;
};
};
1 change: 1 addition & 0 deletions drivers/flash/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ zephyr_library_sources_ifdef(CONFIG_FLASH_MSPI_NOR flash_mspi_nor.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_NPCX_FIU_NOR flash_npcx_fiu_nor.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_NPCX_FIU_QSPI flash_npcx_fiu_qspi.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_RENESAS_RA_OSPI_B flash_renesas_ra_ospi_b.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_RENESAS_RA_QSPI flash_renesas_ra_qspi.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_RPI_PICO flash_rpi_pico.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_STM32_OSPI flash_stm32_ospi.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_STM32_QSPI flash_stm32_qspi.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/flash/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ source "drivers/flash/Kconfig.numaker_rmc"
source "drivers/flash/Kconfig.nxp_s32"
source "drivers/flash/Kconfig.renesas_ra"
source "drivers/flash/Kconfig.renesas_ra_ospi"
source "drivers/flash/Kconfig.renesas_ra_qspi"
source "drivers/flash/Kconfig.renesas_rx"
source "drivers/flash/Kconfig.rpi_pico"
source "drivers/flash/Kconfig.rts5912"
Expand Down
18 changes: 18 additions & 0 deletions drivers/flash/Kconfig.renesas_ra_qspi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Renesas RA Family

# Copyright (c) 2024-2025 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

config FLASH_RENESAS_RA_QSPI
bool "RA Quad-SPI driver"
default y
depends on DT_HAS_RENESAS_RA_QSPI_NOR_ENABLED
select FLASH_HAS_DRIVER_ENABLED
select FLASH_HAS_PAGE_LAYOUT
select FLASH_HAS_EXPLICIT_ERASE
select USE_RA_FSP_QSPI_NOR_FLASH
select FLASH_HAS_EX_OP
select FLASH_JESD216
select PINCTRL
help
Enable Quad-SPI Nor flash driver for RA series
Loading