1 /* 2 * Copyright 2017 - Alexandre Torgue <alexandre 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 * Or, alternatively, 20 * 21 * b) Permission is hereby granted, free of c 22 * obtaining a copy of this software and a 23 * files (the "Software"), to deal in the 24 * restriction, including without limitati 25 * copy, modify, merge, publish, distribut 26 * sell copies of the Software, and to per 27 * Software is furnished to do so, subject 28 * conditions: 29 * 30 * The above copyright notice and this per 31 * included in all copies or substantial p 32 * 33 * THE SOFTWARE IS PROVIDED "AS IS", WITHO 34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT L 35 * OF MERCHANTABILITY, FITNESS FOR A PARTI 36 * NONINFRINGEMENT. IN NO EVENT SHALL THE 37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGE 38 * WHETHER IN AN ACTION OF CONTRACT, TORT 39 * FROM, OUT OF OR IN CONNECTION WITH THE 40 * OTHER DEALINGS IN THE SOFTWARE. 41 */ 42 43 #include "../armv7-m.dtsi" 44 #include <dt-bindings/clock/stm32h7-clks.h> 45 #include <dt-bindings/mfd/stm32h7-rcc.h> 46 #include <dt-bindings/interrupt-controller/irq 47 48 / { 49 #address-cells = <1>; 50 #size-cells = <1>; 51 52 clocks { 53 clk_hse: clk-hse { 54 #clock-cells = <0>; 55 compatible = "fixed-cl 56 clock-frequency = <0>; 57 }; 58 59 clk_lse: clk-lse { 60 #clock-cells = <0>; 61 compatible = "fixed-cl 62 clock-frequency = <327 63 }; 64 65 clk_i2s: i2s_ckin { 66 #clock-cells = <0>; 67 compatible = "fixed-cl 68 clock-frequency = <0>; 69 }; 70 }; 71 72 soc { 73 timer5: timer@40000c00 { 74 compatible = "st,stm32 75 reg = <0x40000c00 0x40 76 interrupts = <50>; 77 clocks = <&rcc TIM5_CK 78 }; 79 80 lptimer1: timer@40002400 { 81 #address-cells = <1>; 82 #size-cells = <0>; 83 compatible = "st,stm32 84 reg = <0x40002400 0x40 85 clocks = <&rcc LPTIM1_ 86 clock-names = "mux"; 87 status = "disabled"; 88 89 pwm { 90 compatible = " 91 #pwm-cells = < 92 status = "disa 93 }; 94 95 trigger@0 { 96 compatible = " 97 reg = <0>; 98 status = "disa 99 }; 100 101 counter { 102 compatible = " 103 status = "disa 104 }; 105 }; 106 107 spi2: spi@40003800 { 108 #address-cells = <1>; 109 #size-cells = <0>; 110 compatible = "st,stm32 111 reg = <0x40003800 0x40 112 interrupts = <36>; 113 resets = <&rcc STM32H7 114 clocks = <&rcc SPI2_CK 115 status = "disabled"; 116 117 }; 118 119 spi3: spi@40003c00 { 120 #address-cells = <1>; 121 #size-cells = <0>; 122 compatible = "st,stm32 123 reg = <0x40003c00 0x40 124 interrupts = <51>; 125 resets = <&rcc STM32H7 126 clocks = <&rcc SPI3_CK 127 status = "disabled"; 128 }; 129 130 usart2: serial@40004400 { 131 compatible = "st,stm32 132 reg = <0x40004400 0x40 133 interrupts = <38>; 134 status = "disabled"; 135 clocks = <&rcc USART2_ 136 }; 137 138 usart3: serial@40004800 { 139 compatible = "st,stm32 140 reg = <0x40004800 0x40 141 interrupts = <39>; 142 status = "disabled"; 143 clocks = <&rcc USART3_ 144 }; 145 146 uart4: serial@40004c00 { 147 compatible = "st,stm32 148 reg = <0x40004c00 0x40 149 interrupts = <52>; 150 status = "disabled"; 151 clocks = <&rcc UART4_C 152 }; 153 154 i2c1: i2c@40005400 { 155 compatible = "st,stm32 156 #address-cells = <1>; 157 #size-cells = <0>; 158 reg = <0x40005400 0x40 159 interrupts = <31>, 160 <32>; 161 resets = <&rcc STM32H7 162 clocks = <&rcc I2C1_CK 163 status = "disabled"; 164 }; 165 166 i2c2: i2c@40005800 { 167 compatible = "st,stm32 168 #address-cells = <1>; 169 #size-cells = <0>; 170 reg = <0x40005800 0x40 171 interrupts = <33>, 172 <34>; 173 resets = <&rcc STM32H7 174 clocks = <&rcc I2C2_CK 175 status = "disabled"; 176 }; 177 178 i2c3: i2c@40005c00 { 179 compatible = "st,stm32 180 #address-cells = <1>; 181 #size-cells = <0>; 182 reg = <0x40005C00 0x40 183 interrupts = <72>, 184 <73>; 185 resets = <&rcc STM32H7 186 clocks = <&rcc I2C3_CK 187 status = "disabled"; 188 }; 189 190 dac: dac@40007400 { 191 compatible = "st,stm32 192 reg = <0x40007400 0x40 193 clocks = <&rcc DAC12_C 194 clock-names = "pclk"; 195 #address-cells = <1>; 196 #size-cells = <0>; 197 status = "disabled"; 198 199 dac1: dac@1 { 200 compatible = " 201 #io-channel-ce 202 reg = <1>; 203 status = "disa 204 }; 205 206 dac2: dac@2 { 207 compatible = " 208 #io-channel-ce 209 reg = <2>; 210 status = "disa 211 }; 212 }; 213 214 usart1: serial@40011000 { 215 compatible = "st,stm32 216 reg = <0x40011000 0x40 217 interrupts = <37>; 218 status = "disabled"; 219 clocks = <&rcc USART1_ 220 }; 221 222 spi1: spi@40013000 { 223 #address-cells = <1>; 224 #size-cells = <0>; 225 compatible = "st,stm32 226 reg = <0x40013000 0x40 227 interrupts = <35>; 228 resets = <&rcc STM32H7 229 clocks = <&rcc SPI1_CK 230 status = "disabled"; 231 }; 232 233 spi4: spi@40013400 { 234 #address-cells = <1>; 235 #size-cells = <0>; 236 compatible = "st,stm32 237 reg = <0x40013400 0x40 238 interrupts = <84>; 239 resets = <&rcc STM32H7 240 clocks = <&rcc SPI4_CK 241 status = "disabled"; 242 }; 243 244 spi5: spi@40015000 { 245 #address-cells = <1>; 246 #size-cells = <0>; 247 compatible = "st,stm32 248 reg = <0x40015000 0x40 249 interrupts = <85>; 250 resets = <&rcc STM32H7 251 clocks = <&rcc SPI5_CK 252 status = "disabled"; 253 }; 254 255 dma1: dma-controller@40020000 256 compatible = "st,stm32 257 reg = <0x40020000 0x40 258 interrupts = <11>, 259 <12>, 260 <13>, 261 <14>, 262 <15>, 263 <16>, 264 <17>, 265 <47>; 266 clocks = <&rcc DMA1_CK 267 #dma-cells = <4>; 268 st,mem2mem; 269 dma-requests = <8>; 270 status = "disabled"; 271 }; 272 273 dma2: dma-controller@40020400 274 compatible = "st,stm32 275 reg = <0x40020400 0x40 276 interrupts = <56>, 277 <57>, 278 <58>, 279 <59>, 280 <60>, 281 <68>, 282 <69>, 283 <70>; 284 clocks = <&rcc DMA2_CK 285 #dma-cells = <4>; 286 st,mem2mem; 287 dma-requests = <8>; 288 status = "disabled"; 289 }; 290 291 dmamux1: dma-router@40020800 { 292 compatible = "st,stm32 293 reg = <0x40020800 0x40 294 #dma-cells = <3>; 295 dma-channels = <16>; 296 dma-requests = <128>; 297 dma-masters = <&dma1 & 298 clocks = <&rcc DMA1_CK 299 }; 300 301 adc_12: adc@40022000 { 302 compatible = "st,stm32 303 reg = <0x40022000 0x40 304 interrupts = <18>; 305 clocks = <&rcc ADC12_C 306 clock-names = "bus"; 307 interrupt-controller; 308 #interrupt-cells = <1> 309 #address-cells = <1>; 310 #size-cells = <0>; 311 status = "disabled"; 312 313 adc1: adc@0 { 314 compatible = " 315 #io-channel-ce 316 reg = <0x0>; 317 interrupt-pare 318 interrupts = < 319 status = "disa 320 }; 321 322 adc2: adc@100 { 323 compatible = " 324 #io-channel-ce 325 reg = <0x100>; 326 interrupt-pare 327 interrupts = < 328 status = "disa 329 }; 330 }; 331 332 usbotg_hs: usb@40040000 { 333 compatible = "st,stm32 334 reg = <0x40040000 0x40 335 interrupts = <77>; 336 clocks = <&rcc USB1OTG 337 clock-names = "otg"; 338 g-rx-fifo-size = <256> 339 g-np-tx-fifo-size = <3 340 g-tx-fifo-size = <128 341 status = "disabled"; 342 }; 343 344 usbotg_fs: usb@40080000 { 345 compatible = "st,stm32 346 reg = <0x40080000 0x40 347 interrupts = <101>; 348 clocks = <&rcc USB2OTG 349 clock-names = "otg"; 350 status = "disabled"; 351 }; 352 353 ltdc: display-controller@50001 354 compatible = "st,stm32 355 reg = <0x50001000 0x20 356 interrupts = <88>, <89 357 resets = <&rcc STM32H7 358 clocks = <&rcc LTDC_CK 359 clock-names = "lcd"; 360 status = "disabled"; 361 }; 362 363 mdma1: dma-controller@52000000 364 compatible = "st,stm32 365 reg = <0x52000000 0x10 366 interrupts = <122>; 367 clocks = <&rcc MDMA_CK 368 #dma-cells = <5>; 369 dma-channels = <16>; 370 dma-requests = <32>; 371 }; 372 373 sdmmc1: mmc@52007000 { 374 compatible = "arm,pl18 375 arm,primecell-periphid 376 reg = <0x52007000 0x10 377 interrupts = <49>; 378 clocks = <&rcc SDMMC1_ 379 clock-names = "apb_pcl 380 resets = <&rcc STM32H7 381 cap-sd-highspeed; 382 cap-mmc-highspeed; 383 max-frequency = <12000 384 }; 385 386 sdmmc2: mmc@48022400 { 387 compatible = "arm,pl18 388 arm,primecell-periphid 389 reg = <0x48022400 0x40 390 interrupts = <124>; 391 clocks = <&rcc SDMMC2_ 392 clock-names = "apb_pcl 393 resets = <&rcc STM32H7 394 cap-sd-highspeed; 395 cap-mmc-highspeed; 396 max-frequency = <12000 397 status = "disabled"; 398 }; 399 400 exti: interrupt-controller@580 401 compatible = "st,stm32 402 interrupt-controller; 403 #interrupt-cells = <2> 404 reg = <0x58000000 0x40 405 interrupts = <1>, <2>, 406 }; 407 408 syscfg: syscon@58000400 { 409 compatible = "st,stm32 410 reg = <0x58000400 0x40 411 }; 412 413 spi6: spi@58001400 { 414 #address-cells = <1>; 415 #size-cells = <0>; 416 compatible = "st,stm32 417 reg = <0x58001400 0x40 418 interrupts = <86>; 419 resets = <&rcc STM32H7 420 clocks = <&rcc SPI6_CK 421 status = "disabled"; 422 }; 423 424 i2c4: i2c@58001c00 { 425 compatible = "st,stm32 426 #address-cells = <1>; 427 #size-cells = <0>; 428 reg = <0x58001C00 0x40 429 interrupts = <95>, 430 <96>; 431 resets = <&rcc STM32H7 432 clocks = <&rcc I2C4_CK 433 status = "disabled"; 434 }; 435 436 lptimer2: timer@58002400 { 437 #address-cells = <1>; 438 #size-cells = <0>; 439 compatible = "st,stm32 440 reg = <0x58002400 0x40 441 clocks = <&rcc LPTIM2_ 442 clock-names = "mux"; 443 status = "disabled"; 444 445 pwm { 446 compatible = " 447 #pwm-cells = < 448 status = "disa 449 }; 450 451 trigger@1 { 452 compatible = " 453 reg = <1>; 454 status = "disa 455 }; 456 457 counter { 458 compatible = " 459 status = "disa 460 }; 461 }; 462 463 lptimer3: timer@58002800 { 464 #address-cells = <1>; 465 #size-cells = <0>; 466 compatible = "st,stm32 467 reg = <0x58002800 0x40 468 clocks = <&rcc LPTIM3_ 469 clock-names = "mux"; 470 status = "disabled"; 471 472 pwm { 473 compatible = " 474 #pwm-cells = < 475 status = "disa 476 }; 477 478 trigger@2 { 479 compatible = " 480 reg = <2>; 481 status = "disa 482 }; 483 }; 484 485 lptimer4: timer@58002c00 { 486 compatible = "st,stm32 487 reg = <0x58002c00 0x40 488 clocks = <&rcc LPTIM4_ 489 clock-names = "mux"; 490 status = "disabled"; 491 492 pwm { 493 compatible = " 494 #pwm-cells = < 495 status = "disa 496 }; 497 }; 498 499 lptimer5: timer@58003000 { 500 compatible = "st,stm32 501 reg = <0x58003000 0x40 502 clocks = <&rcc LPTIM5_ 503 clock-names = "mux"; 504 status = "disabled"; 505 506 pwm { 507 compatible = " 508 #pwm-cells = < 509 status = "disa 510 }; 511 }; 512 513 vrefbuf: regulator@58003c00 { 514 compatible = "st,stm32 515 reg = <0x58003C00 0x8> 516 clocks = <&rcc VREF_CK 517 regulator-min-microvol 518 regulator-max-microvol 519 status = "disabled"; 520 }; 521 522 rtc: rtc@58004000 { 523 compatible = "st,stm32 524 reg = <0x58004000 0x40 525 clocks = <&rcc RTCAPB_ 526 clock-names = "pclk", 527 assigned-clocks = <&rc 528 assigned-clock-parents 529 interrupt-parent = <&e 530 interrupts = <17 IRQ_T 531 st,syscfg = <&pwrcfg 0 532 status = "disabled"; 533 }; 534 535 rcc: reset-clock-controller@58 536 compatible = "st,stm32 537 reg = <0x58024400 0x40 538 #clock-cells = <1>; 539 #reset-cells = <1>; 540 clocks = <&clk_hse>, < 541 st,syscfg = <&pwrcfg>; 542 }; 543 544 pwrcfg: power-config@58024800 545 compatible = "st,stm32 546 reg = <0x58024800 0x40 547 }; 548 549 adc_3: adc@58026000 { 550 compatible = "st,stm32 551 reg = <0x58026000 0x40 552 interrupts = <127>; 553 clocks = <&rcc ADC3_CK 554 clock-names = "bus"; 555 interrupt-controller; 556 #interrupt-cells = <1> 557 #address-cells = <1>; 558 #size-cells = <0>; 559 status = "disabled"; 560 561 adc3: adc@0 { 562 compatible = " 563 #io-channel-ce 564 reg = <0x0>; 565 interrupt-pare 566 interrupts = < 567 status = "disa 568 }; 569 }; 570 571 mac: ethernet@40028000 { 572 compatible = "st,stm32 573 reg = <0x40028000 0x80 574 reg-names = "stmmaceth 575 interrupts = <61>; 576 interrupt-names = "mac 577 clock-names = "stmmace 578 clocks = <&rcc ETH1MAC 579 st,syscon = <&syscfg 0 580 snps,pbl = <8>; 581 status = "disabled"; 582 }; 583 584 pinctrl: pinctrl@58020000 { 585 #address-cells = <1>; 586 #size-cells = <1>; 587 compatible = "st,stm32 588 ranges = <0 0x58020000 589 interrupt-parent = <&e 590 st,syscfg = <&syscfg 0 591 592 gpioa: gpio@58020000 { 593 gpio-controlle 594 #gpio-cells = 595 reg = <0x0 0x4 596 clocks = <&rcc 597 st,bank-name = 598 interrupt-cont 599 #interrupt-cel 600 ngpios = <16>; 601 gpio-ranges = 602 }; 603 604 gpiob: gpio@58020400 { 605 gpio-controlle 606 #gpio-cells = 607 reg = <0x400 0 608 clocks = <&rcc 609 st,bank-name = 610 interrupt-cont 611 #interrupt-cel 612 ngpios = <16>; 613 gpio-ranges = 614 }; 615 616 gpioc: gpio@58020800 { 617 gpio-controlle 618 #gpio-cells = 619 reg = <0x800 0 620 clocks = <&rcc 621 st,bank-name = 622 interrupt-cont 623 #interrupt-cel 624 ngpios = <16>; 625 gpio-ranges = 626 }; 627 628 gpiod: gpio@58020c00 { 629 gpio-controlle 630 #gpio-cells = 631 reg = <0xc00 0 632 clocks = <&rcc 633 st,bank-name = 634 interrupt-cont 635 #interrupt-cel 636 ngpios = <16>; 637 gpio-ranges = 638 }; 639 640 gpioe: gpio@58021000 { 641 gpio-controlle 642 #gpio-cells = 643 reg = <0x1000 644 clocks = <&rcc 645 st,bank-name = 646 interrupt-cont 647 #interrupt-cel 648 ngpios = <16>; 649 gpio-ranges = 650 }; 651 652 gpiof: gpio@58021400 { 653 gpio-controlle 654 #gpio-cells = 655 reg = <0x1400 656 clocks = <&rcc 657 st,bank-name = 658 interrupt-cont 659 #interrupt-cel 660 ngpios = <16>; 661 gpio-ranges = 662 }; 663 664 gpiog: gpio@58021800 { 665 gpio-controlle 666 #gpio-cells = 667 reg = <0x1800 668 clocks = <&rcc 669 st,bank-name = 670 interrupt-cont 671 #interrupt-cel 672 ngpios = <16>; 673 gpio-ranges = 674 }; 675 676 gpioh: gpio@58021c00 { 677 gpio-controlle 678 #gpio-cells = 679 reg = <0x1c00 680 clocks = <&rcc 681 st,bank-name = 682 interrupt-cont 683 #interrupt-cel 684 ngpios = <16>; 685 gpio-ranges = 686 }; 687 688 gpioi: gpio@58022000 { 689 gpio-controlle 690 #gpio-cells = 691 reg = <0x2000 692 clocks = <&rcc 693 st,bank-name = 694 interrupt-cont 695 #interrupt-cel 696 ngpios = <16>; 697 gpio-ranges = 698 }; 699 700 gpioj: gpio@58022400 { 701 gpio-controlle 702 #gpio-cells = 703 reg = <0x2400 704 clocks = <&rcc 705 st,bank-name = 706 interrupt-cont 707 #interrupt-cel 708 ngpios = <16>; 709 gpio-ranges = 710 }; 711 712 gpiok: gpio@58022800 { 713 gpio-controlle 714 #gpio-cells = 715 reg = <0x2800 716 clocks = <&rcc 717 st,bank-name = 718 interrupt-cont 719 #interrupt-cel 720 ngpios = <8>; 721 gpio-ranges = 722 }; 723 }; 724 }; 725 }; 726 727 &systick { 728 clock-frequency = <250000000>; 729 status = "okay"; 730 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.