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 resets = <&rcc STM32H7_APB1L_RESET(SPI2)>;
114 clocks = <&rcc SPI2_CK>;
120 #address-cells = <1>;
122 compatible = "st,stm32h7-spi";
123 reg = <0x40003c00 0x400>;
125 resets = <&rcc STM32H7_APB1L_RESET(SPI3)>;
126 clocks = <&rcc SPI3_CK>;
130 usart2: serial@40004400 {
131 compatible = "st,stm32h7-uart";
132 reg = <0x40004400 0x400>;
135 clocks = <&rcc USART2_CK>;
139 compatible = "st,stm32f7-i2c";
140 #address-cells = <1>;
142 reg = <0x40005400 0x400>;
145 resets = <&rcc STM32H7_APB1L_RESET(I2C1)>;
146 clocks = <&rcc I2C1_CK>;
151 compatible = "st,stm32f7-i2c";
152 #address-cells = <1>;
154 reg = <0x40005800 0x400>;
157 resets = <&rcc STM32H7_APB1L_RESET(I2C2)>;
158 clocks = <&rcc I2C2_CK>;
163 compatible = "st,stm32f7-i2c";
164 #address-cells = <1>;
166 reg = <0x40005C00 0x400>;
169 resets = <&rcc STM32H7_APB1L_RESET(I2C3)>;
170 clocks = <&rcc I2C3_CK>;
175 compatible = "st,stm32h7-dac-core";
176 reg = <0x40007400 0x400>;
177 clocks = <&rcc DAC12_CK>;
178 clock-names = "pclk";
179 #address-cells = <1>;
184 compatible = "st,stm32-dac";
185 #io-channel-cells = <1>;
191 compatible = "st,stm32-dac";
192 #io-channel-cells = <1>;
198 usart1: serial@40011000 {
199 compatible = "st,stm32h7-uart";
200 reg = <0x40011000 0x400>;
203 clocks = <&rcc USART1_CK>;
207 #address-cells = <1>;
209 compatible = "st,stm32h7-spi";
210 reg = <0x40013000 0x400>;
212 resets = <&rcc STM32H7_APB2_RESET(SPI1)>;
213 clocks = <&rcc SPI1_CK>;
218 #address-cells = <1>;
220 compatible = "st,stm32h7-spi";
221 reg = <0x40013400 0x400>;
223 resets = <&rcc STM32H7_APB2_RESET(SPI4)>;
224 clocks = <&rcc SPI4_CK>;
229 #address-cells = <1>;
231 compatible = "st,stm32h7-spi";
232 reg = <0x40015000 0x400>;
234 resets = <&rcc STM32H7_APB2_RESET(SPI5)>;
235 clocks = <&rcc SPI5_CK>;
239 dma1: dma-controller@40020000 {
240 compatible = "st,stm32-dma";
241 reg = <0x40020000 0x400>;
250 clocks = <&rcc DMA1_CK>;
257 dma2: dma-controller@40020400 {
258 compatible = "st,stm32-dma";
259 reg = <0x40020400 0x400>;
268 clocks = <&rcc DMA2_CK>;
275 dmamux1: dma-router@40020800 {
276 compatible = "st,stm32h7-dmamux";
277 reg = <0x40020800 0x40>;
280 dma-requests = <128>;
281 dma-masters = <&dma1 &dma2>;
282 clocks = <&rcc DMA1_CK>;
285 adc_12: adc@40022000 {
286 compatible = "st,stm32h7-adc-core";
287 reg = <0x40022000 0x400>;
289 clocks = <&rcc ADC12_CK>;
291 interrupt-controller;
292 #interrupt-cells = <1>;
293 #address-cells = <1>;
298 compatible = "st,stm32h7-adc";
299 #io-channel-cells = <1>;
301 interrupt-parent = <&adc_12>;
307 compatible = "st,stm32h7-adc";
308 #io-channel-cells = <1>;
310 interrupt-parent = <&adc_12>;
316 usbotg_hs: usb@40040000 {
317 compatible = "st,stm32f7-hsotg";
318 reg = <0x40040000 0x40000>;
320 clocks = <&rcc USB1OTG_CK>;
322 g-rx-fifo-size = <256>;
323 g-np-tx-fifo-size = <32>;
324 g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
328 usbotg_fs: usb@40080000 {
329 compatible = "st,stm32f4x9-fsotg";
330 reg = <0x40080000 0x40000>;
332 clocks = <&rcc USB2OTG_CK>;
337 ltdc: display-controller@50001000 {
338 compatible = "st,stm32-ltdc";
339 reg = <0x50001000 0x200>;
340 interrupts = <88>, <89>;
341 resets = <&rcc STM32H7_APB3_RESET(LTDC)>;
342 clocks = <&rcc LTDC_CK>;
347 mdma1: dma-controller@52000000 {
348 compatible = "st,stm32h7-mdma";
349 reg = <0x52000000 0x1000>;
351 clocks = <&rcc MDMA_CK>;
357 sdmmc1: sdmmc@52007000 {
358 compatible = "arm,pl18x", "arm,primecell";
359 arm,primecell-periphid = <0x10153180>;
360 reg = <0x52007000 0x1000>;
362 interrupt-names = "cmd_irq";
363 clocks = <&rcc SDMMC1_CK>;
364 clock-names = "apb_pclk";
365 resets = <&rcc STM32H7_AHB3_RESET(SDMMC1)>;
368 max-frequency = <120000000>;
371 exti: interrupt-controller@58000000 {
372 compatible = "st,stm32h7-exti";
373 interrupt-controller;
374 #interrupt-cells = <2>;
375 reg = <0x58000000 0x400>;
376 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <62>, <76>;
379 syscfg: syscon@58000400 {
380 compatible = "st,stm32-syscfg", "syscon";
381 reg = <0x58000400 0x400>;
385 #address-cells = <1>;
387 compatible = "st,stm32h7-spi";
388 reg = <0x58001400 0x400>;
390 resets = <&rcc STM32H7_APB4_RESET(SPI6)>;
391 clocks = <&rcc SPI6_CK>;
396 compatible = "st,stm32f7-i2c";
397 #address-cells = <1>;
399 reg = <0x58001C00 0x400>;
402 resets = <&rcc STM32H7_APB4_RESET(I2C4)>;
403 clocks = <&rcc I2C4_CK>;
407 lptimer2: timer@58002400 {
408 #address-cells = <1>;
410 compatible = "st,stm32-lptimer";
411 reg = <0x58002400 0x400>;
412 clocks = <&rcc LPTIM2_CK>;
417 compatible = "st,stm32-pwm-lp";
423 compatible = "st,stm32-lptimer-trigger";
429 compatible = "st,stm32-lptimer-counter";
434 lptimer3: timer@58002800 {
435 #address-cells = <1>;
437 compatible = "st,stm32-lptimer";
438 reg = <0x58002800 0x400>;
439 clocks = <&rcc LPTIM3_CK>;
444 compatible = "st,stm32-pwm-lp";
450 compatible = "st,stm32-lptimer-trigger";
456 lptimer4: timer@58002c00 {
457 #address-cells = <1>;
459 compatible = "st,stm32-lptimer";
460 reg = <0x58002c00 0x400>;
461 clocks = <&rcc LPTIM4_CK>;
466 compatible = "st,stm32-pwm-lp";
472 lptimer5: timer@58003000 {
473 #address-cells = <1>;
475 compatible = "st,stm32-lptimer";
476 reg = <0x58003000 0x400>;
477 clocks = <&rcc LPTIM5_CK>;
482 compatible = "st,stm32-pwm-lp";
488 vrefbuf: regulator@58003c00 {
489 compatible = "st,stm32-vrefbuf";
490 reg = <0x58003C00 0x8>;
491 clocks = <&rcc VREF_CK>;
492 regulator-min-microvolt = <1500000>;
493 regulator-max-microvolt = <2500000>;
498 compatible = "st,stm32h7-rtc";
499 reg = <0x58004000 0x400>;
500 clocks = <&rcc RTCAPB_CK>, <&rcc RTC_CK>;
501 clock-names = "pclk", "rtc_ck";
502 assigned-clocks = <&rcc RTC_CK>;
503 assigned-clock-parents = <&rcc LSE_CK>;
504 interrupt-parent = <&exti>;
505 interrupts = <17 IRQ_TYPE_EDGE_RISING>;
506 st,syscfg = <&pwrcfg 0x00 0x100>;
510 rcc: reset-clock-controller@58024400 {
511 compatible = "st,stm32h743-rcc", "st,stm32-rcc";
512 reg = <0x58024400 0x400>;
515 clocks = <&clk_hse>, <&clk_lse>, <&clk_i2s>;
516 st,syscfg = <&pwrcfg>;
519 pwrcfg: power-config@58024800 {
520 compatible = "st,stm32-power-config", "syscon";
521 reg = <0x58024800 0x400>;
524 adc_3: adc@58026000 {
525 compatible = "st,stm32h7-adc-core";
526 reg = <0x58026000 0x400>;
528 clocks = <&rcc ADC3_CK>;
530 interrupt-controller;
531 #interrupt-cells = <1>;
532 #address-cells = <1>;
537 compatible = "st,stm32h7-adc";
538 #io-channel-cells = <1>;
540 interrupt-parent = <&adc_3>;
546 mac: ethernet@40028000 {
547 compatible = "st,stm32-dwmac", "snps,dwmac-4.10a";
548 reg = <0x40028000 0x8000>;
549 reg-names = "stmmaceth";
551 interrupt-names = "macirq";
552 clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
553 clocks = <&rcc ETH1MAC_CK>, <&rcc ETH1TX_CK>, <&rcc ETH1RX_CK>;
554 st,syscon = <&syscfg 0x4>;
562 clock-frequency = <250000000>;