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