tests: drivers: spi: add configuration for ke17z to test loopback

Add spi configurations of NXP frdm_ke17z and frdm_ke17z512 boards,
tested spi_loopback sample for lpspi drivers.
Update the "HAS_MCUX_*" kconfig to "DT_HAS_*" in testcase.yaml

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
Anke Xiao 2024-07-08 16:25:36 +08:00 committed by Anas Nashif
commit e69bfa5e7d
5 changed files with 61 additions and 3 deletions

View file

@ -0,0 +1,7 @@
#
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SPI_MCUX_LPSPI_DMA=y
CONFIG_SPI_ASYNC=n

View file

@ -0,0 +1,22 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/* To test this sample, connect
* LPSPI0 SIN(J2-10) --> LPSPI0 SOUT(J2-8)
*/
&lpspi0 {
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

@ -0,0 +1,7 @@
#
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SPI_MCUX_LPSPI_DMA=y
CONFIG_SPI_ASYNC=n

View file

@ -0,0 +1,22 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/* To test this sample, connect
* LPSPI0 SIN(J2-10) --> LPSPI0 SOUT(J2-8)
*/
&lpspi0 {
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

@ -14,16 +14,16 @@ tests:
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
filter: DT_HAS_NXP_IMX_LPSPI_ENABLED and DT_HAS_NXP_MCUX_EDMA_ENABLED
extra_configs:
- CONFIG_SPI_MCUX_LPSPI_DMA=y
drivers.spi.loopback.lpspi.async.unset:
filter: CONFIG_HAS_MCUX_LPSPI and CONFIG_HAS_MCUX_EDMA
filter: DT_HAS_NXP_IMX_LPSPI_ENABLED and DT_HAS_NXP_MCUX_EDMA_ENABLED
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
filter: DT_HAS_NXP_IMX_LPSPI_ENABLED and DT_HAS_NXP_MCUX_EDMA_ENABLED
extra_configs:
- CONFIG_SPI_MCUX_LPSPI_DMA=y
- CONFIG_SPI_ASYNC=n