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