Skip to content

Commit 1c74894

Browse files
committed
tests: drivers: dma: chan_blen_transfer: add support for nucleo_h753zi
add .conf and .overlay files with appropriate configurations for nucleo_h753zi. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 11ae33d commit 1c74894

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=4
2+
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=6
3+
CONFIG_DMA_LOOP_TRANSFER_NUMBER_OF_DMAS=2
4+
5+
# Required by BDMA which only has access to
6+
# a NOCACHE SRAM4 section. All other DMAs also
7+
# has access to this section.
8+
CONFIG_CODE_DATA_RELOCATION=y
9+
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAM4"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
8+
9+
&dma1 {
10+
status = "okay";
11+
};
12+
13+
&dma2 {
14+
status = "okay";
15+
};
16+
17+
tst_dma0: &dmamux1 {
18+
status = "okay";
19+
};
20+
21+
/* The BDMA driver expects the SRAM4 region
22+
* to be non-cachable.
23+
*/
24+
&sram4 {
25+
zephyr,memory-attr = <DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE)>;
26+
};
27+
28+
&bdma1 {
29+
status = "okay";
30+
};
31+
32+
tst_dma1: &dmamux2 {
33+
status = "okay";
34+
};

0 commit comments

Comments
 (0)