Skip to content

Commit a01fc1f

Browse files
committed
samples/drivers/uart: add stm32mp257f_ev1 overlay
Add stm32mp257f_ev1 overlay for uart async API and circular_dma samples using uart5 with HPDMA3 channels 0 and 1 for TX and RX respectively. Signed-off-by: Youssef Zini <[email protected]>
1 parent d407045 commit a01fc1f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (C) 2025 Savoir-faire Linux, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&uart5 {
8+
dmas = <&hpdma3 0 18 STM32_DMA_PERIPH_TX>,
9+
<&hpdma3 1 17 (STM32_DMA_PERIPH_RX | STM32_DMA_MEM_8BITS |
10+
STM32_DMA_MODE_CYCLIC)>;
11+
dma-names = "tx", "rx";
12+
fifo-enable;
13+
};
14+
15+
&hpdma3 {
16+
status = "okay";
17+
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (C) 2025 Savoir-faire Linux, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&uart5 {
8+
dmas = <&hpdma3 1 18 (STM32_DMA_PERIPH_TX)>,
9+
<&hpdma3 0 17 (STM32_DMA_PERIPH_RX)>;
10+
dma-names = "tx", "rx";
11+
fifo-enable;
12+
};
13+
14+
&hpdma3 {
15+
status = "okay";
16+
};

0 commit comments

Comments
 (0)