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:
parent
dfc6611a31
commit
eeb6921f34
2 changed files with 25 additions and 0 deletions
10
tests/drivers/spi/spi_loopback/boards/nucleo_f767zi.conf
Normal file
10
tests/drivers/spi/spi_loopback/boards/nucleo_f767zi.conf
Normal 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
|
15
tests/drivers/spi/spi_loopback/boards/nucleo_f767zi.overlay
Normal file
15
tests/drivers/spi/spi_loopback/boards/nucleo_f767zi.overlay
Normal 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";
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue