Skip to content

Commit b82944e

Browse files
smalaenashif
authored andcommitted
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 <Santhosh.Malae@silabs.com>
1 parent 649e1f6 commit b82944e

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-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: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
13+
in {
14+
pinmux = <GSPI_MISO_HP26>;
15+
};
16+
};
17+
};
18+
19+
&spi0 {
20+
status = "okay";
21+
cs-gpios = <&gpiob 12 GPIO_ACTIVE_LOW>;
22+
pinctrl-0 = <&spi0_default>;
23+
pinctrl-names = "default";
24+
25+
dmas = <&gpdma 0 11>, <&gpdma 1 10>;
26+
dma-names = "tx", "rx";
27+
28+
slow@0 {
29+
compatible = "test-spi-loopback-slow";
30+
reg = <0>;
31+
spi-max-frequency = <500000>;
32+
};
33+
34+
fast@1 {
35+
compatible = "test-spi-loopback-fast";
36+
reg = <0>;
37+
spi-max-frequency = <10000000>;
38+
};
39+
};
40+
41+
&gpdma {
42+
status = "okay";
43+
};

0 commit comments

Comments
 (0)