1/* 2 * Copyright (c) 2024 Nordic Semiconductor 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&pinctrl { 8 spi130_default_alt: spi130_default_alt { 9 group1 { 10 psels = <NRF_PSEL(SPIM_SCK, 0, 0)>, 11 <NRF_PSEL(SPIM_MOSI, 0, 8)>, 12 <NRF_PSEL(SPIM_MISO, 0, 6)>; 13 }; 14 }; 15 16 spi130_sleep_alt: spi130_sleep_alt { 17 group1 { 18 psels = <NRF_PSEL(SPIM_SCK, 0, 0)>, 19 <NRF_PSEL(SPIM_MISO, 0, 6)>, 20 <NRF_PSEL(SPIM_MOSI, 0, 8)>; 21 low-power-enable; 22 }; 23 }; 24 25 spis131_default_alt: spis131_default_alt { 26 group1 { 27 psels = <NRF_PSEL(SPIS_SCK, 0, 1)>, 28 <NRF_PSEL(SPIS_MISO, 0, 7)>, 29 <NRF_PSEL(SPIS_MOSI, 0, 9)>, 30 <NRF_PSEL(SPIS_CSN, 0, 11)>; 31 }; 32 }; 33 34 spis131_sleep_alt: spis131_sleep_alt { 35 group1 { 36 psels = <NRF_PSEL(SPIS_SCK, 0, 1)>, 37 <NRF_PSEL(SPIS_MISO, 0, 7)>, 38 <NRF_PSEL(SPIS_MOSI, 0, 9)>, 39 <NRF_PSEL(SPIS_CSN, 0, 11)>; 40 low-power-enable; 41 }; 42 }; 43 44}; 45 46&gpio0 { 47 status = "okay"; 48}; 49 50&gpiote130 { 51 status = "okay"; 52 owned-channels = <7>; 53}; 54 55&spi130 { 56 compatible = "nordic,nrf-spim"; 57 status = "okay"; 58 pinctrl-0 = <&spi130_default_alt>; 59 pinctrl-1 = <&spi130_sleep_alt>; 60 pinctrl-names = "default", "sleep"; 61 overrun-character = <0x00>; 62 cs-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 63 zephyr,pm-device-runtime-auto; 64 dut_spi_dt: test-spi-dev@0 { 65 compatible = "vnd,spi-device"; 66 reg = <0>; 67 spi-max-frequency = <DT_FREQ_M(8)>; 68 }; 69}; 70 71dut_spis: &spi131 { 72 compatible = "nordic,nrf-spis"; 73 status = "okay"; 74 def-char = <0x00>; 75 pinctrl-0 = <&spis131_default_alt>; 76 pinctrl-1 = <&spis131_sleep_alt>; 77 pinctrl-names = "default", "sleep"; 78 /delete-property/rx-delay-supported; 79 /delete-property/rx-delay; 80}; 81