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 exti: interrupt-controller@58000000 {
343 compatible = "st,stm32h7-exti";
344 interrupt-controller;
345 #interrupt-cells = <2>;
346 reg = <0x58000000 0x400>;
347 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <62>, <76>;
350 syscfg: system-config@58000400 {
351 compatible = "syscon";
352 reg = <0x58000400 0x400>;
356 #address-cells = <1>;
358 compatible = "st,stm32h7-spi";
359 reg = <0x58001400 0x400>;
361 clocks = <&rcc SPI6_CK>;
366 compatible = "st,stm32f7-i2c";
367 #address-cells = <1>;
369 reg = <0x58001C00 0x400>;
372 resets = <&rcc STM32H7_APB4_RESET(I2C4)>;
373 clocks = <&rcc I2C4_CK>;
377 lptimer2: timer@58002400 {
378 #address-cells = <1>;
380 compatible = "st,stm32-lptimer";
381 reg = <0x58002400 0x400>;
382 clocks = <&rcc LPTIM2_CK>;
387 compatible = "st,stm32-pwm-lp";
393 compatible = "st,stm32-lptimer-trigger";
399 compatible = "st,stm32-lptimer-counter";
404 lptimer3: timer@58002800 {
405 #address-cells = <1>;
407 compatible = "st,stm32-lptimer";
408 reg = <0x58002800 0x400>;
409 clocks = <&rcc LPTIM3_CK>;
414 compatible = "st,stm32-pwm-lp";
420 compatible = "st,stm32-lptimer-trigger";
426 lptimer4: timer@58002c00 {
427 #address-cells = <1>;
429 compatible = "st,stm32-lptimer";
430 reg = <0x58002c00 0x400>;
431 clocks = <&rcc LPTIM4_CK>;
436 compatible = "st,stm32-pwm-lp";
442 lptimer5: timer@58003000 {
443 #address-cells = <1>;
445 compatible = "st,stm32-lptimer";
446 reg = <0x58003000 0x400>;
447 clocks = <&rcc LPTIM5_CK>;
452 compatible = "st,stm32-pwm-lp";
458 vrefbuf: regulator@58003c00 {
459 compatible = "st,stm32-vrefbuf";
460 reg = <0x58003C00 0x8>;
461 clocks = <&rcc VREF_CK>;
462 regulator-min-microvolt = <1500000>;
463 regulator-max-microvolt = <2500000>;
468 compatible = "st,stm32h7-rtc";
469 reg = <0x58004000 0x400>;
470 clocks = <&rcc RTCAPB_CK>, <&rcc RTC_CK>;
471 clock-names = "pclk", "rtc_ck";
472 assigned-clocks = <&rcc RTC_CK>;
473 assigned-clock-parents = <&rcc LSE_CK>;
474 interrupt-parent = <&exti>;
475 interrupts = <17 IRQ_TYPE_EDGE_RISING>;
476 interrupt-names = "alarm";
477 st,syscfg = <&pwrcfg 0x00 0x100>;
481 rcc: reset-clock-controller@58024400 {
482 compatible = "st,stm32h743-rcc", "st,stm32-rcc";
483 reg = <0x58024400 0x400>;
486 clocks = <&clk_hse>, <&clk_lse>, <&clk_i2s>;
487 st,syscfg = <&pwrcfg>;
490 pwrcfg: power-config@58024800 {
491 compatible = "syscon";
492 reg = <0x58024800 0x400>;
495 adc_3: adc@58026000 {
496 compatible = "st,stm32h7-adc-core";
497 reg = <0x58026000 0x400>;
499 clocks = <&rcc ADC3_CK>;
501 interrupt-controller;
502 #interrupt-cells = <1>;
503 #address-cells = <1>;
508 compatible = "st,stm32h7-adc";
509 #io-channel-cells = <1>;
511 interrupt-parent = <&adc_3>;
517 mac: ethernet@40028000 {
518 compatible = "st,stm32-dwmac", "snps,dwmac-4.10a";
519 reg = <0x40028000 0x8000>;
520 reg-names = "stmmaceth";
522 interrupt-names = "macirq";
523 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
524 clocks = <&rcc ETH1MAC_CK>, <&rcc ETH1TX_CK>, <&rcc ETH1RX_CK>;
525 st,syscon = <&syscfg 0x4>;
533 clock-frequency = <250000000>;