1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright 2013 Linaro Ltd. 4 */ 5 6 #include "ste-nomadik-pinctrl.dtsi" 7 8 &pinctrl { 9 /* Settings for all UART default and s 10 uart0 { 11 u0_a_1_default: u0_a_1_default 12 default_mux { 13 function = "u0 14 groups = "u0_a 15 }; 16 default_cfg1 { 17 pins = "GPIO0_ 18 ste,config = < 19 }; 20 default_cfg2 { 21 pins = "GPIO1_ 22 ste,config = < 23 }; 24 }; 25 26 u0_a_1_sleep: u0_a_1_sleep { 27 sleep_cfg1 { 28 pins = "GPIO0_ 29 ste,config = < 30 }; 31 sleep_cfg2 { 32 pins = "GPIO1_ 33 ste,config = < 34 }; 35 sleep_cfg3 { 36 pins = "GPIO3_ 37 ste,config = < 38 }; 39 }; 40 }; 41 42 uart1 { 43 u1rxtx_a_1_default: u1rxtx_a_1 44 default_mux { 45 function = "u1 46 groups = "u1rx 47 }; 48 default_cfg1 { 49 pins = "GPIO4_ 50 ste,config = < 51 }; 52 default_cfg2 { 53 pins = "GPIO5_ 54 ste,config = < 55 }; 56 }; 57 58 u1rxtx_a_1_sleep: u1rxtx_a_1_s 59 sleep_cfg1 { 60 pins = "GPIO4_ 61 ste,config = < 62 }; 63 sleep_cfg2 { 64 pins = "GPIO5_ 65 ste,config = < 66 }; 67 }; 68 69 u1ctsrts_a_1_default: u1ctsrts 70 default_mux { 71 function = "u1 72 groups = "u1ct 73 }; 74 default_cfg1 { 75 pins = "GPIO6_ 76 ste,config = < 77 }; 78 default_cfg2 { 79 pins = "GPIO7_ 80 ste,config = < 81 }; 82 }; 83 84 u1ctsrts_a_1_sleep: u1ctsrts_a 85 sleep_cfg1 { 86 pins = "GPIO6_ 87 ste,config = < 88 }; 89 sleep_cfg2 { 90 pins = "GPIO7_ 91 ste,config = < 92 }; 93 }; 94 }; 95 96 uart2 { 97 u2rxtx_c_1_default: u2rxtx_c_1 98 default_mux { 99 function = "u2 100 groups = "u2rx 101 }; 102 default_cfg1 { 103 pins = "GPIO29 104 ste,config = < 105 }; 106 default_cfg2 { 107 pins = "GPIO30 108 ste,config = < 109 }; 110 }; 111 112 u2rxtx_c_1_sleep: u2rxtx_c_1_s 113 sleep_cfg1 { 114 pins = "GPIO29 115 ste,config = < 116 }; 117 sleep_cfg2 { 118 pins = "GPIO30 119 ste,config = < 120 }; 121 }; 122 }; 123 124 /* Settings for all I2C default and sl 125 i2c0 { 126 i2c0_a_1_default: i2c0_a_1_def 127 default_mux { 128 function = "i2 129 groups = "i2c0 130 }; 131 default_cfg1 { 132 pins = "GPIO14 133 ste,config = < 134 }; 135 }; 136 137 i2c0_a_1_sleep: i2c0_a_1_sleep 138 sleep_cfg1 { 139 pins = "GPIO14 140 ste,config = < 141 }; 142 }; 143 }; 144 145 i2c1 { 146 i2c1_b_2_default: i2c1_b_2_def 147 default_mux { 148 function = "i2 149 groups = "i2c1 150 }; 151 default_cfg1 { 152 pins = "GPIO16 153 ste,config = < 154 }; 155 }; 156 157 i2c1_b_2_sleep: i2c1_b_2_sleep 158 sleep_cfg1 { 159 pins = "GPIO16 160 ste,config = < 161 }; 162 }; 163 }; 164 165 i2c2 { 166 i2c2_b_1_default: i2c2_b_1_def 167 default_mux { 168 function = "i2 169 groups = "i2c2 170 }; 171 default_cfg1 { 172 pins = "GPIO8_ 173 ste,config = < 174 }; 175 }; 176 177 i2c2_b_1_sleep: i2c2_b_1_sleep 178 sleep_cfg1 { 179 pins = "GPIO8_ 180 ste,config = < 181 }; 182 }; 183 184 i2c2_b_2_default: i2c2_b_2_def 185 default_mux { 186 function = "i2 187 groups = "i2c2 188 }; 189 default_cfg1 { 190 pins = "GPIO10 191 ste,config = < 192 }; 193 }; 194 195 i2c2_b_2_sleep: i2c2_b_2_sleep 196 sleep_cfg1 { 197 pins = "GPIO10 198 ste,config = < 199 }; 200 }; 201 }; 202 203 i2c3 { 204 i2c3_c_2_default: i2c3_c_2_def 205 default_mux { 206 function = "i2 207 groups = "i2c3 208 }; 209 default_cfg1 { 210 pins = "GPIO22 211 ste,config = < 212 }; 213 }; 214 215 i2c3_c_2_sleep: i2c3_c_2_sleep 216 sleep_cfg1 { 217 pins = "GPIO22 218 ste,config = < 219 }; 220 }; 221 }; 222 223 /* 224 * Activating I2C4 will conflict with 225 * enable I2C4 and UART1 at the same t 226 */ 227 i2c4 { 228 i2c4_b_1_default: i2c4_b_1_def 229 default_mux { 230 function = "i2 231 groups = "i2c4 232 }; 233 default_cfg1 { 234 pins = "GPIO4_ 235 ste,config = < 236 }; 237 }; 238 239 i2c4_b_1_sleep: i2c4_b_1_sleep 240 sleep_cfg1 { 241 pins = "GPIO4_ 242 ste,config = < 243 }; 244 }; 245 }; 246 247 /* Settings for all MMC/SD/SDIO defaul 248 sdi0 { 249 /* This is the external SD car 250 mc0_a_1_default: mc0_a_1_defau 251 default_mux { 252 function = "mc 253 groups = "mc0_ 254 }; 255 default_cfg1 { 256 pins = 257 "GPIO18_AC2", 258 "GPIO19_AC1", 259 "GPIO20_AB4"; 260 ste,config = < 261 }; 262 default_cfg2 { 263 pins = "GPIO22 264 ste,config = < 265 }; 266 default_cfg3 { 267 pins = "GPIO23 268 ste,config = < 269 }; 270 default_cfg4 { 271 pins = 272 "GPIO24_AB2", 273 "GPIO25_Y4", / 274 "GPIO26_Y2", / 275 "GPIO27_AA2", 276 "GPIO28_AA1"; 277 ste,config = < 278 }; 279 }; 280 281 mc0_a_1_sleep: mc0_a_1_sleep { 282 sleep_cfg1 { 283 pins = 284 "GPIO18_AC2", 285 "GPIO19_AC1", 286 "GPIO20_AB4"; 287 ste,config = < 288 }; 289 sleep_cfg2 { 290 pins = 291 "GPIO22_AA3", 292 "GPIO24_AB2", 293 "GPIO25_Y4", / 294 "GPIO26_Y2", / 295 "GPIO27_AA2", 296 "GPIO28_AA1"; 297 ste,config = < 298 }; 299 sleep_cfg3 { 300 pins = "GPIO23 301 ste,config = < 302 }; 303 }; 304 305 mc0_a_2_default: mc0_a_2_defau 306 default_mux { 307 function = "mc 308 groups = "mc0_ 309 }; 310 default_cfg1 { 311 pins = "GPIO22 312 ste,config = < 313 }; 314 default_cfg2 { 315 pins = "GPIO23 316 ste,config = < 317 }; 318 default_cfg3 { 319 pins = 320 "GPIO24_AB2", 321 "GPIO25_Y4", / 322 "GPIO26_Y2", / 323 "GPIO27_AA2", 324 "GPIO28_AA1"; 325 ste,config = < 326 }; 327 }; 328 329 mc0_a_2_sleep: mc0_a_2_sleep { 330 sleep_cfg1 { 331 pins = 332 "GPIO22_AA3", 333 "GPIO24_AB2", 334 "GPIO25_Y4", / 335 "GPIO26_Y2", / 336 "GPIO27_AA2", 337 "GPIO28_AA1"; 338 ste,config = < 339 }; 340 sleep_cfg2 { 341 pins = "GPIO23 342 ste,config = < 343 }; 344 }; 345 }; 346 347 sdi1 { 348 /* This is the WLAN SDIO 4 bit 349 mc1_a_1_default: mc1_a_1_defau 350 default_mux { 351 function = "mc 352 groups = "mc1_ 353 }; 354 default_cfg1 { 355 pins = "GPIO20 356 ste,config = < 357 }; 358 default_cfg2 { 359 pins = "GPIO20 360 ste,config = < 361 }; 362 default_cfg3 { 363 pins = 364 "GPIO210_AJ15" 365 "GPIO211_AG14" 366 "GPIO212_AF13" 367 "GPIO213_AG13" 368 "GPIO214_AH15" 369 ste,config = < 370 }; 371 }; 372 373 mc1_a_1_sleep: mc1_a_1_sleep { 374 sleep_cfg1 { 375 pins = "GPIO20 376 ste,config = < 377 }; 378 sleep_cfg2 { 379 pins = 380 "GPIO209_AG15" 381 "GPIO210_AJ15" 382 "GPIO211_AG14" 383 "GPIO212_AF13" 384 "GPIO213_AG13" 385 "GPIO214_AH15" 386 ste,config = < 387 }; 388 }; 389 390 mc1_a_2_default: mc1_a_2_defau 391 default_mux { 392 function = "mc 393 groups = "mc1_ 394 }; 395 default_cfg1 { 396 pins = "GPIO20 397 ste,config = < 398 }; 399 default_cfg2 { 400 pins = 401 "GPIO210_AJ15" 402 "GPIO211_AG14" 403 "GPIO212_AF13" 404 "GPIO213_AG13" 405 "GPIO214_AH15" 406 ste,config = < 407 }; 408 }; 409 410 mc1_a_2_sleep: mc1_a_2_sleep { 411 sleep_cfg1 { 412 pins = "GPIO20 413 ste,config = < 414 }; 415 sleep_cfg2 { 416 pins = 417 "GPIO210_AJ15" 418 "GPIO211_AG14" 419 "GPIO212_AF13" 420 "GPIO213_AG13" 421 "GPIO214_AH15" 422 ste,config = < 423 }; 424 }; 425 }; 426 427 sdi2 { 428 /* This is the eMMC 8 bits wid 429 mc2_a_1_default: mc2_a_1_defau 430 default_mux { 431 function = "mc 432 groups = "mc2_ 433 }; 434 default_cfg1 { 435 pins = "GPIO12 436 ste,config = < 437 }; 438 default_cfg2 { 439 pins = "GPIO13 440 ste,config = < 441 }; 442 default_cfg3 { 443 pins = 444 "GPIO129_B4", 445 "GPIO131_A12", 446 "GPIO132_C10", 447 "GPIO133_B10", 448 "GPIO134_B9", 449 "GPIO135_A9", 450 "GPIO136_C7", 451 "GPIO137_A7", 452 "GPIO138_C5"; 453 ste,config = < 454 }; 455 }; 456 457 mc2_a_1_sleep: mc2_a_1_sleep { 458 sleep_cfg1 { 459 pins = "GPIO12 460 ste,config = < 461 }; 462 sleep_cfg2 { 463 pins = 464 "GPIO130_C8", 465 "GPIO129_B4"; 466 ste,config = < 467 }; 468 sleep_cfg3 { 469 pins = 470 "GPIO131_A12", 471 "GPIO132_C10", 472 "GPIO133_B10", 473 "GPIO134_B9", 474 "GPIO135_A9", 475 "GPIO136_C7", 476 "GPIO137_A7", 477 "GPIO138_C5"; 478 ste,config = < 479 }; 480 }; 481 }; 482 483 sdi4 { 484 /* This is the eMMC 8 bits wid 485 mc4_a_1_default: mc4_a_1_defau 486 default_mux { 487 function = "mc 488 groups = "mc4_ 489 }; 490 default_cfg1 { 491 pins = "GPIO20 492 ste,config = < 493 }; 494 default_cfg2 { 495 pins = "GPIO20 496 ste,config = < 497 }; 498 default_cfg3 { 499 pins = 500 "GPIO201_AF24" 501 "GPIO200_AH26" 502 "GPIO199_AH23" 503 "GPIO198_AG25" 504 "GPIO197_AH24" 505 "GPIO207_AJ23" 506 "GPIO206_AG24" 507 "GPIO205_AG23" 508 "GPIO204_AF23" 509 ste,config = < 510 }; 511 }; 512 513 mc4_a_1_sleep: mc4_a_1_sleep { 514 sleep_cfg1 { 515 pins = "GPIO20 516 ste,config = < 517 }; 518 sleep_cfg2 { 519 pins = 520 "GPIO202_AF25" 521 "GPIO201_AF24" 522 "GPIO200_AH26" 523 "GPIO199_AH23" 524 "GPIO198_AG25" 525 "GPIO197_AH24" 526 "GPIO207_AJ23" 527 "GPIO206_AG24" 528 "GPIO205_AG23" 529 "GPIO204_AF23" 530 ste,config = < 531 }; 532 }; 533 }; 534 535 /* 536 * Multi-rate serial ports (MSPs) - MS 537 * cannot be muxed onto any pins. 538 */ 539 msp0 { 540 msp0txrxtfstck_a_1_default: ms 541 default_msp0_mux { 542 function = "ms 543 groups = "msp0 544 }; 545 default_msp0_cfg { 546 pins = 547 "GPIO12_AC4", 548 "GPIO15_AC3", 549 "GPIO13_AF3", 550 "GPIO14_AE3"; 551 ste,config = < 552 }; 553 }; 554 }; 555 556 msp1 { 557 msp1txrx_a_1_default: msp1txrx 558 default_mux { 559 function = "ms 560 groups = "msp1 561 }; 562 default_cfg1 { 563 pins = "GPIO33 564 ste,config = < 565 }; 566 default_cfg2 { 567 pins = 568 "GPIO34_AE1", 569 "GPIO35_AE2", 570 "GPIO36_AG2"; 571 ste,config = < 572 }; 573 }; 574 }; 575 576 msp2 { 577 msp2_a_1_default: msp2_a_1_def 578 /* MSP2 usually used f 579 default_mux { 580 function = "ms 581 groups = "msp2 582 }; 583 default_cfg1 { 584 pins = 585 "GPIO193_AH27" 586 "GPIO194_AF27" 587 "GPIO195_AG28" 588 ste,config = < 589 }; 590 default_cfg2 { 591 pins = "GPIO19 592 ste,config = < 593 }; 594 }; 595 }; 596 597 musb { 598 usb_a_1_default: usb_a_1_defau 599 default_mux { 600 function = "us 601 groups = "usb_ 602 }; 603 default_cfg1 { 604 pins = 605 "GPIO256_AF28" 606 "GPIO258_AD29" 607 "GPIO259_AC29" 608 "GPIO260_AD28" 609 "GPIO261_AD26" 610 "GPIO262_AE26" 611 "GPIO263_AG29" 612 "GPIO264_AE27" 613 "GPIO265_AD27" 614 "GPIO266_AC28" 615 "GPIO267_AC27" 616 ste,config = < 617 }; 618 default_cfg2 { 619 pins = "GPIO25 620 ste,config = < 621 }; 622 }; 623 624 usb_a_1_sleep: usb_a_1_sleep { 625 sleep_cfg1 { 626 pins = 627 "GPIO256_AF28" 628 "GPIO258_AD29" 629 "GPIO259_AC29" 630 ste,config = < 631 }; 632 sleep_cfg2 { 633 pins = "GPIO25 634 ste,config = < 635 }; 636 sleep_cfg3 { 637 pins = 638 "GPIO260_AD28" 639 "GPIO261_AD26" 640 "GPIO262_AE26" 641 "GPIO263_AG29" 642 "GPIO264_AE27" 643 "GPIO265_AD27" 644 "GPIO266_AC28" 645 "GPIO267_AC27" 646 ste,config = < 647 }; 648 }; 649 }; 650 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.