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.
19 * You should have received a copy of the GNU General Public
20 * License along with this file; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
48 #include "armv7-m.dtsi"
49 #include <dt-bindings/clock/stm32fx-clock.h>
50 #include <dt-bindings/mfd/stm32f4-rcc.h>
59 compatible = "fixed-clock";
60 clock-frequency = <0>;
65 compatible = "fixed-clock";
66 clock-frequency = <32768>;
71 compatible = "fixed-clock";
72 clock-frequency = <32000>;
75 clk_i2s_ckin: i2s-ckin {
77 compatible = "fixed-clock";
78 clock-frequency = <0>;
83 romem: efuse@1fff7800 {
84 compatible = "st,stm32f4-otp";
85 reg = <0x1fff7800 0x400>;
96 timers2: timers@40000000 {
99 compatible = "st,stm32-timers";
100 reg = <0x40000000 0x400>;
101 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM2)>;
106 compatible = "st,stm32-pwm";
112 compatible = "st,stm32-timer-trigger";
118 timers3: timers@40000400 {
119 #address-cells = <1>;
121 compatible = "st,stm32-timers";
122 reg = <0x40000400 0x400>;
123 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM3)>;
128 compatible = "st,stm32-pwm";
134 compatible = "st,stm32-timer-trigger";
140 timers4: timers@40000800 {
141 #address-cells = <1>;
143 compatible = "st,stm32-timers";
144 reg = <0x40000800 0x400>;
145 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM4)>;
150 compatible = "st,stm32-pwm";
156 compatible = "st,stm32-timer-trigger";
162 timers5: timers@40000c00 {
163 #address-cells = <1>;
165 compatible = "st,stm32-timers";
166 reg = <0x40000C00 0x400>;
167 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM5)>;
172 compatible = "st,stm32-pwm";
178 compatible = "st,stm32-timer-trigger";
184 timers6: timers@40001000 {
185 #address-cells = <1>;
187 compatible = "st,stm32-timers";
188 reg = <0x40001000 0x400>;
189 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM6)>;
194 compatible = "st,stm32-timer-trigger";
200 timers7: timers@40001400 {
201 #address-cells = <1>;
203 compatible = "st,stm32-timers";
204 reg = <0x40001400 0x400>;
205 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM7)>;
210 compatible = "st,stm32-timer-trigger";
216 timers12: timers@40001800 {
217 #address-cells = <1>;
219 compatible = "st,stm32-timers";
220 reg = <0x40001800 0x400>;
221 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM12)>;
226 compatible = "st,stm32-pwm";
232 compatible = "st,stm32-timer-trigger";
238 timers13: timers@40001c00 {
239 compatible = "st,stm32-timers";
240 reg = <0x40001C00 0x400>;
241 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM13)>;
246 compatible = "st,stm32-pwm";
252 timers14: timers@40002000 {
253 compatible = "st,stm32-timers";
254 reg = <0x40002000 0x400>;
255 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM14)>;
260 compatible = "st,stm32-pwm";
267 compatible = "st,stm32-rtc";
268 reg = <0x40002800 0x400>;
269 clocks = <&rcc 1 CLK_RTC>;
270 assigned-clocks = <&rcc 1 CLK_RTC>;
271 assigned-clock-parents = <&rcc 1 CLK_LSE>;
272 interrupt-parent = <&exti>;
274 st,syscfg = <&pwrcfg 0x00 0x100>;
278 iwdg: watchdog@40003000 {
279 compatible = "st,stm32-iwdg";
280 reg = <0x40003000 0x400>;
287 #address-cells = <1>;
289 compatible = "st,stm32f4-spi";
290 reg = <0x40003800 0x400>;
292 clocks = <&rcc 0 STM32F4_APB1_CLOCK(SPI2)>;
297 #address-cells = <1>;
299 compatible = "st,stm32f4-spi";
300 reg = <0x40003c00 0x400>;
302 clocks = <&rcc 0 STM32F4_APB1_CLOCK(SPI3)>;
306 usart2: serial@40004400 {
307 compatible = "st,stm32-uart";
308 reg = <0x40004400 0x400>;
310 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART2)>;
314 usart3: serial@40004800 {
315 compatible = "st,stm32-uart";
316 reg = <0x40004800 0x400>;
318 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART3)>;
320 dmas = <&dma1 1 4 0x400 0x0>,
321 <&dma1 3 4 0x400 0x0>;
322 dma-names = "rx", "tx";
325 usart4: serial@40004c00 {
326 compatible = "st,stm32-uart";
327 reg = <0x40004c00 0x400>;
329 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART4)>;
333 usart5: serial@40005000 {
334 compatible = "st,stm32-uart";
335 reg = <0x40005000 0x400>;
337 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART5)>;
342 compatible = "st,stm32f4-i2c";
343 reg = <0x40005400 0x400>;
346 resets = <&rcc STM32F4_APB1_RESET(I2C1)>;
347 clocks = <&rcc 0 STM32F4_APB1_CLOCK(I2C1)>;
348 #address-cells = <1>;
354 compatible = "st,stm32f4-i2c";
355 reg = <0x40005c00 0x400>;
358 resets = <&rcc STM32F4_APB1_RESET(I2C3)>;
359 clocks = <&rcc 0 STM32F4_APB1_CLOCK(I2C3)>;
360 #address-cells = <1>;
366 compatible = "st,stm32f4-dac-core";
367 reg = <0x40007400 0x400>;
368 resets = <&rcc STM32F4_APB1_RESET(DAC)>;
369 clocks = <&rcc 0 STM32F4_APB1_CLOCK(DAC)>;
370 clock-names = "pclk";
371 #address-cells = <1>;
376 compatible = "st,stm32-dac";
377 #io-channel-cells = <1>;
383 compatible = "st,stm32-dac";
384 #io-channel-cells = <1>;
390 usart7: serial@40007800 {
391 compatible = "st,stm32-uart";
392 reg = <0x40007800 0x400>;
394 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART7)>;
398 usart8: serial@40007c00 {
399 compatible = "st,stm32-uart";
400 reg = <0x40007c00 0x400>;
402 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART8)>;
406 timers1: timers@40010000 {
407 #address-cells = <1>;
409 compatible = "st,stm32-timers";
410 reg = <0x40010000 0x400>;
411 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM1)>;
416 compatible = "st,stm32-pwm";
422 compatible = "st,stm32-timer-trigger";
428 timers8: timers@40010400 {
429 #address-cells = <1>;
431 compatible = "st,stm32-timers";
432 reg = <0x40010400 0x400>;
433 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM8)>;
438 compatible = "st,stm32-pwm";
444 compatible = "st,stm32-timer-trigger";
450 usart1: serial@40011000 {
451 compatible = "st,stm32-uart";
452 reg = <0x40011000 0x400>;
454 clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART1)>;
456 dmas = <&dma2 2 4 0x400 0x0>,
457 <&dma2 7 4 0x400 0x0>;
458 dma-names = "rx", "tx";
461 usart6: serial@40011400 {
462 compatible = "st,stm32-uart";
463 reg = <0x40011400 0x400>;
465 clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART6)>;
470 compatible = "st,stm32f4-adc-core";
471 reg = <0x40012000 0x400>;
473 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC1)>;
475 interrupt-controller;
476 #interrupt-cells = <1>;
477 #address-cells = <1>;
482 compatible = "st,stm32f4-adc";
483 #io-channel-cells = <1>;
485 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC1)>;
486 interrupt-parent = <&adc>;
488 dmas = <&dma2 0 0 0x400 0x0>;
494 compatible = "st,stm32f4-adc";
495 #io-channel-cells = <1>;
497 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC2)>;
498 interrupt-parent = <&adc>;
500 dmas = <&dma2 3 1 0x400 0x0>;
506 compatible = "st,stm32f4-adc";
507 #io-channel-cells = <1>;
509 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC3)>;
510 interrupt-parent = <&adc>;
512 dmas = <&dma2 1 2 0x400 0x0>;
519 compatible = "arm,pl180", "arm,primecell";
520 arm,primecell-periphid = <0x00880180>;
521 reg = <0x40012c00 0x400>;
522 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SDIO)>;
523 clock-names = "apb_pclk";
525 max-frequency = <48000000>;
530 #address-cells = <1>;
532 compatible = "st,stm32f4-spi";
533 reg = <0x40013000 0x400>;
535 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI1)>;
540 #address-cells = <1>;
542 compatible = "st,stm32f4-spi";
543 reg = <0x40013400 0x400>;
545 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI4)>;
549 syscfg: syscon@40013800 {
550 compatible = "st,stm32-syscfg", "syscon";
551 reg = <0x40013800 0x400>;
554 exti: interrupt-controller@40013c00 {
555 compatible = "st,stm32-exti";
556 interrupt-controller;
557 #interrupt-cells = <2>;
558 reg = <0x40013C00 0x400>;
559 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
562 timers9: timers@40014000 {
563 #address-cells = <1>;
565 compatible = "st,stm32-timers";
566 reg = <0x40014000 0x400>;
567 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM9)>;
572 compatible = "st,stm32-pwm";
578 compatible = "st,stm32-timer-trigger";
584 timers10: timers@40014400 {
585 compatible = "st,stm32-timers";
586 reg = <0x40014400 0x400>;
587 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM10)>;
592 compatible = "st,stm32-pwm";
598 timers11: timers@40014800 {
599 compatible = "st,stm32-timers";
600 reg = <0x40014800 0x400>;
601 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM11)>;
606 compatible = "st,stm32-pwm";
613 #address-cells = <1>;
615 compatible = "st,stm32f4-spi";
616 reg = <0x40015000 0x400>;
618 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI5)>;
619 dmas = <&dma2 3 2 0x400 0x0>,
620 <&dma2 4 2 0x400 0x0>;
621 dma-names = "rx", "tx";
626 #address-cells = <1>;
628 compatible = "st,stm32f4-spi";
629 reg = <0x40015400 0x400>;
631 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI6)>;
635 pwrcfg: power-config@40007000 {
636 compatible = "st,stm32-power-config", "syscon";
637 reg = <0x40007000 0x400>;
640 ltdc: display-controller@40016800 {
641 compatible = "st,stm32-ltdc";
642 reg = <0x40016800 0x200>;
643 interrupts = <88>, <89>;
644 resets = <&rcc STM32F4_APB2_RESET(LTDC)>;
645 clocks = <&rcc 1 CLK_LCD>;
651 compatible = "st,stm32f4-crc";
652 reg = <0x40023000 0x400>;
653 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(CRC)>;
660 compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
661 reg = <0x40023800 0x400>;
662 clocks = <&clk_hse>, <&clk_i2s_ckin>;
663 st,syscfg = <&pwrcfg>;
664 assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
665 assigned-clock-rates = <1000000>;
668 dma1: dma-controller@40026000 {
669 compatible = "st,stm32-dma";
670 reg = <0x40026000 0x400>;
679 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA1)>;
683 dma2: dma-controller@40026400 {
684 compatible = "st,stm32-dma";
685 reg = <0x40026400 0x400>;
694 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA2)>;
699 mac: ethernet@40028000 {
700 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
701 reg = <0x40028000 0x8000>;
702 reg-names = "stmmaceth";
704 interrupt-names = "macirq";
705 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
706 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(ETHMAC)>,
707 <&rcc 0 STM32F4_AHB1_CLOCK(ETHMACTX)>,
708 <&rcc 0 STM32F4_AHB1_CLOCK(ETHMACRX)>;
709 st,syscon = <&syscfg 0x4>;
715 dma2d: dma2d@4002b000 {
716 compatible = "st,stm32-dma2d";
717 reg = <0x4002b000 0xc00>;
719 resets = <&rcc STM32F4_AHB1_RESET(DMA2D)>;
720 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA2D)>;
721 clock-names = "dma2d";
725 usbotg_hs: usb@40040000 {
726 compatible = "snps,dwc2";
727 reg = <0x40040000 0x40000>;
729 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHS)>;
734 usbotg_fs: usb@50000000 {
735 compatible = "st,stm32f4x9-fsotg";
736 reg = <0x50000000 0x40000>;
738 clocks = <&rcc 0 39>;
743 dcmi: dcmi@50050000 {
744 compatible = "st,stm32-dcmi";
745 reg = <0x50050000 0x400>;
747 resets = <&rcc STM32F4_AHB2_RESET(DCMI)>;
748 clocks = <&rcc 0 STM32F4_AHB2_CLOCK(DCMI)>;
749 clock-names = "mclk";
750 pinctrl-names = "default";
751 pinctrl-0 = <&dcmi_pins>;
752 dmas = <&dma2 1 1 0x414 0x3>;
758 compatible = "st,stm32-rng";
759 reg = <0x50060800 0x400>;
760 clocks = <&rcc 0 STM32F4_AHB2_CLOCK(RNG)>;
767 clocks = <&rcc 1 SYSTICK>;