Skip to content

Commit 66eb8a8

Browse files
le-quang168kartben
authored andcommitted
tests: drivers: spi: Add support for RZ/G3S-SMARC
Enable SPI driver tests for RZ/G3S-SMARC Signed-off-by: Quang Le <[email protected]> Signed-off-by: Binh Nguyen <[email protected]>
1 parent 81bd1f5 commit 66eb8a8

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CONFIG_SPI_ASYNC=y
2+
CONFIG_SPI_RENESAS_RZ_RSPI_INTERRUPT=y
3+
CONFIG_SPI_RENESAS_RZ_RSPI_DMAC=n
4+
CONFIG_SPI_RTIO=n
5+
CONFIG_SPI_LOOPBACK_MODE_LOOP=n
6+
CONFIG_SPI_LARGE_BUFFER_SIZE=2048
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi0 {
8+
dmas = <&dma0 6 RZ_DMA_PERIPH_TO_MEM>,
9+
<&dma0 5 RZ_DMA_MEM_TO_PERIPH>;
10+
dma-names = "rx", "tx";
11+
slow@2 {
12+
compatible = "test-spi-loopback-slow";
13+
reg = <2>;
14+
spi-max-frequency = <500000>;
15+
};
16+
fast@2 {
17+
compatible = "test-spi-loopback-fast";
18+
reg = <2>;
19+
spi-max-frequency = <8333333>;
20+
};
21+
};
22+
23+
&dma0 {
24+
status = "okay";
25+
dma-buf-addr-alignment = <1>;
26+
};

0 commit comments

Comments
 (0)