Skip to content

Commit

Permalink
tests: drivers: spi: enable test spi_loopback
Browse files Browse the repository at this point in the history
enable test spi_loopback for dspi feature on s32z27x
devices

Signed-off-by: Tu Nguyen Van <tu.nguyenvan@nxp.com>
  • Loading branch information
tunguyen4585 committed Sep 23, 2024
1 parent 2ae6217 commit 67e33df
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
dspi0_default: dspi0_default {
group1 {
pinmux = <DSPI_10_SOUT>, <DSPI_10_SCK>;
output-enable;
current-reference-control;
termination-resistor;
};
group2 {
pinmux = <DSPI_10_SIN>;
input-enable;
current-reference-control;
termination-resistor;
};
};
};

&dspi0 {
pinctrl-0 = <&dspi0_default>;
pinctrl-names = "default";
clock-frequency = <100000000>;
status = "okay";

slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};

fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};
6 changes: 6 additions & 0 deletions tests/drivers/spi/spi_loopback/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,9 @@ tests:
drivers.spi.max32_dma.loopback:
extra_args: OVERLAY_CONFIG="overlay-max32-spi-dma.conf"
filter: CONFIG_SOC_FAMILY_MAX32
drivers.spi.s32z_dspi.loopback:
extra_args:
- DTC_OVERLAY_FILE=boards/s32z2xxdc2_s32z270_dspi.overlay
platform_allow:
- s32z2xxdc2/s32z270/rtu0
- s32z2xxdc2/s32z270/rtu1

0 comments on commit 67e33df

Please sign in to comment.