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}; 24dut: &sercom2 { 25 status = "okay"; 26 compatible = "atmel,sam0-uart"; 27 current-speed = <115200>; 28 29 /* internally loop-back Tx and Rx on PAD0 */ 30 rxpo = <0>; 31 txpo = <0>; 32 33 /* configure DMA channels for async operation */ 34 dmas = <&dmac 0 0x05>, <&dmac 1 0x06>; 35 dma-names = "rx", "tx"; 36 37 /* PAD0 must be configured to allow working loop-back */ 38 pinctrl-0 = <&sercom2_default>; 39 pinctrl-names = "default"; 40}; 41