1/*
2 * Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&sercom4 {
8	/* Internally connect MOSI to MISO for loop-back operation */
9	dipo = <3>;
10	dopo = <2>;
11	/* Assign a CS pin */
12	cs-gpios = <&portb 28 GPIO_ACTIVE_LOW>;
13	/* Configure DMA */
14	dmas = <&dmac 0 12>, <&dmac 1 13>;
15	dma-names = "rx", "tx";
16	slow@0 {
17		compatible = "test-spi-loopback-slow";
18		reg = <0>;
19		spi-max-frequency = <500000>;
20	};
21	fast@0 {
22		compatible = "test-spi-loopback-fast";
23		reg = <0>;
24		spi-max-frequency = <16000000>;
25	};
26};
27