blob: ab5e6da356b38c721c7c5e9305ef662d18e0f385 [file] [log] [blame]
/*
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
&sercom4 {
/* Internally connect MOSI to MISO for loop-back operation */
dipo = <3>;
dopo = <2>;
/* Assign a CS pin */
cs-gpios = <&portb 28 GPIO_ACTIVE_LOW>;
/* Configure DMA */
dmas = <&dmac 0 12>, <&dmac 1 13>;
dma-names = "rx", "tx";
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};