Skip to content

Commit 2b6c970

Browse files
talih0carlescufi
authored andcommitted
tests: spi_loopback: Add configuration for xmc45_relax_kit
Adds configuration for xmc45_relax_kit. Signed-off-by: Andriy Gelman <[email protected]>
1 parent 33d1792 commit 2b6c970

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_SPI_XMC4XXX_INTERRUPT=y
2+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 2022 Schlumberger
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi_mosi_p1_5_u0c0 {
8+
drive-strength = "strong-soft-edge";
9+
hwctrl = "disabled";
10+
};
11+
12+
&spi_miso_p1_4_u0c0 {
13+
drive-strength = "strong-soft-edge";
14+
hwctrl = "disabled";
15+
};
16+
17+
&spi_sclk_p0_8_u0c0 {
18+
drive-strength = "strong-soft-edge";
19+
hwctrl = "disabled";
20+
};
21+
22+
&usic0ch0 {
23+
compatible = "infineon,xmc4xxx-spi";
24+
pinctrl-0 = <&spi_mosi_p1_5_u0c0 &spi_miso_p1_4_u0c0 &spi_sclk_p0_8_u0c0>;
25+
pinctrl-names = "default";
26+
miso-src = "DX0B";
27+
interrupts = <84 1>;
28+
interrupt-names = "rx";
29+
30+
#address-cells = <1>;
31+
#size-cells = <0>;
32+
status = "okay";
33+
34+
slow@0 {
35+
compatible = "test-spi-loopback-slow";
36+
reg = <0>;
37+
spi-max-frequency = <500000>;
38+
};
39+
fast@0 {
40+
compatible = "test-spi-loopback-fast";
41+
reg = <0>;
42+
spi-max-frequency = <16000000>;
43+
};
44+
};

0 commit comments

Comments
 (0)