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>
This commit is contained in:
Khoa Nguyen 2024-10-28 13:27:36 +07:00 committed by Benjamin Cabé
commit 8d7ae89c23
26 changed files with 325 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi1 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi1 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi1 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
CONFIG_SPI_INTERRUPT=y
CONFIG_SPI_RA_DTC=y

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
rx-dtc;
tx-dtc;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <2000000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <3000000>;
};
};