1/* 2 * Copyright (c) 2024 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&pinctrl { 8 spi120_default: spi120_default { 9 group1 { 10 psels = <NRF_PSEL(SPIM_SCK, 7, 3)>, 11 <NRF_PSEL(SPIM_MISO, 7, 6)>, 12 <NRF_PSEL(SPIM_MOSI, 7, 7)>; 13 }; 14 }; 15 16 spi120_sleep: spi120_sleep { 17 group1 { 18 psels = <NRF_PSEL(SPIM_SCK, 7, 3)>, 19 <NRF_PSEL(SPIM_MISO, 7, 6)>, 20 <NRF_PSEL(SPIM_MOSI, 7, 7)>; 21 low-power-enable; 22 }; 23 }; 24}; 25 26&dma_fast_region { 27 status = "okay"; 28}; 29 30&spi120 { 31 status = "okay"; 32 pinctrl-0 = <&spi120_default>; 33 pinctrl-1 = <&spi120_sleep>; 34 pinctrl-names = "default", "sleep"; 35 overrun-character = <0x00>; 36 memory-regions = <&dma_fast_region>; 37 zephyr,pm-device-runtime-auto; 38 slow@0 { 39 compatible = "test-spi-loopback-slow"; 40 reg = <0>; 41 spi-max-frequency = <DT_FREQ_M(4)>; 42 }; 43 fast@0 { 44 compatible = "test-spi-loopback-fast"; 45 reg = <0>; 46 spi-max-frequency = <DT_FREQ_M(8)>; 47 }; 48}; 49