Skip to content

Commit b4e7ed9

Browse files
thaoluonguwnordicjm
authored andcommitted
[nrf fromtree] tests: drivers: spi: Add support ek_ra2l1 for spi_loopback test
Add support for ek_ra2l1 on spi_loopback. Signed-off-by: Thao Luong <[email protected]> (cherry picked from commit e2267bd)
1 parent a6de050 commit b4e7ed9

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
2+
CONFIG_SPI_INTERRUPT=y
3+
CONFIG_SPI_RA_DTC=y
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&spi0 {
7+
rx-dtc;
8+
tx-dtc;
9+
10+
slow@0 {
11+
compatible = "test-spi-loopback-slow";
12+
reg = <0>;
13+
spi-max-frequency = <2000000>;
14+
};
15+
16+
fast@0 {
17+
compatible = "test-spi-loopback-fast";
18+
reg = <0>;
19+
spi-max-frequency = <3000000>;
20+
};
21+
};
22+
23+
&pinctrl {
24+
spi0_default: spi0_default {
25+
group1 {
26+
/* MISO MOSI RSPCK */
27+
psels = <RA_PSEL(RA_PSEL_SPI, 1, 0)>,
28+
<RA_PSEL(RA_PSEL_SPI, 1, 1)>,
29+
<RA_PSEL(RA_PSEL_SPI, 1, 2)>;
30+
};
31+
};
32+
};
33+
34+
&spi0 {
35+
pinctrl-0 = <&spi0_default>;
36+
pinctrl-names = "default";
37+
cs-gpios = <&ioport1 3 GPIO_ACTIVE_LOW>;
38+
interrupts = <8 1>, <9 1>, <10 1>, <19 1>;
39+
interrupt-names = "rxi", "txi", "tei", "eri";
40+
status = "okay";
41+
};
42+
43+
&ioport1 {
44+
status = "okay";
45+
};

0 commit comments

Comments
 (0)