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	dut_spi_dt: test-spi-dev@0 {
58		compatible = "vnd,spi-device";
59		reg = <0>;
60		spi-max-frequency = <4000000>;
61	};
62};
63
64dut_spis: &spi21 {
65	compatible = "nordic,nrf-spis";
66	status = "okay";
67	def-char = <0x00>;
68	pinctrl-0 = <&spi21_default_alt>;
69	pinctrl-1 = <&spi21_sleep_alt>;
70	pinctrl-names = "default", "sleep";
71	/delete-property/rx-delay-supported;
72	/delete-property/rx-delay;
73};
74