tests/drivers: nucleo_l552ze_q: Configuration for spi_loopback test

This commit configures spi, dma & dmamux to run spi_loopback test
on nucleo_l552ze_q platform. The tx & rx pin of spi1 should be
shorted before running spi_loopback.

Signed-off-by: Krishna Mohan Dani <krishnamohan.d@hcl.com>
This commit is contained in:
Krishna Mohan Dani 2021-06-29 13:03:00 +05:30 committed by Anas Nashif
parent cf39aec86a
commit 1fe292dfaf
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,8 @@
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

View File

@ -0,0 +1,23 @@
/*
* Copyright (c) 2021 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
&spi1 {
dmas = <&dmamux1 0 12 0x440 0
&dmamux1 7 11 0x480 0>;
dma-names = "tx", "rx";
};
&dma1 {
status = "okay";
};
&dma2 {
status = "okay";
};
&dmamux1 {
status = "okay";
};