1 // SPDX-License-Identifier: GPL-2.0+ OR X11
3 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
7 #include "armv7-m.dtsi"
8 #include <dt-bindings/clock/stm32fx-clock.h>
9 #include <dt-bindings/mfd/stm32f4-rcc.h>
18 compatible = "fixed-clock";
19 clock-frequency = <0>;
24 compatible = "fixed-clock";
25 clock-frequency = <32768>;
30 compatible = "fixed-clock";
31 clock-frequency = <32000>;
34 clk_i2s_ckin: i2s-ckin {
36 compatible = "fixed-clock";
37 clock-frequency = <0>;
42 romem: efuse@1fff7800 {
43 compatible = "st,stm32f4-otp";
44 reg = <0x1fff7800 0x400>;
55 timer2: timer@40000000 {
56 compatible = "st,stm32-timer";
57 reg = <0x40000000 0x400>;
59 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM2)>;
63 timers2: timers@40000000 {
66 compatible = "st,stm32-timers";
67 reg = <0x40000000 0x400>;
68 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM2)>;
73 compatible = "st,stm32-pwm";
79 compatible = "st,stm32-timer-trigger";
85 timer3: timer@40000400 {
86 compatible = "st,stm32-timer";
87 reg = <0x40000400 0x400>;
89 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM3)>;
93 timers3: timers@40000400 {
96 compatible = "st,stm32-timers";
97 reg = <0x40000400 0x400>;
98 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM3)>;
103 compatible = "st,stm32-pwm";
109 compatible = "st,stm32-timer-trigger";
115 timer4: timer@40000800 {
116 compatible = "st,stm32-timer";
117 reg = <0x40000800 0x400>;
119 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM4)>;
123 timers4: timers@40000800 {
124 #address-cells = <1>;
126 compatible = "st,stm32-timers";
127 reg = <0x40000800 0x400>;
128 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM4)>;
133 compatible = "st,stm32-pwm";
139 compatible = "st,stm32-timer-trigger";
145 timer5: timer@40000c00 {
146 compatible = "st,stm32-timer";
147 reg = <0x40000c00 0x400>;
149 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM5)>;
152 timers5: timers@40000c00 {
153 #address-cells = <1>;
155 compatible = "st,stm32-timers";
156 reg = <0x40000C00 0x400>;
157 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM5)>;
162 compatible = "st,stm32-pwm";
168 compatible = "st,stm32-timer-trigger";
174 timer6: timer@40001000 {
175 compatible = "st,stm32-timer";
176 reg = <0x40001000 0x400>;
178 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM6)>;
182 timers6: timers@40001000 {
183 #address-cells = <1>;
185 compatible = "st,stm32-timers";
186 reg = <0x40001000 0x400>;
187 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM6)>;
192 compatible = "st,stm32-timer-trigger";
198 timer7: timer@40001400 {
199 compatible = "st,stm32-timer";
200 reg = <0x40001400 0x400>;
202 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM7)>;
206 timers7: timers@40001400 {
207 #address-cells = <1>;
209 compatible = "st,stm32-timers";
210 reg = <0x40001400 0x400>;
211 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM7)>;
216 compatible = "st,stm32-timer-trigger";
222 timers12: timers@40001800 {
223 #address-cells = <1>;
225 compatible = "st,stm32-timers";
226 reg = <0x40001800 0x400>;
227 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM12)>;
232 compatible = "st,stm32-pwm";
238 compatible = "st,stm32-timer-trigger";
244 timers13: timers@40001c00 {
245 #address-cells = <1>;
247 compatible = "st,stm32-timers";
248 reg = <0x40001C00 0x400>;
249 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM13)>;
254 compatible = "st,stm32-pwm";
260 timers14: timers@40002000 {
261 #address-cells = <1>;
263 compatible = "st,stm32-timers";
264 reg = <0x40002000 0x400>;
265 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM14)>;
270 compatible = "st,stm32-pwm";
277 compatible = "st,stm32-rtc";
278 reg = <0x40002800 0x400>;
279 clocks = <&rcc 1 CLK_RTC>;
280 assigned-clocks = <&rcc 1 CLK_RTC>;
281 assigned-clock-parents = <&rcc 1 CLK_LSE>;
282 interrupt-parent = <&exti>;
284 st,syscfg = <&pwrcfg 0x00 0x100>;
288 iwdg: watchdog@40003000 {
289 compatible = "st,stm32-iwdg";
290 reg = <0x40003000 0x400>;
297 #address-cells = <1>;
299 compatible = "st,stm32f4-spi";
300 reg = <0x40003800 0x400>;
302 clocks = <&rcc 0 STM32F4_APB1_CLOCK(SPI2)>;
307 #address-cells = <1>;
309 compatible = "st,stm32f4-spi";
310 reg = <0x40003c00 0x400>;
312 clocks = <&rcc 0 STM32F4_APB1_CLOCK(SPI3)>;
316 usart2: serial@40004400 {
317 compatible = "st,stm32-uart";
318 reg = <0x40004400 0x400>;
320 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART2)>;
324 usart3: serial@40004800 {
325 compatible = "st,stm32-uart";
326 reg = <0x40004800 0x400>;
328 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART3)>;
330 dmas = <&dma1 1 4 0x400 0x0>,
331 <&dma1 3 4 0x400 0x0>;
332 dma-names = "rx", "tx";
335 usart4: serial@40004c00 {
336 compatible = "st,stm32-uart";
337 reg = <0x40004c00 0x400>;
339 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART4)>;
343 usart5: serial@40005000 {
344 compatible = "st,stm32-uart";
345 reg = <0x40005000 0x400>;
347 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART5)>;
352 compatible = "st,stm32f4-i2c";
353 reg = <0x40005400 0x400>;
356 resets = <&rcc STM32F4_APB1_RESET(I2C1)>;
357 clocks = <&rcc 0 STM32F4_APB1_CLOCK(I2C1)>;
358 #address-cells = <1>;
364 compatible = "st,stm32f4-i2c";
365 reg = <0x40005c00 0x400>;
368 resets = <&rcc STM32F4_APB1_RESET(I2C3)>;
369 clocks = <&rcc 0 STM32F4_APB1_CLOCK(I2C3)>;
370 #address-cells = <1>;
376 compatible = "st,stm32f4-dac-core";
377 reg = <0x40007400 0x400>;
378 resets = <&rcc STM32F4_APB1_RESET(DAC)>;
379 clocks = <&rcc 0 STM32F4_APB1_CLOCK(DAC)>;
380 clock-names = "pclk";
381 #address-cells = <1>;
386 compatible = "st,stm32-dac";
387 #io-channel-cells = <1>;
393 compatible = "st,stm32-dac";
394 #io-channel-cells = <1>;
400 usart7: serial@40007800 {
401 compatible = "st,stm32-uart";
402 reg = <0x40007800 0x400>;
404 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART7)>;
408 usart8: serial@40007c00 {
409 compatible = "st,stm32-uart";
410 reg = <0x40007c00 0x400>;
412 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART8)>;
416 timers1: timers@40010000 {
417 #address-cells = <1>;
419 compatible = "st,stm32-timers";
420 reg = <0x40010000 0x400>;
421 clocks = <&rcc 0 STM32F4_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 STM32F4_APB2_CLOCK(TIM8)>;
448 compatible = "st,stm32-pwm";
454 compatible = "st,stm32-timer-trigger";
460 usart1: serial@40011000 {
461 compatible = "st,stm32-uart";
462 reg = <0x40011000 0x400>;
464 clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART1)>;
466 dmas = <&dma2 2 4 0x400 0x0>,
467 <&dma2 7 4 0x400 0x0>;
468 dma-names = "rx", "tx";
471 usart6: serial@40011400 {
472 compatible = "st,stm32-uart";
473 reg = <0x40011400 0x400>;
475 clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART6)>;
480 compatible = "st,stm32f4-adc-core";
481 reg = <0x40012000 0x400>;
483 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC1)>;
485 interrupt-controller;
486 #interrupt-cells = <1>;
487 #address-cells = <1>;
492 compatible = "st,stm32f4-adc";
493 #io-channel-cells = <1>;
495 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC1)>;
496 interrupt-parent = <&adc>;
498 dmas = <&dma2 0 0 0x400 0x0>;
504 compatible = "st,stm32f4-adc";
505 #io-channel-cells = <1>;
507 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC2)>;
508 interrupt-parent = <&adc>;
510 dmas = <&dma2 3 1 0x400 0x0>;
516 compatible = "st,stm32f4-adc";
517 #io-channel-cells = <1>;
519 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC3)>;
520 interrupt-parent = <&adc>;
522 dmas = <&dma2 1 2 0x400 0x0>;
528 sdio: sdio@40012c00 {
529 compatible = "arm,pl180", "arm,primecell";
530 arm,primecell-periphid = <0x00880180>;
531 reg = <0x40012c00 0x400>;
532 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SDIO)>;
533 clock-names = "apb_pclk";
535 max-frequency = <48000000>;
540 #address-cells = <1>;
542 compatible = "st,stm32f4-spi";
543 reg = <0x40013000 0x400>;
545 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI1)>;
550 #address-cells = <1>;
552 compatible = "st,stm32f4-spi";
553 reg = <0x40013400 0x400>;
555 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI4)>;
559 syscfg: syscon@40013800 {
560 compatible = "st,stm32-syscfg", "syscon";
561 reg = <0x40013800 0x400>;
564 exti: interrupt-controller@40013c00 {
565 compatible = "st,stm32-exti";
566 interrupt-controller;
567 #interrupt-cells = <2>;
568 reg = <0x40013C00 0x400>;
569 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
572 timers9: timers@40014000 {
573 #address-cells = <1>;
575 compatible = "st,stm32-timers";
576 reg = <0x40014000 0x400>;
577 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM9)>;
582 compatible = "st,stm32-pwm";
588 compatible = "st,stm32-timer-trigger";
594 timers10: timers@40014400 {
595 #address-cells = <1>;
597 compatible = "st,stm32-timers";
598 reg = <0x40014400 0x400>;
599 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM10)>;
604 compatible = "st,stm32-pwm";
610 timers11: timers@40014800 {
611 #address-cells = <1>;
613 compatible = "st,stm32-timers";
614 reg = <0x40014800 0x400>;
615 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM11)>;
620 compatible = "st,stm32-pwm";
627 #address-cells = <1>;
629 compatible = "st,stm32f4-spi";
630 reg = <0x40015000 0x400>;
632 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI5)>;
633 dmas = <&dma2 3 2 0x400 0x0>,
634 <&dma2 4 2 0x400 0x0>;
635 dma-names = "rx", "tx";
640 #address-cells = <1>;
642 compatible = "st,stm32f4-spi";
643 reg = <0x40015400 0x400>;
645 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SPI6)>;
649 pwrcfg: power-config@40007000 {
650 compatible = "st,stm32-power-config", "syscon";
651 reg = <0x40007000 0x400>;
654 ltdc: display-controller@40016800 {
655 compatible = "st,stm32-ltdc";
656 reg = <0x40016800 0x200>;
657 interrupts = <88>, <89>;
658 resets = <&rcc STM32F4_APB2_RESET(LTDC)>;
659 clocks = <&rcc 1 CLK_LCD>;
665 compatible = "st,stm32f4-crc";
666 reg = <0x40023000 0x400>;
667 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(CRC)>;
674 compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
675 reg = <0x40023800 0x400>;
676 clocks = <&clk_hse>, <&clk_i2s_ckin>;
677 st,syscfg = <&pwrcfg>;
678 assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
679 assigned-clock-rates = <1000000>;
682 dma1: dma-controller@40026000 {
683 compatible = "st,stm32-dma";
684 reg = <0x40026000 0x400>;
693 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA1)>;
697 dma2: dma-controller@40026400 {
698 compatible = "st,stm32-dma";
699 reg = <0x40026400 0x400>;
708 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA2)>;
713 mac: ethernet@40028000 {
714 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
715 reg = <0x40028000 0x8000>;
716 reg-names = "stmmaceth";
718 interrupt-names = "macirq";
719 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
720 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(ETHMAC)>,
721 <&rcc 0 STM32F4_AHB1_CLOCK(ETHMACTX)>,
722 <&rcc 0 STM32F4_AHB1_CLOCK(ETHMACRX)>;
723 st,syscon = <&syscfg 0x4>;
729 usbotg_hs: usb@40040000 {
730 compatible = "snps,dwc2";
731 reg = <0x40040000 0x40000>;
733 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHS)>;
738 usbotg_fs: usb@50000000 {
739 compatible = "st,stm32f4x9-fsotg";
740 reg = <0x50000000 0x40000>;
742 clocks = <&rcc 0 39>;
747 dcmi: dcmi@50050000 {
748 compatible = "st,stm32-dcmi";
749 reg = <0x50050000 0x400>;
751 resets = <&rcc STM32F4_AHB2_RESET(DCMI)>;
752 clocks = <&rcc 0 STM32F4_AHB2_CLOCK(DCMI)>;
753 clock-names = "mclk";
754 pinctrl-names = "default";
755 pinctrl-0 = <&dcmi_pins>;
756 dmas = <&dma2 1 1 0x414 0x3>;
762 compatible = "st,stm32-rng";
763 reg = <0x50060800 0x400>;
764 clocks = <&rcc 0 STM32F4_AHB2_CLOCK(RNG)>;
771 clocks = <&rcc 1 SYSTICK>;