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