Skip to content

Commit d33cd0e

Browse files
bindushree98kartben
authored andcommitted
tests: drivers: spi: spi_loopback: Enabled SPI in BTL-S
Added overlay and conf to enable SPI tests on BTL-S board. Signed-off-by: Bindu S <[email protected]>
1 parent 2844850 commit d33cd0e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_SPI=y
2+
CONFIG_SPI_ASYNC=n
3+
CONFIG_GPIO=y
4+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2025 Intel Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* External Loopback: Short MOSI (J7H4.3) & MISO (J7H4.5) */
8+
9+
&gpio_0_i {
10+
status = "okay";
11+
};
12+
13+
&spi0 {
14+
pw,cs-mode = <0>;
15+
pw,cs-output = <0>;
16+
status = "okay";
17+
18+
slow@0 {
19+
compatible = "test-spi-loopback-slow";
20+
reg = <0>;
21+
spi-max-frequency = <500000>;
22+
};
23+
fast@0 {
24+
compatible = "test-spi-loopback-fast";
25+
reg = <0>;
26+
spi-max-frequency = <16000000>;
27+
};
28+
};

0 commit comments

Comments
 (0)