Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> |
| 3 | * |
| 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 |
| 7 | * whole. |
| 8 | * |
| 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. |
| 13 | * |
| 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. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public |
| 20 | * License along with this file; if not, write to the Free |
| 21 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 22 | * MA 02110-1301 USA |
| 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" |
Maxime Coquelin | 2dbd059 | 2015-10-14 18:12:10 +0200 | [diff] [blame^] | 49 | #include <dt-bindings/pinctrl/stm32f429-pinfunc.h> |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 50 | |
| 51 | / { |
| 52 | clocks { |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 53 | clk_hse: clk-hse { |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 54 | #clock-cells = <0>; |
| 55 | compatible = "fixed-clock"; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 56 | clock-frequency = <0>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 57 | }; |
| 58 | }; |
| 59 | |
| 60 | soc { |
| 61 | timer2: timer@40000000 { |
| 62 | compatible = "st,stm32-timer"; |
| 63 | reg = <0x40000000 0x400>; |
| 64 | interrupts = <28>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 65 | clocks = <&rcc 0 128>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 66 | status = "disabled"; |
| 67 | }; |
| 68 | |
| 69 | timer3: timer@40000400 { |
| 70 | compatible = "st,stm32-timer"; |
| 71 | reg = <0x40000400 0x400>; |
| 72 | interrupts = <29>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 73 | clocks = <&rcc 0 129>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 74 | status = "disabled"; |
| 75 | }; |
| 76 | |
| 77 | timer4: timer@40000800 { |
| 78 | compatible = "st,stm32-timer"; |
| 79 | reg = <0x40000800 0x400>; |
| 80 | interrupts = <30>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 81 | clocks = <&rcc 0 130>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 82 | status = "disabled"; |
| 83 | }; |
| 84 | |
| 85 | timer5: timer@40000c00 { |
| 86 | compatible = "st,stm32-timer"; |
| 87 | reg = <0x40000c00 0x400>; |
| 88 | interrupts = <50>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 89 | clocks = <&rcc 0 131>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 90 | }; |
| 91 | |
| 92 | timer6: timer@40001000 { |
| 93 | compatible = "st,stm32-timer"; |
| 94 | reg = <0x40001000 0x400>; |
| 95 | interrupts = <54>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 96 | clocks = <&rcc 0 132>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 97 | status = "disabled"; |
| 98 | }; |
| 99 | |
| 100 | timer7: timer@40001400 { |
| 101 | compatible = "st,stm32-timer"; |
| 102 | reg = <0x40001400 0x400>; |
| 103 | interrupts = <55>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 104 | clocks = <&rcc 0 133>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 105 | status = "disabled"; |
| 106 | }; |
| 107 | |
| 108 | usart2: serial@40004400 { |
| 109 | compatible = "st,stm32-usart", "st,stm32-uart"; |
| 110 | reg = <0x40004400 0x400>; |
| 111 | interrupts = <38>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 112 | clocks = <&rcc 0 145>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 113 | status = "disabled"; |
| 114 | }; |
| 115 | |
| 116 | usart3: serial@40004800 { |
| 117 | compatible = "st,stm32-usart", "st,stm32-uart"; |
| 118 | reg = <0x40004800 0x400>; |
| 119 | interrupts = <39>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 120 | clocks = <&rcc 0 146>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 121 | status = "disabled"; |
| 122 | }; |
| 123 | |
| 124 | usart4: serial@40004c00 { |
| 125 | compatible = "st,stm32-uart"; |
| 126 | reg = <0x40004c00 0x400>; |
| 127 | interrupts = <52>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 128 | clocks = <&rcc 0 147>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 129 | status = "disabled"; |
| 130 | }; |
| 131 | |
| 132 | usart5: serial@40005000 { |
| 133 | compatible = "st,stm32-uart"; |
| 134 | reg = <0x40005000 0x400>; |
| 135 | interrupts = <53>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 136 | clocks = <&rcc 0 148>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 137 | status = "disabled"; |
| 138 | }; |
| 139 | |
| 140 | usart7: serial@40007800 { |
| 141 | compatible = "st,stm32-usart", "st,stm32-uart"; |
| 142 | reg = <0x40007800 0x400>; |
| 143 | interrupts = <82>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 144 | clocks = <&rcc 0 158>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 145 | status = "disabled"; |
| 146 | }; |
| 147 | |
| 148 | usart8: serial@40007c00 { |
| 149 | compatible = "st,stm32-usart", "st,stm32-uart"; |
| 150 | reg = <0x40007c00 0x400>; |
| 151 | interrupts = <83>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 152 | clocks = <&rcc 0 159>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 153 | status = "disabled"; |
| 154 | }; |
| 155 | |
| 156 | usart1: serial@40011000 { |
| 157 | compatible = "st,stm32-usart", "st,stm32-uart"; |
| 158 | reg = <0x40011000 0x400>; |
| 159 | interrupts = <37>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 160 | clocks = <&rcc 0 164>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 161 | status = "disabled"; |
| 162 | }; |
| 163 | |
| 164 | usart6: serial@40011400 { |
| 165 | compatible = "st,stm32-usart", "st,stm32-uart"; |
| 166 | reg = <0x40011400 0x400>; |
| 167 | interrupts = <71>; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 168 | clocks = <&rcc 0 165>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 169 | status = "disabled"; |
| 170 | }; |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 171 | |
Maxime Coquelin | 2dbd059 | 2015-10-14 18:12:10 +0200 | [diff] [blame^] | 172 | pin-controller { |
| 173 | #address-cells = <1>; |
| 174 | #size-cells = <1>; |
| 175 | compatible = "st,stm32f429-pinctrl"; |
| 176 | ranges = <0 0x40020000 0x3000>; |
| 177 | pins-are-numbered; |
| 178 | |
| 179 | gpioa: gpio@40020000 { |
| 180 | gpio-controller; |
| 181 | #gpio-cells = <2>; |
| 182 | reg = <0x0 0x400>; |
| 183 | clocks = <&rcc 0 256>; |
| 184 | st,bank-name = "GPIOA"; |
| 185 | }; |
| 186 | |
| 187 | gpiob: gpio@40020400 { |
| 188 | gpio-controller; |
| 189 | #gpio-cells = <2>; |
| 190 | reg = <0x400 0x400>; |
| 191 | clocks = <&rcc 0 257>; |
| 192 | st,bank-name = "GPIOB"; |
| 193 | }; |
| 194 | |
| 195 | gpioc: gpio@40020800 { |
| 196 | gpio-controller; |
| 197 | #gpio-cells = <2>; |
| 198 | reg = <0x800 0x400>; |
| 199 | clocks = <&rcc 0 258>; |
| 200 | st,bank-name = "GPIOC"; |
| 201 | }; |
| 202 | |
| 203 | gpiod: gpio@40020c00 { |
| 204 | gpio-controller; |
| 205 | #gpio-cells = <2>; |
| 206 | reg = <0xc00 0x400>; |
| 207 | clocks = <&rcc 0 259>; |
| 208 | st,bank-name = "GPIOD"; |
| 209 | }; |
| 210 | |
| 211 | gpioe: gpio@40021000 { |
| 212 | gpio-controller; |
| 213 | #gpio-cells = <2>; |
| 214 | reg = <0x1000 0x400>; |
| 215 | clocks = <&rcc 0 260>; |
| 216 | st,bank-name = "GPIOE"; |
| 217 | }; |
| 218 | |
| 219 | gpiof: gpio@40021400 { |
| 220 | gpio-controller; |
| 221 | #gpio-cells = <2>; |
| 222 | reg = <0x1400 0x400>; |
| 223 | clocks = <&rcc 0 261>; |
| 224 | st,bank-name = "GPIOF"; |
| 225 | }; |
| 226 | |
| 227 | gpiog: gpio@40021800 { |
| 228 | gpio-controller; |
| 229 | #gpio-cells = <2>; |
| 230 | reg = <0x1800 0x400>; |
| 231 | clocks = <&rcc 0 262>; |
| 232 | st,bank-name = "GPIOG"; |
| 233 | }; |
| 234 | |
| 235 | gpioh: gpio@40021c00 { |
| 236 | gpio-controller; |
| 237 | #gpio-cells = <2>; |
| 238 | reg = <0x1c00 0x400>; |
| 239 | clocks = <&rcc 0 263>; |
| 240 | st,bank-name = "GPIOH"; |
| 241 | }; |
| 242 | |
| 243 | gpioi: gpio@40022000 { |
| 244 | gpio-controller; |
| 245 | #gpio-cells = <2>; |
| 246 | reg = <0x2000 0x400>; |
| 247 | clocks = <&rcc 0 264>; |
| 248 | st,bank-name = "GPIOI"; |
| 249 | }; |
| 250 | |
| 251 | gpioj: gpio@40022400 { |
| 252 | gpio-controller; |
| 253 | #gpio-cells = <2>; |
| 254 | reg = <0x2400 0x400>; |
| 255 | clocks = <&rcc 0 265>; |
| 256 | st,bank-name = "GPIOJ"; |
| 257 | }; |
| 258 | |
| 259 | gpiok: gpio@40022800 { |
| 260 | gpio-controller; |
| 261 | #gpio-cells = <2>; |
| 262 | reg = <0x2800 0x400>; |
| 263 | clocks = <&rcc 0 266>; |
| 264 | st,bank-name = "GPIOK"; |
| 265 | }; |
| 266 | }; |
| 267 | |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 268 | rcc: rcc@40023810 { |
| 269 | #clock-cells = <2>; |
| 270 | compatible = "st,stm32f42xx-rcc", "st,stm32-rcc"; |
| 271 | reg = <0x40023800 0x400>; |
| 272 | clocks = <&clk_hse>; |
| 273 | }; |
Daniel Thompson | b47c9fa | 2015-10-12 09:21:30 +0100 | [diff] [blame] | 274 | |
M'boumba Cedric Madianga | 9ee9e28 | 2015-10-16 15:59:00 +0200 | [diff] [blame] | 275 | dma1: dma-controller@40026000 { |
| 276 | compatible = "st,stm32-dma"; |
| 277 | reg = <0x40026000 0x400>; |
| 278 | interrupts = <11>, |
| 279 | <12>, |
| 280 | <13>, |
| 281 | <14>, |
| 282 | <15>, |
| 283 | <16>, |
| 284 | <17>, |
| 285 | <47>; |
| 286 | clocks = <&rcc 0 21>; |
| 287 | #dma-cells = <4>; |
| 288 | }; |
| 289 | |
| 290 | dma2: dma-controller@40026400 { |
| 291 | compatible = "st,stm32-dma"; |
| 292 | reg = <0x40026400 0x400>; |
| 293 | interrupts = <56>, |
| 294 | <57>, |
| 295 | <58>, |
| 296 | <59>, |
| 297 | <60>, |
| 298 | <68>, |
| 299 | <69>, |
| 300 | <70>; |
| 301 | clocks = <&rcc 0 22>; |
| 302 | #dma-cells = <4>; |
| 303 | st,mem2mem; |
| 304 | }; |
| 305 | |
Daniel Thompson | b47c9fa | 2015-10-12 09:21:30 +0100 | [diff] [blame] | 306 | rng: rng@50060800 { |
| 307 | compatible = "st,stm32-rng"; |
| 308 | reg = <0x50060800 0x400>; |
| 309 | interrupts = <80>; |
| 310 | clocks = <&rcc 0 38>; |
| 311 | }; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 312 | }; |
| 313 | }; |
| 314 | |
| 315 | &systick { |
Daniel Thompson | 9dc24a2 | 2015-06-10 22:09:00 +0200 | [diff] [blame] | 316 | clocks = <&rcc 1 0>; |
Maxime Coquelin | 338a6aa | 2015-06-03 16:54:02 +0200 | [diff] [blame] | 317 | status = "okay"; |
| 318 | }; |