Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2014 Linaro Ltd.
4 */
5
6/ {
7 soc {
8 prcmu@80157000 {
9 ab8500 {
10 ab8500-gpio {
11 /* Hog a few default settings */
12 pinctrl-names = "default";
13 pinctrl-0 = <&gpio2_default_mode>,
14 <&gpio4_default_mode>,
15 <&gpio10_default_mode>,
16 <&gpio11_default_mode>,
17 <&gpio12_default_mode>,
18 <&gpio13_default_mode>,
19 <&gpio16_default_mode>,
20 <&gpio24_default_mode>,
21 <&gpio25_default_mode>,
22 <&gpio36_default_mode>,
23 <&gpio37_default_mode>,
24 <&gpio38_default_mode>,
25 <&gpio39_default_mode>,
26 <&gpio42_default_mode>,
27 <&gpio26_default_mode>,
28 <&gpio35_default_mode>,
29 <&ycbcr_default_mode>,
30 <&pwm_default_mode>,
31 <&adi1_default_mode>,
32 <&usbuicc_default_mode>,
33 <&dmic_default_mode>,
34 <&extcpena_default_mode>,
35 <&modsclsda_default_mode>;
36
37 /*
38 * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42
39 * are muxed in as GPIO, and configured as INPUT PULL DOWN
40 */
41 gpio2 {
42 gpio2_default_mode: gpio2_default {
43 default_mux {
44 function = "gpio";
45 groups = "gpio2_a_1";
46 };
47 default_cfg {
48 pins = "GPIO2_T9";
49 input-enable;
50 bias-pull-down;
51 };
52 };
53 };
54 gpio4 {
55 gpio4_default_mode: gpio4_default {
56 default_mux {
57 function = "gpio";
58 groups = "gpio4_a_1";
59 };
60 default_cfg {
61 pins = "GPIO4_W2";
62 input-enable;
63 bias-pull-down;
64 };
65 };
66 };
67 gpio10 {
68 gpio10_default_mode: gpio10_default {
69 default_mux {
70 function = "gpio";
71 groups = "gpio10_d_1";
72 };
73 default_cfg {
74 pins = "GPIO10_U17";
75 input-enable;
76 bias-pull-down;
77 };
78 };
79 };
80 gpio11 {
81 gpio11_default_mode: gpio11_default {
82 default_mux {
83 function = "gpio";
84 groups = "gpio11_d_1";
85 };
86 default_cfg {
87 pins = "GPIO11_AA18";
88 input-enable;
89 bias-pull-down;
90 };
91 };
92 };
93 gpio12 {
94 gpio12_default_mode: gpio12_default {
95 default_mux {
96 function = "gpio";
97 groups = "gpio12_d_1";
98 };
99 default_cfg {
100 pins = "GPIO12_U16";
101 input-enable;
102 bias-pull-down;
103 };
104 };
105 };
106 gpio13 {
107 gpio13_default_mode: gpio13_default {
108 default_mux {
109 function = "gpio";
110 groups = "gpio13_d_1";
111 };
112 default_cfg {
113 pins = "GPIO13_W17";
114 input-enable;
115 bias-pull-down;
116 };
117 };
118 };
119 gpio16 {
120 gpio16_default_mode: gpio16_default {
121 default_mux {
122 function = "gpio";
123 groups = "gpio16_a_1";
124 };
125 default_cfg {
126 pins = "GPIO16_F15";
127 input-enable;
128 bias-pull-down;
129 };
130 };
131 };
132 gpio24 {
133 gpio24_default_mode: gpio24_default {
134 default_mux {
135 function = "gpio";
136 groups = "gpio24_a_1";
137 };
138 default_cfg {
139 pins = "GPIO24_T14";
140 input-enable;
141 bias-pull-down;
142 };
143 };
144 };
145 gpio25 {
146 gpio25_default_mode: gpio25_default {
147 default_mux {
148 function = "gpio";
149 groups = "gpio25_a_1";
150 };
151 default_cfg {
152 pins = "GPIO25_R16";
153 input-enable;
154 bias-pull-down;
155 };
156 };
157 };
158 gpio36 {
159 gpio36_default_mode: gpio36_default {
160 default_mux {
161 function = "gpio";
162 groups = "gpio36_a_1";
163 };
164 default_cfg {
165 pins = "GPIO36_A17";
166 input-enable;
167 bias-pull-down;
168 };
169 };
170 };
171 gpio37 {
172 gpio37_default_mode: gpio37_default {
173 default_mux {
174 function = "gpio";
175 groups = "gpio37_a_1";
176 };
177 default_cfg {
178 pins = "GPIO37_E15";
179 input-enable;
180 bias-pull-down;
181 };
182 };
183 };
184 gpio38 {
185 gpio38_default_mode: gpio38_default {
186 default_mux {
187 function = "gpio";
188 groups = "gpio38_a_1";
189 };
190 default_cfg {
191 pins = "GPIO38_C17";
192 input-enable;
193 bias-pull-down;
194 };
195 };
196 };
197 gpio39 {
198 gpio39_default_mode: gpio39_default {
199 default_mux {
200 function = "gpio";
201 groups = "gpio39_a_1";
202 };
203 default_cfg {
204 pins = "GPIO39_E16";
205 input-enable;
206 bias-pull-down;
207 };
208 };
209 };
210 gpio42 {
211 gpio42_default_mode: gpio42_default {
212 default_mux {
213 function = "gpio";
214 groups = "gpio42_a_1";
215 };
216 default_cfg {
217 pins = "GPIO42_U2";
218 input-enable;
219 bias-pull-down;
220 };
221 };
222 };
223 /*
224 * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW
225 */
226 gpio26 {
227 gpio26_default_mode: gpio26_default {
228 default_mux {
229 function = "gpio";
230 groups = "gpio26_d_1";
231 };
232 default_cfg {
233 pins = "GPIO26_M16";
234 output-low;
235 };
236 };
237 };
238 gpio35 {
239 gpio35_default_mode: gpio35_default {
240 default_mux {
241 function = "gpio";
242 groups = "gpio35_d_1";
243 };
244 default_cfg {
245 pins = "GPIO35_W15";
246 output-low;
247 };
248 };
249 };
250 /*
251 * This sets up the YCBCR connector pins, i.e. analog video out.
252 * Set as input with no bias.
253 */
254 ycbcr {
255 ycbcr_default_mode: ycbcr_default {
256 default_mux {
257 function = "ycbcr";
258 groups = "ycbcr0123_d_1";
259 };
260 default_cfg {
261 pins = "GPIO6_Y18",
262 "GPIO7_AA20",
263 "GPIO8_W18",
264 "GPIO9_AA19";
265 input-enable;
266 bias-disable;
267 };
268 };
269 };
270 /* This sets up the PWM pins 14 and 15 */
271 pwm {
272 pwm_default_mode: pwm_default {
273 default_mux {
274 function = "pwmout";
275 groups = "pwmout1_d_1", "pwmout2_d_1";
276 };
277 default_cfg {
278 pins = "GPIO14_F14",
279 "GPIO15_B17";
280 input-enable;
281 bias-pull-down;
282 };
283 };
284 };
285 /* This sets up audio interface 1 */
286 adi1 {
287 adi1_default_mode: adi1_default {
288 default_mux {
289 function = "adi1";
290 groups = "adi1_d_1";
291 };
292 default_cfg {
293 pins = "GPIO17_P5",
294 "GPIO18_R5",
295 "GPIO19_U5",
296 "GPIO20_T5";
297 input-enable;
298 bias-pull-down;
299 };
300 };
301 };
302 /* This sets up the USB UICC pins */
303 usbuicc {
304 usbuicc_default_mode: usbuicc_default {
305 default_mux {
306 function = "usbuicc";
307 groups = "usbuicc_d_1";
308 };
309 default_cfg {
310 pins = "GPIO21_H19",
311 "GPIO22_G20",
312 "GPIO23_G19";
313 input-enable;
314 bias-pull-down;
315 };
316 };
317 };
318 /* This sets up the microphone pins */
319 dmic {
320 dmic_default_mode: dmic_default {
321 default_mux {
322 function = "dmic";
323 groups = "dmic12_d_1",
324 "dmic34_d_1",
325 "dmic56_d_1";
326 };
327 default_cfg {
328 pins = "GPIO27_J6",
329 "GPIO28_K6",
330 "GPIO29_G6",
331 "GPIO30_H6",
332 "GPIO31_F5",
333 "GPIO32_G5";
334 input-enable;
335 bias-pull-down;
336 };
337 };
338 };
339 extcpena {
340 extcpena_default_mode: extcpena_default {
341 default_mux {
342 function = "extcpena";
343 groups = "extcpena_d_1";
344 };
345 default_cfg {
346 pins = "GPIO34_R17";
347 input-enable;
348 bias-pull-down;
349 };
350 };
351 };
352 /* Modem I2C setup (SCL and SDA pins) */
353 modsclsda {
354 modsclsda_default_mode: modsclsda_default {
355 default_mux {
356 function = "modsclsda";
357 groups = "modsclsda_d_1";
358 };
359 default_cfg {
360 pins = "GPIO40_T19",
361 "GPIO41_U19";
362 input-enable;
363 bias-pull-down;
364 };
365 };
366 };
367 /*
368 * Clock output pins associated with regulators.
369 */
370 sysclkreq2 {
371 sysclkreq2_default_mode: sysclkreq2_default {
372 default_mux {
373 function = "sysclkreq";
374 groups = "sysclkreq2_d_1";
375 };
376 default_cfg {
377 pins = "GPIO1_T10";
378 input-enable;
379 bias-disable;
380 };
381 };
382 sysclkreq2_sleep_mode: sysclkreq2_sleep {
383 default_mux {
384 function = "gpio";
385 groups = "gpio1_a_1";
386 };
387 default_cfg {
388 pins = "GPIO1_T10";
389 input-enable;
390 bias-pull-down;
391 };
392 };
393 };
394 sysclkreq4 {
395 sysclkreq4_default_mode: sysclkreq4_default {
396 default_mux {
397 function = "sysclkreq";
398 groups = "sysclkreq4_d_1";
399 };
400 default_cfg {
401 pins = "GPIO3_U9";
402 input-enable;
403 bias-disable;
404 };
405 };
406 sysclkreq4_sleep_mode: sysclkreq4_sleep {
407 default_mux {
408 function = "gpio";
409 groups = "gpio3_a_1";
410 };
411 default_cfg {
412 pins = "GPIO3_U9";
413 input-enable;
414 bias-pull-down;
415 };
416 };
417 };
418 };
419 };
420 };
421 };
422};