1# Copyright (c) 2022 Gerson Fernando Budke 2# SPDX-License-Identifier: Apache-2.0 3# 4# Sources: 5# - SAM-E70-S70-V70-V71-Family-Data-Sheet-DS60001527E (Revision E - 12/20) 6# 7# Pin codes: 8# 9# - 64 pins: j 10# - 100 pins: n 11# - 144 pins: q 12 13model: atmel,sam 14 15family: sams70-e70-v7x 16 17map: SAM_PINMUX 18 19series: [s70, e70, v70, v71] 20 21variants: 22 - pincode: j 23 series: [s70, e70, v70, v71] 24 exception: y 25 - pincode: n 26 series: [s70, e70, v70, v71] 27 - pincode: q 28 series: [s70, e70, v70, v71] 29 30pins: 31 pa0: 32 pincodes: [n, q] 33 periph: 34 - [a, pwmc0, pwmh0] 35 - [b, tc0, tioa0] 36 - [c, ebi, a17_ba1, [j, n]] 37 - [d, i2sc0, mck] 38 extra: 39 - [x, supc, wkup0] 40 pa1: 41 pincodes: [n, q] 42 periph: 43 - [a, pwmc0, pwml0] 44 - [b, tc0, tiob0] 45 - [c, ebi, a18, [j, n]] 46 - [d, i2sc0, ck] 47 extra: 48 - [x, supc, wkup1] 49 pa2: 50 pincodes: [n, q] 51 periph: 52 - [a, pwmc0, pwmh1] 53 - [c, dacc, datrg] 54 extra: 55 - [x, supc, wkup2] 56 pa3: 57 pincodes: [j, n, q] 58 periph: 59 - [a, twi0, twd] 60 - [b, lon, col1] 61 - [c, pmc, pck2] 62 extra: 63 - [x, pio, piodc0] 64 pa4: 65 pincodes: [j, n, q] 66 periph: 67 - [a, twi0, twck] 68 - [b, tc0, tclk0] 69 - [c, uart1, txd] 70 extra: 71 - [x, pio, piodc1] 72 - [x, supc, wkup3] 73 pa5: 74 pincodes: [j, n, q] 75 periph: 76 - [a, pwmc1, pwml3] 77 - [b, isi, d4] 78 - [c, uart1, rxd] 79 extra: 80 - [x, pio, piodc2] 81 - [x, supc, wkup4] 82 pa6: 83 pincodes: [j, n, q] 84 periph: 85 - [b, pmc, pck0] 86 - [c, uart1, txd] 87 pa7: 88 pincodes: [j, n, q] 89 periph: 90 - [b, pwmc0, pwmh3] 91 system: 92 - [s, supc, xin32] 93 pa8: 94 pincodes: [j, n, q] 95 periph: 96 - [a, pwmc1, pwmh3] 97 - [b, afe0, adtrg] 98 system: 99 - [s, supc, xout32] 100 pa9: 101 pincodes: [j, n, q] 102 periph: 103 - [a, uart0, rxd] 104 - [b, isi, d3] 105 - [c, pwmc0, pwmfi0] 106 extra: 107 - [x, pio, piodc3] 108 - [x, supc, wkup6] 109 pa10: 110 pincodes: [j, n, q] 111 periph: 112 - [a, uart0, txd] 113 - [b, pwmc0, pwmextrg0] 114 - [c, ssc, rd] 115 extra: 116 - [x, pio, piodc4] 117 pa11: 118 pincodes: [j, n, q] 119 periph: 120 - [a, qspi, qcs] 121 - [b, pwmc0, pwmh0] 122 - [c, pwmc1, pwml0] 123 extra: 124 - [x, pio, piodc5] 125 - [x, supc, wkup7] 126 pa12: 127 pincodes: [j, n, q] 128 periph: 129 - [a, qspi, qio1] 130 - [b, pwmc0, pwmh1] 131 - [c, pwmc1, pwmh0] 132 extra: 133 - [x, pio, piodc6] 134 pa13: 135 pincodes: [j, n, q] 136 periph: 137 - [a, qspi, qio0] 138 - [b, pwmc0, pwmh2] 139 - [c, pwmc1, pwml1] 140 extra: 141 - [x, pio, piodc7] 142 pa14: 143 pincodes: [j, n, q] 144 periph: 145 - [a, qspi, qsck] 146 - [b, pwmc0, pwmh3] 147 - [c, pwmc1, pwmh1] 148 extra: 149 - [x, pio, pioden1] 150 - [x, supc, wkup8] 151 pa15: 152 pincodes: [n, q] 153 periph: 154 - [a, ebi, d14, [j, n]] 155 - [b, tc0, tioa1] 156 - [c, pwmc0, pwml3] 157 - [d, i2sc0, ws] 158 pa16: 159 pincodes: [n, q] 160 periph: 161 - [a, ebi, d15, [j, n]] 162 - [b, tc0, tiob1] 163 - [c, pwmc0, pwml2] 164 - [d, i2sc0, di] 165 pa17: 166 pincodes: [n, q] 167 periph: 168 - [a, qspi, qio2] 169 - [b, pmc, pck1] 170 - [c, pwmc0, pwmh3] 171 extra: 172 - [x, afe0, ad6] 173 pa18: 174 pincodes: [n, q] 175 periph: 176 - [a, pwmc1, pwmextrg1] 177 - [b, pmc, pck2] 178 - [c, ebi, a14, [j, n]] 179 extra: 180 - [x, afe0, ad7] 181 pa19: 182 pincodes: [n, q] 183 periph: 184 - [b, pwmc0, pwml0] 185 - [c, ebi, a15, [j, n]] 186 - [d, i2sc1, mck] 187 extra: 188 - [x, afe0, ad8] 189 - [x, supc, wkup9] 190 pa20: 191 pincodes: [n, q] 192 periph: 193 - [b, pwmc0, pwml1] 194 - [c, ebi, a16_ba0, [j, n]] 195 - [d, i2sc1, ck] 196 extra: 197 - [x, afe0, ad9] 198 - [x, supc, wkup10] 199 pa21: 200 pincodes: [j, n, q] 201 periph: 202 - [a, usart1, rxd] 203 - [b, pmc, pck1] 204 - [c, pwmc1, pwmfi0] 205 extra: 206 - [x, afe1, ad1] 207 - [x, pio, piodcen2] 208 pa22: 209 pincodes: [j, n, q] 210 periph: 211 - [a, ssc, rk] 212 - [b, pwmc0, pwmextrg1] 213 - [c, ebi, ncs2, [j, n]] 214 extra: 215 - [x, pio, piodcclk] 216 pa23: 217 pincodes: [n, q] 218 periph: 219 - [a, usart1, sck] 220 - [b, pwmc0, pwmh0] 221 - [c, ebi, a19, [j, n]] 222 - [d, pwmc1, pwml2] 223 pa24: 224 pincodes: [j, n, q] 225 periph: 226 - [a, usart1, rts] 227 - [b, pwmc0, pwmh1] 228 - [c, ebi, a20, [j, n]] 229 - [d, isi, pck] 230 pa25: 231 pincodes: [n, q] 232 periph: 233 - [a, usart1, cts] 234 - [b, pwmc0, pwmh2] 235 - [c, ebi, a23, [j, n]] 236 - [d, hsmci, mcck] 237 pa26: 238 pincodes: [n, q] 239 periph: 240 - [a, usart1, dcd] 241 - [b, tc0, tioa2] 242 - [c, hsmci, mcda2] 243 - [d, pwmc1, pwmfi1] 244 pa27: 245 pincodes: [j, n, q] 246 periph: 247 - [a, usart1, dtr] 248 - [b, tc0, tiob2] 249 - [c, hsmci, mcda3] 250 - [d, isi, d7] 251 pa28: 252 pincodes: [n, q] 253 periph: 254 - [a, usart1, dsr] 255 - [b, tc0, tclk1] 256 - [c, hsmci, mccda] 257 - [d, pwmc1, pwmfi2] 258 pa29: 259 pincodes: [n, q] 260 periph: 261 - [a, usart1, ri] 262 - [b, tc0, tclk2] 263 pa30: 264 pincodes: [j, n, q] 265 periph: 266 - [a, pwmc0, pwml2] 267 - [b, pwmc1, pwmextrg0] 268 - [c, hsmci, mcda0] 269 - [d, i2sc0, do] 270 extra: 271 - [x, supc, wkup11] 272 pa31: 273 pincodes: [n, q] 274 periph: 275 - [a, spi0, npcs1] 276 - [b, pmc, pck2] 277 - [c, hsmci, mcda1] 278 - [d, pwmc1, pwmh2] 279 pb0: 280 pincodes: [j, n, q] 281 periph: 282 - [a, pwmc0, pwmh0] 283 - [c, usart0, rxd] 284 - [d, ssc, tf] 285 extra: 286 - [x, afe0, ad10] 287 - [x, rtc, out0] 288 pb1: 289 pincodes: [j, n, q] 290 periph: 291 - [a, pwmc0, pwmh1] 292 - [b, gmac, gtsucomp, [s70, v70]] 293 - [c, usart0, txd] 294 - [d, ssc, tk] 295 extra: 296 - [x, afe1, ad0] 297 - [x, rtc, out1] 298 pb2: 299 pincodes: [j, n, q] 300 periph: 301 - [a, can0, tx, [s70]] 302 - [c, usart0, cts] 303 - [d, spi0, npcs0] 304 extra: 305 - [x, afe0, ad5] 306 pb3: 307 pincodes: [j, n, q] 308 periph: 309 - [a, can0, rx, [s70]] 310 - [b, pmc, pck2] 311 - [c, usart0, rts] 312 - [d, isi, d2] 313 extra: 314 - [x, afe0, ad2] 315 - [x, supc, wkup12] 316 pb4: 317 pincodes: [j, n, q] 318 periph: 319 - [a, twi1, twd] 320 - [b, pwmc0, pwmh2] 321 - [c, mlb, clk, [s70, e70]] 322 - [d, usart1, txd] 323 system: 324 - [s, jtag, tdi] 325 pb5: 326 pincodes: [j, n, q] 327 periph: 328 - [a, twi1, twck] 329 - [b, pwmc0, pwml0] 330 - [c, mlb, dat, [s70, e70]] 331 - [d, ssc, td] 332 extra: 333 - [x, supc, wkup13] 334 system: 335 - [s, jtag, tdo] 336 - [s, swd, traceswo] 337 pb6: 338 pincodes: [j, n, q] 339 system: 340 - [s, jtag, tms] 341 - [s, swd, swdio] 342 pb7: 343 pincodes: [j, n, q] 344 system: 345 - [s, jtag, tck] 346 - [s, swd, swclk] 347 pb8: 348 pincodes: [j, n, q] 349 system: 350 - [s, supc, xout] 351 pb9: 352 pincodes: [j, n, q] 353 system: 354 - [s, supc, xin] 355 pb12: 356 pincodes: [j, n, q] 357 periph: 358 - [a, pwmc0, pwml1] 359 - [b, gmac, gtsucomp, [s70, v70]] 360 - [d, pcm, pck0] 361 system: 362 - [s, flash, erase] 363 pb13: 364 pincodes: [n, q] 365 periph: 366 - [a, pwmc0, pwml2] 367 - [b, pcm, pck0] 368 - [c, usart0, sck] 369 extra: 370 - [x, dacc, dac0] 371 pc0: 372 pincodes: [q] 373 periph: 374 - [a, ebi, d0, [j, n]] 375 - [b, pwmc0, pwml0] 376 extra: 377 - [x, afe1, ad9] 378 pc1: 379 pincodes: [q] 380 periph: 381 - [a, ebi, d1, [j, n]] 382 - [b, pwmc0, pwml1] 383 pc2: 384 pincodes: [q] 385 periph: 386 - [a, ebi, d2, [j, n]] 387 - [b, pwmc0, pwml2] 388 pc3: 389 pincodes: [q] 390 periph: 391 - [a, ebi, d3, [j, n]] 392 - [b, pwmc0, pwml3] 393 pc4: 394 pincodes: [q] 395 periph: 396 - [a, ebi, d4, [j, n]] 397 pc5: 398 pincodes: [q] 399 periph: 400 - [a, ebi, d5, [j, n]] 401 - [b, tc2, tioa6] 402 pc6: 403 pincodes: [q] 404 periph: 405 - [a, ebi, d6, [j, n]] 406 - [b, tc2, tiob6] 407 pc7: 408 pincodes: [q] 409 periph: 410 - [a, ebi, d7, [j, n]] 411 - [b, tc2, tclk6] 412 pc8: 413 pincodes: [q] 414 periph: 415 - [a, ebi, nwe_nwr0, [j, n]] 416 - [b, tc2, tioa7] 417 pc9: 418 pincodes: [q] 419 periph: 420 - [a, ebi, nandoe, [j, n]] 421 - [b, tc2, tiob7] 422 pc10: 423 pincodes: [q] 424 periph: 425 - [a, ebi, nandwe, [j, n]] 426 - [b, tc2, tclk7] 427 pc11: 428 pincodes: [q] 429 periph: 430 - [a, ebi, nrd, [j, n]] 431 - [b, tc2, tioa8] 432 pc12: 433 pincodes: [q] 434 periph: 435 - [a, ebi, ncs3, [j, n]] 436 - [b, tc2, tiob8] 437 - [c, can1, rx, [s70]] 438 extra: 439 - [x, afe1, ad3] 440 pc13: 441 pincodes: [q] 442 periph: 443 - [a, ebi, nwait, [j, n]] 444 - [b, pwmc0, pwmh3] 445 - [c, ebi, sda10, [j, n]] 446 extra: 447 - [x, afe1, ad1] 448 pc14: 449 pincodes: [q] 450 periph: 451 - [a, ebi, ncs0, [j, n]] 452 - [b, tc2, tclk8] 453 - [c, can1, tx, [s70]] 454 pc15: 455 pincodes: [q] 456 periph: 457 - [a, ebi, ncs1_sdcs, [j, n]] 458 - [b, pwmc0, pwml3] 459 extra: 460 - [x, afe1, ad2] 461 pc16: 462 pincodes: [q] 463 periph: 464 - [a, ebi, a21_nandale, [j, n]] 465 pc17: 466 pincodes: [q] 467 periph: 468 - [a, ebi, a22_nandcle, [j, n]] 469 pc18: 470 pincodes: [q] 471 periph: 472 - [a, ebi, a0_nbs0, [j, n]] 473 - [b, pwmc0, pwml1] 474 pc19: 475 pincodes: [q] 476 periph: 477 - [a, ebi, a1, [j, n]] 478 - [b, pwmc0, pwmh2] 479 pc20: 480 pincodes: [q] 481 periph: 482 - [a, ebi, a2, [j, n]] 483 - [b, pwmc0, pwml2] 484 pc21: 485 pincodes: [q] 486 periph: 487 - [a, ebi, a3, [j, n]] 488 - [b, pwmc0, pwmh3] 489 pc22: 490 pincodes: [q] 491 periph: 492 - [a, ebi, a4, [j, n]] 493 - [b, pwmc0, pwml3] 494 pc23: 495 pincodes: [q] 496 periph: 497 - [a, ebi, a5, [j, n]] 498 - [b, tc1, tioa3] 499 pc24: 500 pincodes: [q] 501 periph: 502 - [a, ebi, a6, [j, n]] 503 - [b, tc1, tiob3] 504 - [c, spi1, spck] 505 pc25: 506 pincodes: [q] 507 periph: 508 - [a, ebi, a7, [j, n]] 509 - [b, tc1, tclk3] 510 - [c, spi1, npcs0] 511 pc26: 512 pincodes: [q] 513 periph: 514 - [a, ebi, a8, [j, n]] 515 - [b, tc1, tioa4] 516 - [c, spi1, miso] 517 extra: 518 - [x, afe1, ad7] 519 pc27: 520 pincodes: [q] 521 periph: 522 - [a, ebi, a9, [j, n]] 523 - [b, tc1, tiob4] 524 - [c, spi1, mosi] 525 extra: 526 - [x, afe1, ad8] 527 pc28: 528 pincodes: [q] 529 periph: 530 - [a, ebi, a10, [j, n]] 531 - [b, tc1, tclk4] 532 - [c, spi1, npcs1] 533 pc29: 534 pincodes: [q] 535 periph: 536 - [a, ebi, a11, [j, n]] 537 - [b, tc1, tioa5] 538 - [c, spi1, npcs2] 539 extra: 540 - [x, afe1, ad4] 541 pc30: 542 pincodes: [q] 543 periph: 544 - [a, ebi, a12, [j, n]] 545 - [b, tc1, tiob5] 546 - [c, spi1, npcs3] 547 extra: 548 - [x, afe1, ad5] 549 pc31: 550 pincodes: [q] 551 periph: 552 - [a, ebi, a13, [j, n]] 553 - [b, tc1, tclk5] 554 extra: 555 - [x, afe1, ad6] 556 pd0: 557 pincodes: [j, n, q] 558 periph: 559 - [a, gmac, gtxck, [s70, v70]] 560 - [b, pwmc1, pwml0] 561 - [c, spi1, npcs1] 562 - [d, usart0, dcd] 563 extra: 564 - [x, dacc, dac1] 565 pd1: 566 pincodes: [j, n, q] 567 periph: 568 - [a, gmac, gtxen, [s70, v70]] 569 - [b, pwmc1, pwmh0] 570 - [c, spi1, npcs2] 571 - [d, usart0, dtr] 572 pd2: 573 pincodes: [j, n, q] 574 periph: 575 - [a, gmac, gtx0, [s70, v70]] 576 - [b, pwmc1, pwml1] 577 - [c, spi1, npcs3] 578 - [d, usart0, dsr] 579 pd3: 580 pincodes: [j, n, q] 581 periph: 582 - [a, gmac, gtx1, [s70, v70]] 583 - [b, pwmc1, pwmh1] 584 - [c, uart4, txd] 585 - [d, usart0, ri] 586 pd4: 587 pincodes: [j, n, q] 588 periph: 589 - [a, gmac, grxdv, [s70, v70]] 590 - [b, pwmc1, pwml2] 591 - [c, trace, d0] 592 - [d, usart2, dcd] 593 pd5: 594 pincodes: [j, n, q] 595 periph: 596 - [a, gmac, grx0, [s70, v70]] 597 - [b, pwmc1, pwmh2] 598 - [c, trace, d1] 599 - [d, usart2, dtr] 600 pd6: 601 pincodes: [j, n, q] 602 periph: 603 - [a, gmac, grx1, [s70, v70]] 604 - [b, pwmc1, pwml3] 605 - [c, trace, d2] 606 - [d, usart2, dsr] 607 pd7: 608 pincodes: [j, q] 609 periph: 610 - [a, gmac, grxer, [s70, v70]] 611 - [b, pwmc1, pwmh3] 612 - [c, trace, d3] 613 - [d, usart2, ri] 614 pd8: 615 pincodes: [j, n, q] 616 periph: 617 - [a, gmac, gmdc, [s70, v70]] 618 - [b, pwmc0, pwmfi1] 619 - [d, trace, clk] 620 pd9: 621 pincodes: [j, n, q] 622 periph: 623 - [a, gmac, gmdio, [s70, v70]] 624 - [b, pwmc0, pwmfi2] 625 - [c, afe1, adtrg] 626 pd10: 627 pincodes: [j, n, q] 628 periph: 629 - [a, gmac, gcrs, [s70, v70]] 630 - [b, pwmc0, pwml0] 631 - [c, ssc, td] 632 - [d, mlb, sig, [s70, e70]] 633 pd11: 634 pincodes: [j, n, q] 635 periph: 636 - [a, gmac, grx2, [s70, v70]] 637 - [b, pwmc0, pwmh0] 638 - [c, gmac, gtsucomp, [s70, v70]] 639 - [d, isi, d5] 640 pd12: 641 pincodes: [j, n, q] 642 periph: 643 - [a, gmac, grx3, [s70, v70]] 644 - [b, can1, tx, [s70]] 645 - [c, spi0, npcs2] 646 - [d, isi, d6] 647 pd13: 648 pincodes: [n, q] 649 periph: 650 - [a, gmac, gcol, [s70, v70]] 651 - [c, ebi, sda10, [j, n]] 652 pd14: 653 pincodes: [n, q] 654 periph: 655 - [a, gmac, grxck, [s70, v70]] 656 - [c, ebi, sdcke, [j, n]] 657 pd15: 658 pincodes: [n, q] 659 periph: 660 - [a, gmac, gtx2, [s70, v70]] 661 - [b, usart2, rxd] 662 - [c, ebi, nwr1_nbs1, [j, n]] 663 pd16: 664 pincodes: [n, q] 665 periph: 666 - [a, gmac, gtx3, [s70, v70]] 667 - [b, usart2, txd] 668 - [c, ebi, ras, [j, n]] 669 pd17: 670 pincodes: [n, q] 671 periph: 672 - [a, gmac, gtxer, [s70, v70]] 673 - [b, usart2, sck] 674 - [c, ebi, cas, [j, n]] 675 pd18: 676 pincodes: [n, q] 677 periph: 678 - [a, ebi, ncs1_sdcs, [j, n]] 679 - [b, usart2, rts] 680 - [c, uart4, rxd] 681 pd19: 682 pincodes: [n, q] 683 periph: 684 - [a, ebi, ncs3, [j, n]] 685 - [b, usart2, cts] 686 - [c, uart4, txd] 687 pd20: 688 pincodes: [n, q] 689 periph: 690 - [a, pwmc0, pwmh0] 691 - [b, spi0, miso] 692 - [c, gmac, gtsucomp, [s70, v70]] 693 pd21: 694 pincodes: [j, n, q] 695 periph: 696 - [a, pwmc0, pwmh1] 697 - [b, spi0, mosi] 698 - [c, tc3, tioa11] 699 - [d, isi, d1] 700 pd22: 701 pincodes: [j, n, q] 702 periph: 703 - [a, pwmc0, pwmh2] 704 - [b, spi0, spck] 705 - [c, tc3, tiob11] 706 - [d, isi, d0] 707 pd23: 708 pincodes: [q] 709 periph: 710 - [a, pwmc0, pwmh3] 711 - [c, ebi, sdck, [j, n]] 712 pd24: 713 pincodes: [j, n, q] 714 periph: 715 - [a, pwmc0, pwml0] 716 - [b, ssc, rf] 717 - [c, tc3, tclk11] 718 - [d, isi, hsync] 719 pd25: 720 pincodes: [j, n, q] 721 periph: 722 - [a, pwmc0, pwml1] 723 - [b, spi0, npcs1] 724 - [c, uart2, rxd] 725 - [d, isi, vsync] 726 pd26: 727 pincodes: [j, n, q] 728 periph: 729 - [a, pwmc0, pwml2] 730 - [b, ssc, td] 731 - [c, uart2, txd] 732 - [d, uart1, txd] 733 pd27: 734 pincodes: [n, q] 735 periph: 736 - [a, pwmc0, pwml3] 737 - [b, spi0, npcs3] 738 - [c, twi2, twd] 739 - [d, isi, d8] 740 pd28: 741 pincodes: [n, q] 742 periph: 743 - [a, uart3, rxd] 744 - [b, can1, rx, [s70]] 745 - [c, twi2, twck] 746 - [d, isi, d9] 747 extra: 748 - [x, supc, wkup5] 749 pd29: 750 pincodes: [q] 751 periph: 752 - [c, ebi, sdwe, [j, n]] 753 pd30: 754 pincodes: [n, q] 755 periph: 756 - [a, uart3, txd] 757 - [d, isi, d10] 758 extra: 759 - [x, afe0, ad0] 760 pd31: 761 pincodes: [j, n, q] 762 periph: 763 - [a, qspi, qio3] 764 - [b, uart3, txd] 765 - [c, pmc, pck2] 766 - [d, isi, d11] 767 pe0: 768 pincodes: [q] 769 periph: 770 - [a, ebi, d8, [j, n]] 771 - [b, tc3, tioa9] 772 - [c, i2sc1, ws] 773 extra: 774 - [x, afe1, ad11] 775 pe1: 776 pincodes: [q] 777 periph: 778 - [a, ebi, d9, [j, n]] 779 - [b, tc3, tiob9] 780 - [c, i2sc1, do] 781 pe2: 782 pincodes: [q] 783 periph: 784 - [a, ebi, d10, [j, n]] 785 - [b, tc3, tclk9] 786 - [c, i2sc1, di] 787 pe3: 788 pincodes: [q] 789 periph: 790 - [a, ebi, d11, [j, n]] 791 - [b, tc3, tioa10] 792 extra: 793 - [x, afe1, ad10] 794 pe4: 795 pincodes: [q] 796 periph: 797 - [a, ebi, d12, [j, n]] 798 - [b, tc3, tiob10] 799 extra: 800 - [x, afe1, ad4] 801 pe5: 802 pincodes: [q] 803 periph: 804 - [a, ebi, d13, [j, n]] 805 - [b, tc3, tclk10] 806 extra: 807 - [x, afe1, ad3] 808