1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&pinctrl {
8	i2s0_default: i2s0_default {
9		group1 {
10			psels = <NRF_PSEL(I2S_MCK, 0, 12)>;
11			nordic,drive-mode = <NRF_DRIVE_H0H1>;
12		};
13		group2 {
14			psels = <NRF_PSEL(I2S_SCK_M, 0, 14)>,
15				<NRF_PSEL(I2S_LRCK_M, 0, 16)>,
16				<NRF_PSEL(I2S_SDOUT, 0, 13)>,
17				<NRF_PSEL(I2S_SDIN, 0, 15)>;
18		};
19	};
20
21	i2s0_sleep: i2s0_sleep {
22		group1 {
23			psels = <NRF_PSEL(I2S_MCK, 0, 12)>,
24				<NRF_PSEL(I2S_SCK_M, 0, 14)>,
25				<NRF_PSEL(I2S_LRCK_M, 0, 16)>,
26				<NRF_PSEL(I2S_SDOUT, 0, 13)>,
27				<NRF_PSEL(I2S_SDIN, 0, 15)>;
28			low-power-enable;
29		};
30	};
31
32	uart0_default: uart0_default {
33		group1 {
34			psels = <NRF_PSEL(UART_TX, 1, 5)>,
35				<NRF_PSEL(UART_RTS, 1, 7)>;
36		};
37		group2 {
38			psels = <NRF_PSEL(UART_RX, 1, 4)>,
39				<NRF_PSEL(UART_CTS, 1, 6)>;
40			bias-pull-up;
41		};
42	};
43
44	uart0_sleep: uart0_sleep {
45		group1 {
46			psels = <NRF_PSEL(UART_TX, 1, 5)>,
47				<NRF_PSEL(UART_RX, 1, 4)>,
48				<NRF_PSEL(UART_RTS, 1, 7)>,
49				<NRF_PSEL(UART_CTS, 1, 6)>;
50			low-power-enable;
51		};
52	};
53
54	uart1_default: uart1_default {
55		group1 {
56			psels = <NRF_PSEL(UART_TX, 1, 9)>,
57				<NRF_PSEL(UART_RTS, 1, 11)>;
58		};
59		group2 {
60			psels = <NRF_PSEL(UART_RX, 1, 8)>,
61				<NRF_PSEL(UART_CTS, 1, 10)>;
62			bias-pull-up;
63		};
64	};
65
66	uart1_sleep: uart1_sleep {
67		group1 {
68			psels = <NRF_PSEL(UART_TX, 1, 9)>,
69				<NRF_PSEL(UART_RX, 1, 11)>,
70				<NRF_PSEL(UART_RTS, 1, 8)>,
71				<NRF_PSEL(UART_CTS, 1, 10)>;
72			low-power-enable;
73		};
74	};
75
76	i2c1_default: i2c1_default {
77		group1 {
78			psels = <NRF_PSEL(TWIM_SDA, 1, 2)>,
79				<NRF_PSEL(TWIM_SCL, 1, 3)>;
80		};
81	};
82
83	i2c1_sleep: i2c1_sleep {
84		group1 {
85			psels = <NRF_PSEL(TWIM_SDA, 1, 2)>,
86				<NRF_PSEL(TWIM_SCL, 1, 3)>;
87			low-power-enable;
88		};
89	};
90
91	pwm0_default: pwm0_default {
92		group1 {
93			psels = <NRF_PSEL(PWM_OUT0, 0, 7)>,
94				<NRF_PSEL(PWM_OUT1, 0, 25)>,
95				<NRF_PSEL(PWM_OUT2, 0, 26)>;
96		};
97	};
98
99	pwm0_sleep: pwm0_sleep {
100		group1 {
101			psels = <NRF_PSEL(PWM_OUT0, 0, 7)>,
102				<NRF_PSEL(PWM_OUT1, 0, 25)>,
103				<NRF_PSEL(PWM_OUT2, 0, 26)>;
104			low-power-enable;
105		};
106	};
107
108	spi4_default: spi4_default {
109		group1 {
110			psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
111				<NRF_PSEL(SPIM_MOSI, 0, 9)>;
112			/* Workaround for issue with PCA10121 v0.7.0
113			 * related to SD-card
114			 */
115			nordic,drive-mode = <NRF_DRIVE_H0H1>;
116		};
117		group2 {
118			psels = <NRF_PSEL(SPIM_MISO, 0, 10)>;
119		};
120	};
121
122	spi4_sleep: spi4_sleep {
123		group1 {
124			psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
125				<NRF_PSEL(SPIM_MISO, 0, 10)>,
126				<NRF_PSEL(SPIM_MOSI, 0, 9)>;
127			low-power-enable;
128		};
129	};
130};
131