Skip to content

Commit 1ceb193

Browse files
committed
tests: drivers: spi: siwx91x: Enable spi_loopback test for PSRAM board
Add overlay and config files for siwx917_rb4342a to enable the spi_loopback test. Signed-off-by: Sai Santhosh Malae <[email protected]>
1 parent 4039a4f commit 1ceb193

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_SPI_SILABS_SIWX91X_GSPI_DMA=y
2+
CONFIG_SPI_IDEAL_TRANSFER_DURATION_SCALING=26
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl0 {
8+
spi0_default: spi0_default {
9+
out {
10+
pinmux = <GSPI_CLK_HP25>, <GSPI_MOSI_HP27>;
11+
};
12+
in {
13+
pinmux = <GSPI_MISO_HP26>;
14+
};
15+
};
16+
};
17+
18+
&spi0 {
19+
status = "okay";
20+
cs-gpios = <&gpiob 12 GPIO_ACTIVE_LOW>;
21+
pinctrl-0 = <&spi0_default>;
22+
pinctrl-names = "default";
23+
24+
dmas = <&gpdma 0 11>, <&gpdma 1 10>;
25+
dma-names = "tx", "rx";
26+
27+
slow@0 {
28+
compatible = "test-spi-loopback-slow";
29+
reg = <0>;
30+
spi-max-frequency = <500000>;
31+
};
32+
fast@1 {
33+
compatible = "test-spi-loopback-fast";
34+
reg = <0>;
35+
spi-max-frequency = <10000000>;
36+
};
37+
};
38+
39+
&gpdma {
40+
status = "okay";
41+
};

0 commit comments

Comments
 (0)