1/*
2 * Copyright (c) 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/dt-bindings/dma/rpi-pico-dma-rp2040.h>
8
9&dma {
10	status = "okay";
11};
12
13&spi0 {
14	cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
15
16	dmas = <&dma 0 RPI_PICO_DMA_SLOT_SPI0_TX 0>, <&dma 1 RPI_PICO_DMA_SLOT_SPI0_RX 0>;
17	dma-names = "tx", "rx";
18
19	slow@0 {
20		compatible = "test-spi-loopback-slow";
21		reg = <0>;
22		spi-max-frequency = <500000>;
23	};
24	fast@0 {
25		compatible = "test-spi-loopback-fast";
26		reg = <0>;
27		spi-max-frequency = <16000000>;
28	};
29};
30