tests: drivers: spi: spi_loopback: Add mimx8mp_evk board
Add a config and overlay for NXP mimx8mp_evk board. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
5944fb38bf
commit
c093ff4260
4 changed files with 96 additions and 0 deletions
|
@ -0,0 +1,6 @@
|
|||
#
|
||||
# Copyright (c) 2024 Basalte bv
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Basalte bv
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <nxp/nxp_imx/mimx8ml8dvnlz-pinctrl.dtsi>
|
||||
|
||||
&pinctrl {
|
||||
ecspi1_default: ecspi1_default {
|
||||
group1 {
|
||||
pinmux = <&iomuxc_ecspi1_miso_ecspi_miso_ecspi1_miso>,
|
||||
<&iomuxc_ecspi1_mosi_ecspi_mosi_ecspi1_mosi>,
|
||||
<&iomuxc_ecspi1_sclk_ecspi_sclk_ecspi1_sclk>;
|
||||
slew-rate = "fast";
|
||||
drive-strength = "x6";
|
||||
};
|
||||
group2 {
|
||||
pinmux = <&iomuxc_ecspi1_ss0_ecspi_ss_ecspi1_ss0>;
|
||||
slew-rate = "fast";
|
||||
drive-strength = "x6";
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ecspi1 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&ecspi1_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
|
@ -0,0 +1,6 @@
|
|||
#
|
||||
# Copyright (c) 2024 Basalte bv
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Basalte bv
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <nxp/nxp_imx/mimx8ml8dvnlz-pinctrl.dtsi>
|
||||
|
||||
&pinctrl {
|
||||
ecspi1_default: ecspi1_default {
|
||||
group1 {
|
||||
pinmux = <&iomuxc_ecspi1_miso_ecspi_miso_ecspi1_miso>,
|
||||
<&iomuxc_ecspi1_mosi_ecspi_mosi_ecspi1_mosi>,
|
||||
<&iomuxc_ecspi1_sclk_ecspi_sclk_ecspi1_sclk>;
|
||||
slew-rate = "fast";
|
||||
drive-strength = "x6";
|
||||
};
|
||||
group2 {
|
||||
pinmux = <&iomuxc_ecspi1_ss0_ecspi_ss_ecspi1_ss0>;
|
||||
slew-rate = "fast";
|
||||
drive-strength = "x6";
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&ecspi1 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&ecspi1_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue