Skip to content
Open
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
9 changes: 9 additions & 0 deletions boards/renesas/rzn2l_rsk/rzn2l_rsk-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,13 @@
<RZN_PINMUX(PORT_05, 3, 9)>; /* SDA */
};
};

/omit-if-no-ref/ spi2_pins: spi2 {
spi2-pinmux {
pinmux = <RZN_PINMUX(PORT_18, 4, 3)>, /* CK2 */
<RZN_PINMUX(PORT_18, 5, 3)>, /* MOSI2 */
<RZN_PINMUX(PORT_18, 6, 5)>, /* MISO2 */
<RZN_PINMUX(PORT_21, 1, 6)>; /* SSL20 */
};
};
};
6 changes: 6 additions & 0 deletions boards/renesas/rzn2l_rsk/rzn2l_rsk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,9 @@
pinctrl-names = "default";
status = "okay";
};

&spi2 {
pinctrl-0 = <&spi2_pins>;
pinctrl-names = "default";
status = "okay";
};
1 change: 1 addition & 0 deletions boards/renesas/rzn2l_rsk/rzn2l_rsk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ supported:
- adc
- i2c
- counter
- spi
vendor: renesas
9 changes: 9 additions & 0 deletions boards/renesas/rzt2m_rsk/rzt2m_rsk-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,13 @@
<RZT_PINMUX(PORT_22, 7, 2)>; /* SDA */
};
};

/omit-if-no-ref/ spi2_pins: spi2 {
spi2-pinmux {
pinmux = <RZT_PINMUX(PORT_18, 4, 3)>, /* CK2 */
<RZT_PINMUX(PORT_18, 5, 3)>, /* MOSI2 */
<RZT_PINMUX(PORT_18, 6, 5)>, /* MISO2 */
<RZT_PINMUX(PORT_18, 7, 3)>; /* SSL20 */
};
};
};
6 changes: 6 additions & 0 deletions boards/renesas/rzt2m_rsk/rzt2m_rsk_r9a07g075m24gbg_cr520.dts
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,9 @@
&adc1 {
status = "okay";
};

&spi2 {
pinctrl-0 = <&spi2_pins>;
pinctrl-names = "default";
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ supported:
- adc
- i2c
- counter
- spi
vendor: renesas
1 change: 1 addition & 0 deletions drivers/spi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ zephyr_library_sources_ifdef(CONFIG_SPI_PW spi_pw.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RA spi_renesas_ra.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RA8 spi_b_renesas_ra8.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RX spi_renesas_rx.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RZ spi_renesas_rz.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RENESAS_RZ_RSPI spi_renesas_rz_rspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RPI_PICO_PIO spi_rpi_pico_pio.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RV32M1_LPSPI spi_rv32m1_lpspi.c)
Expand Down
28 changes: 26 additions & 2 deletions drivers/spi/Kconfig.renesas_rz
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,32 @@ config SPI_RENESAS_RZ_RSPI_DMAC
help
Enable the SPI DMA mode for SPI instances

endif # SPI_RENESAS_RZ_RSPI

config SPI_RENESAS_RZ
bool "Renesas RZ SPI"
default y
depends on DT_HAS_RENESAS_RZ_SPI_ENABLED
select USE_RZ_FSP_SPI
select PINCTRL
help
Enable Renesas RZ SPI Driver.

if SPI_RENESAS_RZ

config SPI_RENESAS_RZ_INTERRUPT
bool "RZ SPI Interrupt Support"
help
Enable Interrupt support for the SPI.

config SPI_USE_HW_SS
bool "RZ SPI Hardware Peripheral Select support"
default y
help
Use Hardware Peripheral Select instead of Software Peripheral Select.

endif # SPI_RENESAS_RZ

if SPI_RTIO
config SPI_RTIO_SQ_SIZE
int "Number of available submission queue entries"
Expand All @@ -40,5 +66,3 @@ config SPI_RTIO_CQ_SIZE
default 8 # Sensible default that covers most common spi transactions

endif # SPI_RTIO

endif # SPI_RENESAS_RZ_RSPI
Loading
Loading