Skip to content

Commit 9fa1f6e

Browse files
ElectronFluxcfriedt
authored andcommitted
tests: uart_async_api: Correct DMA channels on atsamr21_xpro board
This commit corrects the DMA channels for the asynchronous UART API testing support on the SAM R21 Xplained Pro board. Signed-off-by: Ron Smith <[email protected]>
1 parent dd3a331 commit 9fa1f6e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tests/drivers/uart/uart_async_api/boards/atsamr21_xpro.overlay

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

3+
&dmac {
4+
status = "okay";
5+
};
6+
7+
&sercom0 {
8+
/* Configure DMA channels for async operation */
9+
dmas = <&dmac 0 1>, <&dmac 1 2>;
10+
dma-names = "rx", "tx";
11+
};
12+
313
&sercom3 {
414
status = "okay";
515
compatible = "atmel,sam0-uart";
@@ -9,7 +19,10 @@
919
rxpo = <0>;
1020
txpo = <0>;
1121

22+
/* PAD0 must be configured to allow working loop-back */
23+
pinctrl-0 = <&pa16d_sercom3_pad0>;
24+
1225
/* Configure DMA channels for async operation */
13-
dmas = <&dmac 0 7>, <&dmac 1 8>;
26+
dmas = <&dmac 10 7>, <&dmac 11 8>;
1427
dma-names = "rx", "tx";
1528
};

0 commit comments

Comments
 (0)