Skip to content

Commit c312b32

Browse files
khoa-nguyen-18kartben
authored andcommitted
drivers: spi: Add support SPI driver for Renesas RA6, RA4, RA2
- Add SPI driver support for RA - RA2A1 not support slave select keeping level so disable it in Kconfig Signed-off-by: Tri Nguyen <[email protected]> Signed-off-by: Thao Luong <[email protected]> Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 4f46b38 commit c312b32

File tree

6 files changed

+903
-0
lines changed

6 files changed

+903
-0
lines changed

drivers/spi/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ zephyr_library_sources_ifdef(CONFIG_SPI_AMBIQ_BLEIF spi_ambiq_bleif.c)
5252
zephyr_library_sources_ifdef(CONFIG_SPI_RPI_PICO_PIO spi_rpi_pico_pio.c)
5353
zephyr_library_sources_ifdef(CONFIG_SPI_MCHP_MSS spi_mchp_mss.c)
5454
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RA8 spi_b_renesas_ra8.c)
55+
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RA spi_renesas_ra.c)
5556
zephyr_library_sources_ifdef(CONFIG_SPI_RTIO spi_rtio.c)
5657
zephyr_library_sources_ifdef(CONFIG_SPI_ASYNC spi_signal.c)
5758
zephyr_library_sources_ifdef(CONFIG_SPI_ITE_IT8XXX2 spi_it8xxx2.c)

drivers/spi/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,6 @@ source "drivers/spi/Kconfig.renesas_ra8"
165165

166166
source "drivers/spi/Kconfig.it8xxx2"
167167

168+
source "drivers/spi/Kconfig.renesas_ra"
169+
168170
endif # SPI

drivers/spi/Kconfig.renesas_ra

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Renesas RA Family
2+
3+
# Copyright (c) 2024 Renesas Electronics Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config SPI_RENESAS_RA
7+
bool "Renesas RA SPI"
8+
default y
9+
depends on DT_HAS_RENESAS_RA_SPI_ENABLED
10+
select USE_RA_FSP_SPI
11+
select PINCTRL
12+
help
13+
Enable Renesas RA SPI Driver.
14+
15+
if SPI_RENESAS_RA
16+
17+
config SPI_INTERRUPT
18+
bool "RA MCU SPI Interrupt Support"
19+
help
20+
Enable Interrupt support for the SPI Driver of RA family.
21+
22+
config SPI_RA_DTC
23+
bool "RA MCU SPI DTC Support"
24+
select USE_RA_FSP_DTC
25+
help
26+
Enable the SPI DTC mode for SPI instances
27+
28+
config SPI_USE_HW_SS
29+
bool "RA MCU SPI Hardware Slave Select support"
30+
default y
31+
depends on !SOC_SERIES_RA2A1
32+
help
33+
Use Slave Select pin instead of software Slave Select.
34+
35+
endif # SPI_RENESAS_RA

0 commit comments

Comments
 (0)