2 * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.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/stm32h7-clks.h>
45 #include <dt-bindings/mfd/stm32h7-rcc.h>
46 #include <dt-bindings/interrupt-controller/irq.h>
55 compatible = "fixed-clock";
56 clock-frequency = <0>;
61 compatible = "fixed-clock";
62 clock-frequency = <32768>;
67 compatible = "fixed-clock";
68 clock-frequency = <0>;
73 timer5: timer@40000c00 {
74 compatible = "st,stm32-timer";
75 reg = <0x40000c00 0x400>;
77 clocks = <&rcc TIM5_CK>;
80 lptimer1: timer@40002400 {
83 compatible = "st,stm32-lptimer";
84 reg = <0x40002400 0x400>;
85 clocks = <&rcc LPTIM1_CK>;
90 compatible = "st,stm32-pwm-lp";
96 compatible = "st,stm32-lptimer-trigger";
102 compatible = "st,stm32-lptimer-counter";
108 #address-cells = <1>;
110 compatible = "st,stm32h7-spi";
111 reg = <0x40003800 0x400>;
113 clocks = <&rcc SPI2_CK>;
119 #address-cells = <1>;
121 compatible = "st,stm32h7-spi";
122 reg = <0x40003c00 0x400>;
124 clocks = <&rcc SPI3_CK>;
128 usart2: serial@40004400 {
129 compatible = "st,stm32f7-uart";
130 reg = <0x40004400 0x400>;
133 clocks = <&rcc USART2_CK>;
137 compatible = "st,stm32f7-i2c";
138 #address-cells = <1>;
140 reg = <0x40005400 0x400>;
143 resets = <&rcc STM32H7_APB1L_RESET(I2C1)>;
144 clocks = <&rcc I2C1_CK>;
149 compatible = "st,stm32f7-i2c";
150 #address-cells = <1>;
152 reg = <0x40005800 0x400>;
155 resets = <&rcc STM32H7_APB1L_RESET(I2C2)>;
156 clocks = <&rcc I2C2_CK>;
161 compatible = "st,stm32f7-i2c";
162 #address-cells = <1>;
164 reg = <0x40005C00 0x400>;
167 resets = <&rcc STM32H7_APB1L_RESET(I2C3)>;
168 clocks = <&rcc I2C3_CK>;
173 compatible = "st,stm32h7-dac-core";
174 reg = <0x40007400 0x400>;
175 clocks = <&rcc DAC12_CK>;
176 clock-names = "pclk";
177 #address-cells = <1>;
182 compatible = "st,stm32-dac";
183 #io-channels-cells = <1>;
189 compatible = "st,stm32-dac";
190 #io-channels-cells = <1>;
196 usart1: serial@40011000 {
197 compatible = "st,stm32f7-uart";
198 reg = <0x40011000 0x400>;
201 clocks = <&rcc USART1_CK>;
205 #address-cells = <1>;
207 compatible = "st,stm32h7-spi";
208 reg = <0x40013000 0x400>;
210 clocks = <&rcc SPI1_CK>;
215 #address-cells = <1>;
217 compatible = "st,stm32h7-spi";
218 reg = <0x40013400 0x400>;
220 clocks = <&rcc SPI4_CK>;
225 #address-cells = <1>;
227 compatible = "st,stm32h7-spi";
228 reg = <0x40015000 0x400>;
230 clocks = <&rcc SPI5_CK>;
235 compatible = "st,stm32-dma";
236 reg = <0x40020000 0x400>;
245 clocks = <&rcc DMA1_CK>;
253 compatible = "st,stm32-dma";
254 reg = <0x40020400 0x400>;
263 clocks = <&rcc DMA2_CK>;
270 dmamux1: dma-router@40020800 {
271 compatible = "st,stm32h7-dmamux";
272 reg = <0x40020800 0x1c>;
275 dma-requests = <128>;
276 dma-masters = <&dma1 &dma2>;
277 clocks = <&rcc DMA1_CK>;
280 adc_12: adc@40022000 {
281 compatible = "st,stm32h7-adc-core";
282 reg = <0x40022000 0x400>;
284 clocks = <&rcc ADC12_CK>;
286 interrupt-controller;
287 #interrupt-cells = <1>;
288 #address-cells = <1>;
293 compatible = "st,stm32h7-adc";
294 #io-channel-cells = <1>;
296 interrupt-parent = <&adc_12>;
302 compatible = "st,stm32h7-adc";
303 #io-channel-cells = <1>;
305 interrupt-parent = <&adc_12>;
311 usbotg_hs: usb@40040000 {
312 compatible = "st,stm32f7-hsotg";
313 reg = <0x40040000 0x40000>;
315 clocks = <&rcc USB1OTG_CK>;
317 g-rx-fifo-size = <256>;
318 g-np-tx-fifo-size = <32>;
319 g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
323 usbotg_fs: usb@40080000 {
324 compatible = "st,stm32f4x9-fsotg";
325 reg = <0x40080000 0x40000>;
327 clocks = <&rcc USB2OTG_CK>;
332 mdma1: dma@52000000 {
333 compatible = "st,stm32h7-mdma";
334 reg = <0x52000000 0x1000>;
336 clocks = <&rcc MDMA_CK>;
342 sdmmc1: sdmmc@52007000 {
343 compatible = "arm,pl18x", "arm,primecell";
344 arm,primecell-periphid = <0x10153180>;
345 reg = <0x52007000 0x1000>;
347 interrupt-names = "cmd_irq";
348 clocks = <&rcc SDMMC1_CK>;
349 clock-names = "apb_pclk";
350 resets = <&rcc STM32H7_AHB3_RESET(SDMMC1)>;
353 max-frequency = <120000000>;
356 exti: interrupt-controller@58000000 {
357 compatible = "st,stm32h7-exti";
358 interrupt-controller;
359 #interrupt-cells = <2>;
360 reg = <0x58000000 0x400>;
361 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <62>, <76>;
364 syscfg: system-config@58000400 {
365 compatible = "syscon";
366 reg = <0x58000400 0x400>;
370 #address-cells = <1>;
372 compatible = "st,stm32h7-spi";
373 reg = <0x58001400 0x400>;
375 clocks = <&rcc SPI6_CK>;
380 compatible = "st,stm32f7-i2c";
381 #address-cells = <1>;
383 reg = <0x58001C00 0x400>;
386 resets = <&rcc STM32H7_APB4_RESET(I2C4)>;
387 clocks = <&rcc I2C4_CK>;
391 lptimer2: timer@58002400 {
392 #address-cells = <1>;
394 compatible = "st,stm32-lptimer";
395 reg = <0x58002400 0x400>;
396 clocks = <&rcc LPTIM2_CK>;
401 compatible = "st,stm32-pwm-lp";
407 compatible = "st,stm32-lptimer-trigger";
413 compatible = "st,stm32-lptimer-counter";
418 lptimer3: timer@58002800 {
419 #address-cells = <1>;
421 compatible = "st,stm32-lptimer";
422 reg = <0x58002800 0x400>;
423 clocks = <&rcc LPTIM3_CK>;
428 compatible = "st,stm32-pwm-lp";
434 compatible = "st,stm32-lptimer-trigger";
440 lptimer4: timer@58002c00 {
441 #address-cells = <1>;
443 compatible = "st,stm32-lptimer";
444 reg = <0x58002c00 0x400>;
445 clocks = <&rcc LPTIM4_CK>;
450 compatible = "st,stm32-pwm-lp";
456 lptimer5: timer@58003000 {
457 #address-cells = <1>;
459 compatible = "st,stm32-lptimer";
460 reg = <0x58003000 0x400>;
461 clocks = <&rcc LPTIM5_CK>;
466 compatible = "st,stm32-pwm-lp";
472 vrefbuf: regulator@58003c00 {
473 compatible = "st,stm32-vrefbuf";
474 reg = <0x58003C00 0x8>;
475 clocks = <&rcc VREF_CK>;
476 regulator-min-microvolt = <1500000>;
477 regulator-max-microvolt = <2500000>;
482 compatible = "st,stm32h7-rtc";
483 reg = <0x58004000 0x400>;
484 clocks = <&rcc RTCAPB_CK>, <&rcc RTC_CK>;
485 clock-names = "pclk", "rtc_ck";
486 assigned-clocks = <&rcc RTC_CK>;
487 assigned-clock-parents = <&rcc LSE_CK>;
488 interrupt-parent = <&exti>;
489 interrupts = <17 IRQ_TYPE_EDGE_RISING>;
490 interrupt-names = "alarm";
491 st,syscfg = <&pwrcfg 0x00 0x100>;
495 rcc: reset-clock-controller@58024400 {
496 compatible = "st,stm32h743-rcc", "st,stm32-rcc";
497 reg = <0x58024400 0x400>;
500 clocks = <&clk_hse>, <&clk_lse>, <&clk_i2s>;
501 st,syscfg = <&pwrcfg>;
504 pwrcfg: power-config@58024800 {
505 compatible = "syscon";
506 reg = <0x58024800 0x400>;
509 adc_3: adc@58026000 {
510 compatible = "st,stm32h7-adc-core";
511 reg = <0x58026000 0x400>;
513 clocks = <&rcc ADC3_CK>;
515 interrupt-controller;
516 #interrupt-cells = <1>;
517 #address-cells = <1>;
522 compatible = "st,stm32h7-adc";
523 #io-channel-cells = <1>;
525 interrupt-parent = <&adc_3>;
531 mac: ethernet@40028000 {
532 compatible = "st,stm32-dwmac", "snps,dwmac-4.10a";
533 reg = <0x40028000 0x8000>;
534 reg-names = "stmmaceth";
536 interrupt-names = "macirq";
537 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
538 clocks = <&rcc ETH1MAC_CK>, <&rcc ETH1TX_CK>, <&rcc ETH1RX_CK>;
539 st,syscon = <&syscfg 0x4>;
547 clock-frequency = <250000000>;