1/*
2 * Copyright (c) 2023 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&rcc {
8	apb1-prescaler = <2>;
9};
10
11&spi2 {
12	dmas = <&gpdma1 0 9 STM32_DMA_PERIPH_TX
13		&gpdma1 1 8 STM32_DMA_PERIPH_RX>;
14	dma-names = "tx", "rx";
15
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 = <10000000>;
25	};
26};
27
28&gpdma1 {
29	status = "okay";
30};
31
32&gpdma2 {
33	status = "okay";
34};
35