Skip to content

Commit 8d7ae89

Browse files
khoa-nguyen-18kartben
authored andcommitted
tests: drivers: spi: Support test spi_loopback for RA6, RA4, RA2
Add overlay and add config to support test spi_loopback for: ek_ra6m1, ek_ra6m2, ek_ra6m3, ek_ra6m4, ek_ra6m5, ek_ra6e2, fpb_ra6e1, fpb_ra6e2, ek_ra4w1, ek_ra4m2, ek_ra4m3, ek_ra4e2, ek_ra2a1. Signed-off-by: Tri Nguyen <tri.nguyen.wj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com> Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
1 parent c8077e3 commit 8d7ae89

26 files changed

+325
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
5+
CONFIG_SPI_INTERRUPT=y
6+
CONFIG_SPI_RA_DTC=y
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&spi1 {
7+
rx-dtc;
8+
tx-dtc;
9+
slow@0 {
10+
compatible = "test-spi-loopback-slow";
11+
reg = <0>;
12+
spi-max-frequency = <2000000>;
13+
};
14+
fast@0 {
15+
compatible = "test-spi-loopback-fast";
16+
reg = <0>;
17+
spi-max-frequency = <3000000>;
18+
};
19+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
5+
CONFIG_SPI_INTERRUPT=y
6+
CONFIG_SPI_RA_DTC=y
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&spi0 {
7+
rx-dtc;
8+
tx-dtc;
9+
slow@0 {
10+
compatible = "test-spi-loopback-slow";
11+
reg = <0>;
12+
spi-max-frequency = <2000000>;
13+
};
14+
fast@0 {
15+
compatible = "test-spi-loopback-fast";
16+
reg = <0>;
17+
spi-max-frequency = <3000000>;
18+
};
19+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
5+
CONFIG_SPI_INTERRUPT=y
6+
CONFIG_SPI_RA_DTC=y
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&spi0 {
7+
rx-dtc;
8+
tx-dtc;
9+
slow@0 {
10+
compatible = "test-spi-loopback-slow";
11+
reg = <0>;
12+
spi-max-frequency = <2000000>;
13+
};
14+
fast@0 {
15+
compatible = "test-spi-loopback-fast";
16+
reg = <0>;
17+
spi-max-frequency = <3000000>;
18+
};
19+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
5+
CONFIG_SPI_INTERRUPT=y
6+
CONFIG_SPI_RA_DTC=y
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&spi0 {
7+
rx-dtc;
8+
tx-dtc;
9+
slow@0 {
10+
compatible = "test-spi-loopback-slow";
11+
reg = <0>;
12+
spi-max-frequency = <2000000>;
13+
};
14+
fast@0 {
15+
compatible = "test-spi-loopback-fast";
16+
reg = <0>;
17+
spi-max-frequency = <3000000>;
18+
};
19+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
5+
CONFIG_SPI_INTERRUPT=y
6+
CONFIG_SPI_RA_DTC=y
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&spi1 {
7+
rx-dtc;
8+
tx-dtc;
9+
slow@0 {
10+
compatible = "test-spi-loopback-slow";
11+
reg = <0>;
12+
spi-max-frequency = <2000000>;
13+
};
14+
fast@0 {
15+
compatible = "test-spi-loopback-fast";
16+
reg = <0>;
17+
spi-max-frequency = <3000000>;
18+
};
19+
};

0 commit comments

Comments
 (0)