blob: f5ebad826374ade6ddc47135c057e68201d1949c [file] [log] [blame]
Maxime Coquelin338a6aa2015-06-03 16:54:02 +02001/*
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
Joachim Eastwood05b23eb2016-08-29 23:33:56 +020048#include "skeleton.dtsi"
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020049#include "armv7-m.dtsi"
Maxime Coquelin2dbd0592015-10-14 18:12:10 +020050#include <dt-bindings/pinctrl/stm32f429-pinfunc.h>
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020051
52/ {
53 clocks {
Daniel Thompson9dc24a22015-06-10 22:09:00 +020054 clk_hse: clk-hse {
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020055 #clock-cells = <0>;
56 compatible = "fixed-clock";
Daniel Thompson9dc24a22015-06-10 22:09:00 +020057 clock-frequency = <0>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020058 };
59 };
60
61 soc {
Maxime Coquelinb2aa7f72015-12-02 17:47:17 +010062 dma-ranges = <0xc0000000 0x0 0x10000000>;
63
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020064 timer2: timer@40000000 {
65 compatible = "st,stm32-timer";
66 reg = <0x40000000 0x400>;
67 interrupts = <28>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +020068 clocks = <&rcc 0 128>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020069 status = "disabled";
70 };
71
72 timer3: timer@40000400 {
73 compatible = "st,stm32-timer";
74 reg = <0x40000400 0x400>;
75 interrupts = <29>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +020076 clocks = <&rcc 0 129>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020077 status = "disabled";
78 };
79
80 timer4: timer@40000800 {
81 compatible = "st,stm32-timer";
82 reg = <0x40000800 0x400>;
83 interrupts = <30>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +020084 clocks = <&rcc 0 130>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020085 status = "disabled";
86 };
87
88 timer5: timer@40000c00 {
89 compatible = "st,stm32-timer";
90 reg = <0x40000c00 0x400>;
91 interrupts = <50>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +020092 clocks = <&rcc 0 131>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +020093 };
94
95 timer6: timer@40001000 {
96 compatible = "st,stm32-timer";
97 reg = <0x40001000 0x400>;
98 interrupts = <54>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +020099 clocks = <&rcc 0 132>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200100 status = "disabled";
101 };
102
103 timer7: timer@40001400 {
104 compatible = "st,stm32-timer";
105 reg = <0x40001400 0x400>;
106 interrupts = <55>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200107 clocks = <&rcc 0 133>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200108 status = "disabled";
109 };
110
111 usart2: serial@40004400 {
112 compatible = "st,stm32-usart", "st,stm32-uart";
113 reg = <0x40004400 0x400>;
114 interrupts = <38>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200115 clocks = <&rcc 0 145>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200116 status = "disabled";
117 };
118
119 usart3: serial@40004800 {
120 compatible = "st,stm32-usart", "st,stm32-uart";
121 reg = <0x40004800 0x400>;
122 interrupts = <39>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200123 clocks = <&rcc 0 146>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200124 status = "disabled";
125 };
126
127 usart4: serial@40004c00 {
128 compatible = "st,stm32-uart";
129 reg = <0x40004c00 0x400>;
130 interrupts = <52>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200131 clocks = <&rcc 0 147>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200132 status = "disabled";
133 };
134
135 usart5: serial@40005000 {
136 compatible = "st,stm32-uart";
137 reg = <0x40005000 0x400>;
138 interrupts = <53>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200139 clocks = <&rcc 0 148>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200140 status = "disabled";
141 };
142
143 usart7: serial@40007800 {
144 compatible = "st,stm32-usart", "st,stm32-uart";
145 reg = <0x40007800 0x400>;
146 interrupts = <82>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200147 clocks = <&rcc 0 158>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200148 status = "disabled";
149 };
150
151 usart8: serial@40007c00 {
152 compatible = "st,stm32-usart", "st,stm32-uart";
153 reg = <0x40007c00 0x400>;
154 interrupts = <83>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200155 clocks = <&rcc 0 159>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200156 status = "disabled";
157 };
158
159 usart1: serial@40011000 {
160 compatible = "st,stm32-usart", "st,stm32-uart";
161 reg = <0x40011000 0x400>;
162 interrupts = <37>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200163 clocks = <&rcc 0 164>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200164 status = "disabled";
Gerald Baeza73767f12016-11-03 15:08:43 +0100165 dmas = <&dma2 2 4 0x400 0x0>,
166 <&dma2 7 4 0x400 0x0>;
167 dma-names = "rx", "tx";
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200168 };
169
170 usart6: serial@40011400 {
171 compatible = "st,stm32-usart", "st,stm32-uart";
172 reg = <0x40011400 0x400>;
173 interrupts = <71>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200174 clocks = <&rcc 0 165>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200175 status = "disabled";
176 };
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200177
Alexandre TORGUEe78b6552016-02-29 17:29:00 +0100178 syscfg: system-config@40013800 {
179 compatible = "syscon";
180 reg = <0x40013800 0x400>;
181 };
182
Alexandre TORGUE5a79d592016-09-20 18:00:59 +0200183 exti: interrupt-controller@40013c00 {
184 compatible = "st,stm32-exti";
185 interrupt-controller;
186 #interrupt-cells = <2>;
187 reg = <0x40013C00 0x400>;
188 interrupts = <1>, <2>, <3>, <6>, <7>, <8>, <9>, <10>, <23>, <40>, <41>, <42>, <62>, <76>;
189 };
190
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200191 pin-controller {
192 #address-cells = <1>;
193 #size-cells = <1>;
194 compatible = "st,stm32f429-pinctrl";
195 ranges = <0 0x40020000 0x3000>;
Maxime Coquelined011542016-11-04 15:06:55 +0100196 interrupt-parent = <&exti>;
197 st,syscfg = <&syscfg 0x8>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200198 pins-are-numbered;
199
200 gpioa: gpio@40020000 {
201 gpio-controller;
202 #gpio-cells = <2>;
203 reg = <0x0 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100204 clocks = <&rcc 0 0>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200205 st,bank-name = "GPIOA";
206 };
207
208 gpiob: gpio@40020400 {
209 gpio-controller;
210 #gpio-cells = <2>;
211 reg = <0x400 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100212 clocks = <&rcc 0 1>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200213 st,bank-name = "GPIOB";
214 };
215
216 gpioc: gpio@40020800 {
217 gpio-controller;
218 #gpio-cells = <2>;
219 reg = <0x800 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100220 clocks = <&rcc 0 2>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200221 st,bank-name = "GPIOC";
222 };
223
224 gpiod: gpio@40020c00 {
225 gpio-controller;
226 #gpio-cells = <2>;
227 reg = <0xc00 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100228 clocks = <&rcc 0 3>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200229 st,bank-name = "GPIOD";
230 };
231
232 gpioe: gpio@40021000 {
233 gpio-controller;
234 #gpio-cells = <2>;
235 reg = <0x1000 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100236 clocks = <&rcc 0 4>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200237 st,bank-name = "GPIOE";
238 };
239
240 gpiof: gpio@40021400 {
241 gpio-controller;
242 #gpio-cells = <2>;
243 reg = <0x1400 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100244 clocks = <&rcc 0 5>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200245 st,bank-name = "GPIOF";
246 };
247
248 gpiog: gpio@40021800 {
249 gpio-controller;
250 #gpio-cells = <2>;
251 reg = <0x1800 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100252 clocks = <&rcc 0 6>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200253 st,bank-name = "GPIOG";
254 };
255
256 gpioh: gpio@40021c00 {
257 gpio-controller;
258 #gpio-cells = <2>;
259 reg = <0x1c00 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100260 clocks = <&rcc 0 7>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200261 st,bank-name = "GPIOH";
262 };
263
264 gpioi: gpio@40022000 {
265 gpio-controller;
266 #gpio-cells = <2>;
267 reg = <0x2000 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100268 clocks = <&rcc 0 8>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200269 st,bank-name = "GPIOI";
270 };
271
272 gpioj: gpio@40022400 {
273 gpio-controller;
274 #gpio-cells = <2>;
275 reg = <0x2400 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100276 clocks = <&rcc 0 9>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200277 st,bank-name = "GPIOJ";
278 };
279
280 gpiok: gpio@40022800 {
281 gpio-controller;
282 #gpio-cells = <2>;
283 reg = <0x2800 0x400>;
Maxime Coquelina985b662016-02-23 13:35:25 +0100284 clocks = <&rcc 0 10>;
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200285 st,bank-name = "GPIOK";
286 };
Maxime Coquelin521df6f2015-10-14 18:15:04 +0200287
288 usart1_pins_a: usart1@0 {
289 pins1 {
290 pinmux = <STM32F429_PA9_FUNC_USART1_TX>;
291 bias-disable;
292 drive-push-pull;
293 slew-rate = <0>;
294 };
295 pins2 {
296 pinmux = <STM32F429_PA10_FUNC_USART1_RX>;
297 bias-disable;
298 };
299 };
Maxime Coquelinc8cc1b72016-02-23 17:11:42 +0100300
301 usbotg_hs_pins_a: usbotg_hs@0 {
302 pins {
303 pinmux = <STM32F429_PH4_FUNC_OTG_HS_ULPI_NXT>,
304 <STM32F429_PI11_FUNC_OTG_HS_ULPI_DIR>,
305 <STM32F429_PC0_FUNC_OTG_HS_ULPI_STP>,
306 <STM32F429_PA5_FUNC_OTG_HS_ULPI_CK>,
307 <STM32F429_PA3_FUNC_OTG_HS_ULPI_D0>,
308 <STM32F429_PB0_FUNC_OTG_HS_ULPI_D1>,
309 <STM32F429_PB1_FUNC_OTG_HS_ULPI_D2>,
310 <STM32F429_PB10_FUNC_OTG_HS_ULPI_D3>,
311 <STM32F429_PB11_FUNC_OTG_HS_ULPI_D4>,
312 <STM32F429_PB12_FUNC_OTG_HS_ULPI_D5>,
313 <STM32F429_PB13_FUNC_OTG_HS_ULPI_D6>,
314 <STM32F429_PB5_FUNC_OTG_HS_ULPI_D7>;
315 bias-disable;
316 drive-push-pull;
317 slew-rate = <2>;
318 };
319 };
Alexandre TORGUE9ee33d62016-02-29 17:29:00 +0100320
321 ethernet0_mii: mii@0 {
322 pins {
323 pinmux = <STM32F429_PG13_FUNC_ETH_MII_TXD0_ETH_RMII_TXD0>,
324 <STM32F429_PG14_FUNC_ETH_MII_TXD1_ETH_RMII_TXD1>,
325 <STM32F429_PC2_FUNC_ETH_MII_TXD2>,
326 <STM32F429_PB8_FUNC_ETH_MII_TXD3>,
327 <STM32F429_PC3_FUNC_ETH_MII_TX_CLK>,
328 <STM32F429_PG11_FUNC_ETH_MII_TX_EN_ETH_RMII_TX_EN>,
329 <STM32F429_PA2_FUNC_ETH_MDIO>,
330 <STM32F429_PC1_FUNC_ETH_MDC>,
331 <STM32F429_PA1_FUNC_ETH_MII_RX_CLK_ETH_RMII_REF_CLK>,
332 <STM32F429_PA7_FUNC_ETH_MII_RX_DV_ETH_RMII_CRS_DV>,
333 <STM32F429_PC4_FUNC_ETH_MII_RXD0_ETH_RMII_RXD0>,
334 <STM32F429_PC5_FUNC_ETH_MII_RXD1_ETH_RMII_RXD1>,
335 <STM32F429_PH6_FUNC_ETH_MII_RXD2>,
336 <STM32F429_PH7_FUNC_ETH_MII_RXD3>;
337 slew-rate = <2>;
338 };
339 };
Maxime Coquelin2dbd0592015-10-14 18:12:10 +0200340 };
341
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200342 rcc: rcc@40023810 {
Gabriel Fernandez9af80712016-07-22 11:37:50 +0200343 #reset-cells = <1>;
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200344 #clock-cells = <2>;
345 compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
346 reg = <0x40023800 0x400>;
347 clocks = <&clk_hse>;
348 };
Daniel Thompsonb47c9fa2015-10-12 09:21:30 +0100349
M'boumba Cedric Madianga9ee9e282015-10-16 15:59:00 +0200350 dma1: dma-controller@40026000 {
351 compatible = "st,stm32-dma";
352 reg = <0x40026000 0x400>;
353 interrupts = <11>,
354 <12>,
355 <13>,
356 <14>,
357 <15>,
358 <16>,
359 <17>,
360 <47>;
361 clocks = <&rcc 0 21>;
362 #dma-cells = <4>;
363 };
364
365 dma2: dma-controller@40026400 {
366 compatible = "st,stm32-dma";
367 reg = <0x40026400 0x400>;
368 interrupts = <56>,
369 <57>,
370 <58>,
371 <59>,
372 <60>,
373 <68>,
374 <69>,
375 <70>;
376 clocks = <&rcc 0 22>;
377 #dma-cells = <4>;
378 st,mem2mem;
379 };
380
Alexandre TORGUE9ee33d62016-02-29 17:29:00 +0100381 ethernet0: dwmac@40028000 {
382 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
383 reg = <0x40028000 0x8000>;
384 reg-names = "stmmaceth";
385 interrupts = <61>, <62>;
386 interrupt-names = "macirq", "eth_wake_irq";
387 clock-names = "stmmaceth", "tx-clk", "rx-clk";
388 clocks = <&rcc 0 25>, <&rcc 0 26>, <&rcc 0 27>;
389 st,syscon = <&syscfg 0x4>;
390 snps,pbl = <8>;
391 snps,mixed-burst;
392 dma-ranges;
393 status = "disabled";
394 };
395
Maxime Coquelinc8cc1b72016-02-23 17:11:42 +0100396 usbotg_hs: usb@40040000 {
397 compatible = "snps,dwc2";
398 dma-ranges;
399 reg = <0x40040000 0x40000>;
400 interrupts = <77>;
401 clocks = <&rcc 0 29>;
402 clock-names = "otg";
403 status = "disabled";
404 };
405
Daniel Thompsonb47c9fa2015-10-12 09:21:30 +0100406 rng: rng@50060800 {
407 compatible = "st,stm32-rng";
408 reg = <0x50060800 0x400>;
409 interrupts = <80>;
410 clocks = <&rcc 0 38>;
411 };
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200412 };
413};
414
415&systick {
Daniel Thompson9dc24a22015-06-10 22:09:00 +0200416 clocks = <&rcc 1 0>;
Maxime Coquelin338a6aa2015-06-03 16:54:02 +0200417 status = "okay";
418};