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