-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: drivers: spi: spi_loopback: add stm32n6 boards overlays
Add SPI loopback test overlays for Nucleo N657x0-Q and STM32N6570 DK boards. Signed-off-by: Guillaume Gautier <[email protected]>
- Loading branch information
1 parent
c3dc29f
commit 095bf58
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
tests/drivers/spi/spi_loopback/boards/nucleo_n657x0_q_stm32n657xx_sb.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_NOCACHE_MEMORY=y |
25 changes: 25 additions & 0 deletions
25
tests/drivers/spi/spi_loopback/boards/nucleo_n657x0_q_stm32n657xx_sb.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2024 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&spi5 { | ||
dmas = <&gpdma1 0 88 STM32_DMA_PERIPH_TX | ||
&gpdma1 1 87 STM32_DMA_PERIPH_RX>; | ||
dma-names = "tx", "rx"; | ||
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>; | ||
}; | ||
}; | ||
|
||
&gpdma1 { | ||
status = "okay"; | ||
}; |
1 change: 1 addition & 0 deletions
1
tests/drivers/spi/spi_loopback/boards/stm32n6570_dk_stm32n657xx_sb.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_NOCACHE_MEMORY=y |
25 changes: 25 additions & 0 deletions
25
tests/drivers/spi/spi_loopback/boards/stm32n6570_dk_stm32n657xx_sb.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2024 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&spi5 { | ||
dmas = <&gpdma1 0 88 STM32_DMA_PERIPH_TX | ||
&gpdma1 1 87 STM32_DMA_PERIPH_RX>; | ||
dma-names = "tx", "rx"; | ||
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>; | ||
}; | ||
}; | ||
|
||
&gpdma1 { | ||
status = "okay"; | ||
}; |