| .. | .. |
|---|
| 45 | 45 | * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 46 | 46 | */ |
|---|
| 47 | 47 | |
|---|
| 48 | | -#include "skeleton.dtsi" |
|---|
| 49 | 48 | #include "armv7-m.dtsi" |
|---|
| 50 | 49 | #include <dt-bindings/clock/stm32fx-clock.h> |
|---|
| 51 | 50 | #include <dt-bindings/mfd/stm32f4-rcc.h> |
|---|
| 52 | 51 | |
|---|
| 53 | 52 | / { |
|---|
| 53 | + #address-cells = <1>; |
|---|
| 54 | + #size-cells = <1>; |
|---|
| 55 | + |
|---|
| 54 | 56 | clocks { |
|---|
| 55 | 57 | clk_hse: clk-hse { |
|---|
| 56 | 58 | #clock-cells = <0>; |
|---|
| .. | .. |
|---|
| 58 | 60 | clock-frequency = <0>; |
|---|
| 59 | 61 | }; |
|---|
| 60 | 62 | |
|---|
| 61 | | - clk-lse { |
|---|
| 63 | + clk_lse: clk-lse { |
|---|
| 62 | 64 | #clock-cells = <0>; |
|---|
| 63 | 65 | compatible = "fixed-clock"; |
|---|
| 64 | 66 | clock-frequency = <32768>; |
|---|
| .. | .. |
|---|
| 78 | 80 | }; |
|---|
| 79 | 81 | |
|---|
| 80 | 82 | soc { |
|---|
| 83 | + romem: efuse@1fff7800 { |
|---|
| 84 | + compatible = "st,stm32f4-otp"; |
|---|
| 85 | + reg = <0x1fff7800 0x400>; |
|---|
| 86 | + #address-cells = <1>; |
|---|
| 87 | + #size-cells = <1>; |
|---|
| 88 | + ts_cal1: calib@22c { |
|---|
| 89 | + reg = <0x22c 0x2>; |
|---|
| 90 | + }; |
|---|
| 91 | + ts_cal2: calib@22e { |
|---|
| 92 | + reg = <0x22e 0x2>; |
|---|
| 93 | + }; |
|---|
| 94 | + }; |
|---|
| 95 | + |
|---|
| 81 | 96 | timer2: timer@40000000 { |
|---|
| 82 | 97 | compatible = "st,stm32-timer"; |
|---|
| 83 | 98 | reg = <0x40000000 0x400>; |
|---|
| .. | .. |
|---|
| 97 | 112 | |
|---|
| 98 | 113 | pwm { |
|---|
| 99 | 114 | compatible = "st,stm32-pwm"; |
|---|
| 115 | + #pwm-cells = <3>; |
|---|
| 100 | 116 | status = "disabled"; |
|---|
| 101 | 117 | }; |
|---|
| 102 | 118 | |
|---|
| .. | .. |
|---|
| 126 | 142 | |
|---|
| 127 | 143 | pwm { |
|---|
| 128 | 144 | compatible = "st,stm32-pwm"; |
|---|
| 145 | + #pwm-cells = <3>; |
|---|
| 129 | 146 | status = "disabled"; |
|---|
| 130 | 147 | }; |
|---|
| 131 | 148 | |
|---|
| .. | .. |
|---|
| 155 | 172 | |
|---|
| 156 | 173 | pwm { |
|---|
| 157 | 174 | compatible = "st,stm32-pwm"; |
|---|
| 175 | + #pwm-cells = <3>; |
|---|
| 158 | 176 | status = "disabled"; |
|---|
| 159 | 177 | }; |
|---|
| 160 | 178 | |
|---|
| .. | .. |
|---|
| 183 | 201 | |
|---|
| 184 | 202 | pwm { |
|---|
| 185 | 203 | compatible = "st,stm32-pwm"; |
|---|
| 204 | + #pwm-cells = <3>; |
|---|
| 186 | 205 | status = "disabled"; |
|---|
| 187 | 206 | }; |
|---|
| 188 | 207 | |
|---|
| .. | .. |
|---|
| 252 | 271 | |
|---|
| 253 | 272 | pwm { |
|---|
| 254 | 273 | compatible = "st,stm32-pwm"; |
|---|
| 274 | + #pwm-cells = <3>; |
|---|
| 255 | 275 | status = "disabled"; |
|---|
| 256 | 276 | }; |
|---|
| 257 | 277 | |
|---|
| .. | .. |
|---|
| 271 | 291 | |
|---|
| 272 | 292 | pwm { |
|---|
| 273 | 293 | compatible = "st,stm32-pwm"; |
|---|
| 294 | + #pwm-cells = <3>; |
|---|
| 274 | 295 | status = "disabled"; |
|---|
| 275 | 296 | }; |
|---|
| 276 | 297 | }; |
|---|
| .. | .. |
|---|
| 284 | 305 | |
|---|
| 285 | 306 | pwm { |
|---|
| 286 | 307 | compatible = "st,stm32-pwm"; |
|---|
| 308 | + #pwm-cells = <3>; |
|---|
| 287 | 309 | status = "disabled"; |
|---|
| 288 | 310 | }; |
|---|
| 289 | 311 | }; |
|---|
| .. | .. |
|---|
| 292 | 314 | compatible = "st,stm32-rtc"; |
|---|
| 293 | 315 | reg = <0x40002800 0x400>; |
|---|
| 294 | 316 | clocks = <&rcc 1 CLK_RTC>; |
|---|
| 295 | | - clock-names = "ck_rtc"; |
|---|
| 296 | 317 | assigned-clocks = <&rcc 1 CLK_RTC>; |
|---|
| 297 | 318 | assigned-clock-parents = <&rcc 1 CLK_LSE>; |
|---|
| 298 | 319 | interrupt-parent = <&exti>; |
|---|
| 299 | 320 | interrupts = <17 1>; |
|---|
| 300 | | - interrupt-names = "alarm"; |
|---|
| 301 | 321 | st,syscfg = <&pwrcfg 0x00 0x100>; |
|---|
| 302 | 322 | status = "disabled"; |
|---|
| 303 | 323 | }; |
|---|
| .. | .. |
|---|
| 307 | 327 | reg = <0x40003000 0x400>; |
|---|
| 308 | 328 | clocks = <&clk_lsi>; |
|---|
| 309 | 329 | clock-names = "lsi"; |
|---|
| 330 | + status = "disabled"; |
|---|
| 331 | + }; |
|---|
| 332 | + |
|---|
| 333 | + spi2: spi@40003800 { |
|---|
| 334 | + #address-cells = <1>; |
|---|
| 335 | + #size-cells = <0>; |
|---|
| 336 | + compatible = "st,stm32f4-spi"; |
|---|
| 337 | + reg = <0x40003800 0x400>; |
|---|
| 338 | + interrupts = <36>; |
|---|
| 339 | + clocks = <&rcc 0 STM32F4_APB1_CLOCK(SPI2)>; |
|---|
| 340 | + status = "disabled"; |
|---|
| 341 | + }; |
|---|
| 342 | + |
|---|
| 343 | + spi3: spi@40003c00 { |
|---|
| 344 | + #address-cells = <1>; |
|---|
| 345 | + #size-cells = <0>; |
|---|
| 346 | + compatible = "st,stm32f4-spi"; |
|---|
| 347 | + reg = <0x40003c00 0x400>; |
|---|
| 348 | + interrupts = <51>; |
|---|
| 349 | + clocks = <&rcc 0 STM32F4_APB1_CLOCK(SPI3)>; |
|---|
| 310 | 350 | status = "disabled"; |
|---|
| 311 | 351 | }; |
|---|
| 312 | 352 | |
|---|
| .. | .. |
|---|
| 357 | 397 | status = "disabled"; |
|---|
| 358 | 398 | }; |
|---|
| 359 | 399 | |
|---|
| 400 | + i2c3: i2c@40005c00 { |
|---|
| 401 | + compatible = "st,stm32f4-i2c"; |
|---|
| 402 | + reg = <0x40005c00 0x400>; |
|---|
| 403 | + interrupts = <72>, |
|---|
| 404 | + <73>; |
|---|
| 405 | + resets = <&rcc STM32F4_APB1_RESET(I2C3)>; |
|---|
| 406 | + clocks = <&rcc 0 STM32F4_APB1_CLOCK(I2C3)>; |
|---|
| 407 | + #address-cells = <1>; |
|---|
| 408 | + #size-cells = <0>; |
|---|
| 409 | + status = "disabled"; |
|---|
| 410 | + }; |
|---|
| 411 | + |
|---|
| 360 | 412 | dac: dac@40007400 { |
|---|
| 361 | 413 | compatible = "st,stm32f4-dac-core"; |
|---|
| 362 | 414 | reg = <0x40007400 0x400>; |
|---|
| .. | .. |
|---|
| 369 | 421 | |
|---|
| 370 | 422 | dac1: dac@1 { |
|---|
| 371 | 423 | compatible = "st,stm32-dac"; |
|---|
| 372 | | - #io-channels-cells = <1>; |
|---|
| 424 | + #io-channel-cells = <1>; |
|---|
| 373 | 425 | reg = <1>; |
|---|
| 374 | 426 | status = "disabled"; |
|---|
| 375 | 427 | }; |
|---|
| 376 | 428 | |
|---|
| 377 | 429 | dac2: dac@2 { |
|---|
| 378 | 430 | compatible = "st,stm32-dac"; |
|---|
| 379 | | - #io-channels-cells = <1>; |
|---|
| 431 | + #io-channel-cells = <1>; |
|---|
| 380 | 432 | reg = <2>; |
|---|
| 381 | 433 | status = "disabled"; |
|---|
| 382 | 434 | }; |
|---|
| .. | .. |
|---|
| 409 | 461 | |
|---|
| 410 | 462 | pwm { |
|---|
| 411 | 463 | compatible = "st,stm32-pwm"; |
|---|
| 464 | + #pwm-cells = <3>; |
|---|
| 412 | 465 | status = "disabled"; |
|---|
| 413 | 466 | }; |
|---|
| 414 | 467 | |
|---|
| .. | .. |
|---|
| 430 | 483 | |
|---|
| 431 | 484 | pwm { |
|---|
| 432 | 485 | compatible = "st,stm32-pwm"; |
|---|
| 486 | + #pwm-cells = <3>; |
|---|
| 433 | 487 | status = "disabled"; |
|---|
| 434 | 488 | }; |
|---|
| 435 | 489 | |
|---|
| .. | .. |
|---|
| 519 | 573 | status = "disabled"; |
|---|
| 520 | 574 | }; |
|---|
| 521 | 575 | |
|---|
| 522 | | - syscfg: system-config@40013800 { |
|---|
| 523 | | - compatible = "syscon"; |
|---|
| 576 | + spi1: spi@40013000 { |
|---|
| 577 | + #address-cells = <1>; |
|---|
| 578 | + #size-cells = <0>; |
|---|
| 579 | + compatible = "st,stm32f4-spi"; |
|---|
| 580 | + reg = <0x40013000 0x400>; |
|---|
| 581 | + interrupts = <35>; |
|---|
| 582 | + clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI1)>; |
|---|
| 583 | + status = "disabled"; |
|---|
| 584 | + }; |
|---|
| 585 | + |
|---|
| 586 | + spi4: spi@40013400 { |
|---|
| 587 | + #address-cells = <1>; |
|---|
| 588 | + #size-cells = <0>; |
|---|
| 589 | + compatible = "st,stm32f4-spi"; |
|---|
| 590 | + reg = <0x40013400 0x400>; |
|---|
| 591 | + interrupts = <84>; |
|---|
| 592 | + clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI4)>; |
|---|
| 593 | + status = "disabled"; |
|---|
| 594 | + }; |
|---|
| 595 | + |
|---|
| 596 | + syscfg: syscon@40013800 { |
|---|
| 597 | + compatible = "st,stm32-syscfg", "syscon"; |
|---|
| 524 | 598 | reg = <0x40013800 0x400>; |
|---|
| 525 | 599 | }; |
|---|
| 526 | 600 | |
|---|
| .. | .. |
|---|
| 543 | 617 | |
|---|
| 544 | 618 | pwm { |
|---|
| 545 | 619 | compatible = "st,stm32-pwm"; |
|---|
| 620 | + #pwm-cells = <3>; |
|---|
| 546 | 621 | status = "disabled"; |
|---|
| 547 | 622 | }; |
|---|
| 548 | 623 | |
|---|
| .. | .. |
|---|
| 562 | 637 | |
|---|
| 563 | 638 | pwm { |
|---|
| 564 | 639 | compatible = "st,stm32-pwm"; |
|---|
| 640 | + #pwm-cells = <3>; |
|---|
| 565 | 641 | status = "disabled"; |
|---|
| 566 | 642 | }; |
|---|
| 567 | 643 | }; |
|---|
| .. | .. |
|---|
| 575 | 651 | |
|---|
| 576 | 652 | pwm { |
|---|
| 577 | 653 | compatible = "st,stm32-pwm"; |
|---|
| 654 | + #pwm-cells = <3>; |
|---|
| 578 | 655 | status = "disabled"; |
|---|
| 579 | 656 | }; |
|---|
| 580 | 657 | }; |
|---|
| 581 | 658 | |
|---|
| 659 | + spi5: spi@40015000 { |
|---|
| 660 | + #address-cells = <1>; |
|---|
| 661 | + #size-cells = <0>; |
|---|
| 662 | + compatible = "st,stm32f4-spi"; |
|---|
| 663 | + reg = <0x40015000 0x400>; |
|---|
| 664 | + interrupts = <85>; |
|---|
| 665 | + clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI5)>; |
|---|
| 666 | + dmas = <&dma2 3 2 0x400 0x0>, |
|---|
| 667 | + <&dma2 4 2 0x400 0x0>; |
|---|
| 668 | + dma-names = "rx", "tx"; |
|---|
| 669 | + status = "disabled"; |
|---|
| 670 | + }; |
|---|
| 671 | + |
|---|
| 672 | + spi6: spi@40015400 { |
|---|
| 673 | + #address-cells = <1>; |
|---|
| 674 | + #size-cells = <0>; |
|---|
| 675 | + compatible = "st,stm32f4-spi"; |
|---|
| 676 | + reg = <0x40015400 0x400>; |
|---|
| 677 | + interrupts = <86>; |
|---|
| 678 | + clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI6)>; |
|---|
| 679 | + status = "disabled"; |
|---|
| 680 | + }; |
|---|
| 681 | + |
|---|
| 582 | 682 | pwrcfg: power-config@40007000 { |
|---|
| 583 | | - compatible = "syscon"; |
|---|
| 683 | + compatible = "st,stm32-power-config", "syscon"; |
|---|
| 584 | 684 | reg = <0x40007000 0x400>; |
|---|
| 585 | 685 | }; |
|---|
| 586 | 686 | |
|---|
| .. | .. |
|---|
| 694 | 794 | rng: rng@50060800 { |
|---|
| 695 | 795 | compatible = "st,stm32-rng"; |
|---|
| 696 | 796 | reg = <0x50060800 0x400>; |
|---|
| 697 | | - interrupts = <80>; |
|---|
| 698 | 797 | clocks = <&rcc 0 STM32F4_AHB2_CLOCK(RNG)>; |
|---|
| 699 | 798 | |
|---|
| 700 | 799 | }; |
|---|