tests: spi_loopback: Add configuration for xmc45_relax_kit

Adds configuration for xmc45_relax_kit.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
Andriy Gelman 2022-10-26 12:00:58 -04:00 committed by Carles Cufí
parent 33d1792e3d
commit 2b6c970716
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,2 @@
CONFIG_SPI_XMC4XXX_INTERRUPT=y
CONFIG_SPI_LOOPBACK_MODE_LOOP=y

View file

@ -0,0 +1,44 @@
/*
* Copyright (c) 2022 Schlumberger
*
* SPDX-License-Identifier: Apache-2.0
*/
&spi_mosi_p1_5_u0c0 {
drive-strength = "strong-soft-edge";
hwctrl = "disabled";
};
&spi_miso_p1_4_u0c0 {
drive-strength = "strong-soft-edge";
hwctrl = "disabled";
};
&spi_sclk_p0_8_u0c0 {
drive-strength = "strong-soft-edge";
hwctrl = "disabled";
};
&usic0ch0 {
compatible = "infineon,xmc4xxx-spi";
pinctrl-0 = <&spi_mosi_p1_5_u0c0 &spi_miso_p1_4_u0c0 &spi_sclk_p0_8_u0c0>;
pinctrl-names = "default";
miso-src = "DX0B";
interrupts = <84 1>;
interrupt-names = "rx";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};