tests: drivers: spi: spi_loopback: Added mimxrt1170_evk_cm7

Added overlay inside the spi loopback test for the
mimxrt1170_evk_cm7, enabled DMA and Async by default.
Added testcase for async and dma.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
This commit is contained in:
Emilio Benavente 2023-09-19 07:22:27 -05:00 committed by Johan Hedberg
parent 17032a093d
commit b9613389fb
6 changed files with 44 additions and 0 deletions

View file

@ -82,6 +82,8 @@ zephyr_mipi_dsi: &mipi_dsi {
};
&lpspi1 {
dmas = <&edma0 0 36>, <&edma0 1 37>;
dma-names = "rx", "tx";
status = "okay";
};

View file

@ -71,6 +71,8 @@
};
&lpspi1 {
dmas = <&edma_lpsr0 0 36>, <&edma_lpsr0 1 37>;
dma-names = "rx", "tx";
status = "okay";
};

View file

@ -266,6 +266,8 @@
};
&lpspi0 {
dmas = <&edma 0 14>, <&edma 1 15>;
dma-names = "rx", "tx";
status = "okay";
pinctrl-0 = <&lpspi0_default>;
pinctrl-names = "default";

View file

@ -0,0 +1,6 @@
#
# Copyright 2023 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SPI_MCUX_LPSPI_DMA=y

View file

@ -0,0 +1,18 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
&lpspi1 {
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};

View file

@ -13,6 +13,20 @@ tests:
drivers.spi.loopback: {}
drivers.spi.loopback.internal:
filter: CONFIG_SPI_LOOPBACK_MODE_LOOP
drivers.spi.loopback.lpspi.dma:
filter: CONFIG_HAS_MCUX_LPSPI and CONFIG_HAS_MCUX_EDMA
extra_configs:
- CONFIG_SPI_MCUX_LPSPI_DMA=y
drivers.spi.loopback.lpspi.async.unset:
filter: CONFIG_HAS_MCUX_LPSPI and CONFIG_HAS_MCUX_EDMA
extra_configs:
- CONFIG_SPI_MCUX_LPSPI_DMA=n
- CONFIG_SPI_ASYNC=n
drivers.spi.loopback.lpspi.dma.async.unset:
filter: CONFIG_HAS_MCUX_LPSPI and CONFIG_HAS_MCUX_EDMA
extra_configs:
- CONFIG_SPI_MCUX_LPSPI_DMA=y
- CONFIG_SPI_ASYNC=n
drivers.spi.loopback.rtio:
extra_configs:
- CONFIG_SPI_RTIO=y