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:
parent
f1ef690224
commit
e69bfa5e7d
5 changed files with 61 additions and 3 deletions
7
tests/drivers/spi/spi_loopback/boards/frdm_ke17z.conf
Normal file
7
tests/drivers/spi/spi_loopback/boards/frdm_ke17z.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# Copyright 2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_SPI_MCUX_LPSPI_DMA=y
|
||||
CONFIG_SPI_ASYNC=n
|
22
tests/drivers/spi/spi_loopback/boards/frdm_ke17z.overlay
Normal file
22
tests/drivers/spi/spi_loopback/boards/frdm_ke17z.overlay
Normal 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>;
|
||||
};
|
||||
};
|
7
tests/drivers/spi/spi_loopback/boards/frdm_ke17z512.conf
Normal file
7
tests/drivers/spi/spi_loopback/boards/frdm_ke17z512.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# Copyright 2024 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_SPI_MCUX_LPSPI_DMA=y
|
||||
CONFIG_SPI_ASYNC=n
|
22
tests/drivers/spi/spi_loopback/boards/frdm_ke17z512.overlay
Normal file
22
tests/drivers/spi/spi_loopback/boards/frdm_ke17z512.overlay
Normal 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>;
|
||||
};
|
||||
};
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue