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_MISO, 0, 6)>, 12 <NRF_PSEL(SPIM_MOSI, 0, 8)>; 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&gpiote130 { 47 status = "okay"; 48}; 49 50&gpio0 { 51 status = "okay"; 52}; 53 54&spi130 { 55 compatible = "nordic,nrf-spim"; 56 status = "okay"; 57 pinctrl-0 = <&spi130_default_alt>; 58 pinctrl-1 = <&spi130_sleep_alt>; 59 pinctrl-names = "default", "sleep"; 60 overrun-character = <0x00>; 61 cs-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 62 dut_spi_dt: test-spi-dev@0 { 63 compatible = "vnd,spi-device"; 64 reg = <0>; 65 spi-max-frequency = <500000>; 66 }; 67}; 68 69dut_spis: &spi131 { 70 compatible = "nordic,nrf-spis"; 71 status = "okay"; 72 def-char = <0x00>; 73 pinctrl-0 = <&spis131_default_alt>; 74 pinctrl-1 = <&spis131_sleep_alt>; 75 pinctrl-names = "default", "sleep"; 76 /delete-property/rx-delay-supported; 77 /delete-property/rx-delay; 78}; 79