-
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
bb7dee6
commit bedb1c6
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
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,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>; | ||
}; | ||
}; |
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