| .. | .. |
|---|
| 40 | 40 | * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 41 | 41 | */ |
|---|
| 42 | 42 | |
|---|
| 43 | | -#include "skeleton.dtsi" |
|---|
| 44 | 43 | #include "armv7-m.dtsi" |
|---|
| 45 | 44 | #include <dt-bindings/clock/stm32h7-clks.h> |
|---|
| 46 | 45 | #include <dt-bindings/mfd/stm32h7-rcc.h> |
|---|
| 47 | 46 | #include <dt-bindings/interrupt-controller/irq.h> |
|---|
| 48 | 47 | |
|---|
| 49 | 48 | / { |
|---|
| 49 | + #address-cells = <1>; |
|---|
| 50 | + #size-cells = <1>; |
|---|
| 51 | + |
|---|
| 50 | 52 | clocks { |
|---|
| 51 | 53 | clk_hse: clk-hse { |
|---|
| 52 | 54 | #clock-cells = <0>; |
|---|
| .. | .. |
|---|
| 108 | 110 | compatible = "st,stm32h7-spi"; |
|---|
| 109 | 111 | reg = <0x40003800 0x400>; |
|---|
| 110 | 112 | interrupts = <36>; |
|---|
| 113 | + resets = <&rcc STM32H7_APB1L_RESET(SPI2)>; |
|---|
| 111 | 114 | clocks = <&rcc SPI2_CK>; |
|---|
| 112 | 115 | status = "disabled"; |
|---|
| 113 | 116 | |
|---|
| .. | .. |
|---|
| 119 | 122 | compatible = "st,stm32h7-spi"; |
|---|
| 120 | 123 | reg = <0x40003c00 0x400>; |
|---|
| 121 | 124 | interrupts = <51>; |
|---|
| 125 | + resets = <&rcc STM32H7_APB1L_RESET(SPI3)>; |
|---|
| 122 | 126 | clocks = <&rcc SPI3_CK>; |
|---|
| 123 | 127 | status = "disabled"; |
|---|
| 124 | 128 | }; |
|---|
| 125 | 129 | |
|---|
| 126 | 130 | usart2: serial@40004400 { |
|---|
| 127 | | - compatible = "st,stm32f7-uart"; |
|---|
| 131 | + compatible = "st,stm32h7-uart"; |
|---|
| 128 | 132 | reg = <0x40004400 0x400>; |
|---|
| 129 | 133 | interrupts = <38>; |
|---|
| 130 | 134 | status = "disabled"; |
|---|
| .. | .. |
|---|
| 178 | 182 | |
|---|
| 179 | 183 | dac1: dac@1 { |
|---|
| 180 | 184 | compatible = "st,stm32-dac"; |
|---|
| 181 | | - #io-channels-cells = <1>; |
|---|
| 185 | + #io-channel-cells = <1>; |
|---|
| 182 | 186 | reg = <1>; |
|---|
| 183 | 187 | status = "disabled"; |
|---|
| 184 | 188 | }; |
|---|
| 185 | 189 | |
|---|
| 186 | 190 | dac2: dac@2 { |
|---|
| 187 | 191 | compatible = "st,stm32-dac"; |
|---|
| 188 | | - #io-channels-cells = <1>; |
|---|
| 192 | + #io-channel-cells = <1>; |
|---|
| 189 | 193 | reg = <2>; |
|---|
| 190 | 194 | status = "disabled"; |
|---|
| 191 | 195 | }; |
|---|
| 192 | 196 | }; |
|---|
| 193 | 197 | |
|---|
| 194 | 198 | usart1: serial@40011000 { |
|---|
| 195 | | - compatible = "st,stm32f7-uart"; |
|---|
| 199 | + compatible = "st,stm32h7-uart"; |
|---|
| 196 | 200 | reg = <0x40011000 0x400>; |
|---|
| 197 | 201 | interrupts = <37>; |
|---|
| 198 | 202 | status = "disabled"; |
|---|
| .. | .. |
|---|
| 205 | 209 | compatible = "st,stm32h7-spi"; |
|---|
| 206 | 210 | reg = <0x40013000 0x400>; |
|---|
| 207 | 211 | interrupts = <35>; |
|---|
| 212 | + resets = <&rcc STM32H7_APB2_RESET(SPI1)>; |
|---|
| 208 | 213 | clocks = <&rcc SPI1_CK>; |
|---|
| 209 | 214 | status = "disabled"; |
|---|
| 210 | 215 | }; |
|---|
| .. | .. |
|---|
| 215 | 220 | compatible = "st,stm32h7-spi"; |
|---|
| 216 | 221 | reg = <0x40013400 0x400>; |
|---|
| 217 | 222 | interrupts = <84>; |
|---|
| 223 | + resets = <&rcc STM32H7_APB2_RESET(SPI4)>; |
|---|
| 218 | 224 | clocks = <&rcc SPI4_CK>; |
|---|
| 219 | 225 | status = "disabled"; |
|---|
| 220 | 226 | }; |
|---|
| .. | .. |
|---|
| 225 | 231 | compatible = "st,stm32h7-spi"; |
|---|
| 226 | 232 | reg = <0x40015000 0x400>; |
|---|
| 227 | 233 | interrupts = <85>; |
|---|
| 234 | + resets = <&rcc STM32H7_APB2_RESET(SPI5)>; |
|---|
| 228 | 235 | clocks = <&rcc SPI5_CK>; |
|---|
| 229 | 236 | status = "disabled"; |
|---|
| 230 | 237 | }; |
|---|
| 231 | 238 | |
|---|
| 232 | | - dma1: dma@40020000 { |
|---|
| 239 | + dma1: dma-controller@40020000 { |
|---|
| 233 | 240 | compatible = "st,stm32-dma"; |
|---|
| 234 | 241 | reg = <0x40020000 0x400>; |
|---|
| 235 | 242 | interrupts = <11>, |
|---|
| .. | .. |
|---|
| 247 | 254 | status = "disabled"; |
|---|
| 248 | 255 | }; |
|---|
| 249 | 256 | |
|---|
| 250 | | - dma2: dma@40020400 { |
|---|
| 257 | + dma2: dma-controller@40020400 { |
|---|
| 251 | 258 | compatible = "st,stm32-dma"; |
|---|
| 252 | 259 | reg = <0x40020400 0x400>; |
|---|
| 253 | 260 | interrupts = <56>, |
|---|
| .. | .. |
|---|
| 327 | 334 | status = "disabled"; |
|---|
| 328 | 335 | }; |
|---|
| 329 | 336 | |
|---|
| 330 | | - mdma1: dma@52000000 { |
|---|
| 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>; |
|---|
| 343 | + clock-names = "lcd"; |
|---|
| 344 | + status = "disabled"; |
|---|
| 345 | + }; |
|---|
| 346 | + |
|---|
| 347 | + mdma1: dma-controller@52000000 { |
|---|
| 331 | 348 | compatible = "st,stm32h7-mdma"; |
|---|
| 332 | 349 | reg = <0x52000000 0x1000>; |
|---|
| 333 | 350 | interrupts = <122>; |
|---|
| .. | .. |
|---|
| 335 | 352 | #dma-cells = <5>; |
|---|
| 336 | 353 | dma-channels = <16>; |
|---|
| 337 | 354 | dma-requests = <32>; |
|---|
| 355 | + }; |
|---|
| 356 | + |
|---|
| 357 | + sdmmc1: sdmmc@52007000 { |
|---|
| 358 | + compatible = "arm,pl18x", "arm,primecell"; |
|---|
| 359 | + arm,primecell-periphid = <0x10153180>; |
|---|
| 360 | + reg = <0x52007000 0x1000>; |
|---|
| 361 | + interrupts = <49>; |
|---|
| 362 | + interrupt-names = "cmd_irq"; |
|---|
| 363 | + clocks = <&rcc SDMMC1_CK>; |
|---|
| 364 | + clock-names = "apb_pclk"; |
|---|
| 365 | + resets = <&rcc STM32H7_AHB3_RESET(SDMMC1)>; |
|---|
| 366 | + cap-sd-highspeed; |
|---|
| 367 | + cap-mmc-highspeed; |
|---|
| 368 | + max-frequency = <120000000>; |
|---|
| 338 | 369 | }; |
|---|
| 339 | 370 | |
|---|
| 340 | 371 | exti: interrupt-controller@58000000 { |
|---|
| .. | .. |
|---|
| 345 | 376 | interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <62>, <76>; |
|---|
| 346 | 377 | }; |
|---|
| 347 | 378 | |
|---|
| 348 | | - syscfg: system-config@58000400 { |
|---|
| 349 | | - compatible = "syscon"; |
|---|
| 379 | + syscfg: syscon@58000400 { |
|---|
| 380 | + compatible = "st,stm32-syscfg", "syscon"; |
|---|
| 350 | 381 | reg = <0x58000400 0x400>; |
|---|
| 351 | 382 | }; |
|---|
| 352 | 383 | |
|---|
| .. | .. |
|---|
| 356 | 387 | compatible = "st,stm32h7-spi"; |
|---|
| 357 | 388 | reg = <0x58001400 0x400>; |
|---|
| 358 | 389 | interrupts = <86>; |
|---|
| 390 | + resets = <&rcc STM32H7_APB4_RESET(SPI6)>; |
|---|
| 359 | 391 | clocks = <&rcc SPI6_CK>; |
|---|
| 360 | 392 | status = "disabled"; |
|---|
| 361 | 393 | }; |
|---|
| .. | .. |
|---|
| 467 | 499 | assigned-clock-parents = <&rcc LSE_CK>; |
|---|
| 468 | 500 | interrupt-parent = <&exti>; |
|---|
| 469 | 501 | interrupts = <17 IRQ_TYPE_EDGE_RISING>; |
|---|
| 470 | | - interrupt-names = "alarm"; |
|---|
| 471 | | - st,syscfg = <&pwrcfg>; |
|---|
| 502 | + st,syscfg = <&pwrcfg 0x00 0x100>; |
|---|
| 472 | 503 | status = "disabled"; |
|---|
| 473 | 504 | }; |
|---|
| 474 | 505 | |
|---|
| .. | .. |
|---|
| 482 | 513 | }; |
|---|
| 483 | 514 | |
|---|
| 484 | 515 | pwrcfg: power-config@58024800 { |
|---|
| 485 | | - compatible = "syscon"; |
|---|
| 516 | + compatible = "st,stm32-power-config", "syscon"; |
|---|
| 486 | 517 | reg = <0x58024800 0x400>; |
|---|
| 487 | 518 | }; |
|---|
| 488 | 519 | |
|---|
| .. | .. |
|---|
| 507 | 538 | status = "disabled"; |
|---|
| 508 | 539 | }; |
|---|
| 509 | 540 | }; |
|---|
| 541 | + |
|---|
| 542 | + mac: ethernet@40028000 { |
|---|
| 543 | + compatible = "st,stm32-dwmac", "snps,dwmac-4.10a"; |
|---|
| 544 | + reg = <0x40028000 0x8000>; |
|---|
| 545 | + reg-names = "stmmaceth"; |
|---|
| 546 | + interrupts = <61>; |
|---|
| 547 | + interrupt-names = "macirq"; |
|---|
| 548 | + clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx"; |
|---|
| 549 | + clocks = <&rcc ETH1MAC_CK>, <&rcc ETH1TX_CK>, <&rcc ETH1RX_CK>; |
|---|
| 550 | + st,syscon = <&syscfg 0x4>; |
|---|
| 551 | + snps,pbl = <8>; |
|---|
| 552 | + status = "disabled"; |
|---|
| 553 | + }; |
|---|
| 510 | 554 | }; |
|---|
| 511 | 555 | }; |
|---|
| 512 | 556 | |
|---|