1/* 2 * Copyright (c) 2022 Thomas Stranger 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&rcc { 8 apb2-prescaler = <2>; 9}; 10 11&spi1 { 12 dmas = <&gpdma1 0 7 STM32_DMA_PERIPH_TX 13 &gpdma1 1 6 STM32_DMA_PERIPH_RX>; 14 dma-names = "tx", "rx"; 15 slow@0 { 16 compatible = "test-spi-loopback-slow"; 17 reg = <0>; 18 spi-max-frequency = <500000>; 19 }; 20 fast@0 { 21 compatible = "test-spi-loopback-fast"; 22 reg = <0>; 23 spi-max-frequency = <16000000>; 24 }; 25}; 26