2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
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 timer2: timer@40000000 {
79 compatible = "st,stm32-timer";
80 reg = <0x40000000 0x400>;
82 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM2)>;
86 timers2: timers@40000000 {
89 compatible = "st,stm32-timers";
90 reg = <0x40000000 0x400>;
91 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM2)>;
96 compatible = "st,stm32-pwm";
102 compatible = "st,stm32-timer-trigger";
108 timer3: timer@40000400 {
109 compatible = "st,stm32-timer";
110 reg = <0x40000400 0x400>;
112 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM3)>;
116 timers3: timers@40000400 {
117 #address-cells = <1>;
119 compatible = "st,stm32-timers";
120 reg = <0x40000400 0x400>;
121 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM3)>;
126 compatible = "st,stm32-pwm";
132 compatible = "st,stm32-timer-trigger";
138 timer4: timer@40000800 {
139 compatible = "st,stm32-timer";
140 reg = <0x40000800 0x400>;
142 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM4)>;
146 timers4: timers@40000800 {
147 #address-cells = <1>;
149 compatible = "st,stm32-timers";
150 reg = <0x40000800 0x400>;
151 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM4)>;
156 compatible = "st,stm32-pwm";
162 compatible = "st,stm32-timer-trigger";
168 timer5: timer@40000c00 {
169 compatible = "st,stm32-timer";
170 reg = <0x40000c00 0x400>;
172 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM5)>;
175 timers5: timers@40000c00 {
176 #address-cells = <1>;
178 compatible = "st,stm32-timers";
179 reg = <0x40000C00 0x400>;
180 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM5)>;
185 compatible = "st,stm32-pwm";
191 compatible = "st,stm32-timer-trigger";
197 timer6: timer@40001000 {
198 compatible = "st,stm32-timer";
199 reg = <0x40001000 0x400>;
201 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM6)>;
205 timers6: timers@40001000 {
206 #address-cells = <1>;
208 compatible = "st,stm32-timers";
209 reg = <0x40001000 0x400>;
210 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM6)>;
215 compatible = "st,stm32-timer-trigger";
221 timer7: timer@40001400 {
222 compatible = "st,stm32-timer";
223 reg = <0x40001400 0x400>;
225 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM7)>;
229 timers7: timers@40001400 {
230 #address-cells = <1>;
232 compatible = "st,stm32-timers";
233 reg = <0x40001400 0x400>;
234 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM7)>;
239 compatible = "st,stm32-timer-trigger";
245 timers12: timers@40001800 {
246 #address-cells = <1>;
248 compatible = "st,stm32-timers";
249 reg = <0x40001800 0x400>;
250 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM12)>;
255 compatible = "st,stm32-pwm";
261 compatible = "st,stm32-timer-trigger";
267 timers13: timers@40001c00 {
268 #address-cells = <1>;
270 compatible = "st,stm32-timers";
271 reg = <0x40001C00 0x400>;
272 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM13)>;
277 compatible = "st,stm32-pwm";
283 timers14: timers@40002000 {
284 #address-cells = <1>;
286 compatible = "st,stm32-timers";
287 reg = <0x40002000 0x400>;
288 clocks = <&rcc 0 STM32F7_APB1_CLOCK(TIM14)>;
293 compatible = "st,stm32-pwm";
300 compatible = "st,stm32-rtc";
301 reg = <0x40002800 0x400>;
302 clocks = <&rcc 1 CLK_RTC>;
303 assigned-clocks = <&rcc 1 CLK_RTC>;
304 assigned-clock-parents = <&rcc 1 CLK_LSE>;
305 interrupt-parent = <&exti>;
307 st,syscfg = <&pwrcfg 0x00 0x100>;
311 usart2: serial@40004400 {
312 compatible = "st,stm32f7-uart";
313 reg = <0x40004400 0x400>;
315 clocks = <&rcc 1 CLK_USART2>;
319 usart3: serial@40004800 {
320 compatible = "st,stm32f7-uart";
321 reg = <0x40004800 0x400>;
323 clocks = <&rcc 1 CLK_USART3>;
327 usart4: serial@40004c00 {
328 compatible = "st,stm32f7-uart";
329 reg = <0x40004c00 0x400>;
331 clocks = <&rcc 1 CLK_UART4>;
335 usart5: serial@40005000 {
336 compatible = "st,stm32f7-uart";
337 reg = <0x40005000 0x400>;
339 clocks = <&rcc 1 CLK_UART5>;
344 compatible = "st,stm32f7-i2c";
345 reg = <0x40005400 0x400>;
348 resets = <&rcc STM32F7_APB1_RESET(I2C1)>;
349 clocks = <&rcc 1 CLK_I2C1>;
350 #address-cells = <1>;
356 compatible = "st,stm32f7-i2c";
357 reg = <0x40005800 0x400>;
360 resets = <&rcc STM32F7_APB1_RESET(I2C2)>;
361 clocks = <&rcc 1 CLK_I2C2>;
362 #address-cells = <1>;
368 compatible = "st,stm32f7-i2c";
369 reg = <0x40005C00 0x400>;
372 resets = <&rcc STM32F7_APB1_RESET(I2C3)>;
373 clocks = <&rcc 1 CLK_I2C3>;
374 #address-cells = <1>;
380 compatible = "st,stm32f7-i2c";
381 reg = <0x40006000 0x400>;
384 resets = <&rcc STM32F7_APB1_RESET(I2C4)>;
385 clocks = <&rcc 1 CLK_I2C4>;
386 #address-cells = <1>;
392 compatible = "st,stm32-cec";
393 reg = <0x40006C00 0x400>;
395 clocks = <&rcc 0 STM32F7_APB1_CLOCK(CEC)>, <&rcc 1 CLK_HDMI_CEC>;
396 clock-names = "cec", "hdmi-cec";
400 usart7: serial@40007800 {
401 compatible = "st,stm32f7-uart";
402 reg = <0x40007800 0x400>;
404 clocks = <&rcc 1 CLK_UART7>;
408 usart8: serial@40007c00 {
409 compatible = "st,stm32f7-uart";
410 reg = <0x40007c00 0x400>;
412 clocks = <&rcc 1 CLK_UART8>;
416 timers1: timers@40010000 {
417 #address-cells = <1>;
419 compatible = "st,stm32-timers";
420 reg = <0x40010000 0x400>;
421 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM1)>;
426 compatible = "st,stm32-pwm";
432 compatible = "st,stm32-timer-trigger";
438 timers8: timers@40010400 {
439 #address-cells = <1>;
441 compatible = "st,stm32-timers";
442 reg = <0x40010400 0x400>;
443 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM8)>;
448 compatible = "st,stm32-pwm";
454 compatible = "st,stm32-timer-trigger";
460 usart1: serial@40011000 {
461 compatible = "st,stm32f7-uart";
462 reg = <0x40011000 0x400>;
464 clocks = <&rcc 1 CLK_USART1>;
468 usart6: serial@40011400 {
469 compatible = "st,stm32f7-uart";
470 reg = <0x40011400 0x400>;
472 clocks = <&rcc 1 CLK_USART6>;
476 sdio2: sdio2@40011c00 {
477 compatible = "arm,pl180", "arm,primecell";
478 arm,primecell-periphid = <0x00880180>;
479 reg = <0x40011c00 0x400>;
480 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SDMMC2)>;
481 clock-names = "apb_pclk";
483 max-frequency = <48000000>;
487 sdio1: sdio1@40012c00 {
488 compatible = "arm,pl180", "arm,primecell";
489 arm,primecell-periphid = <0x00880180>;
490 reg = <0x40012c00 0x400>;
491 clocks = <&rcc 0 STM32F7_APB2_CLOCK(SDMMC1)>;
492 clock-names = "apb_pclk";
494 max-frequency = <48000000>;
498 syscfg: syscon@40013800 {
499 compatible = "st,stm32-syscfg", "syscon";
500 reg = <0x40013800 0x400>;
503 exti: interrupt-controller@40013c00 {
504 compatible = "st,stm32-exti";
505 interrupt-controller;
506 #interrupt-cells = <2>;
507 reg = <0x40013C00 0x400>;
508 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
511 timers9: timers@40014000 {
512 #address-cells = <1>;
514 compatible = "st,stm32-timers";
515 reg = <0x40014000 0x400>;
516 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM9)>;
521 compatible = "st,stm32-pwm";
527 compatible = "st,stm32-timer-trigger";
533 timers10: timers@40014400 {
534 #address-cells = <1>;
536 compatible = "st,stm32-timers";
537 reg = <0x40014400 0x400>;
538 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM10)>;
543 compatible = "st,stm32-pwm";
549 timers11: timers@40014800 {
550 #address-cells = <1>;
552 compatible = "st,stm32-timers";
553 reg = <0x40014800 0x400>;
554 clocks = <&rcc 0 STM32F7_APB2_CLOCK(TIM11)>;
559 compatible = "st,stm32-pwm";
565 pwrcfg: power-config@40007000 {
566 compatible = "st,stm32-power-config", "syscon";
567 reg = <0x40007000 0x400>;
571 compatible = "st,stm32f7-crc";
572 reg = <0x40023000 0x400>;
573 clocks = <&rcc 0 12>;
580 compatible = "st,stm32f746-rcc", "st,stm32-rcc";
581 reg = <0x40023800 0x400>;
582 clocks = <&clk_hse>, <&clk_i2s_ckin>;
583 st,syscfg = <&pwrcfg>;
584 assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
585 assigned-clock-rates = <1000000>;
588 dma1: dma-controller@40026000 {
589 compatible = "st,stm32-dma";
590 reg = <0x40026000 0x400>;
599 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(DMA1)>;
604 dma2: dma-controller@40026400 {
605 compatible = "st,stm32-dma";
606 reg = <0x40026400 0x400>;
615 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(DMA2)>;
621 usbotg_hs: usb@40040000 {
622 compatible = "st,stm32f7-hsotg";
623 reg = <0x40040000 0x40000>;
625 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHS)>;
627 g-rx-fifo-size = <256>;
628 g-np-tx-fifo-size = <32>;
629 g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
633 usbotg_fs: usb@50000000 {
634 compatible = "st,stm32f4x9-fsotg";
635 reg = <0x50000000 0x40000>;
637 clocks = <&rcc 0 STM32F7_AHB2_CLOCK(OTGFS)>;