Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
950 B

/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Test requires following loopback:
* P1.13 - P1.14
*/
&pinctrl {
spi21_default: spi21_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 24)>,
<NRF_PSEL(SPIM_MISO, 1, 13)>,
<NRF_PSEL(SPIM_MOSI, 1, 14)>;
};
};
spi21_sleep: spi21_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 1, 24)>,
<NRF_PSEL(SPIM_MISO, 1, 13)>,
<NRF_PSEL(SPIM_MOSI, 1, 14)>;
low-power-enable;
};
};
};
&spi21 {
status = "okay";
pinctrl-0 = <&spi21_default>;
pinctrl-1 = <&spi21_sleep>;
pinctrl-names = "default", "sleep";
overrun-character = <0x00>;
zephyr,pm-device-runtime-auto;
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <DT_FREQ_M(2)>;
};
dut_fast: fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <DT_FREQ_M(4)>;
};
};
&gpio1 {
status = "okay";
};