1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Samsung's S3C64xx SoC series common device 4 * - pin control-related definitions 5 * 6 * Copyright (c) 2013 Tomasz Figa <tomasz.figa@ 7 * 8 * Samsung's S3C64xx SoCs pin banks, pin-mux a 9 * listed as device tree nodes in this file. 10 */ 11 12 #include "s3c64xx-pinctrl.h" 13 14 &pinctrl0 { 15 /* 16 * Pin banks 17 */ 18 19 gpa: gpa-gpio-bank { 20 gpio-controller; 21 #gpio-cells = <2>; 22 interrupt-controller; 23 #interrupt-cells = <2>; 24 }; 25 26 gpb: gpb-gpio-bank { 27 gpio-controller; 28 #gpio-cells = <2>; 29 interrupt-controller; 30 #interrupt-cells = <2>; 31 }; 32 33 gpc: gpc-gpio-bank { 34 gpio-controller; 35 #gpio-cells = <2>; 36 interrupt-controller; 37 #interrupt-cells = <2>; 38 }; 39 40 gpd: gpd-gpio-bank { 41 gpio-controller; 42 #gpio-cells = <2>; 43 interrupt-controller; 44 #interrupt-cells = <2>; 45 }; 46 47 gpe: gpe-gpio-bank { 48 gpio-controller; 49 #gpio-cells = <2>; 50 }; 51 52 gpf: gpf-gpio-bank { 53 gpio-controller; 54 #gpio-cells = <2>; 55 interrupt-controller; 56 #interrupt-cells = <2>; 57 }; 58 59 gpg: gpg-gpio-bank { 60 gpio-controller; 61 #gpio-cells = <2>; 62 interrupt-controller; 63 #interrupt-cells = <2>; 64 }; 65 66 gph: gph-gpio-bank { 67 gpio-controller; 68 #gpio-cells = <2>; 69 interrupt-controller; 70 #interrupt-cells = <2>; 71 }; 72 73 gpi: gpi-gpio-bank { 74 gpio-controller; 75 #gpio-cells = <2>; 76 }; 77 78 gpj: gpj-gpio-bank { 79 gpio-controller; 80 #gpio-cells = <2>; 81 }; 82 83 gpk: gpk-gpio-bank { 84 gpio-controller; 85 #gpio-cells = <2>; 86 }; 87 88 gpl: gpl-gpio-bank { 89 gpio-controller; 90 #gpio-cells = <2>; 91 interrupt-controller; 92 #interrupt-cells = <2>; 93 }; 94 95 gpm: gpm-gpio-bank { 96 gpio-controller; 97 #gpio-cells = <2>; 98 interrupt-controller; 99 #interrupt-cells = <2>; 100 }; 101 102 gpn: gpn-gpio-bank { 103 gpio-controller; 104 #gpio-cells = <2>; 105 interrupt-controller; 106 #interrupt-cells = <2>; 107 }; 108 109 gpo: gpo-gpio-bank { 110 gpio-controller; 111 #gpio-cells = <2>; 112 interrupt-controller; 113 #interrupt-cells = <2>; 114 }; 115 116 gpp: gpp-gpio-bank { 117 gpio-controller; 118 #gpio-cells = <2>; 119 interrupt-controller; 120 #interrupt-cells = <2>; 121 }; 122 123 gpq: gpq-gpio-bank { 124 gpio-controller; 125 #gpio-cells = <2>; 126 interrupt-controller; 127 #interrupt-cells = <2>; 128 }; 129 130 /* 131 * Pin groups 132 */ 133 134 uart0_data: uart0-data-pins { 135 samsung,pins = "gpa-0", "gpa-1 136 samsung,pin-function = <S3C64X 137 samsung,pin-pud = <S3C64XX_PIN 138 }; 139 140 uart0_fctl: uart0-fctl-pins { 141 samsung,pins = "gpa-2", "gpa-3 142 samsung,pin-function = <S3C64X 143 samsung,pin-pud = <S3C64XX_PIN 144 }; 145 146 uart1_data: uart1-data-pins { 147 samsung,pins = "gpa-4", "gpa-5 148 samsung,pin-function = <S3C64X 149 samsung,pin-pud = <S3C64XX_PIN 150 }; 151 152 uart1_fctl: uart1-fctl-pins { 153 samsung,pins = "gpa-6", "gpa-7 154 samsung,pin-function = <S3C64X 155 samsung,pin-pud = <S3C64XX_PIN 156 }; 157 158 uart2_data: uart2-data-pins { 159 samsung,pins = "gpb-0", "gpb-1 160 samsung,pin-function = <S3C64X 161 samsung,pin-pud = <S3C64XX_PIN 162 }; 163 164 uart3_data: uart3-data-pins { 165 samsung,pins = "gpb-2", "gpb-3 166 samsung,pin-function = <S3C64X 167 samsung,pin-pud = <S3C64XX_PIN 168 }; 169 170 ext_dma_0: ext-dma-0-pins { 171 samsung,pins = "gpb-0", "gpb-1 172 samsung,pin-function = <S3C64X 173 samsung,pin-pud = <S3C64XX_PIN 174 }; 175 176 ext_dma_1: ext-dma-1-pins { 177 samsung,pins = "gpb-2", "gpb-3 178 samsung,pin-function = <S3C64X 179 samsung,pin-pud = <S3C64XX_PIN 180 }; 181 182 irda_data_0: irda-data-0-pins { 183 samsung,pins = "gpb-0", "gpb-1 184 samsung,pin-function = <S3C64X 185 samsung,pin-pud = <S3C64XX_PIN 186 }; 187 188 irda_data_1: irda-data-1-pins { 189 samsung,pins = "gpb-2", "gpb-3 190 samsung,pin-function = <S3C64X 191 samsung,pin-pud = <S3C64XX_PIN 192 }; 193 194 irda_sdbw: irda-sdbw-pins { 195 samsung,pins = "gpb-4"; 196 samsung,pin-function = <S3C64X 197 samsung,pin-pud = <S3C64XX_PIN 198 }; 199 200 i2c0_bus: i2c0-bus-pins { 201 samsung,pins = "gpb-5", "gpb-6 202 samsung,pin-function = <S3C64X 203 samsung,pin-pud = <S3C64XX_PIN 204 }; 205 206 i2c1_bus: i2c1-bus-pins { 207 /* S3C6410-only */ 208 samsung,pins = "gpb-2", "gpb-3 209 samsung,pin-function = <S3C64X 210 samsung,pin-pud = <S3C64XX_PIN 211 }; 212 213 spi0_bus: spi0-bus-pins { 214 samsung,pins = "gpc-0", "gpc-1 215 samsung,pin-function = <S3C64X 216 samsung,pin-pud = <S3C64XX_PIN 217 }; 218 219 spi0_cs: spi0-cs-pins { 220 samsung,pins = "gpc-3"; 221 samsung,pin-function = <S3C64X 222 samsung,pin-pud = <S3C64XX_PIN 223 }; 224 225 spi1_bus: spi1-bus-pins { 226 samsung,pins = "gpc-4", "gpc-5 227 samsung,pin-function = <S3C64X 228 samsung,pin-pud = <S3C64XX_PIN 229 }; 230 231 spi1_cs: spi1-cs-pins { 232 samsung,pins = "gpc-7"; 233 samsung,pin-function = <S3C64X 234 samsung,pin-pud = <S3C64XX_PIN 235 }; 236 237 sd0_cmd: sd0-cmd-pins { 238 samsung,pins = "gpg-1"; 239 samsung,pin-function = <S3C64X 240 samsung,pin-pud = <S3C64XX_PIN 241 }; 242 243 sd0_clk: sd0-clk-pins { 244 samsung,pins = "gpg-0"; 245 samsung,pin-function = <S3C64X 246 samsung,pin-pud = <S3C64XX_PIN 247 }; 248 249 sd0_bus1: sd0-bus1-pins { 250 samsung,pins = "gpg-2"; 251 samsung,pin-function = <S3C64X 252 samsung,pin-pud = <S3C64XX_PIN 253 }; 254 255 sd0_bus4: sd0-bus4-pins { 256 samsung,pins = "gpg-2", "gpg-3 257 samsung,pin-function = <S3C64X 258 samsung,pin-pud = <S3C64XX_PIN 259 }; 260 261 sd0_cd: sd0-cd-pins { 262 samsung,pins = "gpg-6"; 263 samsung,pin-function = <S3C64X 264 samsung,pin-pud = <S3C64XX_PIN 265 }; 266 267 sd1_cmd: sd1-cmd-pins { 268 samsung,pins = "gph-1"; 269 samsung,pin-function = <S3C64X 270 samsung,pin-pud = <S3C64XX_PIN 271 }; 272 273 sd1_clk: sd1-clk-pins { 274 samsung,pins = "gph-0"; 275 samsung,pin-function = <S3C64X 276 samsung,pin-pud = <S3C64XX_PIN 277 }; 278 279 sd1_bus1: sd1-bus1-pins { 280 samsung,pins = "gph-2"; 281 samsung,pin-function = <S3C64X 282 samsung,pin-pud = <S3C64XX_PIN 283 }; 284 285 sd1_bus4: sd1-bus4-pins { 286 samsung,pins = "gph-2", "gph-3 287 samsung,pin-function = <S3C64X 288 samsung,pin-pud = <S3C64XX_PIN 289 }; 290 291 sd1_bus8: sd1-bus8-pins { 292 samsung,pins = "gph-2", "gph-3 293 "gph-6", "gph- 294 samsung,pin-function = <S3C64X 295 samsung,pin-pud = <S3C64XX_PIN 296 }; 297 298 sd1_cd: sd1-cd-pins { 299 samsung,pins = "gpg-6"; 300 samsung,pin-function = <S3C64X 301 samsung,pin-pud = <S3C64XX_PIN 302 }; 303 304 sd2_cmd: sd2-cmd-pins { 305 samsung,pins = "gpc-4"; 306 samsung,pin-function = <S3C64X 307 samsung,pin-pud = <S3C64XX_PIN 308 }; 309 310 sd2_clk: sd2-clk-pins { 311 samsung,pins = "gpc-5"; 312 samsung,pin-function = <S3C64X 313 samsung,pin-pud = <S3C64XX_PIN 314 }; 315 316 sd2_bus1: sd2-bus1-pins { 317 samsung,pins = "gph-6"; 318 samsung,pin-function = <S3C64X 319 samsung,pin-pud = <S3C64XX_PIN 320 }; 321 322 sd2_bus4: sd2-bus4-pins { 323 samsung,pins = "gph-6", "gph-7 324 samsung,pin-function = <S3C64X 325 samsung,pin-pud = <S3C64XX_PIN 326 }; 327 328 i2s0_bus: i2s0-bus-pins { 329 samsung,pins = "gpd-0", "gpd-2 330 samsung,pin-function = <S3C64X 331 samsung,pin-pud = <S3C64XX_PIN 332 }; 333 334 i2s0_cdclk: i2s0-cdclk-pins { 335 samsung,pins = "gpd-1"; 336 samsung,pin-function = <S3C64X 337 samsung,pin-pud = <S3C64XX_PIN 338 }; 339 340 i2s1_bus: i2s1-bus-pins { 341 samsung,pins = "gpe-0", "gpe-2 342 samsung,pin-function = <S3C64X 343 samsung,pin-pud = <S3C64XX_PIN 344 }; 345 346 i2s1_cdclk: i2s1-cdclk-pins { 347 samsung,pins = "gpe-1"; 348 samsung,pin-function = <S3C64X 349 samsung,pin-pud = <S3C64XX_PIN 350 }; 351 352 i2s2_bus: i2s2-bus-pins { 353 /* S3C6410-only */ 354 samsung,pins = "gpc-4", "gpc-5 355 "gph-8", "gph- 356 samsung,pin-function = <S3C64X 357 samsung,pin-pud = <S3C64XX_PIN 358 }; 359 360 i2s2_cdclk: i2s2-cdclk-pins { 361 /* S3C6410-only */ 362 samsung,pins = "gph-7"; 363 samsung,pin-function = <S3C64X 364 samsung,pin-pud = <S3C64XX_PIN 365 }; 366 367 pcm0_bus: pcm0-bus-pins { 368 samsung,pins = "gpd-0", "gpd-2 369 samsung,pin-function = <S3C64X 370 samsung,pin-pud = <S3C64XX_PIN 371 }; 372 373 pcm0_extclk: pcm0-extclk-pins { 374 samsung,pins = "gpd-1"; 375 samsung,pin-function = <S3C64X 376 samsung,pin-pud = <S3C64XX_PIN 377 }; 378 379 pcm1_bus: pcm1-bus-pins { 380 samsung,pins = "gpe-0", "gpe-2 381 samsung,pin-function = <S3C64X 382 samsung,pin-pud = <S3C64XX_PIN 383 }; 384 385 pcm1_extclk: pcm1-extclk-pins { 386 samsung,pins = "gpe-1"; 387 samsung,pin-function = <S3C64X 388 samsung,pin-pud = <S3C64XX_PIN 389 }; 390 391 ac97_bus_0: ac97-bus-0-pins { 392 samsung,pins = "gpd-0", "gpd-1 393 samsung,pin-function = <S3C64X 394 samsung,pin-pud = <S3C64XX_PIN 395 }; 396 397 ac97_bus_1: ac97-bus-1-pins { 398 samsung,pins = "gpe-0", "gpe-1 399 samsung,pin-function = <S3C64X 400 samsung,pin-pud = <S3C64XX_PIN 401 }; 402 403 cam_port: cam-port-pins { 404 samsung,pins = "gpf-0", "gpf-1 405 "gpf-5", "gpf- 406 "gpf-9", "gpf- 407 samsung,pin-function = <S3C64X 408 samsung,pin-pud = <S3C64XX_PIN 409 }; 410 411 cam_rst: cam-rst-pins { 412 samsung,pins = "gpf-3"; 413 samsung,pin-function = <S3C64X 414 samsung,pin-pud = <S3C64XX_PIN 415 }; 416 417 cam_field: cam-field-pins { 418 /* S3C6410-only */ 419 samsung,pins = "gpb-4"; 420 samsung,pin-function = <S3C64X 421 samsung,pin-pud = <S3C64XX_PIN 422 }; 423 424 pwm_extclk: pwm-extclk-pins { 425 samsung,pins = "gpf-13"; 426 samsung,pin-function = <S3C64X 427 samsung,pin-pud = <S3C64XX_PIN 428 }; 429 430 pwm0_out: pwm0-out-pins { 431 samsung,pins = "gpf-14"; 432 samsung,pin-function = <S3C64X 433 samsung,pin-pud = <S3C64XX_PIN 434 }; 435 436 pwm1_out: pwm1-out-pins { 437 samsung,pins = "gpf-15"; 438 samsung,pin-function = <S3C64X 439 samsung,pin-pud = <S3C64XX_PIN 440 }; 441 442 clkout0: clkout-0-pins { 443 samsung,pins = "gpf-14"; 444 samsung,pin-function = <S3C64X 445 samsung,pin-pud = <S3C64XX_PIN 446 }; 447 448 keypad_col0_0: keypad-col0-0-pins { 449 samsung,pins = "gph-0"; 450 samsung,pin-function = <S3C64X 451 samsung,pin-pud = <S3C64XX_PIN 452 }; 453 454 keypad_col1_0: keypad-col1-0-pins { 455 samsung,pins = "gph-1"; 456 samsung,pin-function = <S3C64X 457 samsung,pin-pud = <S3C64XX_PIN 458 }; 459 460 keypad_col2_0: keypad-col2-0-pins { 461 samsung,pins = "gph-2"; 462 samsung,pin-function = <S3C64X 463 samsung,pin-pud = <S3C64XX_PIN 464 }; 465 466 keypad_col3_0: keypad-col3-0-pins { 467 samsung,pins = "gph-3"; 468 samsung,pin-function = <S3C64X 469 samsung,pin-pud = <S3C64XX_PIN 470 }; 471 472 keypad_col4_0: keypad-col4-0-pins { 473 samsung,pins = "gph-4"; 474 samsung,pin-function = <S3C64X 475 samsung,pin-pud = <S3C64XX_PIN 476 }; 477 478 keypad_col5_0: keypad-col5-0-pins { 479 samsung,pins = "gph-5"; 480 samsung,pin-function = <S3C64X 481 samsung,pin-pud = <S3C64XX_PIN 482 }; 483 484 keypad_col6_0: keypad-col6-0-pins { 485 samsung,pins = "gph-6"; 486 samsung,pin-function = <S3C64X 487 samsung,pin-pud = <S3C64XX_PIN 488 }; 489 490 keypad_col7_0: keypad-col7-0-pins { 491 samsung,pins = "gph-7"; 492 samsung,pin-function = <S3C64X 493 samsung,pin-pud = <S3C64XX_PIN 494 }; 495 496 keypad_col0_1: keypad-col0-1-pins { 497 samsung,pins = "gpl-0"; 498 samsung,pin-function = <S3C64X 499 samsung,pin-pud = <S3C64XX_PIN 500 }; 501 502 keypad_col1_1: keypad-col1-1-pins { 503 samsung,pins = "gpl-1"; 504 samsung,pin-function = <S3C64X 505 samsung,pin-pud = <S3C64XX_PIN 506 }; 507 508 keypad_col2_1: keypad-col2-1-pins { 509 samsung,pins = "gpl-2"; 510 samsung,pin-function = <S3C64X 511 samsung,pin-pud = <S3C64XX_PIN 512 }; 513 514 keypad_col3_1: keypad-col3-1-pins { 515 samsung,pins = "gpl-3"; 516 samsung,pin-function = <S3C64X 517 samsung,pin-pud = <S3C64XX_PIN 518 }; 519 520 keypad_col4_1: keypad-col4-1-pins { 521 samsung,pins = "gpl-4"; 522 samsung,pin-function = <S3C64X 523 samsung,pin-pud = <S3C64XX_PIN 524 }; 525 526 keypad_col5_1: keypad-col5-1-pins { 527 samsung,pins = "gpl-5"; 528 samsung,pin-function = <S3C64X 529 samsung,pin-pud = <S3C64XX_PIN 530 }; 531 532 keypad_col6_1: keypad-col6-1-pins { 533 samsung,pins = "gpl-6"; 534 samsung,pin-function = <S3C64X 535 samsung,pin-pud = <S3C64XX_PIN 536 }; 537 538 keypad_col7_1: keypad-col7-1-pins { 539 samsung,pins = "gpl-7"; 540 samsung,pin-function = <S3C64X 541 samsung,pin-pud = <S3C64XX_PIN 542 }; 543 544 keypad_row0_0: keypad-row0-0-pins { 545 samsung,pins = "gpk-8"; 546 samsung,pin-function = <S3C64X 547 samsung,pin-pud = <S3C64XX_PIN 548 }; 549 550 keypad_row1_0: keypad-row1-0-pins { 551 samsung,pins = "gpk-9"; 552 samsung,pin-function = <S3C64X 553 samsung,pin-pud = <S3C64XX_PIN 554 }; 555 556 keypad_row2_0: keypad-row2-0-pins { 557 samsung,pins = "gpk-10"; 558 samsung,pin-function = <S3C64X 559 samsung,pin-pud = <S3C64XX_PIN 560 }; 561 562 keypad_row3_0: keypad-row3-0-pins { 563 samsung,pins = "gpk-11"; 564 samsung,pin-function = <S3C64X 565 samsung,pin-pud = <S3C64XX_PIN 566 }; 567 568 keypad_row4_0: keypad-row4-0-pins { 569 samsung,pins = "gpk-12"; 570 samsung,pin-function = <S3C64X 571 samsung,pin-pud = <S3C64XX_PIN 572 }; 573 574 keypad_row5_0: keypad-row5-0-pins { 575 samsung,pins = "gpk-13"; 576 samsung,pin-function = <S3C64X 577 samsung,pin-pud = <S3C64XX_PIN 578 }; 579 580 keypad_row6_0: keypad-row6-0-pins { 581 samsung,pins = "gpk-14"; 582 samsung,pin-function = <S3C64X 583 samsung,pin-pud = <S3C64XX_PIN 584 }; 585 586 keypad_row7_0: keypad-row7-0-pins { 587 samsung,pins = "gpk-15"; 588 samsung,pin-function = <S3C64X 589 samsung,pin-pud = <S3C64XX_PIN 590 }; 591 592 keypad_row0_1: keypad-row0-1-pins { 593 samsung,pins = "gpn-0"; 594 samsung,pin-function = <S3C64X 595 samsung,pin-pud = <S3C64XX_PIN 596 }; 597 598 keypad_row1_1: keypad-row1-1-pins { 599 samsung,pins = "gpn-1"; 600 samsung,pin-function = <S3C64X 601 samsung,pin-pud = <S3C64XX_PIN 602 }; 603 604 keypad_row2_1: keypad-row2-1-pins { 605 samsung,pins = "gpn-2"; 606 samsung,pin-function = <S3C64X 607 samsung,pin-pud = <S3C64XX_PIN 608 }; 609 610 keypad_row3_1: keypad-row3-1-pins { 611 samsung,pins = "gpn-3"; 612 samsung,pin-function = <S3C64X 613 samsung,pin-pud = <S3C64XX_PIN 614 }; 615 616 keypad_row4_1: keypad-row4-1-pins { 617 samsung,pins = "gpn-4"; 618 samsung,pin-function = <S3C64X 619 samsung,pin-pud = <S3C64XX_PIN 620 }; 621 622 keypad_row5_1: keypad-row5-1-pins { 623 samsung,pins = "gpn-5"; 624 samsung,pin-function = <S3C64X 625 samsung,pin-pud = <S3C64XX_PIN 626 }; 627 628 keypad_row6_1: keypad-row6-1-pins { 629 samsung,pins = "gpn-6"; 630 samsung,pin-function = <S3C64X 631 samsung,pin-pud = <S3C64XX_PIN 632 }; 633 634 keypad_row7_1: keypad-row7-1-pins { 635 samsung,pins = "gpn-7"; 636 samsung,pin-function = <S3C64X 637 samsung,pin-pud = <S3C64XX_PIN 638 }; 639 640 lcd_ctrl: lcd-ctrl-pins { 641 samsung,pins = "gpj-8", "gpj-9 642 samsung,pin-function = <S3C64X 643 samsung,pin-pud = <S3C64XX_PIN 644 }; 645 646 lcd_data16: lcd-data-width16-pins { 647 samsung,pins = "gpi-3", "gpi-4 648 "gpi-7", "gpi- 649 "gpi-13", "gpi 650 "gpj-4", "gpj- 651 samsung,pin-function = <S3C64X 652 samsung,pin-pud = <S3C64XX_PIN 653 }; 654 655 lcd_data18: lcd-data-width18-pins { 656 samsung,pins = "gpi-2", "gpi-3 657 "gpi-6", "gpi- 658 "gpi-12", "gpi 659 "gpj-2", "gpj- 660 "gpj-6", "gpj- 661 samsung,pin-function = <S3C64X 662 samsung,pin-pud = <S3C64XX_PIN 663 }; 664 665 lcd_data24: lcd-data-width24-pins { 666 samsung,pins = "gpi-0", "gpi-1 667 "gpi-4", "gpi- 668 "gpi-8", "gpi- 669 "gpi-12", "gpi 670 "gpj-0", "gpj- 671 "gpj-4", "gpj- 672 samsung,pin-function = <S3C64X 673 samsung,pin-pud = <S3C64XX_PIN 674 }; 675 676 hsi_bus: hsi-bus-pins { 677 samsung,pins = "gpk-0", "gpk-1 678 "gpk-4", "gpk- 679 samsung,pin-function = <S3C64X 680 samsung,pin-pud = <S3C64XX_PIN 681 }; 682 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.