-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
bf2ca88
commit e0aebfd
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
tests/drivers/spi/spi_loopback/boards/s32z2xxdc2_s32z270_dspi.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters