1 /* 2 * Copyright 2015 - Maxime Coquelin <mcoquelin. 3 * 4 * This file is dual-licensed: you can use it 5 * of the GPL or the X11 license, at your opti 6 * licensing only applies to this file, and no 7 * whole. 8 * 9 * a) This file is free software; you can red 10 * modify it under the terms of the GNU Ge 11 * published by the Free Software Foundati 12 * License, or (at your option) any later 13 * 14 * This file is distributed in the hope th 15 * but WITHOUT ANY WARRANTY; without even 16 * MERCHANTABILITY or FITNESS FOR A PARTIC 17 * GNU General Public License for more det 18 * 19 * You should have received a copy of the 20 * License along with this file; if not, w 21 * Software Foundation, Inc., 51 Franklin 22 * MA 02110-1301 USA 23 * 24 * Or, alternatively, 25 * 26 * b) Permission is hereby granted, free of c 27 * obtaining a copy of this software and a 28 * files (the "Software"), to deal in the 29 * restriction, including without limitati 30 * copy, modify, merge, publish, distribut 31 * sell copies of the Software, and to per 32 * Software is furnished to do so, subject 33 * conditions: 34 * 35 * The above copyright notice and this per 36 * included in all copies or substantial p 37 * 38 * THE SOFTWARE IS PROVIDED "AS IS", WITHO 39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT L 40 * OF MERCHANTABILITY, FITNESS FOR A PARTI 41 * NONINFRINGEMENT. IN NO EVENT SHALL THE 42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGE 43 * WHETHER IN AN ACTION OF CONTRACT, TORT 44 * FROM, OUT OF OR IN CONNECTION WITH THE 45 * OTHER DEALINGS IN THE SOFTWARE. 46 */ 47 48 #include "../armv7-m.dtsi" 49 #include <dt-bindings/clock/stm32fx-clock.h> 50 #include <dt-bindings/mfd/stm32f4-rcc.h> 51 52 / { 53 #address-cells = <1>; 54 #size-cells = <1>; 55 56 clocks { 57 clk_hse: clk-hse { 58 #clock-cells = <0>; 59 compatible = "fixed-cl 60 clock-frequency = <0>; 61 }; 62 63 clk_lse: clk-lse { 64 #clock-cells = <0>; 65 compatible = "fixed-cl 66 clock-frequency = <327 67 }; 68 69 clk_lsi: clk-lsi { 70 #clock-cells = <0>; 71 compatible = "fixed-cl 72 clock-frequency = <320 73 }; 74 75 clk_i2s_ckin: i2s-ckin { 76 #clock-cells = <0>; 77 compatible = "fixed-cl 78 clock-frequency = <0>; 79 }; 80 }; 81 82 soc { 83 romem: efuse@1fff7800 { 84 compatible = "st,stm32 85 reg = <0x1fff7800 0x40 86 #address-cells = <1>; 87 #size-cells = <1>; 88 ts_cal1: calib@22c { 89 reg = <0x22c 0 90 }; 91 ts_cal2: calib@22e { 92 reg = <0x22e 0 93 }; 94 }; 95 96 timers2: timers@40000000 { 97 #address-cells = <1>; 98 #size-cells = <0>; 99 compatible = "st,stm32 100 reg = <0x40000000 0x40 101 clocks = <&rcc 0 STM32 102 clock-names = "int"; 103 status = "disabled"; 104 105 pwm { 106 compatible = " 107 #pwm-cells = < 108 status = "disa 109 }; 110 111 timer@1 { 112 compatible = " 113 reg = <1>; 114 status = "disa 115 }; 116 }; 117 118 timers3: timers@40000400 { 119 #address-cells = <1>; 120 #size-cells = <0>; 121 compatible = "st,stm32 122 reg = <0x40000400 0x40 123 clocks = <&rcc 0 STM32 124 clock-names = "int"; 125 status = "disabled"; 126 127 pwm { 128 compatible = " 129 #pwm-cells = < 130 status = "disa 131 }; 132 133 timer@2 { 134 compatible = " 135 reg = <2>; 136 status = "disa 137 }; 138 }; 139 140 timers4: timers@40000800 { 141 #address-cells = <1>; 142 #size-cells = <0>; 143 compatible = "st,stm32 144 reg = <0x40000800 0x40 145 clocks = <&rcc 0 STM32 146 clock-names = "int"; 147 status = "disabled"; 148 149 pwm { 150 compatible = " 151 #pwm-cells = < 152 status = "disa 153 }; 154 155 timer@3 { 156 compatible = " 157 reg = <3>; 158 status = "disa 159 }; 160 }; 161 162 timers5: timers@40000c00 { 163 #address-cells = <1>; 164 #size-cells = <0>; 165 compatible = "st,stm32 166 reg = <0x40000C00 0x40 167 clocks = <&rcc 0 STM32 168 clock-names = "int"; 169 status = "disabled"; 170 171 pwm { 172 compatible = " 173 #pwm-cells = < 174 status = "disa 175 }; 176 177 timer@4 { 178 compatible = " 179 reg = <4>; 180 status = "disa 181 }; 182 }; 183 184 timers6: timers@40001000 { 185 #address-cells = <1>; 186 #size-cells = <0>; 187 compatible = "st,stm32 188 reg = <0x40001000 0x40 189 clocks = <&rcc 0 STM32 190 clock-names = "int"; 191 status = "disabled"; 192 193 timer@5 { 194 compatible = " 195 reg = <5>; 196 status = "disa 197 }; 198 }; 199 200 timers7: timers@40001400 { 201 #address-cells = <1>; 202 #size-cells = <0>; 203 compatible = "st,stm32 204 reg = <0x40001400 0x40 205 clocks = <&rcc 0 STM32 206 clock-names = "int"; 207 status = "disabled"; 208 209 timer@6 { 210 compatible = " 211 reg = <6>; 212 status = "disa 213 }; 214 }; 215 216 timers12: timers@40001800 { 217 #address-cells = <1>; 218 #size-cells = <0>; 219 compatible = "st,stm32 220 reg = <0x40001800 0x40 221 clocks = <&rcc 0 STM32 222 clock-names = "int"; 223 status = "disabled"; 224 225 pwm { 226 compatible = " 227 #pwm-cells = < 228 status = "disa 229 }; 230 231 timer@11 { 232 compatible = " 233 reg = <11>; 234 status = "disa 235 }; 236 }; 237 238 timers13: timers@40001c00 { 239 compatible = "st,stm32 240 reg = <0x40001C00 0x40 241 clocks = <&rcc 0 STM32 242 clock-names = "int"; 243 status = "disabled"; 244 245 pwm { 246 compatible = " 247 #pwm-cells = < 248 status = "disa 249 }; 250 }; 251 252 timers14: timers@40002000 { 253 compatible = "st,stm32 254 reg = <0x40002000 0x40 255 clocks = <&rcc 0 STM32 256 clock-names = "int"; 257 status = "disabled"; 258 259 pwm { 260 compatible = " 261 #pwm-cells = < 262 status = "disa 263 }; 264 }; 265 266 rtc: rtc@40002800 { 267 compatible = "st,stm32 268 reg = <0x40002800 0x40 269 clocks = <&rcc 1 CLK_R 270 assigned-clocks = <&rc 271 assigned-clock-parents 272 interrupt-parent = <&e 273 interrupts = <17 1>; 274 st,syscfg = <&pwrcfg 0 275 status = "disabled"; 276 }; 277 278 iwdg: watchdog@40003000 { 279 compatible = "st,stm32 280 reg = <0x40003000 0x40 281 clocks = <&clk_lsi>; 282 clock-names = "lsi"; 283 status = "disabled"; 284 }; 285 286 spi2: spi@40003800 { 287 #address-cells = <1>; 288 #size-cells = <0>; 289 compatible = "st,stm32 290 reg = <0x40003800 0x40 291 interrupts = <36>; 292 clocks = <&rcc 0 STM32 293 status = "disabled"; 294 }; 295 296 spi3: spi@40003c00 { 297 #address-cells = <1>; 298 #size-cells = <0>; 299 compatible = "st,stm32 300 reg = <0x40003c00 0x40 301 interrupts = <51>; 302 clocks = <&rcc 0 STM32 303 status = "disabled"; 304 }; 305 306 usart2: serial@40004400 { 307 compatible = "st,stm32 308 reg = <0x40004400 0x40 309 interrupts = <38>; 310 clocks = <&rcc 0 STM32 311 status = "disabled"; 312 }; 313 314 usart3: serial@40004800 { 315 compatible = "st,stm32 316 reg = <0x40004800 0x40 317 interrupts = <39>; 318 clocks = <&rcc 0 STM32 319 status = "disabled"; 320 dmas = <&dma1 1 4 0x40 321 <&dma1 3 4 0x40 322 dma-names = "rx", "tx" 323 }; 324 325 usart4: serial@40004c00 { 326 compatible = "st,stm32 327 reg = <0x40004c00 0x40 328 interrupts = <52>; 329 clocks = <&rcc 0 STM32 330 status = "disabled"; 331 }; 332 333 usart5: serial@40005000 { 334 compatible = "st,stm32 335 reg = <0x40005000 0x40 336 interrupts = <53>; 337 clocks = <&rcc 0 STM32 338 status = "disabled"; 339 }; 340 341 i2c1: i2c@40005400 { 342 compatible = "st,stm32 343 reg = <0x40005400 0x40 344 interrupts = <31>, 345 <32>; 346 resets = <&rcc STM32F4 347 clocks = <&rcc 0 STM32 348 #address-cells = <1>; 349 #size-cells = <0>; 350 status = "disabled"; 351 }; 352 353 i2c3: i2c@40005c00 { 354 compatible = "st,stm32 355 reg = <0x40005c00 0x40 356 interrupts = <72>, 357 <73>; 358 resets = <&rcc STM32F4 359 clocks = <&rcc 0 STM32 360 #address-cells = <1>; 361 #size-cells = <0>; 362 status = "disabled"; 363 }; 364 365 can1: can@40006400 { 366 compatible = "st,stm32 367 reg = <0x40006400 0x20 368 interrupts = <19>, <20 369 interrupt-names = "tx" 370 resets = <&rcc STM32F4 371 clocks = <&rcc 0 STM32 372 st,can-primary; 373 st,gcan = <&gcan>; 374 status = "disabled"; 375 }; 376 377 gcan: gcan@40006600 { 378 compatible = "st,stm32 379 reg = <0x40006600 0x20 380 clocks = <&rcc 0 STM32 381 }; 382 383 can2: can@40006800 { 384 compatible = "st,stm32 385 reg = <0x40006800 0x20 386 interrupts = <63>, <64 387 interrupt-names = "tx" 388 resets = <&rcc STM32F4 389 clocks = <&rcc 0 STM32 390 st,can-secondary; 391 st,gcan = <&gcan>; 392 status = "disabled"; 393 }; 394 395 dac: dac@40007400 { 396 compatible = "st,stm32 397 reg = <0x40007400 0x40 398 resets = <&rcc STM32F4 399 clocks = <&rcc 0 STM32 400 clock-names = "pclk"; 401 #address-cells = <1>; 402 #size-cells = <0>; 403 status = "disabled"; 404 405 dac1: dac@1 { 406 compatible = " 407 #io-channel-ce 408 reg = <1>; 409 status = "disa 410 }; 411 412 dac2: dac@2 { 413 compatible = " 414 #io-channel-ce 415 reg = <2>; 416 status = "disa 417 }; 418 }; 419 420 usart7: serial@40007800 { 421 compatible = "st,stm32 422 reg = <0x40007800 0x40 423 interrupts = <82>; 424 clocks = <&rcc 0 STM32 425 status = "disabled"; 426 }; 427 428 usart8: serial@40007c00 { 429 compatible = "st,stm32 430 reg = <0x40007c00 0x40 431 interrupts = <83>; 432 clocks = <&rcc 0 STM32 433 status = "disabled"; 434 }; 435 436 timers1: timers@40010000 { 437 #address-cells = <1>; 438 #size-cells = <0>; 439 compatible = "st,stm32 440 reg = <0x40010000 0x40 441 clocks = <&rcc 0 STM32 442 clock-names = "int"; 443 status = "disabled"; 444 445 pwm { 446 compatible = " 447 #pwm-cells = < 448 status = "disa 449 }; 450 451 timer@0 { 452 compatible = " 453 reg = <0>; 454 status = "disa 455 }; 456 }; 457 458 timers8: timers@40010400 { 459 #address-cells = <1>; 460 #size-cells = <0>; 461 compatible = "st,stm32 462 reg = <0x40010400 0x40 463 clocks = <&rcc 0 STM32 464 clock-names = "int"; 465 status = "disabled"; 466 467 pwm { 468 compatible = " 469 #pwm-cells = < 470 status = "disa 471 }; 472 473 timer@7 { 474 compatible = " 475 reg = <7>; 476 status = "disa 477 }; 478 }; 479 480 usart1: serial@40011000 { 481 compatible = "st,stm32 482 reg = <0x40011000 0x40 483 interrupts = <37>; 484 clocks = <&rcc 0 STM32 485 status = "disabled"; 486 dmas = <&dma2 2 4 0x40 487 <&dma2 7 4 0x40 488 dma-names = "rx", "tx" 489 }; 490 491 usart6: serial@40011400 { 492 compatible = "st,stm32 493 reg = <0x40011400 0x40 494 interrupts = <71>; 495 clocks = <&rcc 0 STM32 496 status = "disabled"; 497 }; 498 499 adc: adc@40012000 { 500 compatible = "st,stm32 501 reg = <0x40012000 0x40 502 interrupts = <18>; 503 clocks = <&rcc 0 STM32 504 clock-names = "adc"; 505 interrupt-controller; 506 #interrupt-cells = <1> 507 #address-cells = <1>; 508 #size-cells = <0>; 509 status = "disabled"; 510 511 adc1: adc@0 { 512 compatible = " 513 #io-channel-ce 514 reg = <0x0>; 515 clocks = <&rcc 516 interrupt-pare 517 interrupts = < 518 dmas = <&dma2 519 dma-names = "r 520 status = "disa 521 }; 522 523 adc2: adc@100 { 524 compatible = " 525 #io-channel-ce 526 reg = <0x100>; 527 clocks = <&rcc 528 interrupt-pare 529 interrupts = < 530 dmas = <&dma2 531 dma-names = "r 532 status = "disa 533 }; 534 535 adc3: adc@200 { 536 compatible = " 537 #io-channel-ce 538 reg = <0x200>; 539 clocks = <&rcc 540 interrupt-pare 541 interrupts = < 542 dmas = <&dma2 543 dma-names = "r 544 status = "disa 545 }; 546 }; 547 548 sdio: mmc@40012c00 { 549 compatible = "arm,pl18 550 arm,primecell-periphid 551 reg = <0x40012c00 0x40 552 clocks = <&rcc 0 STM32 553 clock-names = "apb_pcl 554 interrupts = <49>; 555 max-frequency = <48000 556 status = "disabled"; 557 }; 558 559 spi1: spi@40013000 { 560 #address-cells = <1>; 561 #size-cells = <0>; 562 compatible = "st,stm32 563 reg = <0x40013000 0x40 564 interrupts = <35>; 565 clocks = <&rcc 0 STM32 566 status = "disabled"; 567 }; 568 569 spi4: spi@40013400 { 570 #address-cells = <1>; 571 #size-cells = <0>; 572 compatible = "st,stm32 573 reg = <0x40013400 0x40 574 interrupts = <84>; 575 clocks = <&rcc 0 STM32 576 status = "disabled"; 577 }; 578 579 syscfg: syscon@40013800 { 580 compatible = "st,stm32 581 reg = <0x40013800 0x40 582 clocks = <&rcc 0 STM32 583 }; 584 585 exti: interrupt-controller@400 586 compatible = "st,stm32 587 interrupt-controller; 588 #interrupt-cells = <2> 589 reg = <0x40013C00 0x40 590 interrupts = <1>, <2>, 591 }; 592 593 timers9: timers@40014000 { 594 #address-cells = <1>; 595 #size-cells = <0>; 596 compatible = "st,stm32 597 reg = <0x40014000 0x40 598 clocks = <&rcc 0 STM32 599 clock-names = "int"; 600 status = "disabled"; 601 602 pwm { 603 compatible = " 604 #pwm-cells = < 605 status = "disa 606 }; 607 608 timer@8 { 609 compatible = " 610 reg = <8>; 611 status = "disa 612 }; 613 }; 614 615 timers10: timers@40014400 { 616 compatible = "st,stm32 617 reg = <0x40014400 0x40 618 clocks = <&rcc 0 STM32 619 clock-names = "int"; 620 status = "disabled"; 621 622 pwm { 623 compatible = " 624 #pwm-cells = < 625 status = "disa 626 }; 627 }; 628 629 timers11: timers@40014800 { 630 compatible = "st,stm32 631 reg = <0x40014800 0x40 632 clocks = <&rcc 0 STM32 633 clock-names = "int"; 634 status = "disabled"; 635 636 pwm { 637 compatible = " 638 #pwm-cells = < 639 status = "disa 640 }; 641 }; 642 643 spi5: spi@40015000 { 644 #address-cells = <1>; 645 #size-cells = <0>; 646 compatible = "st,stm32 647 reg = <0x40015000 0x40 648 interrupts = <85>; 649 clocks = <&rcc 0 STM32 650 dmas = <&dma2 3 2 0x40 651 <&dma2 4 2 0x4 652 dma-names = "rx", "tx" 653 status = "disabled"; 654 }; 655 656 spi6: spi@40015400 { 657 #address-cells = <1>; 658 #size-cells = <0>; 659 compatible = "st,stm32 660 reg = <0x40015400 0x40 661 interrupts = <86>; 662 clocks = <&rcc 0 STM32 663 status = "disabled"; 664 }; 665 666 pwrcfg: power-config@40007000 667 compatible = "st,stm32 668 reg = <0x40007000 0x40 669 }; 670 671 ltdc: display-controller@40016 672 compatible = "st,stm32 673 reg = <0x40016800 0x20 674 interrupts = <88>, <89 675 resets = <&rcc STM32F4 676 clocks = <&rcc 1 CLK_L 677 clock-names = "lcd"; 678 status = "disabled"; 679 }; 680 681 crc: crc@40023000 { 682 compatible = "st,stm32 683 reg = <0x40023000 0x40 684 clocks = <&rcc 0 STM32 685 status = "disabled"; 686 }; 687 688 rcc: rcc@40023800 { 689 #reset-cells = <1>; 690 #clock-cells = <2>; 691 compatible = "st,stm32 692 reg = <0x40023800 0x40 693 clocks = <&clk_hse>, < 694 st,syscfg = <&pwrcfg>; 695 assigned-clocks = <&rc 696 assigned-clock-rates = 697 }; 698 699 dma1: dma-controller@40026000 700 compatible = "st,stm32 701 reg = <0x40026000 0x40 702 interrupts = <11>, 703 <12>, 704 <13>, 705 <14>, 706 <15>, 707 <16>, 708 <17>, 709 <47>; 710 clocks = <&rcc 0 STM32 711 #dma-cells = <4>; 712 }; 713 714 dma2: dma-controller@40026400 715 compatible = "st,stm32 716 reg = <0x40026400 0x40 717 interrupts = <56>, 718 <57>, 719 <58>, 720 <59>, 721 <60>, 722 <68>, 723 <69>, 724 <70>; 725 clocks = <&rcc 0 STM32 726 #dma-cells = <4>; 727 st,mem2mem; 728 }; 729 730 mac: ethernet@40028000 { 731 compatible = "st,stm32 732 reg = <0x40028000 0x80 733 reg-names = "stmmaceth 734 interrupts = <61>; 735 interrupt-names = "mac 736 clock-names = "stmmace 737 clocks = <&rcc 0 STM32 738 <&rcc 739 <&rcc 740 st,syscon = <&syscfg 0 741 snps,pbl = <8>; 742 snps,mixed-burst; 743 status = "disabled"; 744 }; 745 746 dma2d: dma2d@4002b000 { 747 compatible = "st,stm32 748 reg = <0x4002b000 0xc0 749 interrupts = <90>; 750 resets = <&rcc STM32F4 751 clocks = <&rcc 0 STM32 752 clock-names = "dma2d"; 753 status = "disabled"; 754 }; 755 756 usbotg_hs: usb@40040000 { 757 compatible = "snps,dwc 758 reg = <0x40040000 0x40 759 interrupts = <77>; 760 clocks = <&rcc 0 STM32 761 clock-names = "otg"; 762 status = "disabled"; 763 }; 764 765 usbotg_fs: usb@50000000 { 766 compatible = "st,stm32 767 reg = <0x50000000 0x40 768 interrupts = <67>; 769 clocks = <&rcc 0 39>; 770 clock-names = "otg"; 771 status = "disabled"; 772 }; 773 774 dcmi: dcmi@50050000 { 775 compatible = "st,stm32 776 reg = <0x50050000 0x40 777 interrupts = <78>; 778 resets = <&rcc STM32F4 779 clocks = <&rcc 0 STM32 780 clock-names = "mclk"; 781 pinctrl-names = "defau 782 pinctrl-0 = <&dcmi_pin 783 dmas = <&dma2 1 1 0x41 784 dma-names = "tx"; 785 status = "disabled"; 786 }; 787 788 rng: rng@50060800 { 789 compatible = "st,stm32 790 reg = <0x50060800 0x40 791 clocks = <&rcc 0 STM32 792 793 }; 794 }; 795 }; 796 797 &systick { 798 clocks = <&rcc 1 SYSTICK>; 799 status = "okay"; 800 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.