1/*
2 * Copyright (c) 2024 Jerónimo Agulló <jeronimoagullo97@gmail.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&pinctrl {
8	uart0_default: uart0_default {
9		group1 {
10			psels = <NRF_PSEL(UART_TX, 1, 3)>,
11				<NRF_PSEL(UART_RX, 1, 10)>,
12				<NRF_PSEL(UART_RTS, 1, 2)>,
13				<NRF_PSEL(UART_CTS, 1, 9)>;
14		};
15	};
16
17	uart0_sleep: uart0_sleep {
18		group1 {
19			psels = <NRF_PSEL(UART_TX, 1, 3)>,
20				<NRF_PSEL(UART_RX, 1, 10)>,
21				<NRF_PSEL(UART_RTS, 1, 2)>,
22				<NRF_PSEL(UART_CTS, 1, 9)>;
23			low-power-enable;
24		};
25	};
26
27	uart1_default: uart1_default {
28		group1 {
29			psels = <NRF_PSEL(UART_TX, 1, 7)>,
30				<NRF_PSEL(UART_RX, 1, 5)>;
31		};
32	};
33
34	uart1_sleep: uart1_sleep {
35		group1 {
36			psels = <NRF_PSEL(UART_TX, 1, 7)>,
37				<NRF_PSEL(UART_RX, 1, 5)>;
38			low-power-enable;
39		};
40	};
41
42	i2c0_default: i2c0_default {
43		group1 {
44			psels = <NRF_PSEL(TWIM_SDA, 0, 8)>,
45				<NRF_PSEL(TWIM_SCL, 0, 11)>;
46		};
47	};
48
49	i2c0_sleep: i2c0_sleep {
50		group1 {
51			psels = <NRF_PSEL(TWIM_SDA, 0, 8)>,
52				<NRF_PSEL(TWIM_SCL, 0, 11)>;
53			low-power-enable;
54		};
55	};
56
57	i2c1_default: i2c1_default {
58		group1 {
59			psels = <NRF_PSEL(TWIM_SDA, 1, 1)>,
60				<NRF_PSEL(TWIM_SCL, 0, 24)>;
61		};
62	};
63
64	i2c1_sleep: i2c1_sleep {
65		group1 {
66			psels = <NRF_PSEL(TWIM_SDA, 1, 1)>,
67				<NRF_PSEL(TWIM_SCL, 0, 24)>;
68			low-power-enable;
69		};
70	};
71
72	spi0_default: spi0_default {
73		group1 {
74			psels = <NRF_PSEL(SPIM_SCK, 0, 28)>,
75				<NRF_PSEL(SPIM_MOSI, 0, 31)>,
76				<NRF_PSEL(SPIM_MISO, 0, 2)>;
77		};
78	};
79
80	spi0_sleep: spi0_sleep {
81		group1 {
82			psels = <NRF_PSEL(SPIM_SCK, 0, 28)>,
83				<NRF_PSEL(SPIM_MOSI, 0, 31)>,
84				<NRF_PSEL(SPIM_MISO, 0, 2)>;
85			low-power-enable;
86		};
87	};
88
89	qspi_default: qspi_default {
90		group1 {
91			psels = <NRF_PSEL(QSPI_SCK, 0, 19)>,
92				<NRF_PSEL(QSPI_IO0, 0, 14)>,
93				<NRF_PSEL(QSPI_IO1, 0, 21)>,
94				<NRF_PSEL(QSPI_IO2, 0, 23)>,
95				<NRF_PSEL(QSPI_IO3, 1, 0)>,
96				<NRF_PSEL(QSPI_CSN, 0, 12)>;
97			nordic,drive-mode = <NRF_DRIVE_H0H1>;
98		};
99	};
100
101	qspi_sleep: qspi_sleep {
102		group1 {
103			psels = <NRF_PSEL(QSPI_SCK, 0, 19)>,
104				<NRF_PSEL(QSPI_IO0, 0, 14)>,
105				<NRF_PSEL(QSPI_IO1, 0, 21)>,
106				<NRF_PSEL(QSPI_IO2, 0, 23)>,
107				<NRF_PSEL(QSPI_IO3, 1, 0)>;
108			low-power-enable;
109		};
110		group2 {
111			psels = <NRF_PSEL(QSPI_CSN, 0, 12)>;
112			low-power-enable;
113			bias-pull-up;
114		};
115	};
116};
117