Skip to content

Commit e057205

Browse files
le-quang168tiennguyenzg
authored andcommitted
drivers: spi: Initial support for RZN2L, T2M
Add SPI driver support for Renesas RZN2L, T2M Signed-off-by: Quang Le <[email protected]> Signed-off-by: Tien Nguyen <[email protected]>
1 parent d339230 commit e057205

File tree

5 files changed

+850
-2
lines changed

5 files changed

+850
-2
lines changed

drivers/spi/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ zephyr_library_sources_ifdef(CONFIG_SPI_PW spi_pw.c)
5454
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RA spi_renesas_ra.c)
5555
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RA8 spi_b_renesas_ra8.c)
5656
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RX spi_renesas_rx.c)
57+
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RZ spi_renesas_rz.c)
5758
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RZ_RSPI spi_renesas_rz_rspi.c)
5859
zephyr_library_sources_ifdef(CONFIG_SPI_RPI_PICO_PIO spi_rpi_pico_pio.c)
5960
zephyr_library_sources_ifdef(CONFIG_SPI_RV32M1_LPSPI spi_rv32m1_lpspi.c)

drivers/spi/Kconfig.renesas_rz

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,32 @@ config SPI_RENESAS_RZ_RSPI_DMAC
2323
help
2424
Enable the SPI DMA mode for SPI instances
2525

26+
endif # SPI_RENESAS_RZ_RSPI
27+
28+
config SPI_RENESAS_RZ
29+
bool "Renesas RZ SPI"
30+
default y
31+
depends on DT_HAS_RENESAS_RZ_SPI_ENABLED
32+
select USE_RZ_FSP_SPI
33+
select PINCTRL
34+
help
35+
Enable Renesas RZ SPI Driver.
36+
37+
if SPI_RENESAS_RZ
38+
39+
config SPI_RENESAS_RZ_INTERRUPT
40+
bool "RZ SPI Interrupt Support"
41+
help
42+
Enable Interrupt support for the SPI.
43+
44+
config SPI_USE_HW_SS
45+
bool "RZ SPI Hardware Peripheral Select support"
46+
default y
47+
help
48+
Use Hardware Peripheral Select instead of Software Peripheral Select.
49+
50+
endif # SPI_RENESAS_RZ
51+
2652
if SPI_RTIO
2753
config SPI_RTIO_SQ_SIZE
2854
int "Number of available submission queue entries"
@@ -40,5 +66,3 @@ config SPI_RTIO_CQ_SIZE
4066
default 8 # Sensible default that covers most common spi transactions
4167

4268
endif # SPI_RTIO
43-
44-
endif # SPI_RENESAS_RZ_RSPI

0 commit comments

Comments
 (0)