tests: spi: spi loopback test running on the stm32f767zi nucleo

Add support of the tests/drivers/spi/spi_loopabck
with dma (V1).
Connect MISO pin (D12) to MOSI (D11) pin on the board
to pass the test.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-06-09 09:36:21 +02:00 committed by Christopher Friedt
commit eeb6921f34
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,10 @@
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
CONFIG_SPI_STM32_DMA=y
CONFIG_SPI_STM32_INTERRUPT=n
CONFIG_SPI_ASYNC=n
CONFIG_SPI_LOOPBACK_MODE_LOOP=n
CONFIG_NOCACHE_MEMORY=y

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2021 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
&spi1 {
dmas = <&dma2 5 3 0x28440 0x03
&dma2 2 3 0x28480 0x03>;
dma-names = "tx", "rx";
};
&dma2 {
status = "okay";
};