1/*
2 * Copyright (c) 2020 Erwin Rol <erwin@erwinrol.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&rcc {
8	/*
9	* Reduce bus clock speed to be able
10	* to reach SPI_LOOPBACK_SLOW_FREQ = 500000
11	* with max prescaler 256
12	*/
13	apb2-prescaler = <2>;
14};
15
16&spi1 {
17	dmas = <&dmamux1 0 11 (STM32_DMA_PERIPH_TX | STM32_DMA_PRIORITY_HIGH)
18		&dmamux1 8 10 (STM32_DMA_PERIPH_RX | STM32_DMA_PRIORITY_HIGH)>;
19	dma-names = "tx", "rx";
20	slow@0 {
21		compatible = "test-spi-loopback-slow";
22		reg = <0>;
23		spi-max-frequency = <500000>;
24	};
25	fast@0 {
26		compatible = "test-spi-loopback-fast";
27		reg = <0>;
28		spi-max-frequency = <16000000>;
29	};
30};
31
32&dma1 {
33	status = "okay";
34};
35
36&dma2 {
37	status = "okay";
38};
39
40&dmamux1 {
41	status = "okay";
42};
43