1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * at91-sama5d2_xplained.dts - Device Tree fil 4 * 5 * Copyright (C) 2015 Atmel, 6 * 2015 Nicolas Ferre <nicolas.f 7 */ 8 /dts-v1/; 9 #include "sama5d2.dtsi" 10 #include "sama5d2-pinfunc.h" 11 #include <dt-bindings/mfd/atmel-flexcom.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/input/input.h> 14 #include <dt-bindings/regulator/active-semi,89 15 16 / { 17 model = "Atmel SAMA5D2 Xplained"; 18 compatible = "atmel,sama5d2-xplained", 19 20 aliases { 21 serial0 = &uart1; /* DBG 22 i2c0 = &i2c0; 23 i2c1 = &i2c1; 24 i2c2 = &i2c2; /* XPR 25 }; 26 27 chosen { 28 stdout-path = "serial0:115200n 29 }; 30 31 clocks { 32 slow_xtal { 33 clock-frequency = <327 34 }; 35 36 main_xtal { 37 clock-frequency = <120 38 }; 39 }; 40 41 ahb { 42 usb0: gadget@300000 { 43 atmel,vbus-gpio = <&pi 44 pinctrl-names = "defau 45 pinctrl-0 = <&pinctrl_ 46 status = "okay"; 47 }; 48 49 usb1: ohci@400000 { 50 num-ports = <3>; 51 atmel,vbus-gpio = <0 / 52 &pi 53 0 54 >; 55 pinctrl-names = "defau 56 pinctrl-0 = <&pinctrl_ 57 status = "okay"; 58 }; 59 60 usb2: ehci@500000 { 61 status = "okay"; 62 }; 63 64 sdmmc0: sdio-host@a0000000 { 65 bus-width = <8>; 66 pinctrl-names = "defau 67 pinctrl-0 = <&pinctrl_ 68 non-removable; 69 mmc-ddr-3_3v; 70 status = "okay"; 71 }; 72 73 sdmmc1: sdio-host@b0000000 { 74 bus-width = <4>; 75 pinctrl-names = "defau 76 pinctrl-0 = <&pinctrl_ 77 status = "okay"; /* co 78 vqmmc-supply = <&vdd_3 79 vmmc-supply = <&vdd_3v 80 }; 81 82 apb { 83 qspi0: spi@f0020000 { 84 pinctrl-names 85 pinctrl-0 = <& 86 status = "disa 87 88 flash@0 { 89 #addre 90 #size- 91 compat 92 reg = 93 spi-ma 94 spi-tx 95 spi-rx 96 m25p,f 97 98 at91bo 99 100 101 }; 102 103 bootlo 104 105 106 }; 107 108 bootlo 109 110 111 }; 112 113 bootlo 114 115 116 }; 117 118 dtb@18 119 120 121 }; 122 123 kernel 124 125 126 }; 127 128 misc@8 129 130 131 }; 132 }; 133 }; 134 135 spi0: spi@f8000000 { 136 pinctrl-names 137 pinctrl-0 = <& 138 status = "okay 139 140 flash@0 { 141 compat 142 reg = 143 spi-ma 144 }; 145 }; 146 147 macb0: ethernet@f80080 148 pinctrl-names 149 pinctrl-0 = <& 150 #address-cells 151 #size-cells = 152 phy-mode = "rm 153 status = "okay 154 155 ethernet-phy@1 156 reg = 157 interr 158 interr 159 }; 160 }; 161 162 tcb0: timer@f800c000 { 163 timer0: timer@ 164 compat 165 reg = 166 }; 167 168 timer1: timer@ 169 compat 170 reg = 171 }; 172 }; 173 174 uart1: serial@f8020000 175 pinctrl-names 176 pinctrl-0 = <& 177 atmel,use-dma- 178 atmel,use-dma- 179 status = "okay 180 }; 181 182 i2c0: i2c@f8028000 { 183 dmas = <0>, <0 184 pinctrl-names 185 pinctrl-0 = <& 186 pinctrl-1 = <& 187 sda-gpios = <& 188 scl-gpios = <& 189 i2c-sda-hold-t 190 status = "okay 191 192 pmic@5b { 193 compat 194 reg = 195 active 196 status 197 198 regula 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 }; 301 302 charge 303 304 305 306 307 308 309 310 311 312 313 314 315 }; 316 }; 317 }; 318 319 pwm0: pwm@f802c000 { 320 pinctrl-names 321 pinctrl-0 = <& 322 status = "disa 323 }; 324 325 flx0: flexcom@f8034000 326 atmel,flexcom- 327 status = "disa 328 329 uart5: serial@ 330 dmas = 331 pinctr 332 pinctr 333 status 334 }; 335 336 i2c2: i2c@600 337 dmas = 338 pinctr 339 pinctr 340 pinctr 341 sda-gp 342 scl-gp 343 i2c-sd 344 i2c-an 345 i2c-di 346 i2c-di 347 status 348 }; 349 }; 350 351 poweroff@f8048010 { 352 debounce-delay 353 atmel,wakeup-r 354 355 input@0 { 356 reg = 357 }; 358 }; 359 360 watchdog@f8048040 { 361 status = "okay 362 }; 363 364 i2s0: i2s@f8050000 { 365 pinctrl-names 366 pinctrl-0 = <& 367 status = "disa 368 }; 369 370 can0: can@f8054000 { 371 pinctrl-names 372 pinctrl-0 = <& 373 status = "okay 374 }; 375 376 uart3: serial@fc008000 377 atmel,use-dma- 378 atmel,use-dma- 379 pinctrl-names 380 pinctrl-0 = <& 381 status = "okay 382 }; 383 384 flx4: flexcom@fc018000 385 atmel,flexcom- 386 status = "okay 387 388 i2c6: i2c@600 389 dmas = 390 pinctr 391 pinctr 392 pinctr 393 sda-gp 394 scl-gp 395 i2c-an 396 i2c-di 397 i2c-di 398 status 399 }; 400 }; 401 402 i2c1: i2c@fc028000 { 403 dmas = <0>, <0 404 pinctrl-names 405 pinctrl-0 = <& 406 i2c-analog-fil 407 i2c-digital-fi 408 i2c-digital-fi 409 pinctrl-1 = <& 410 sda-gpios = <& 411 scl-gpios = <& 412 status = "okay 413 414 at24@54 { 415 compat 416 reg = 417 pagesi 418 }; 419 }; 420 421 adc: adc@fc030000 { 422 vddana-supply 423 vref-supply = 424 pinctrl-names 425 pinctrl-0 = <& 426 status = "okay 427 }; 428 429 pinctrl@fc038000 { 430 /* 431 * There is no 432 * is not requ 433 * the muxing 434 * Requesting 435 * encouraged 436 * disable bia 437 * state when 438 */ 439 pinctrl_adc_de 440 pinmux 441 bias-d 442 }; 443 444 pinctrl_can0_d 445 pinmux 446 447 bias-d 448 }; 449 450 pinctrl_can1_d 451 pinmux 452 453 bias-d 454 }; 455 456 /* 457 * The ADTRG p 458 * In here it' 459 * connect it 460 * Trigger can 461 * or any edge 462 * to pull-dow 463 * needs. 464 */ 465 pinctrl_adtrg_ 466 pinmux 467 bias-p 468 }; 469 470 pinctrl_charge 471 pinmux 472 bias-d 473 }; 474 475 pinctrl_charge 476 pinmux 477 bias-d 478 }; 479 480 pinctrl_charge 481 pinmux 482 bias-p 483 }; 484 485 pinctrl_classd 486 pinmux 487 488 bias-p 489 }; 490 491 pinctrl_classd 492 pinmux 493 494 bias-p 495 }; 496 497 pinctrl_flx0_d 498 pinmux 499 500 bias-d 501 }; 502 503 pinctrl_flx4_d 504 pinmux 505 506 bias-d 507 }; 508 509 pinctrl_flx4_g 510 pinmux 511 512 bias-d 513 }; 514 515 pinctrl_i2c0_d 516 pinmux 517 518 bias-d 519 }; 520 521 pinctrl_i2c0_g 522 pinmux 523 524 bias-d 525 }; 526 527 pinctrl_i2c1_d 528 pinmux 529 530 bias-d 531 }; 532 533 pinctrl_i2c1_g 534 pinmux 535 536 bias-d 537 }; 538 539 pinctrl_i2c2_g 540 pinmux 541 542 bias-d 543 }; 544 545 pinctrl_i2s0_d 546 pinmux 547 548 549 550 551 bias-d 552 }; 553 554 pinctrl_i2s1_d 555 pinmux 556 557 558 559 560 bias-d 561 }; 562 563 pinctrl_key_gp 564 pinmux 565 bias-p 566 }; 567 568 pinctrl_led_gp 569 pinmux 570 571 572 bias-p 573 }; 574 575 pinctrl_macb0_ 576 pinmux 577 578 579 580 581 582 583 584 585 586 bias-d 587 }; 588 589 pinctrl_macb0_ 590 pinmux 591 bias-d 592 }; 593 594 pinctrl_qspi0_ 595 sck_cs 596 597 598 599 }; 600 601 data { 602 603 604 605 606 607 }; 608 }; 609 610 pinctrl_sdmmc0 611 cmd_da 612 613 614 615 616 617 618 619 620 621 622 }; 623 624 ck_cd_ 625 626 627 628 629 }; 630 }; 631 632 pinctrl_sdmmc1 633 cmd_da 634 635 636 637 638 639 640 }; 641 642 conf-c 643 644 645 646 }; 647 }; 648 649 pinctrl_spi0_d 650 pinmux 651 652 653 654 bias-d 655 }; 656 657 pinctrl_uart1_ 658 pinmux 659 660 bias-d 661 }; 662 663 pinctrl_uart3_ 664 pinmux 665 666 bias-d 667 }; 668 669 pinctrl_usb_de 670 pinmux 671 bias-d 672 }; 673 674 pinctrl_usba_v 675 pinmux 676 bias-d 677 }; 678 679 pinctrl_pwm0_p 680 pinmux 681 682 bias-p 683 }; 684 }; 685 686 classd: classd@fc04800 687 pinctrl-names 688 pinctrl-0 = <& 689 atmel,pwm-type 690 atmel,non-over 691 status = "okay 692 }; 693 694 i2s1: i2s@fc04c000 { 695 pinctrl-names 696 pinctrl-0 = <& 697 status = "disa 698 }; 699 700 can1: can@fc050000 { 701 pinctrl-names 702 pinctrl-0 = <& 703 status = "okay 704 }; 705 }; 706 }; 707 708 gpio-keys { 709 compatible = "gpio-keys"; 710 711 pinctrl-names = "default"; 712 pinctrl-0 = <&pinctrl_key_gpio 713 714 button { 715 label = "PB_USER"; 716 gpios = <&pioA PIN_PB9 717 linux,code = <KEY_PROG 718 wakeup-source; 719 }; 720 }; 721 722 leds { 723 compatible = "gpio-leds"; 724 pinctrl-names = "default"; 725 pinctrl-0 = <&pinctrl_led_gpio 726 status = "okay"; /* conflict w 727 728 led-red { 729 label = "red"; 730 gpios = <&pioA PIN_PB6 731 }; 732 733 734 led-green { 735 label = "green"; 736 gpios = <&pioA PIN_PB5 737 }; 738 739 led-blue { 740 label = "blue"; 741 gpios = <&pioA PIN_PB0 742 linux,default-trigger 743 }; 744 }; 745 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.