1/*
2 * SPDX-License-Identifier: Apache-2.0
3 *
4 * Copyright (c) 2021 Argentum Systems Ltd.
5 */
6
7&dmac {
8	status = "okay";
9};
10
11&sercom0 {
12	/* configure DMA channels for async operation */
13	dmas = <&dmac 0 0x01>, <&dmac 1 0x02>;
14	dma-names = "rx", "tx";
15};
16
17&pinctrl {
18	sercom2_default: sercom2_default {
19		group1 {
20			pinmux = <PA8D_SERCOM2_PAD0>;
21		};
22	};
23};
24
25dut: &sercom2 {
26	status = "okay";
27	compatible = "atmel,sam0-uart";
28	current-speed = <115200>;
29
30	/* internally loop-back Tx and Rx on PAD0 */
31	rxpo = <0>;
32	txpo = <0>;
33
34	/* configure DMA channels for async operation */
35	dmas = <&dmac 0 0x05>, <&dmac 1 0x06>;
36	dma-names = "rx", "tx";
37
38	/* PAD0 must be configured to allow working loop-back */
39	pinctrl-0 = <&sercom2_default>;
40	pinctrl-names = "default";
41};
42