1/*
2 * Copyright (c) 2024 Basalte bv
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <nxp/nxp_imx/mimx8ml8dvnlz-pinctrl.dtsi>
8
9&pinctrl {
10	ecspi1_default: ecspi1_default {
11		group1 {
12			pinmux = <&iomuxc_ecspi1_miso_ecspi_miso_ecspi1_miso>,
13				 <&iomuxc_ecspi1_mosi_ecspi_mosi_ecspi1_mosi>,
14				 <&iomuxc_ecspi1_sclk_ecspi_sclk_ecspi1_sclk>;
15			slew-rate = "fast";
16			drive-strength = "x6";
17		};
18		group2 {
19			pinmux = <&iomuxc_ecspi1_ss0_ecspi_ss_ecspi1_ss0>;
20			slew-rate = "fast";
21			drive-strength = "x6";
22			bias-pull-up;
23		};
24	};
25};
26
27&ecspi1 {
28	status = "okay";
29	pinctrl-0 = <&ecspi1_default>;
30	pinctrl-names = "default";
31
32	slow@0 {
33		compatible = "test-spi-loopback-slow";
34		reg = <0>;
35		spi-max-frequency = <500000>;
36	};
37	fast@0 {
38		compatible = "test-spi-loopback-fast";
39		reg = <0>;
40		spi-max-frequency = <16000000>;
41	};
42};
43