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:
parent
17032a093d
commit
b9613389fb
|
@ -82,6 +82,8 @@ zephyr_mipi_dsi: &mipi_dsi {
|
|||
};
|
||||
|
||||
&lpspi1 {
|
||||
dmas = <&edma0 0 36>, <&edma0 1 37>;
|
||||
dma-names = "rx", "tx";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
};
|
||||
|
||||
&lpspi1 {
|
||||
dmas = <&edma_lpsr0 0 36>, <&edma_lpsr0 1 37>;
|
||||
dma-names = "rx", "tx";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#
|
||||
# Copyright 2023 NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_SPI_MCUX_LPSPI_DMA=y
|
|
@ -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>;
|
||||
};
|
||||
};
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue