4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include "../armv7-m.dtsi"
44 #include <dt-bindings/clock/stm32fx-clock.h>
45 #include <dt-bindings/mfd/stm32f7-rcc.h>
54 compatible = "fixed-clock";
55 clock-frequency = <0>;
60 compatible = "fixed-clock";
61 clock-frequency = <32768>;
66 compatible = "fixed-clock";
67 clock-frequency = <32000>;
70 clk_i2s_ckin: clk-i2s-ckin {
72 compatible = "fixed-clock";
73 clock-frequency = <48000000>;
78 timers2: timers@40000000 {
81 compatible = "st,stm32-timers";
82 reg = <0x40000000 0x400>;
83 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM2)>;
88 compatible = "st,stm32-pwm";
94 compatible = "st,stm32-timer-trigger";
100 timers3: timers@40000400 {
101 #address-cells = <1>;
103 compatible = "st,stm32-timers";
104 reg = <0x40000400 0x400>;
105 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM3)>;
110 compatible = "st,stm32-pwm";
116 compatible = "st,stm32-timer-trigger";
122 timers4: timers@40000800 {
123 #address-cells = <1>;
125 compatible = "st,stm32-timers";
126 reg = <0x40000800 0x400>;
127 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM4)>;
132 compatible = "st,stm32-pwm";
138 compatible = "st,stm32-timer-trigger";
144 timers5: timers@40000c00 {
145 #address-cells = <1>;
147 compatible = "st,stm32-timers";
148 reg = <0x40000C00 0x400>;
149 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM5)>;
154 compatible = "st,stm32-pwm";
160 compatible = "st,stm32-timer-trigger";
166 timers6: timers@40001000 {
167 #address-cells = <1>;
169 compatible = "st,stm32-timers";
170 reg = <0x40001000 0x400>;
171 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM6)>;
176 compatible = "st,stm32-timer-trigger";
182 timers7: timers@40001400 {
183 #address-cells = <1>;
185 compatible = "st,stm32-timers";
186 reg = <0x40001400 0x400>;
187 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM7)>;
192 compatible = "st,stm32-timer-trigger";
198 timers12: timers@40001800 {
199 #address-cells = <1>;
201 compatible = "st,stm32-timers";
202 reg = <0x40001800 0x400>;
203 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM12)>;
208 compatible = "st,stm32-pwm";
214 compatible = "st,stm32-timer-trigger";
220 timers13: timers@40001c00 {
221 compatible = "st,stm32-timers";
222 reg = <0x40001C00 0x400>;
223 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM13)>;
228 compatible = "st,stm32-pwm";
234 timers14: timers@40002000 {
235 compatible = "st,stm32-timers";
236 reg = <0x40002000 0x400>;
237 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM14)>;
242 compatible = "st,stm32-pwm";
249 compatible = "st,stm32-rtc";
250 reg = <0x40002800 0x400>;
251 clocks = <&rcc 1 CLK_RTC>;
252 assigned-clocks = <&rcc 1 CLK_RTC>;
253 assigned-clock-parents = <&rcc 1 CLK_LSE>;
254 interrupt-parent = <&exti>;
256 st,syscfg = <&pwrcfg 0x00 0x100>;
261 #address-cells = <1>;
263 compatible = "st,stm32f7-spi";
264 reg = <0x40003800 0x400>;
266 clocks = <&rcc 0 STM32F7_APB1_CLOCK(SPI2)>;
271 #address-cells = <1>;
273 compatible = "st,stm32f7-spi";
274 reg = <0x40003c00 0x400>;
276 clocks = <&rcc 0 STM32F7_APB1_CLOCK(SPI3)>;
280 usart2: serial@40004400 {
281 compatible = "st,stm32f7-uart";
282 reg = <0x40004400 0x400>;
284 clocks = <&rcc 1 CLK_USART2>;
288 usart3: serial@40004800 {
289 compatible = "st,stm32f7-uart";
290 reg = <0x40004800 0x400>;
292 clocks = <&rcc 1 CLK_USART3>;
296 usart4: serial@40004c00 {
297 compatible = "st,stm32f7-uart";
298 reg = <0x40004c00 0x400>;
300 clocks = <&rcc 1 CLK_UART4>;
304 usart5: serial@40005000 {
305 compatible = "st,stm32f7-uart";
306 reg = <0x40005000 0x400>;
308 clocks = <&rcc 1 CLK_UART5>;
313 compatible = "st,stm32f7-i2c";
314 reg = <0x40005400 0x400>;
317 resets = <&rcc STM32F7_APB1_RESET(I2C1)>;
318 clocks = <&rcc 1 CLK_I2C1>;
319 #address-cells = <1>;
325 compatible = "st,stm32f7-i2c";
326 reg = <0x40005800 0x400>;
329 resets = <&rcc STM32F7_APB1_RESET(I2C2)>;
330 clocks = <&rcc 1 CLK_I2C2>;
331 #address-cells = <1>;
337 compatible = "st,stm32f7-i2c";
338 reg = <0x40005c00 0x400>;
341 resets = <&rcc STM32F7_APB1_RESET(I2C3)>;
342 clocks = <&rcc 1 CLK_I2C3>;
343 #address-cells = <1>;
349 compatible = "st,stm32f7-i2c";
350 reg = <0x40006000 0x400>;
353 resets = <&rcc STM32F7_APB1_RESET(I2C4)>;
354 clocks = <&rcc 1 CLK_I2C4>;
355 #address-cells = <1>;
361 compatible = "st,stm32f4-bxcan";
362 reg = <0x40006400 0x200>;
363 interrupts = <19>, <20>, <21>, <22>;
364 interrupt-names = "tx", "rx0", "rx1", "sce";
365 resets = <&rcc STM32F7_APB1_RESET(CAN1)>;
366 clocks = <&rcc 0 STM32F7_APB1_CLOCK(CAN1)>;
372 gcan1: gcan@40006600 {
373 compatible = "st,stm32f4-gcan", "syscon";
374 reg = <0x40006600 0x200>;
375 clocks = <&rcc 0 STM32F7_APB1_CLOCK(CAN1)>;
379 compatible = "st,stm32f4-bxcan";
380 reg = <0x40006800 0x200>;
381 interrupts = <63>, <64>, <65>, <66>;
382 interrupt-names = "tx", "rx0", "rx1", "sce";
383 resets = <&rcc STM32F7_APB1_RESET(CAN2)>;
384 clocks = <&rcc 0 STM32F7_APB1_CLOCK(CAN2)>;
391 compatible = "st,stm32-cec";
392 reg = <0x40006C00 0x400>;
394 clocks = <&rcc 0 STM32F7_APB1_CLOCK(CEC)>, <&rcc 1 CLK_HDMI_CEC>;
395 clock-names = "cec", "hdmi-cec";
399 usart7: serial@40007800 {
400 compatible = "st,stm32f7-uart";
401 reg = <0x40007800 0x400>;
403 clocks = <&rcc 1 CLK_UART7>;
407 usart8: serial@40007c00 {
408 compatible = "st,stm32f7-uart";
409 reg = <0x40007c00 0x400>;
411 clocks = <&rcc 1 CLK_UART8>;
415 timers1: timers@40010000 {
416 #address-cells = <1>;
418 compatible = "st,stm32-timers";
419 reg = <0x40010000 0x400>;
420 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM1)>;
425 compatible = "st,stm32-pwm";
431 compatible = "st,stm32-timer-trigger";
437 timers8: timers@40010400 {
438 #address-cells = <1>;
440 compatible = "st,stm32-timers";
441 reg = <0x40010400 0x400>;
442 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM8)>;
447 compatible = "st,stm32-pwm";
453 compatible = "st,stm32-timer-trigger";
459 usart1: serial@40011000 {
460 compatible = "st,stm32f7-uart";
461 reg = <0x40011000 0x400>;
463 clocks = <&rcc 1 CLK_USART1>;
467 usart6: serial@40011400 {
468 compatible = "st,stm32f7-uart";
469 reg = <0x40011400 0x400>;
471 clocks = <&rcc 1 CLK_USART6>;
475 sdio2: mmc@40011c00 {
476 compatible = "arm,pl180", "arm,primecell";
477 arm,primecell-periphid = <0x00880180>;
478 reg = <0x40011c00 0x400>;
479 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SDMMC2)>;
480 clock-names = "apb_pclk";
482 max-frequency = <48000000>;
486 sdio1: mmc@40012c00 {
487 compatible = "arm,pl180", "arm,primecell";
488 arm,primecell-periphid = <0x00880180>;
489 reg = <0x40012c00 0x400>;
490 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SDMMC1)>;
491 clock-names = "apb_pclk";
493 max-frequency = <48000000>;
498 #address-cells = <1>;
500 compatible = "st,stm32f7-spi";
501 reg = <0x40013000 0x400>;
503 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SPI1)>;
508 #address-cells = <1>;
510 compatible = "st,stm32f7-spi";
511 reg = <0x40013400 0x400>;
513 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SPI4)>;
517 syscfg: syscon@40013800 {
518 compatible = "st,stm32-syscfg", "syscon";
519 reg = <0x40013800 0x400>;
520 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SYSCFG)>;
523 exti: interrupt-controller@40013c00 {
524 compatible = "st,stm32-exti";
525 interrupt-controller;
526 #interrupt-cells = <2>;
527 reg = <0x40013C00 0x400>;
528 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
531 timers9: timers@40014000 {
532 #address-cells = <1>;
534 compatible = "st,stm32-timers";
535 reg = <0x40014000 0x400>;
536 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM9)>;
541 compatible = "st,stm32-pwm";
547 compatible = "st,stm32-timer-trigger";
553 timers10: timers@40014400 {
554 compatible = "st,stm32-timers";
555 reg = <0x40014400 0x400>;
556 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM10)>;
561 compatible = "st,stm32-pwm";
567 timers11: timers@40014800 {
568 compatible = "st,stm32-timers";
569 reg = <0x40014800 0x400>;
570 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM11)>;
575 compatible = "st,stm32-pwm";
582 #address-cells = <1>;
584 compatible = "st,stm32f7-spi";
585 reg = <0x40015000 0x400>;
587 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SPI5)>;
592 #address-cells = <1>;
594 compatible = "st,stm32f7-spi";
595 reg = <0x40015400 0x400>;
597 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SPI6)>;
601 ltdc: display-controller@40016800 {
602 compatible = "st,stm32-ltdc";
603 reg = <0x40016800 0x200>;
604 interrupts = <88>, <89>;
605 resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
606 clocks = <&rcc 1 CLK_LCD>;
611 pwrcfg: power-config@40007000 {
612 compatible = "st,stm32-power-config", "syscon";
613 reg = <0x40007000 0x400>;
617 compatible = "st,stm32f7-crc";
618 reg = <0x40023000 0x400>;
619 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(CRC)>;
626 compatible = "st,stm32f746-rcc", "st,stm32-rcc";
627 reg = <0x40023800 0x400>;
628 clocks = <&clk_hse>, <&clk_i2s_ckin>;
629 st,syscfg = <&pwrcfg>;
630 assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
631 assigned-clock-rates = <1000000>;
634 dma1: dma-controller@40026000 {
635 compatible = "st,stm32-dma";
636 reg = <0x40026000 0x400>;
645 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(DMA1)>;
650 dma2: dma-controller@40026400 {
651 compatible = "st,stm32-dma";
652 reg = <0x40026400 0x400>;
661 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(DMA2)>;
667 usbotg_hs: usb@40040000 {
668 compatible = "st,stm32f7-hsotg";
669 reg = <0x40040000 0x40000>;
671 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHS)>;
673 g-rx-fifo-size = <256>;
674 g-np-tx-fifo-size = <32>;
675 g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
679 usbotg_fs: usb@50000000 {
680 compatible = "st,stm32f4x9-fsotg";
681 reg = <0x50000000 0x40000>;
683 clocks = <&rcc 0 STM32F7_AHB2_CLOCK(OTGFS)>;