Skip to content

Commit 55bcc4a

Browse files
tunguyen4585henrikbrixandersen
authored andcommitted
tests: drivers: spi: enable test spi_loopback
enable test spi_loopback for dspi feature on s32z27x devices Signed-off-by: Tu Nguyen Van <[email protected]>
1 parent c82ad45 commit 55bcc4a

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
dspi0_default: dspi0_default {
9+
group1 {
10+
pinmux = <LVDS_DSPI_10_SOUT>, <LVDS_DSPI_10_SCK>;
11+
output-enable;
12+
nxp,current-reference-control;
13+
nxp,termination-resistor;
14+
};
15+
group2 {
16+
pinmux = <LVDS_DSPI_10_SIN>;
17+
input-enable;
18+
nxp,current-reference-control;
19+
nxp,termination-resistor;
20+
};
21+
};
22+
};
23+
24+
&dspi0 {
25+
pinctrl-0 = <&dspi0_default>;
26+
pinctrl-names = "default";
27+
status = "okay";
28+
29+
slow@0 {
30+
compatible = "test-spi-loopback-slow";
31+
reg = <0>;
32+
spi-max-frequency = <500000>;
33+
};
34+
35+
fast@0 {
36+
compatible = "test-spi-loopback-fast";
37+
reg = <0>;
38+
spi-max-frequency = <16000000>;
39+
};
40+
};

tests/drivers/spi/spi_loopback/testcase.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,9 @@ tests:
204204
drivers.spi.max32_dma.loopback:
205205
extra_args: EXTRA_CONF_FILE="overlay-max32-spi-dma.conf"
206206
filter: CONFIG_SOC_FAMILY_MAX32
207+
drivers.spi.s32z_dspi.loopback:
208+
extra_args:
209+
- DTC_OVERLAY_FILE=boards/s32z2xxdc2_s32z270_dspi.overlay
210+
platform_allow:
211+
- s32z2xxdc2/s32z270/rtu0
212+
- s32z2xxdc2/s32z270/rtu1

0 commit comments

Comments
 (0)