1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2013 Linaro Ltd.
6 #include "ste-nomadik-pinctrl.dtsi"
9 /* Settings for all UART default and sleep states */
11 u0_a_1_default: u0_a_1_default {
17 pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */
18 ste,config = <&in_pu>;
21 pins = "GPIO1_AJ3", "GPIO3_AH3"; /* RTS+TXD */
22 ste,config = <&out_hi>;
26 u0_a_1_sleep: u0_a_1_sleep {
28 pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */
29 ste,config = <&slpm_in_wkup_pdis>;
32 pins = "GPIO1_AJ3"; /* RTS */
33 ste,config = <&slpm_out_hi_wkup_pdis>;
36 pins = "GPIO3_AH3"; /* TXD */
37 ste,config = <&slpm_out_wkup_pdis>;
43 u1rxtx_a_1_default: u1rxtx_a_1_default {
46 groups = "u1rxtx_a_1";
49 pins = "GPIO4_AH6"; /* RXD */
50 ste,config = <&in_pu>;
53 pins = "GPIO5_AG6"; /* TXD */
54 ste,config = <&out_hi>;
58 u1rxtx_a_1_sleep: u1rxtx_a_1_sleep {
60 pins = "GPIO4_AH6"; /* RXD */
61 ste,config = <&slpm_in_wkup_pdis>;
64 pins = "GPIO5_AG6"; /* TXD */
65 ste,config = <&slpm_out_wkup_pdis>;
69 u1ctsrts_a_1_default: u1ctsrts_a_1_default {
72 groups = "u1ctsrts_a_1";
75 pins = "GPIO6_AF6"; /* CTS */
76 ste,config = <&in_pu>;
79 pins = "GPIO7_AG5"; /* RTS */
80 ste,config = <&out_hi>;
84 u1ctsrts_a_1_sleep: u1ctsrts_a_1_sleep {
86 pins = "GPIO6_AF6"; /* CTS */
87 ste,config = <&slpm_in_wkup_pdis>;
90 pins = "GPIO7_AG5"; /* RTS */
91 ste,config = <&slpm_out_hi_wkup_pdis>;
97 u2rxtx_c_1_default: u2rxtx_c_1_default {
100 groups = "u2rxtx_c_1";
103 pins = "GPIO29_W2"; /* RXD */
104 ste,config = <&in_pu>;
107 pins = "GPIO30_W3"; /* TXD */
108 ste,config = <&out_hi>;
112 u2rxtx_c_1_sleep: u2rxtx_c_1_sleep {
114 pins = "GPIO29_W2"; /* RXD */
115 ste,config = <&in_wkup_pdis>;
118 pins = "GPIO30_W3"; /* TXD */
119 ste,config = <&out_wkup_pdis>;
124 /* Settings for all I2C default and sleep states */
126 i2c0_a_1_default: i2c0_a_1_default {
132 pins = "GPIO147_C15", "GPIO148_B16"; /* SDA/SCL */
133 ste,config = <&in_nopull>;
137 i2c0_a_1_sleep: i2c0_a_1_sleep {
139 pins = "GPIO147_C15", "GPIO148_B16"; /* SDA/SCL */
140 ste,config = <&slpm_in_wkup_pdis>;
146 i2c1_b_2_default: i2c1_b_2_default {
152 pins = "GPIO16_AD3", "GPIO17_AD4"; /* SDA/SCL */
153 ste,config = <&in_nopull>;
157 i2c1_b_2_sleep: i2c1_b_2_sleep {
159 pins = "GPIO16_AD3", "GPIO17_AD4"; /* SDA/SCL */
160 ste,config = <&slpm_in_wkup_pdis>;
166 i2c2_b_2_default: i2c2_b_2_default {
172 pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */
173 ste,config = <&in_nopull>;
177 i2c2_b_2_sleep: i2c2_b_2_sleep {
179 pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */
180 ste,config = <&slpm_in_wkup_pdis>;
186 i2c3_c_2_default: i2c3_c_2_default {
192 pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */
193 ste,config = <&in_nopull>;
197 i2c3_c_2_sleep: i2c3_c_2_sleep {
199 pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */
200 ste,config = <&slpm_in_wkup_pdis>;
206 * Activating I2C4 will conflict with UART1 about the same pins so do not
207 * enable I2C4 and UART1 at the same time.
210 i2c4_b_1_default: i2c4_b_1_default {
216 pins = "GPIO4_AH6", "GPIO5_AG6"; /* SDA/SCL */
217 ste,config = <&in_nopull>;
221 i2c4_b_1_sleep: i2c4_b_1_sleep {
223 pins = "GPIO4_AH6", "GPIO5_AG6"; /* SDA/SCL */
224 ste,config = <&slpm_in_wkup_pdis>;
229 /* Settings for all MMC/SD/SDIO default and sleep states */
231 /* This is the external SD card slot, 4 bits wide */
232 mc0_a_1_default: mc0_a_1_default {
239 "GPIO18_AC2", /* CMDDIR */
240 "GPIO19_AC1", /* DAT0DIR */
241 "GPIO20_AB4"; /* DAT2DIR */
242 ste,config = <&out_hi>;
245 pins = "GPIO22_AA3"; /* FBCLK */
246 ste,config = <&in_nopull>;
249 pins = "GPIO23_AA4"; /* CLK */
250 ste,config = <&out_lo>;
254 "GPIO24_AB2", /* CMD */
255 "GPIO25_Y4", /* DAT0 */
256 "GPIO26_Y2", /* DAT1 */
257 "GPIO27_AA2", /* DAT2 */
258 "GPIO28_AA1"; /* DAT3 */
259 ste,config = <&in_pu>;
263 mc0_a_1_sleep: mc0_a_1_sleep {
266 "GPIO18_AC2", /* CMDDIR */
267 "GPIO19_AC1", /* DAT0DIR */
268 "GPIO20_AB4"; /* DAT2DIR */
269 ste,config = <&slpm_out_hi_wkup_pdis>;
273 "GPIO22_AA3", /* FBCLK */
274 "GPIO24_AB2", /* CMD */
275 "GPIO25_Y4", /* DAT0 */
276 "GPIO26_Y2", /* DAT1 */
277 "GPIO27_AA2", /* DAT2 */
278 "GPIO28_AA1"; /* DAT3 */
279 ste,config = <&slpm_in_wkup_pdis>;
282 pins = "GPIO23_AA4"; /* CLK */
283 ste,config = <&slpm_out_lo_wkup_pdis>;
287 mc0_a_2_default: mc0_a_2_default {
293 pins = "GPIO22_AA3"; /* FBCLK */
294 ste,config = <&in_nopull>;
297 pins = "GPIO23_AA4"; /* CLK */
298 ste,config = <&out_lo>;
302 "GPIO24_AB2", /* CMD */
303 "GPIO25_Y4", /* DAT0 */
304 "GPIO26_Y2", /* DAT1 */
305 "GPIO27_AA2", /* DAT2 */
306 "GPIO28_AA1"; /* DAT3 */
307 ste,config = <&in_pu>;
311 mc0_a_2_sleep: mc0_a_2_sleep {
314 "GPIO22_AA3", /* FBCLK */
315 "GPIO24_AB2", /* CMD */
316 "GPIO25_Y4", /* DAT0 */
317 "GPIO26_Y2", /* DAT1 */
318 "GPIO27_AA2", /* DAT2 */
319 "GPIO28_AA1"; /* DAT3 */
320 ste,config = <&slpm_in_wkup_pdis>;
323 pins = "GPIO23_AA4"; /* CLK */
324 ste,config = <&slpm_out_lo_wkup_pdis>;
330 /* This is the WLAN SDIO 4 bits wide */
331 mc1_a_1_default: mc1_a_1_default {
337 pins = "GPIO208_AH16"; /* CLK */
338 ste,config = <&out_lo>;
341 pins = "GPIO209_AG15"; /* FBCLK */
342 ste,config = <&in_nopull>;
346 "GPIO210_AJ15", /* CMD */
347 "GPIO211_AG14", /* DAT0 */
348 "GPIO212_AF13", /* DAT1 */
349 "GPIO213_AG13", /* DAT2 */
350 "GPIO214_AH15"; /* DAT3 */
351 ste,config = <&in_pu>;
355 mc1_a_1_sleep: mc1_a_1_sleep {
357 pins = "GPIO208_AH16"; /* CLK */
358 ste,config = <&slpm_out_lo_wkup_pdis>;
362 "GPIO209_AG15", /* FBCLK */
363 "GPIO210_AJ15", /* CMD */
364 "GPIO211_AG14", /* DAT0 */
365 "GPIO212_AF13", /* DAT1 */
366 "GPIO213_AG13", /* DAT2 */
367 "GPIO214_AH15"; /* DAT3 */
368 ste,config = <&slpm_in_wkup_pdis>;
372 mc1_a_2_default: mc1_a_2_default {
378 pins = "GPIO208_AH16"; /* CLK */
379 ste,config = <&out_lo>;
383 "GPIO210_AJ15", /* CMD */
384 "GPIO211_AG14", /* DAT0 */
385 "GPIO212_AF13", /* DAT1 */
386 "GPIO213_AG13", /* DAT2 */
387 "GPIO214_AH15"; /* DAT3 */
388 ste,config = <&in_pu>;
392 mc1_a_2_sleep: mc1_a_2_sleep {
394 pins = "GPIO208_AH16"; /* CLK */
395 ste,config = <&slpm_out_lo_wkup_pdis>;
399 "GPIO210_AJ15", /* CMD */
400 "GPIO211_AG14", /* DAT0 */
401 "GPIO212_AF13", /* DAT1 */
402 "GPIO213_AG13", /* DAT2 */
403 "GPIO214_AH15"; /* DAT3 */
404 ste,config = <&slpm_in_wkup_pdis>;
410 /* This is the eMMC 8 bits wide, usually PoP eMMC */
411 mc2_a_1_default: mc2_a_1_default {
417 pins = "GPIO128_A5"; /* CLK */
418 ste,config = <&out_lo>;
421 pins = "GPIO130_C8"; /* FBCLK */
422 ste,config = <&in_nopull>;
426 "GPIO129_B4", /* CMD */
427 "GPIO131_A12", /* DAT0 */
428 "GPIO132_C10", /* DAT1 */
429 "GPIO133_B10", /* DAT2 */
430 "GPIO134_B9", /* DAT3 */
431 "GPIO135_A9", /* DAT4 */
432 "GPIO136_C7", /* DAT5 */
433 "GPIO137_A7", /* DAT6 */
434 "GPIO138_C5"; /* DAT7 */
435 ste,config = <&in_pu>;
439 mc2_a_1_sleep: mc2_a_1_sleep {
441 pins = "GPIO128_A5"; /* CLK */
442 ste,config = <&out_lo_wkup_pdis>;
446 "GPIO130_C8", /* FBCLK */
447 "GPIO129_B4"; /* CMD */
448 ste,config = <&in_wkup_pdis_en>;
452 "GPIO131_A12", /* DAT0 */
453 "GPIO132_C10", /* DAT1 */
454 "GPIO133_B10", /* DAT2 */
455 "GPIO134_B9", /* DAT3 */
456 "GPIO135_A9", /* DAT4 */
457 "GPIO136_C7", /* DAT5 */
458 "GPIO137_A7", /* DAT6 */
459 "GPIO138_C5"; /* DAT7 */
460 ste,config = <&in_wkup_pdis>;
466 /* This is the eMMC 8 bits wide, usually PCB-mounted eMMC */
467 mc4_a_1_default: mc4_a_1_default {
473 pins = "GPIO203_AE23"; /* CLK */
474 ste,config = <&out_lo>;
477 pins = "GPIO202_AF25"; /* FBCLK */
478 ste,config = <&in_nopull>;
482 "GPIO201_AF24", /* CMD */
483 "GPIO200_AH26", /* DAT0 */
484 "GPIO199_AH23", /* DAT1 */
485 "GPIO198_AG25", /* DAT2 */
486 "GPIO197_AH24", /* DAT3 */
487 "GPIO207_AJ23", /* DAT4 */
488 "GPIO206_AG24", /* DAT5 */
489 "GPIO205_AG23", /* DAT6 */
490 "GPIO204_AF23"; /* DAT7 */
491 ste,config = <&in_pu>;
495 mc4_a_1_sleep: mc4_a_1_sleep {
497 pins = "GPIO203_AE23"; /* CLK */
498 ste,config = <&out_lo_wkup_pdis>;
502 "GPIO202_AF25", /* FBCLK */
503 "GPIO201_AF24", /* CMD */
504 "GPIO200_AH26", /* DAT0 */
505 "GPIO199_AH23", /* DAT1 */
506 "GPIO198_AG25", /* DAT2 */
507 "GPIO197_AH24", /* DAT3 */
508 "GPIO207_AJ23", /* DAT4 */
509 "GPIO206_AG24", /* DAT5 */
510 "GPIO205_AG23", /* DAT6 */
511 "GPIO204_AF23"; /* DAT7 */
512 ste,config = <&slpm_in_wkup_pdis>;
518 * Multi-rate serial ports (MSPs) - MSP3 output is internal and
519 * cannot be muxed onto any pins.
522 msp0txrxtfstck_a_1_default: msp0txrxtfstck_a_1_default {
525 groups = "msp0txrx_a_1", "msp0tfstck_a_1";
529 "GPIO12_AC4", /* TXD */
530 "GPIO15_AC3", /* RXD */
531 "GPIO13_AF3", /* TFS */
532 "GPIO14_AE3"; /* TCK */
533 ste,config = <&in_nopull>;
539 msp1txrx_a_1_default: msp1txrx_a_1_default {
542 groups = "msp1txrx_a_1", "msp1_a_1";
546 ste,config = <&out_lo>;
553 ste,config = <&in_nopull>;
559 msp2_a_1_default: msp2_a_1_default {
560 /* MSP2 usually used for HDMI audio */
567 "GPIO193_AH27", /* TXD */
568 "GPIO194_AF27", /* TCK */
569 "GPIO195_AG28"; /* TFS */
570 ste,config = <&in_pd>;
573 pins = "GPIO196_AG26"; /* RXD */
574 ste,config = <&out_lo>;
580 usb_a_1_default: usb_a_1_default {
587 "GPIO256_AF28", /* NXT */
588 "GPIO258_AD29", /* XCLK */
589 "GPIO259_AC29", /* DIR */
590 "GPIO260_AD28", /* DAT7 */
591 "GPIO261_AD26", /* DAT6 */
592 "GPIO262_AE26", /* DAT5 */
593 "GPIO263_AG29", /* DAT4 */
594 "GPIO264_AE27", /* DAT3 */
595 "GPIO265_AD27", /* DAT2 */
596 "GPIO266_AC28", /* DAT1 */
597 "GPIO267_AC27"; /* DAT0 */
598 ste,config = <&in_nopull>;
601 pins = "GPIO257_AE29"; /* STP */
602 ste,config = <&out_hi>;
606 usb_a_1_sleep: usb_a_1_sleep {
609 "GPIO256_AF28", /* NXT */
610 "GPIO258_AD29", /* XCLK */
611 "GPIO259_AC29"; /* DIR */
612 ste,config = <&slpm_wkup_pdis_en>;
615 pins = "GPIO257_AE29"; /* STP */
616 ste,config = <&slpm_out_hi_wkup_pdis>;
620 "GPIO260_AD28", /* DAT7 */
621 "GPIO261_AD26", /* DAT6 */
622 "GPIO262_AE26", /* DAT5 */
623 "GPIO263_AG29", /* DAT4 */
624 "GPIO264_AE27", /* DAT3 */
625 "GPIO265_AD27", /* DAT2 */
626 "GPIO266_AC28", /* DAT1 */
627 "GPIO267_AC27"; /* DAT0 */
628 ste,config = <&slpm_in_wkup_pdis_en>;