1/* 2 * Copyright (c) 2022 Schlumberger 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/dma/infineon-xmc4xxx-dma.h> 8 9&spi_mosi_p1_5_u0c0 { 10 drive-strength = "strong-soft-edge"; 11 hwctrl = "disabled"; 12}; 13 14&spi_miso_p1_4_u0c0 { 15 drive-strength = "strong-soft-edge"; 16 hwctrl = "disabled"; 17}; 18 19&spi_sclk_p0_8_u0c0 { 20 drive-strength = "strong-soft-edge"; 21 hwctrl = "disabled"; 22}; 23 24&usic0ch0 { 25 compatible = "infineon,xmc4xxx-spi"; 26 pinctrl-0 = <&spi_mosi_p1_5_u0c0 &spi_miso_p1_4_u0c0 &spi_sclk_p0_8_u0c0>; 27 pinctrl-names = "default"; 28 miso-src = "DX0B"; 29 interrupts = <84 1 85 1>; 30 interrupt-names = "tx", "rx"; 31 dmas = <&dma0 1 0 XMC4XXX_SET_CONFIG(0,10)>, <&dma0 2 0 XMC4XXX_SET_CONFIG(2,11)>; 32 dma-names = "tx", "rx"; 33 34 #address-cells = <1>; 35 #size-cells = <0>; 36 status = "okay"; 37 38 slow@0 { 39 compatible = "test-spi-loopback-slow"; 40 reg = <0>; 41 spi-max-frequency = <500000>; 42 }; 43 fast@0 { 44 compatible = "test-spi-loopback-fast"; 45 reg = <0>; 46 spi-max-frequency = <16000000>; 47 }; 48}; 49 50&dma0 { 51 status = "okay"; 52}; 53