Michael Kurz | bccef71 | 2017-01-22 16:04:23 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 - Michael Kurz <michi.kurz@gmail.com> |
Vikas Manocha | f9429f6 | 2017-04-10 15:02:53 -0700 | [diff] [blame] | 3 | * Copyright 2016 - Vikas MANOCHA <vikas.manocha@st.com> |
Michael Kurz | bccef71 | 2017-01-22 16:04:23 +0100 | [diff] [blame] | 4 | * |
| 5 | * Based on: |
| 6 | * stm32f429.dtsi from Linux |
| 7 | * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> |
| 8 | * |
| 9 | * This file is dual-licensed: you can use it either under the terms |
| 10 | * of the GPL or the X11 license, at your option. Note that this dual |
| 11 | * licensing only applies to this file, and not this project as a |
| 12 | * whole. |
| 13 | * |
| 14 | * a) This file is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU General Public License as |
| 16 | * published by the Free Software Foundation; either version 2 of the |
| 17 | * License, or (at your option) any later version. |
| 18 | * |
| 19 | * This file is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | * GNU General Public License for more details. |
| 23 | * |
| 24 | * Or, alternatively, |
| 25 | * |
| 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 |
| 33 | * conditions: |
| 34 | * |
| 35 | * The above copyright notice and this permission notice shall be |
| 36 | * included in all copies or substantial portions of the Software. |
| 37 | * |
| 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. |
| 46 | */ |
| 47 | |
| 48 | #include "armv7-m.dtsi" |
| 49 | #include <dt-bindings/pinctrl/stm32f746-pinfunc.h> |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 50 | #include <dt-bindings/clock/stm32fx-clock.h> |
| 51 | #include <dt-bindings/mfd/stm32f7-rcc.h> |
Michael Kurz | bccef71 | 2017-01-22 16:04:23 +0100 | [diff] [blame] | 52 | |
| 53 | / { |
Vikas Manocha | da913d3 | 2017-02-12 10:25:47 -0800 | [diff] [blame] | 54 | clocks { |
| 55 | clk_hse: clk-hse { |
| 56 | #clock-cells = <0>; |
| 57 | compatible = "fixed-clock"; |
| 58 | clock-frequency = <0>; |
| 59 | }; |
| 60 | }; |
| 61 | |
Michael Kurz | bccef71 | 2017-01-22 16:04:23 +0100 | [diff] [blame] | 62 | soc { |
Vikas Manocha | da913d3 | 2017-02-12 10:25:47 -0800 | [diff] [blame] | 63 | u-boot,dm-pre-reloc; |
Michael Kurz | bccef71 | 2017-01-22 16:04:23 +0100 | [diff] [blame] | 64 | mac: ethernet@40028000 { |
| 65 | compatible = "st,stm32-dwmac"; |
| 66 | reg = <0x40028000 0x8000>; |
| 67 | reg-names = "stmmaceth"; |
| 68 | interrupts = <61>, <62>; |
| 69 | interrupt-names = "macirq", "eth_wake_irq"; |
| 70 | snps,pbl = <8>; |
| 71 | snps,mixed-burst; |
| 72 | dma-ranges; |
| 73 | status = "disabled"; |
| 74 | }; |
| 75 | |
Vikas Manocha | f9429f6 | 2017-04-10 15:02:53 -0700 | [diff] [blame] | 76 | fmc: fmc@A0000000 { |
| 77 | compatible = "st,stm32-fmc"; |
| 78 | reg = <0xA0000000 0x1000>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 79 | clocks = <&rcc 0 STM32F7_AHB3_CLOCK(FMC)>; |
Vikas Manocha | f9429f6 | 2017-04-10 15:02:53 -0700 | [diff] [blame] | 80 | u-boot,dm-pre-reloc; |
| 81 | }; |
| 82 | |
Michael Kurz | bccef71 | 2017-01-22 16:04:23 +0100 | [diff] [blame] | 83 | qspi: quadspi@A0001000 { |
| 84 | compatible = "st,stm32-qspi"; |
| 85 | #address-cells = <1>; |
| 86 | #size-cells = <0>; |
| 87 | reg = <0xA0001000 0x1000>, <0x90000000 0x10000000>; |
| 88 | reg-names = "QuadSPI", "QuadSPI-memory"; |
| 89 | interrupts = <92>; |
| 90 | spi-max-frequency = <108000000>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 91 | clocks = <&rcc 0 STM32F7_AHB3_CLOCK(QSPI)>; |
Michael Kurz | bccef71 | 2017-01-22 16:04:23 +0100 | [diff] [blame] | 92 | status = "disabled"; |
| 93 | }; |
Vikas Manocha | da913d3 | 2017-02-12 10:25:47 -0800 | [diff] [blame] | 94 | usart1: serial@40011000 { |
Patrice Chotard | f7d84d8 | 2017-06-08 09:26:54 +0200 | [diff] [blame] | 95 | compatible = "st,stm32f7-usart", "st,stm32f7-uart"; |
Vikas Manocha | da913d3 | 2017-02-12 10:25:47 -0800 | [diff] [blame] | 96 | reg = <0x40011000 0x400>; |
| 97 | interrupts = <37>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 98 | clocks = <&rcc 0 STM32F7_APB2_CLOCK(USART1)>; |
Vikas Manocha | da913d3 | 2017-02-12 10:25:47 -0800 | [diff] [blame] | 99 | status = "disabled"; |
| 100 | u-boot,dm-pre-reloc; |
| 101 | }; |
Patrice Chotard | b957402 | 2017-11-15 13:14:43 +0100 | [diff] [blame] | 102 | |
| 103 | pwrcfg: power-config@58024800 { |
| 104 | compatible = "syscon"; |
| 105 | reg = <0x40007000 0x400>; |
| 106 | }; |
| 107 | |
Vikas Manocha | da913d3 | 2017-02-12 10:25:47 -0800 | [diff] [blame] | 108 | rcc: rcc@40023810 { |
| 109 | #reset-cells = <1>; |
| 110 | #clock-cells = <2>; |
Patrice Chotard | 32e38bc | 2017-11-15 13:14:46 +0100 | [diff] [blame] | 111 | compatible = "st,stm32f746-rcc", "st,stm32-rcc"; |
Vikas Manocha | da913d3 | 2017-02-12 10:25:47 -0800 | [diff] [blame] | 112 | reg = <0x40023800 0x400>; |
| 113 | clocks = <&clk_hse>; |
Patrice Chotard | b957402 | 2017-11-15 13:14:43 +0100 | [diff] [blame] | 114 | st,syscfg = <&pwrcfg>; |
Vikas Manocha | da913d3 | 2017-02-12 10:25:47 -0800 | [diff] [blame] | 115 | u-boot,dm-pre-reloc; |
| 116 | }; |
| 117 | |
Vikas Manocha | 2881915 | 2017-02-12 10:25:50 -0800 | [diff] [blame] | 118 | pinctrl: pin-controller { |
| 119 | #address-cells = <1>; |
| 120 | #size-cells = <1>; |
| 121 | compatible = "st,stm32f746-pinctrl"; |
| 122 | ranges = <0 0x40020000 0x3000>; |
| 123 | u-boot,dm-pre-reloc; |
| 124 | pins-are-numbered; |
Vikas Manocha | 6ad568c | 2017-02-12 10:25:51 -0800 | [diff] [blame] | 125 | |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 126 | gpioa: gpio@40020000 { |
| 127 | gpio-controller; |
| 128 | #gpio-cells = <2>; |
| 129 | compatible = "st,stm32-gpio"; |
| 130 | reg = <0x0 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 131 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOA)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 132 | st,bank-name = "GPIOA"; |
| 133 | u-boot,dm-pre-reloc; |
| 134 | }; |
| 135 | |
| 136 | gpiob: gpio@40020400 { |
| 137 | gpio-controller; |
| 138 | #gpio-cells = <2>; |
| 139 | compatible = "st,stm32-gpio"; |
| 140 | reg = <0x400 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 141 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOB)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 142 | st,bank-name = "GPIOB"; |
| 143 | u-boot,dm-pre-reloc; |
| 144 | }; |
| 145 | |
| 146 | |
| 147 | gpioc: gpio@40020800 { |
| 148 | gpio-controller; |
| 149 | #gpio-cells = <2>; |
| 150 | compatible = "st,stm32-gpio"; |
| 151 | reg = <0x800 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 152 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOC)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 153 | st,bank-name = "GPIOC"; |
| 154 | u-boot,dm-pre-reloc; |
| 155 | }; |
| 156 | |
| 157 | gpiod: gpio@40020c00 { |
| 158 | gpio-controller; |
| 159 | #gpio-cells = <2>; |
| 160 | compatible = "st,stm32-gpio"; |
| 161 | reg = <0xc00 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 162 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOD)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 163 | st,bank-name = "GPIOD"; |
| 164 | u-boot,dm-pre-reloc; |
| 165 | }; |
| 166 | |
| 167 | gpioe: gpio@40021000 { |
| 168 | gpio-controller; |
| 169 | #gpio-cells = <2>; |
| 170 | compatible = "st,stm32-gpio"; |
| 171 | reg = <0x1000 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 172 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOE)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 173 | st,bank-name = "GPIOE"; |
| 174 | u-boot,dm-pre-reloc; |
| 175 | }; |
| 176 | |
| 177 | gpiof: gpio@40021400 { |
| 178 | gpio-controller; |
| 179 | #gpio-cells = <2>; |
| 180 | compatible = "st,stm32-gpio"; |
| 181 | reg = <0x1400 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 182 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOF)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 183 | st,bank-name = "GPIOF"; |
| 184 | u-boot,dm-pre-reloc; |
| 185 | }; |
| 186 | |
| 187 | gpiog: gpio@40021800 { |
| 188 | gpio-controller; |
| 189 | #gpio-cells = <2>; |
| 190 | compatible = "st,stm32-gpio"; |
| 191 | reg = <0x1800 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 192 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOG)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 193 | st,bank-name = "GPIOG"; |
| 194 | u-boot,dm-pre-reloc; |
| 195 | }; |
| 196 | |
| 197 | gpioh: gpio@40021c00 { |
| 198 | gpio-controller; |
| 199 | #gpio-cells = <2>; |
| 200 | compatible = "st,stm32-gpio"; |
| 201 | reg = <0x1c00 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 202 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOH)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 203 | st,bank-name = "GPIOH"; |
| 204 | u-boot,dm-pre-reloc; |
| 205 | }; |
| 206 | |
| 207 | gpioi: gpio@40022000 { |
| 208 | gpio-controller; |
| 209 | #gpio-cells = <2>; |
| 210 | compatible = "st,stm32-gpio"; |
| 211 | reg = <0x2000 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 212 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOI)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 213 | st,bank-name = "GPIOI"; |
| 214 | u-boot,dm-pre-reloc; |
| 215 | }; |
| 216 | |
| 217 | gpioj: gpio@40022400 { |
| 218 | gpio-controller; |
| 219 | #gpio-cells = <2>; |
| 220 | compatible = "st,stm32-gpio"; |
| 221 | reg = <0x2400 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 222 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOJ)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 223 | st,bank-name = "GPIOJ"; |
| 224 | u-boot,dm-pre-reloc; |
| 225 | }; |
| 226 | |
| 227 | gpiok: gpio@40022800 { |
| 228 | gpio-controller; |
| 229 | #gpio-cells = <2>; |
| 230 | compatible = "st,stm32-gpio"; |
| 231 | reg = <0x2800 0x400>; |
Patrice Chotard | e5f82cf | 2017-07-18 09:29:02 +0200 | [diff] [blame] | 232 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(GPIOK)>; |
Vikas Manocha | f51303a | 2017-04-10 15:02:58 -0700 | [diff] [blame] | 233 | st,bank-name = "GPIOK"; |
| 234 | u-boot,dm-pre-reloc; |
| 235 | }; |
| 236 | |
Patrice Chotard | 0d24b0d | 2017-12-12 10:14:59 +0100 | [diff] [blame] | 237 | sdio_pins: sdio_pins@0 { |
| 238 | pins { |
| 239 | pinmux = <STM32F746_PC8_FUNC_SDMMC1_D0>, |
| 240 | <STM32F746_PC9_FUNC_SDMMC1_D1>, |
| 241 | <STM32F746_PC10_FUNC_SDMMC1_D2>, |
| 242 | <STM32F746_PC11_FUNC_SDMMC1_D3>, |
| 243 | <STM32F746_PC12_FUNC_SDMMC1_CK>, |
| 244 | <STM32F746_PD2_FUNC_SDMMC1_CMD>; |
| 245 | drive-push-pull; |
| 246 | slew-rate = <2>; |
| 247 | }; |
| 248 | }; |
| 249 | |
| 250 | sdio_pins_od: sdio_pins_od@0 { |
| 251 | pins1 { |
| 252 | pinmux = <STM32F746_PC8_FUNC_SDMMC1_D0>, |
| 253 | <STM32F746_PC9_FUNC_SDMMC1_D1>, |
| 254 | <STM32F746_PC10_FUNC_SDMMC1_D2>, |
| 255 | <STM32F746_PC11_FUNC_SDMMC1_D3>, |
| 256 | <STM32F746_PC12_FUNC_SDMMC1_CK>; |
| 257 | drive-push-pull; |
| 258 | slew-rate = <2>; |
| 259 | }; |
| 260 | |
| 261 | pins2 { |
| 262 | pinmux = <STM32F746_PD2_FUNC_SDMMC1_CMD>; |
| 263 | drive-open-drain; |
| 264 | slew-rate = <2>; |
| 265 | }; |
| 266 | }; |
| 267 | |
| 268 | sdio_pins_b: sdio_pins_b@0 { |
| 269 | pins { |
| 270 | pinmux = <STM32F769_PG9_FUNC_SDMMC2_D0>, |
| 271 | <STM32F769_PG10_FUNC_SDMMC2_D1>, |
| 272 | <STM32F769_PB3_FUNC_SDMMC2_D2>, |
| 273 | <STM32F769_PB4_FUNC_SDMMC2_D3>, |
| 274 | <STM32F769_PD6_FUNC_SDMMC2_CLK>, |
| 275 | <STM32F769_PD7_FUNC_SDMMC2_CMD>; |
| 276 | drive-push-pull; |
| 277 | slew-rate = <2>; |
| 278 | }; |
| 279 | }; |
| 280 | |
| 281 | sdio_pins_od_b: sdio_pins_od_b@0 { |
| 282 | pins1 { |
| 283 | pinmux = <STM32F769_PG9_FUNC_SDMMC2_D0>, |
| 284 | <STM32F769_PG10_FUNC_SDMMC2_D1>, |
| 285 | <STM32F769_PB3_FUNC_SDMMC2_D2>, |
| 286 | <STM32F769_PB4_FUNC_SDMMC2_D3>, |
| 287 | <STM32F769_PD6_FUNC_SDMMC2_CLK>; |
| 288 | drive-push-pull; |
| 289 | slew-rate = <2>; |
| 290 | }; |
| 291 | |
| 292 | pins2 { |
| 293 | pinmux = <STM32F769_PD7_FUNC_SDMMC2_CMD>; |
| 294 | drive-open-drain; |
| 295 | slew-rate = <2>; |
| 296 | }; |
| 297 | }; |
| 298 | |
| 299 | }; |
| 300 | sdio: sdio@40012c00 { |
| 301 | compatible = "st,stm32f4xx-sdio"; |
| 302 | reg = <0x40012c00 0x400>; |
| 303 | clocks = <&rcc 0 171>; |
| 304 | interrupts = <49>; |
| 305 | status = "disabled"; |
| 306 | pinctrl-0 = <&sdio_pins>; |
| 307 | pinctrl-1 = <&sdio_pins_od>; |
| 308 | pinctrl-names = "default", "opendrain"; |
| 309 | max-frequency = <48000000>; |
| 310 | }; |
| 311 | |
| 312 | sdio2: sdio2@40011c00 { |
| 313 | compatible = "st,stm32f4xx-sdio"; |
| 314 | reg = <0x40011c00 0x400>; |
| 315 | clocks = <&rcc 0 167>; |
| 316 | interrupts = <103>; |
| 317 | status = "disabled"; |
| 318 | pinctrl-0 = <&sdio_pins_b>; |
| 319 | pinctrl-1 = <&sdio_pins_od_b>; |
| 320 | pinctrl-names = "default", "opendrain"; |
| 321 | max-frequency = <48000000>; |
Vikas Manocha | 2881915 | 2017-02-12 10:25:50 -0800 | [diff] [blame] | 322 | }; |
Michael Kurz | bccef71 | 2017-01-22 16:04:23 +0100 | [diff] [blame] | 323 | }; |
| 324 | }; |
| 325 | |
| 326 | &systick { |
| 327 | status = "okay"; |
| 328 | }; |