blob: 75969e815959d7a9887e0cc43ea1db6aa955fb37 [file] [log] [blame]
Alexandre Torgue0dc283d2020-10-07 15:29:52 +02001// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause)
2/*
Maxime Méréc434b762025-07-16 11:49:34 +02003 * Copyright (C) 2023-2025, STMicroelectronics - All Rights Reserved
Alexandre Torgue0dc283d2020-10-07 15:29:52 +02004 * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
5 */
6
7#include <dt-bindings/clock/stm32mp25-clks.h>
8#include <dt-bindings/interrupt-controller/arm-gic.h>
9#include <dt-bindings/reset/stm32mp25-resets.h>
10
11/ {
12 #address-cells = <2>;
13 #size-cells = <2>;
14
15 cpus {
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 cpu0: cpu@0 {
20 compatible = "arm,cortex-a35";
21 device_type = "cpu";
22 reg = <0>;
23 enable-method = "psci";
24 };
25 };
26
27 clocks {
28 clk_hse: clk-hse {
29 #clock-cells = <0>;
30 compatible = "fixed-clock";
31 clock-frequency = <48000000>;
32 };
33
34 clk_hsi: clk-hsi {
35 #clock-cells = <0>;
36 compatible = "fixed-clock";
37 clock-frequency = <64000000>;
38 };
39
40 clk_lse: clk-lse {
41 #clock-cells = <0>;
42 compatible = "fixed-clock";
43 clock-frequency = <32768>;
44 };
45
46 clk_lsi: clk-lsi {
47 #clock-cells = <0>;
48 compatible = "fixed-clock";
49 clock-frequency = <32000>;
50 };
51
52 clk_msi: clk-msi {
53 #clock-cells = <0>;
54 compatible = "fixed-clock";
55 clock-frequency = <16000000>;
56 };
57 };
58
59 intc: interrupt-controller@4ac00000 {
60 compatible = "arm,cortex-a7-gic";
61 #interrupt-cells = <3>;
62 #address-cells = <1>;
63 interrupt-controller;
64 reg = <0x0 0x4ac10000 0x0 0x1000>,
65 <0x0 0x4ac20000 0x0 0x2000>,
66 <0x0 0x4ac40000 0x0 0x2000>,
67 <0x0 0x4ac60000 0x0 0x2000>;
68 };
69
Yann Gautier4c8e8ea2023-10-18 14:17:04 +020070 timer {
Alexandre Torgue0dc283d2020-10-07 15:29:52 +020071 compatible = "arm,armv8-timer";
72 interrupt-parent = <&intc>;
73 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
74 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
75 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
76 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
77 always-on;
78 };
79
80 soc@0 {
81 compatible = "simple-bus";
82 #address-cells = <1>;
83 #size-cells = <1>;
84 interrupt-parent = <&intc>;
85 ranges = <0x0 0x0 0x0 0x80000000>;
86
87 rifsc: rifsc@42080000 {
88 compatible = "st,stm32mp25-rifsc";
89 reg = <0x42080000 0x1000>;
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 usart2: serial@400e0000 {
94 compatible = "st,stm32h7-uart";
95 reg = <0x400e0000 0x400>;
96 clocks = <&rcc CK_KER_USART2>;
97 resets = <&rcc USART2_R>;
98 status = "disabled";
99 };
Yann Gautier38797612024-05-21 11:15:31 +0200100
Yann Gautierc7cfe272022-04-21 15:30:45 +0200101 usart3: serial@400f0000 {
102 compatible = "st,stm32h7-uart";
103 reg = <0x400f0000 0x400>;
104 clocks = <&rcc CK_KER_USART3>;
105 resets = <&rcc USART3_R>;
106 status = "disabled";
107 };
108
109 uart4: serial@40100000 {
110 compatible = "st,stm32h7-uart";
111 reg = <0x40100000 0x400>;
112 clocks = <&rcc CK_KER_UART4>;
113 resets = <&rcc UART4_R>;
114 status = "disabled";
115 };
116
117 uart5: serial@40110000 {
118 compatible = "st,stm32h7-uart";
119 reg = <0x40110000 0x400>;
120 clocks = <&rcc CK_KER_UART5>;
121 resets = <&rcc UART5_R>;
122 status = "disabled";
123 };
124
125 i2c1: i2c@40120000 {
126 compatible = "st,stm32mp25-i2c";
127 reg = <0x40120000 0x400>;
128 clocks = <&rcc CK_KER_I2C1>;
129 resets = <&rcc I2C1_R>;
130 status = "disabled";
131 };
132
133 i2c2: i2c@40130000 {
134 compatible = "st,stm32mp25-i2c";
135 reg = <0x40130000 0x400>;
136 clocks = <&rcc CK_KER_I2C2>;
137 resets = <&rcc I2C2_R>;
138 status = "disabled";
139 };
140
141 i2c3: i2c@40140000 {
142 compatible = "st,stm32mp25-i2c";
143 reg = <0x40140000 0x400>;
144 clocks = <&rcc CK_KER_I2C3>;
145 resets = <&rcc I2C3_R>;
146 status = "disabled";
147 };
148
149 i2c4: i2c@40150000 {
150 compatible = "st,stm32mp25-i2c";
151 reg = <0x40150000 0x400>;
152 clocks = <&rcc CK_KER_I2C4>;
153 resets = <&rcc I2C4_R>;
154 status = "disabled";
155 };
156
157 i2c5: i2c@40160000 {
158 compatible = "st,stm32mp25-i2c";
159 reg = <0x40160000 0x400>;
160 clocks = <&rcc CK_KER_I2C5>;
161 resets = <&rcc I2C5_R>;
162 status = "disabled";
163 };
164
165 i2c6: i2c@40170000 {
166 compatible = "st,stm32mp25-i2c";
167 reg = <0x40170000 0x400>;
168 clocks = <&rcc CK_KER_I2C6>;
169 resets = <&rcc I2C6_R>;
170 status = "disabled";
171 };
172
173 i2c7: i2c@40180000 {
174 compatible = "st,stm32mp25-i2c";
175 reg = <0x40180000 0x400>;
176 clocks = <&rcc CK_KER_I2C7>;
177 resets = <&rcc I2C7_R>;
178 status = "disabled";
179 };
180
181 usart6: serial@40220000 {
182 compatible = "st,stm32h7-uart";
183 reg = <0x40220000 0x400>;
184 clocks = <&rcc CK_KER_USART6>;
185 resets = <&rcc USART6_R>;
186 status = "disabled";
187 };
188
189 uart9: serial@402c0000 {
190 compatible = "st,stm32h7-uart";
191 reg = <0x402c0000 0x400>;
192 clocks = <&rcc CK_KER_UART9>;
193 resets = <&rcc UART9_R>;
194 status = "disabled";
195 };
196
197 usart1: serial@40330000 {
198 compatible = "st,stm32h7-uart";
199 reg = <0x40330000 0x400>;
200 clocks = <&rcc CK_KER_USART1>;
201 resets = <&rcc USART1_R>;
202 status = "disabled";
203 };
204
205 uart7: serial@40370000 {
206 compatible = "st,stm32h7-uart";
207 reg = <0x40370000 0x400>;
208 clocks = <&rcc CK_KER_UART7>;
209 resets = <&rcc UART7_R>;
210 status = "disabled";
211 };
212
213 uart8: serial@40380000 {
214 compatible = "st,stm32h7-uart";
215 reg = <0x40380000 0x400>;
216 clocks = <&rcc CK_KER_UART8>;
217 resets = <&rcc UART8_R>;
218 status = "disabled";
219 };
220
Maxime Méréc434b762025-07-16 11:49:34 +0200221 rng: rng@42020000 {
222 compatible = "st,stm32mp13-rng";
223 reg = <0x42020000 0x400>;
224 clocks = <&rcc CK_BUS_RNG>;
225 resets = <&rcc RNG_R>;
226 status = "disabled";
227 };
228
Yann Gautierc7cfe272022-04-21 15:30:45 +0200229 i2c8: i2c@46040000 {
230 compatible = "st,stm32mp25-i2c";
231 reg = <0x46040000 0x400>;
232 clocks = <&rcc CK_KER_I2C8>;
233 resets = <&rcc I2C8_R>;
234 status = "disabled";
235 };
236
Yann Gautier38797612024-05-21 11:15:31 +0200237 sdmmc1: mmc@48220000 {
238 compatible = "st,stm32mp25-sdmmc2", "arm,pl18x", "arm,primecell";
239 arm,primecell-periphid = <0x00353180>;
240 reg = <0x48220000 0x400>, <0x44230400 0x8>;
241 clocks = <&rcc CK_KER_SDMMC1>;
242 clock-names = "apb_pclk";
243 resets = <&rcc SDMMC1_R>;
244 cap-sd-highspeed;
245 cap-mmc-highspeed;
246 max-frequency = <120000000>;
247 status = "disabled";
248 };
249
250 sdmmc2: mmc@48230000 {
251 compatible = "st,stm32mp25-sdmmc2", "arm,pl18x", "arm,primecell";
252 arm,primecell-periphid = <0x00353180>;
253 reg = <0x48230000 0x400>, <0x44230800 0x8>;
254 clocks = <&rcc CK_KER_SDMMC2>;
255 clock-names = "apb_pclk";
256 resets = <&rcc SDMMC2_R>;
257 cap-sd-highspeed;
258 cap-mmc-highspeed;
259 max-frequency = <120000000>;
260 status = "disabled";
261 };
Alexandre Torgue0dc283d2020-10-07 15:29:52 +0200262 };
263
Nicolas Le Bayon8f783a52021-01-20 11:14:58 +0100264 risaf2: risaf@420b0000 {
265 compatible = "st,stm32-risaf";
266 reg = <0x420b0000 0x1000>;
267 clocks = <&rcc CK_KER_OSPI1>;
268 status = "disabled";
269 };
270
271 risaf4: risaf@420d0000 {
272 compatible = "st,stm32-risaf";
273 reg = <0x420d0000 0x1000>;
274 clocks = <&rcc CK_BUS_RISAF4>;
275 status = "disabled";
276 };
277
Yann Gautierc238a462024-01-04 18:48:47 +0100278 bsec: efuse@44000000 {
279 compatible = "st,stm32mp25-bsec";
280 reg = <0x44000000 0x400>;
281 #address-cells = <1>;
282 #size-cells = <1>;
283
284 uid_otp: uid-otp@14 {
285 reg = <0x14 0xc>;
286 };
287 part_number_otp: part-number-otp@24 {
288 reg = <0x24 0x4>;
289 };
290 nand_otp: otp16@40 {
291 reg = <0x40 0x4>;
292 };
293 lifecycle2_otp: otp18@48 {
294 reg = <0x48 0x4>;
295 };
296 nand2_otp: otp20@50 {
297 reg = <0x50 0x4>;
298 };
Yann Gautier381b2a62024-06-21 14:49:47 +0200299 rev_otp@198 {
300 reg = <0x198 0x4>;
301 };
Yann Gautierc238a462024-01-04 18:48:47 +0100302 package_otp: package-otp@1e8 {
303 reg = <0x1e8 0x1>;
304 };
305 hconf1_otp: otp124@1f0 {
306 reg = <0x1f0 0x4>;
307 };
308 pkh_otp: otp144@240 {
309 reg = <0x240 0x20>;
310 };
311 oem_fip_enc_key: otp260@410 {
312 reg = <0x410 0x20>;
313 };
314 };
315
Alexandre Torgue0dc283d2020-10-07 15:29:52 +0200316 rcc: rcc@44200000 {
317 compatible = "st,stm32mp25-rcc";
318 reg = <0x44200000 0x10000>;
319 #clock-cells = <1>;
320 #reset-cells = <1>;
321 };
322
323 pwr: pwr@44210000 {
324 compatible = "st,stm32mp25-pwr";
325 reg = <0x44210000 0x400>;
326
327 vddio1: vddio1 {
328 regulator-name = "vddio1";
329 };
330
331 vddio2: vddio2 {
332 regulator-name = "vddio2";
333 };
334
335 vddio3: vddio3 {
336 regulator-name = "vddio3";
337 };
338
339 vddio4: vddio4 {
340 regulator-name = "vddio4";
341 };
342
343 vddio: vddio {
344 regulator-name = "vddio";
345 };
346 };
347
348 syscfg: syscon@44230000 {
349 compatible = "st,stm32mp25-syscfg", "syscon";
350 reg = <0x44230000 0x10000>;
351 };
352
Yann Gautiere34839b2023-09-22 13:54:50 +0200353 ddr: ddr@48040000 {
354 compatible = "st,stm32mp2-ddr";
355 reg = <0x48040000 0x10000>,
356 <0x48c00000 0x400000>;
357 status = "okay";
358 };
359
Alexandre Torgue0dc283d2020-10-07 15:29:52 +0200360 pinctrl: pinctrl@44240000 {
361 #address-cells = <1>;
362 #size-cells = <1>;
363 compatible = "st,stm32mp257-pinctrl";
364 ranges = <0 0x44240000 0xa0400>;
Alexandre Torgue0dc283d2020-10-07 15:29:52 +0200365
366 gpioa: gpio@44240000 {
367 gpio-controller;
368 #gpio-cells = <2>;
369 interrupt-controller;
370 #interrupt-cells = <2>;
371 reg = <0x0 0x400>;
372 clocks = <&rcc CK_BUS_GPIOA>;
373 st,bank-name = "GPIOA";
374 status = "disabled";
375 };
376
377 gpiob: gpio@44250000 {
378 gpio-controller;
379 #gpio-cells = <2>;
380 interrupt-controller;
381 #interrupt-cells = <2>;
382 reg = <0x10000 0x400>;
383 clocks = <&rcc CK_BUS_GPIOB>;
384 st,bank-name = "GPIOB";
385 status = "disabled";
386 };
387
388 gpioc: gpio@44260000 {
389 gpio-controller;
390 #gpio-cells = <2>;
391 interrupt-controller;
392 #interrupt-cells = <2>;
393 reg = <0x20000 0x400>;
394 clocks = <&rcc CK_BUS_GPIOC>;
395 st,bank-name = "GPIOC";
396 status = "disabled";
397 };
398
399 gpiod: gpio@44270000 {
400 gpio-controller;
401 #gpio-cells = <2>;
402 interrupt-controller;
403 #interrupt-cells = <2>;
404 reg = <0x30000 0x400>;
405 clocks = <&rcc CK_BUS_GPIOD>;
406 st,bank-name = "GPIOD";
407 status = "disabled";
408 };
409
410 gpioe: gpio@44280000 {
411 gpio-controller;
412 #gpio-cells = <2>;
413 interrupt-controller;
414 #interrupt-cells = <2>;
415 reg = <0x40000 0x400>;
416 clocks = <&rcc CK_BUS_GPIOE>;
417 st,bank-name = "GPIOE";
418 status = "disabled";
419 };
420
421 gpiof: gpio@44290000 {
422 gpio-controller;
423 #gpio-cells = <2>;
424 interrupt-controller;
425 #interrupt-cells = <2>;
426 reg = <0x50000 0x400>;
427 clocks = <&rcc CK_BUS_GPIOF>;
428 st,bank-name = "GPIOF";
429 status = "disabled";
430 };
431
432 gpiog: gpio@442a0000 {
433 gpio-controller;
434 #gpio-cells = <2>;
435 interrupt-controller;
436 #interrupt-cells = <2>;
437 reg = <0x60000 0x400>;
438 clocks = <&rcc CK_BUS_GPIOG>;
439 st,bank-name = "GPIOG";
440 status = "disabled";
441 };
442
443 gpioh: gpio@442b0000 {
444 gpio-controller;
445 #gpio-cells = <2>;
446 interrupt-controller;
447 #interrupt-cells = <2>;
448 reg = <0x70000 0x400>;
449 clocks = <&rcc CK_BUS_GPIOH>;
450 st,bank-name = "GPIOH";
451 status = "disabled";
452 };
453
454 gpioi: gpio@442c0000 {
455 gpio-controller;
456 #gpio-cells = <2>;
457 interrupt-controller;
458 #interrupt-cells = <2>;
459 reg = <0x80000 0x400>;
460 clocks = <&rcc CK_BUS_GPIOI>;
461 st,bank-name = "GPIOI";
462 status = "disabled";
463 };
464
465 gpioj: gpio@442d0000 {
466 gpio-controller;
467 #gpio-cells = <2>;
468 interrupt-controller;
469 #interrupt-cells = <2>;
470 reg = <0x90000 0x400>;
471 clocks = <&rcc CK_BUS_GPIOJ>;
472 st,bank-name = "GPIOJ";
473 status = "disabled";
474 };
475
476 gpiok: gpio@442e0000 {
477 gpio-controller;
478 #gpio-cells = <2>;
479 interrupt-controller;
480 #interrupt-cells = <2>;
481 reg = <0xa0000 0x400>;
482 clocks = <&rcc CK_BUS_GPIOK>;
483 st,bank-name = "GPIOK";
484 status = "disabled";
485 };
486 };
487
488 pinctrl_z: pinctrl@46200000 {
489 #address-cells = <1>;
490 #size-cells = <1>;
491 compatible = "st,stm32mp257-z-pinctrl";
492 ranges = <0 0x46200000 0x400>;
Alexandre Torgue0dc283d2020-10-07 15:29:52 +0200493
494 gpioz: gpio@46200000 {
495 gpio-controller;
496 #gpio-cells = <2>;
497 interrupt-controller;
498 #interrupt-cells = <2>;
499 reg = <0 0x400>;
500 clocks = <&rcc CK_BUS_GPIOZ>;
501 st,bank-name = "GPIOZ";
502 st,bank-ioport = <11>;
503 status = "disabled";
504 };
505
506 };
507 };
508};