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 "skeleton.dtsi"
49 #include "armv7-m.dtsi"
50 #include <dt-bindings/clock/stm32fx-clock.h>
51 #include <dt-bindings/mfd/stm32f4-rcc.h>
57 compatible = "fixed-clock";
58 clock-frequency = <0>;
63 compatible = "fixed-clock";
64 clock-frequency = <32768>;
69 compatible = "fixed-clock";
70 clock-frequency = <32000>;
73 clk_i2s_ckin: i2s-ckin {
75 compatible = "fixed-clock";
76 clock-frequency = <0>;
81 timer2: timer@40000000 {
82 compatible = "st,stm32-timer";
83 reg = <0x40000000 0x400>;
85 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM2)>;
89 timers2: timers@40000000 {
92 compatible = "st,stm32-timers";
93 reg = <0x40000000 0x400>;
94 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM2)>;
99 compatible = "st,stm32-pwm";
104 compatible = "st,stm32-timer-trigger";
110 timer3: timer@40000400 {
111 compatible = "st,stm32-timer";
112 reg = <0x40000400 0x400>;
114 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM3)>;
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";
133 compatible = "st,stm32-timer-trigger";
139 timer4: timer@40000800 {
140 compatible = "st,stm32-timer";
141 reg = <0x40000800 0x400>;
143 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM4)>;
147 timers4: timers@40000800 {
148 #address-cells = <1>;
150 compatible = "st,stm32-timers";
151 reg = <0x40000800 0x400>;
152 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM4)>;
157 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 STM32F4_APB1_CLOCK(TIM5)>;
175 timers5: timers@40000c00 {
176 #address-cells = <1>;
178 compatible = "st,stm32-timers";
179 reg = <0x40000C00 0x400>;
180 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM5)>;
185 compatible = "st,stm32-pwm";
190 compatible = "st,stm32-timer-trigger";
196 timer6: timer@40001000 {
197 compatible = "st,stm32-timer";
198 reg = <0x40001000 0x400>;
200 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM6)>;
204 timers6: timers@40001000 {
205 #address-cells = <1>;
207 compatible = "st,stm32-timers";
208 reg = <0x40001000 0x400>;
209 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM6)>;
214 compatible = "st,stm32-timer-trigger";
220 timer7: timer@40001400 {
221 compatible = "st,stm32-timer";
222 reg = <0x40001400 0x400>;
224 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM7)>;
228 timers7: timers@40001400 {
229 #address-cells = <1>;
231 compatible = "st,stm32-timers";
232 reg = <0x40001400 0x400>;
233 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM7)>;
238 compatible = "st,stm32-timer-trigger";
244 timers12: timers@40001800 {
245 #address-cells = <1>;
247 compatible = "st,stm32-timers";
248 reg = <0x40001800 0x400>;
249 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM12)>;
254 compatible = "st,stm32-pwm";
259 compatible = "st,stm32-timer-trigger";
265 timers13: timers@40001c00 {
266 #address-cells = <1>;
268 compatible = "st,stm32-timers";
269 reg = <0x40001C00 0x400>;
270 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM13)>;
275 compatible = "st,stm32-pwm";
280 timers14: timers@40002000 {
281 #address-cells = <1>;
283 compatible = "st,stm32-timers";
284 reg = <0x40002000 0x400>;
285 clocks = <&rcc 0 STM32F4_APB1_CLOCK(TIM14)>;
290 compatible = "st,stm32-pwm";
296 compatible = "st,stm32-rtc";
297 reg = <0x40002800 0x400>;
298 clocks = <&rcc 1 CLK_RTC>;
299 clock-names = "ck_rtc";
300 assigned-clocks = <&rcc 1 CLK_RTC>;
301 assigned-clock-parents = <&rcc 1 CLK_LSE>;
302 interrupt-parent = <&exti>;
304 interrupt-names = "alarm";
305 st,syscfg = <&pwrcfg 0x00 0x100>;
309 iwdg: watchdog@40003000 {
310 compatible = "st,stm32-iwdg";
311 reg = <0x40003000 0x400>;
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-dac-core";
365 reg = <0x40007400 0x400>;
366 resets = <&rcc STM32F4_APB1_RESET(DAC)>;
367 clocks = <&rcc 0 STM32F4_APB1_CLOCK(DAC)>;
368 clock-names = "pclk";
369 #address-cells = <1>;
374 compatible = "st,stm32-dac";
375 #io-channels-cells = <1>;
381 compatible = "st,stm32-dac";
382 #io-channels-cells = <1>;
388 usart7: serial@40007800 {
389 compatible = "st,stm32-uart";
390 reg = <0x40007800 0x400>;
392 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART7)>;
396 usart8: serial@40007c00 {
397 compatible = "st,stm32-uart";
398 reg = <0x40007c00 0x400>;
400 clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART8)>;
404 timers1: timers@40010000 {
405 #address-cells = <1>;
407 compatible = "st,stm32-timers";
408 reg = <0x40010000 0x400>;
409 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM1)>;
414 compatible = "st,stm32-pwm";
419 compatible = "st,stm32-timer-trigger";
425 timers8: timers@40010400 {
426 #address-cells = <1>;
428 compatible = "st,stm32-timers";
429 reg = <0x40010400 0x400>;
430 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM8)>;
435 compatible = "st,stm32-pwm";
440 compatible = "st,stm32-timer-trigger";
446 usart1: serial@40011000 {
447 compatible = "st,stm32-uart";
448 reg = <0x40011000 0x400>;
450 clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART1)>;
452 dmas = <&dma2 2 4 0x400 0x0>,
453 <&dma2 7 4 0x400 0x0>;
454 dma-names = "rx", "tx";
457 usart6: serial@40011400 {
458 compatible = "st,stm32-uart";
459 reg = <0x40011400 0x400>;
461 clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART6)>;
466 compatible = "st,stm32f4-adc-core";
467 reg = <0x40012000 0x400>;
469 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC1)>;
471 interrupt-controller;
472 #interrupt-cells = <1>;
473 #address-cells = <1>;
478 compatible = "st,stm32f4-adc";
479 #io-channel-cells = <1>;
481 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC1)>;
482 interrupt-parent = <&adc>;
484 dmas = <&dma2 0 0 0x400 0x0>;
490 compatible = "st,stm32f4-adc";
491 #io-channel-cells = <1>;
493 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC2)>;
494 interrupt-parent = <&adc>;
496 dmas = <&dma2 3 1 0x400 0x0>;
502 compatible = "st,stm32f4-adc";
503 #io-channel-cells = <1>;
505 clocks = <&rcc 0 STM32F4_APB2_CLOCK(ADC3)>;
506 interrupt-parent = <&adc>;
508 dmas = <&dma2 1 2 0x400 0x0>;
514 sdio: sdio@40012c00 {
515 compatible = "arm,pl180", "arm,primecell";
516 arm,primecell-periphid = <0x00880180>;
517 reg = <0x40012c00 0x400>;
518 clocks = <&rcc 0 STM32F4_APB2_CLOCK(SDIO)>;
519 clock-names = "apb_pclk";
521 max-frequency = <48000000>;
525 syscfg: system-config@40013800 {
526 compatible = "syscon";
527 reg = <0x40013800 0x400>;
530 exti: interrupt-controller@40013c00 {
531 compatible = "st,stm32-exti";
532 interrupt-controller;
533 #interrupt-cells = <2>;
534 reg = <0x40013C00 0x400>;
535 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
538 timers9: timers@40014000 {
539 #address-cells = <1>;
541 compatible = "st,stm32-timers";
542 reg = <0x40014000 0x400>;
543 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM9)>;
548 compatible = "st,stm32-pwm";
553 compatible = "st,stm32-timer-trigger";
559 timers10: timers@40014400 {
560 #address-cells = <1>;
562 compatible = "st,stm32-timers";
563 reg = <0x40014400 0x400>;
564 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM10)>;
569 compatible = "st,stm32-pwm";
574 timers11: timers@40014800 {
575 #address-cells = <1>;
577 compatible = "st,stm32-timers";
578 reg = <0x40014800 0x400>;
579 clocks = <&rcc 0 STM32F4_APB2_CLOCK(TIM11)>;
584 compatible = "st,stm32-pwm";
589 pwrcfg: power-config@40007000 {
590 compatible = "syscon";
591 reg = <0x40007000 0x400>;
594 ltdc: display-controller@40016800 {
595 compatible = "st,stm32-ltdc";
596 reg = <0x40016800 0x200>;
597 interrupts = <88>, <89>;
598 resets = <&rcc STM32F4_APB2_RESET(LTDC)>;
599 clocks = <&rcc 1 CLK_LCD>;
605 compatible = "st,stm32f4-crc";
606 reg = <0x40023000 0x400>;
607 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(CRC)>;
614 compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
615 reg = <0x40023800 0x400>;
616 clocks = <&clk_hse>, <&clk_i2s_ckin>;
617 st,syscfg = <&pwrcfg>;
618 assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
619 assigned-clock-rates = <1000000>;
622 dma1: dma-controller@40026000 {
623 compatible = "st,stm32-dma";
624 reg = <0x40026000 0x400>;
633 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA1)>;
637 dma2: dma-controller@40026400 {
638 compatible = "st,stm32-dma";
639 reg = <0x40026400 0x400>;
648 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(DMA2)>;
653 mac: ethernet@40028000 {
654 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
655 reg = <0x40028000 0x8000>;
656 reg-names = "stmmaceth";
658 interrupt-names = "macirq";
659 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
660 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(ETHMAC)>,
661 <&rcc 0 STM32F4_AHB1_CLOCK(ETHMACTX)>,
662 <&rcc 0 STM32F4_AHB1_CLOCK(ETHMACRX)>;
663 st,syscon = <&syscfg 0x4>;
669 usbotg_hs: usb@40040000 {
670 compatible = "snps,dwc2";
671 reg = <0x40040000 0x40000>;
673 clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHS)>;
678 usbotg_fs: usb@50000000 {
679 compatible = "st,stm32f4x9-fsotg";
680 reg = <0x50000000 0x40000>;
682 clocks = <&rcc 0 39>;
687 dcmi: dcmi@50050000 {
688 compatible = "st,stm32-dcmi";
689 reg = <0x50050000 0x400>;
691 resets = <&rcc STM32F4_AHB2_RESET(DCMI)>;
692 clocks = <&rcc 0 STM32F4_AHB2_CLOCK(DCMI)>;
693 clock-names = "mclk";
694 pinctrl-names = "default";
695 pinctrl-0 = <&dcmi_pins>;
696 dmas = <&dma2 1 1 0x414 0x3>;
702 compatible = "st,stm32-rng";
703 reg = <0x50060800 0x400>;
705 clocks = <&rcc 0 STM32F4_AHB2_CLOCK(RNG)>;
712 clocks = <&rcc 1 SYSTICK>;