tests: drivers: spi: enable test spi_loopback
enable test spi_loopback for dspi feature on s32z27x devices Signed-off-by: Tu Nguyen Van <tu.nguyenvan@nxp.com>
This commit is contained in:
parent
c82ad45683
commit
55bcc4a576
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Copyright 2024 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&pinctrl {
|
||||
dspi0_default: dspi0_default {
|
||||
group1 {
|
||||
pinmux = <LVDS_DSPI_10_SOUT>, <LVDS_DSPI_10_SCK>;
|
||||
output-enable;
|
||||
nxp,current-reference-control;
|
||||
nxp,termination-resistor;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <LVDS_DSPI_10_SIN>;
|
||||
input-enable;
|
||||
nxp,current-reference-control;
|
||||
nxp,termination-resistor;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&dspi0 {
|
||||
pinctrl-0 = <&dspi0_default>;
|
||||
pinctrl-names = "default";
|
||||
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>;
|
||||
};
|
||||
};
|
|
@ -204,3 +204,9 @@ tests:
|
|||
drivers.spi.max32_dma.loopback:
|
||||
extra_args: EXTRA_CONF_FILE="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
|
||||
|
|
Loading…
Reference in New Issue