2 * Copyright (C) 2015, STMicroelectronics - All Rights Reserved
3 * Author(s): Maxime Coquelin <mcoquelin.stm32@gmail.com> for STMicroelectronics.
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "skeleton.dtsi"
45 #include "armv7-m.dtsi"
46 #include <dt-bindings/clock/stm32fx-clock.h>
47 #include <dt-bindings/mfd/stm32f4-rcc.h>
53 compatible = "fixed-clock";
54 clock-frequency = <0>;
59 compatible = "fixed-clock";
60 clock-frequency = <32768>;
65 compatible = "fixed-clock";
66 clock-frequency = <32000>;
69 clk_i2s_ckin: i2s-ckin {
71 compatible = "fixed-clock";
72 clock-frequency = <0>;
77 timer2: timer@40000000 {
78 compatible = "st,stm32-timer";
79 reg = <0x40000000 0x400>;
81 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM2)>;
85 timers2: timers@40000000 {
88 compatible = "st,stm32-timers";
89 reg = <0x40000000 0x400>;
90 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM2)>;
95 compatible = "st,stm32-pwm";
100 compatible = "st,stm32-timer-trigger";
106 timer3: timer@40000400 {
107 compatible = "st,stm32-timer";
108 reg = <0x40000400 0x400>;
110 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM3)>;
114 timers3: timers@40000400 {
115 #address-cells = <1>;
117 compatible = "st,stm32-timers";
118 reg = <0x40000400 0x400>;
119 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM3)>;
124 compatible = "st,stm32-pwm";
129 compatible = "st,stm32-timer-trigger";
135 timer4: timer@40000800 {
136 compatible = "st,stm32-timer";
137 reg = <0x40000800 0x400>;
139 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM4)>;
143 timers4: timers@40000800 {
144 #address-cells = <1>;
146 compatible = "st,stm32-timers";
147 reg = <0x40000800 0x400>;
148 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM4)>;
153 compatible = "st,stm32-pwm";
158 compatible = "st,stm32-timer-trigger";
164 timer5: timer@40000c00 {
165 compatible = "st,stm32-timer";
166 reg = <0x40000c00 0x400>;
168 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM5)>;
171 timers5: timers@40000c00 {
172 #address-cells = <1>;
174 compatible = "st,stm32-timers";
175 reg = <0x40000C00 0x400>;
176 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM5)>;
181 compatible = "st,stm32-pwm";
186 compatible = "st,stm32-timer-trigger";
192 timer6: timer@40001000 {
193 compatible = "st,stm32-timer";
194 reg = <0x40001000 0x400>;
196 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM6)>;
200 timers6: timers@40001000 {
201 #address-cells = <1>;
203 compatible = "st,stm32-timers";
204 reg = <0x40001000 0x400>;
205 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM6)>;
210 compatible = "st,stm32-timer-trigger";
216 timer7: timer@40001400 {
217 compatible = "st,stm32-timer";
218 reg = <0x40001400 0x400>;
220 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM7)>;
224 timers7: timers@40001400 {
225 #address-cells = <1>;
227 compatible = "st,stm32-timers";
228 reg = <0x40001400 0x400>;
229 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM7)>;
234 compatible = "st,stm32-timer-trigger";
240 timers12: timers@40001800 {
241 #address-cells = <1>;
243 compatible = "st,stm32-timers";
244 reg = <0x40001800 0x400>;
245 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM12)>;
250 compatible = "st,stm32-pwm";
255 compatible = "st,stm32-timer-trigger";
261 timers13: timers@40001c00 {
263 compatible = "st,stm32-timers";
264 reg = <0x40001C00 0x400>;
265 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM13)>;
270 compatible = "st,stm32-pwm";
275 timers14: timers@40002000 {
277 compatible = "st,stm32-timers";
278 reg = <0x40002000 0x400>;
279 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM14)>;
284 compatible = "st,stm32-pwm";
290 compatible = "st,stm32-rtc";
291 reg = <0x40002800 0x400>;
292 clocks = <&rcc 1 CLK_RTC>;
293 clock-names = "ck_rtc";
294 assigned-clocks = <&rcc 1 CLK_RTC>;
295 assigned-clock-parents = <&rcc 1 CLK_LSE>;
296 interrupt-parent = <&exti>;
298 interrupt-names = "alarm";
299 st,syscfg = <&pwrcfg>;
303 iwdg: watchdog@40003000 {
304 compatible = "st,stm32-iwdg";
305 reg = <0x40003000 0x400>;
310 usart2: serial@40004400 {
311 compatible = "st,stm32-uart";
312 reg = <0x40004400 0x400>;
314 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART2)>;
318 usart3: serial@40004800 {
319 compatible = "st,stm32-uart";
320 reg = <0x40004800 0x400>;
322 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART3)>;
324 dmas = <&dma1 1 4 0x400 0x0>,
325 <&dma1 3 4 0x400 0x0>;
326 dma-names = "rx", "tx";
329 usart4: serial@40004c00 {
330 compatible = "st,stm32-uart";
331 reg = <0x40004c00 0x400>;
333 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART4)>;
337 usart5: serial@40005000 {
338 compatible = "st,stm32-uart";
339 reg = <0x40005000 0x400>;
341 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART5)>;
346 compatible = "st,stm32f4-i2c";
347 reg = <0x40005400 0x400>;
350 resets = <&rcc STM32F4_APB1_RESET(I2C1)>;
351 clocks = <&rcc 0 STM32F4_APB1_CLOCK(I2C1)>;
352 #address-cells = <1>;
358 compatible = "st,stm32f4-dac-core";
359 reg = <0x40007400 0x400>;
360 resets = <&rcc STM32F4_APB1_RESET(DAC)>;
361 clocks = <&rcc 0 STM32F4_APB1_CLOCK(DAC)>;
362 clock-names = "pclk";
363 #address-cells = <1>;
368 compatible = "st,stm32-dac";
369 #io-channels-cells = <1>;
375 compatible = "st,stm32-dac";
376 #io-channels-cells = <1>;
382 usart7: serial@40007800 {
383 compatible = "st,stm32-uart";
384 reg = <0x40007800 0x400>;
386 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART7)>;
390 usart8: serial@40007c00 {
391 compatible = "st,stm32-uart";
392 reg = <0x40007c00 0x400>;
394 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART8)>;
398 timers1: timers@40010000 {
399 #address-cells = <1>;
401 compatible = "st,stm32-timers";
402 reg = <0x40010000 0x400>;
403 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM1)>;
408 compatible = "st,stm32-pwm";
413 compatible = "st,stm32-timer-trigger";
419 timers8: timers@40010400 {
420 #address-cells = <1>;
422 compatible = "st,stm32-timers";
423 reg = <0x40010400 0x400>;
424 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM8)>;
429 compatible = "st,stm32-pwm";
434 compatible = "st,stm32-timer-trigger";
440 usart1: serial@40011000 {
441 compatible = "st,stm32-uart";
442 reg = <0x40011000 0x400>;
444 clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART1)>;
446 dmas = <&dma2 2 4 0x400 0x0>,
447 <&dma2 7 4 0x400 0x0>;
448 dma-names = "rx", "tx";
451 usart6: serial@40011400 {
452 compatible = "st,stm32-uart";
453 reg = <0x40011400 0x400>;
455 clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART6)>;
460 compatible = "st,stm32f4-adc-core";
461 reg = <0x40012000 0x400>;
463 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC1)>;
465 interrupt-controller;
466 #interrupt-cells = <1>;
467 #address-cells = <1>;
472 compatible = "st,stm32f4-adc";
473 #io-channel-cells = <1>;
475 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC1)>;
476 interrupt-parent = <&adc>;
478 dmas = <&dma2 0 0 0x400 0x0>;
484 compatible = "st,stm32f4-adc";
485 #io-channel-cells = <1>;
487 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC2)>;
488 interrupt-parent = <&adc>;
490 dmas = <&dma2 3 1 0x400 0x0>;
496 compatible = "st,stm32f4-adc";
497 #io-channel-cells = <1>;
499 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC3)>;
500 interrupt-parent = <&adc>;
502 dmas = <&dma2 1 2 0x400 0x0>;
508 syscfg: system-config@40013800 {
509 compatible = "syscon";
510 reg = <0x40013800 0x400>;
513 exti: interrupt-controller@40013c00 {
514 compatible = "st,stm32-exti";
515 interrupt-controller;
516 #interrupt-cells = <2>;
517 reg = <0x40013C00 0x400>;
518 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
521 timers9: timers@40014000 {
522 #address-cells = <1>;
524 compatible = "st,stm32-timers";
525 reg = <0x40014000 0x400>;
526 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM9)>;
531 compatible = "st,stm32-pwm";
536 compatible = "st,stm32-timer-trigger";
542 timers10: timers@40014400 {
544 compatible = "st,stm32-timers";
545 reg = <0x40014400 0x400>;
546 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM10)>;
551 compatible = "st,stm32-pwm";
556 timers11: timers@40014800 {
558 compatible = "st,stm32-timers";
559 reg = <0x40014800 0x400>;
560 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM11)>;
565 compatible = "st,stm32-pwm";
570 pwrcfg: power-config@40007000 {
571 compatible = "syscon";
572 reg = <0x40007000 0x400>;
575 sdio: sdio@40012c00 {
576 compatible = "st,stm32f4xx-sdio";
577 reg = <0x40012c00 0x400>;
578 clocks = <&rcc 0 171>;
581 pinctrl-0 = <&sdio_pins>;
582 pinctrl-1 = <&sdio_pins_od>;
583 pinctrl-names = "default", "opendrain";
584 max-frequency = <48000000>;
587 ltdc: display-controller@40016800 {
588 compatible = "st,stm32-ltdc";
589 reg = <0x40016800 0x200>;
590 interrupts = <88>, <89>;
591 resets = <&rcc STM32F4_APB2_RESET(LTDC)>;
592 clocks = <&rcc 1 CLK_LCD>;
598 compatible = "st,stm32f4-crc";
599 reg = <0x40023000 0x400>;
600 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(CRC)>;
607 compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
608 reg = <0x40023800 0x400>;
609 clocks = <&clk_hse>, <&clk_i2s_ckin>;
610 st,syscfg = <&pwrcfg>;
611 assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
612 assigned-clock-rates = <1000000>;
615 dma1: dma-controller@40026000 {
616 compatible = "st,stm32-dma";
617 reg = <0x40026000 0x400>;
626 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA1)>;
630 dma2: dma-controller@40026400 {
631 compatible = "st,stm32-dma";
632 reg = <0x40026400 0x400>;
641 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA2)>;
646 mac: ethernet@40028000 {
647 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
648 reg = <0x40028000 0x8000>;
649 reg-names = "stmmaceth";
651 interrupt-names = "macirq";
652 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
653 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(ETHMAC)>,
654 <&rcc 0 STM32F4_AHB1_CLOCK(ETHMACTX)>,
655 <&rcc 0 STM32F4_AHB1_CLOCK(ETHMACRX)>;
656 st,syscon = <&syscfg 0x4>;
662 usbotg_hs: usb@40040000 {
663 compatible = "snps,dwc2";
664 reg = <0x40040000 0x40000>;
666 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHS)>;
671 usbotg_fs: usb@50000000 {
672 compatible = "st,stm32f4x9-fsotg";
673 reg = <0x50000000 0x40000>;
675 clocks = <&rcc 0 39>;
680 dcmi: dcmi@50050000 {
681 compatible = "st,stm32-dcmi";
682 reg = <0x50050000 0x400>;
684 resets = <&rcc STM32F4_AHB2_RESET(DCMI)>;
685 clocks = <&rcc 0 STM32F4_AHB2_CLOCK(DCMI)>;
686 clock-names = "mclk";
687 pinctrl-names = "default";
688 pinctrl-0 = <&dcmi_pins>;
689 dmas = <&dma2 1 1 0x414 0x3>;
695 compatible = "st,stm32-rng";
696 reg = <0x50060800 0x400>;
698 clocks = <&rcc 0 STM32F4_AHB2_CLOCK(RNG)>;
705 clocks = <&rcc 1 SYSTICK>;