Skip to content

Commit 2e905e6

Browse files
tests: drivers: spi: Add SPI loopback test config for MSPM33C321A
Add configuration and overlay files for SPI loopback testing on the lp_mspm33c321a board. Signed-off-by: Aman Lachhiramka <[email protected]>
1 parent 6aebf76 commit 2e905e6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Texas Instruments
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
6+
CONFIG_SPI_ASYNC=n
7+
CONFIG_GPIO=y
8+
CONFIG_SPI_IDEAL_TRANSFER_DURATION_SCALING=10
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 Texas Instruments
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* Enable and configure the SPI interface */
8+
&unicomm2_spi {
9+
status = "okay";
10+
hw-chip-select = "DL_SPI_CHIP_SELECT_1";
11+
pinctrl-0 = <&uc2_pico_pb17 &uc2_poci_pb19 &uc2_sclk_pb18 &uc2_cs0_pa2>;
12+
pinctrl-names = "default";
13+
/* Define the slow SPI device for loopback testing */
14+
slow@0 {
15+
compatible = "test-spi-loopback-slow";
16+
reg = <0>;
17+
spi-max-frequency = <DT_FREQ_K(500)>;
18+
};
19+
20+
/* Define the fast SPI device for loopback testing */
21+
fast@0 {
22+
compatible = "test-spi-loopback-fast";
23+
reg = <0>;
24+
spi-max-frequency = <DT_FREQ_M(10)>;
25+
};
26+
};

0 commit comments

Comments
 (0)