blob: 5a064d5566e479b87f5cb7a50af12e386860431e [file] [log] [blame]
Patrick Delaunaya82abb12022-05-20 18:24:39 +02001// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) STMicroelectronics 2021 - All Rights Reserved
4 * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
5 */
6#include <dt-bindings/interrupt-controller/arm-gic.h>
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +01007#include <dt-bindings/clock/stm32mp13-clks.h>
8#include <dt-bindings/reset/stm32mp13-resets.h>
Patrick Delaunaya82abb12022-05-20 18:24:39 +02009
10/ {
11 #address-cells = <1>;
12 #size-cells = <1>;
13
14 cpus {
15 #address-cells = <1>;
16 #size-cells = <0>;
17
18 cpu0: cpu@0 {
19 compatible = "arm,cortex-a7";
20 device_type = "cpu";
21 reg = <0>;
22 };
23 };
24
25 arm-pmu {
26 compatible = "arm,cortex-a7-pmu";
27 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
28 interrupt-affinity = <&cpu0>;
29 interrupt-parent = <&intc>;
30 };
31
Patrick Delaunay0b69ce62022-07-06 18:20:24 +020032 firmware {
Patrick Delaunay152498d2022-09-07 13:42:23 +020033 optee {
Patrick Delaunay0b69ce62022-07-06 18:20:24 +020034 method = "smc";
35 compatible = "linaro,optee-tz";
36 };
Patrick Delaunay44db0982022-07-06 18:20:25 +020037
38 scmi: scmi {
39 compatible = "linaro,scmi-optee";
40 #address-cells = <1>;
41 #size-cells = <0>;
42 linaro,optee-channel-id = <0>;
43 shmem = <&scmi_shm>;
44
45 scmi_clk: protocol@14 {
46 reg = <0x14>;
47 #clock-cells = <1>;
48 };
49
50 scmi_reset: protocol@16 {
51 reg = <0x16>;
52 #reset-cells = <1>;
53 };
54 };
Patrick Delaunay0b69ce62022-07-06 18:20:24 +020055 };
56
Patrick Delaunaya82abb12022-05-20 18:24:39 +020057 intc: interrupt-controller@a0021000 {
58 compatible = "arm,cortex-a7-gic";
59 #interrupt-cells = <3>;
60 interrupt-controller;
61 reg = <0xa0021000 0x1000>,
62 <0xa0022000 0x2000>;
63 };
64
65 psci {
66 compatible = "arm,psci-1.0";
67 method = "smc";
68 };
69
70 timer {
71 compatible = "arm,armv7-timer";
72 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
73 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
74 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>,
75 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>;
76 interrupt-parent = <&intc>;
77 always-on;
78 };
79
80 soc {
81 compatible = "simple-bus";
82 #address-cells = <1>;
83 #size-cells = <1>;
84 interrupt-parent = <&intc>;
85 ranges;
86
Patrick Delaunay152498d2022-09-07 13:42:23 +020087 scmi_sram: sram@2ffff000 {
88 compatible = "mmio-sram";
89 reg = <0x2ffff000 0x1000>;
90 #address-cells = <1>;
91 #size-cells = <1>;
92 ranges = <0 0x2ffff000 0x1000>;
93
94 scmi_shm: scmi-sram@0 {
95 compatible = "arm,scmi-shmem";
96 reg = <0 0x80>;
97 };
98 };
99
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200100 uart4: serial@40010000 {
101 compatible = "st,stm32h7-uart";
102 reg = <0x40010000 0x400>;
103 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100104 clocks = <&rcc UART4_K>;
105 resets = <&rcc UART4_R>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200106 status = "disabled";
107 };
108
109 dma1: dma-controller@48000000 {
110 compatible = "st,stm32-dma";
111 reg = <0x48000000 0x400>;
112 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
113 <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
114 <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
115 <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
116 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
117 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
118 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
119 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100120 clocks = <&rcc DMA1>;
121 resets = <&rcc DMA1_R>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200122 #dma-cells = <4>;
123 st,mem2mem;
124 dma-requests = <8>;
125 };
126
127 dma2: dma-controller@48001000 {
128 compatible = "st,stm32-dma";
129 reg = <0x48001000 0x400>;
130 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
131 <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
132 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
133 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
134 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
135 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
136 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
137 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100138 clocks = <&rcc DMA2>;
139 resets = <&rcc DMA2_R>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200140 #dma-cells = <4>;
141 st,mem2mem;
142 dma-requests = <8>;
143 };
144
145 dmamux1: dma-router@48002000 {
146 compatible = "st,stm32h7-dmamux";
147 reg = <0x48002000 0x40>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100148 clocks = <&rcc DMAMUX1>;
149 resets = <&rcc DMAMUX1_R>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200150 #dma-cells = <3>;
151 dma-masters = <&dma1 &dma2>;
152 dma-requests = <128>;
153 dma-channels = <16>;
154 };
155
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100156 rcc: rcc@50000000 {
157 compatible = "st,stm32mp13-rcc", "syscon";
158 reg = <0x50000000 0x1000>;
159 #clock-cells = <1>;
160 #reset-cells = <1>;
161 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
162
163 clock-names = "hse", "hsi", "csi", "lse", "lsi";
164 clocks = <&scmi_clk CK_SCMI_HSE>,
165 <&scmi_clk CK_SCMI_HSI>,
166 <&scmi_clk CK_SCMI_CSI>,
167 <&scmi_clk CK_SCMI_LSE>,
168 <&scmi_clk CK_SCMI_LSI>;
169 };
170
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200171 exti: interrupt-controller@5000d000 {
172 compatible = "st,stm32mp13-exti", "syscon";
173 interrupt-controller;
174 #interrupt-cells = <2>;
175 reg = <0x5000d000 0x400>;
176 };
177
178 syscfg: syscon@50020000 {
179 compatible = "st,stm32mp157-syscfg", "syscon";
180 reg = <0x50020000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100181 clocks = <&rcc SYSCFG>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200182 };
183
184 mdma: dma-controller@58000000 {
185 compatible = "st,stm32h7-mdma";
186 reg = <0x58000000 0x1000>;
187 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100188 clocks = <&rcc MDMA>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200189 #dma-cells = <5>;
190 dma-channels = <32>;
191 dma-requests = <48>;
192 };
193
Patrice Chotard60edabc2023-04-03 08:04:11 +0200194 qspi: spi@58003000 {
195 compatible = "st,stm32f469-qspi";
196 reg = <0x58003000 0x1000>, <0x70000000 0x10000000>;
197 reg-names = "qspi", "qspi_mm";
198 #address-cells = <1>;
199 #size-cells = <0>;
200 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
201 dmas = <&mdma 26 0x2 0x10100002 0x0 0x0>,
202 <&mdma 26 0x2 0x10100008 0x0 0x0>;
203 dma-names = "tx", "rx";
204 clocks = <&rcc QSPI_K>;
205 resets = <&rcc QSPI_R>;
206 status = "disabled";
207 };
208
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200209 sdmmc1: mmc@58005000 {
210 compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell";
211 arm,primecell-periphid = <0x20253180>;
212 reg = <0x58005000 0x1000>, <0x58006000 0x1000>;
213 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100214 clocks = <&rcc SDMMC1_K>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200215 clock-names = "apb_pclk";
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100216 resets = <&rcc SDMMC1_R>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200217 cap-sd-highspeed;
218 cap-mmc-highspeed;
219 max-frequency = <130000000>;
220 status = "disabled";
221 };
222
223 sdmmc2: mmc@58007000 {
224 compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell";
225 arm,primecell-periphid = <0x20253180>;
226 reg = <0x58007000 0x1000>, <0x58008000 0x1000>;
227 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100228 clocks = <&rcc SDMMC2_K>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200229 clock-names = "apb_pclk";
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100230 resets = <&rcc SDMMC2_R>;
231
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200232 cap-sd-highspeed;
233 cap-mmc-highspeed;
234 max-frequency = <130000000>;
235 status = "disabled";
236 };
237
238 iwdg2: watchdog@5a002000 {
239 compatible = "st,stm32mp1-iwdg";
240 reg = <0x5a002000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100241 clocks = <&rcc IWDG2>, <&scmi_clk CK_SCMI_LSI>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200242 clock-names = "pclk", "lsi";
243 status = "disabled";
244 };
245
Patrick Delaunay12d5a062022-06-30 10:20:17 +0200246 rtc: rtc@5c004000 {
247 compatible = "st,stm32mp1-rtc";
248 reg = <0x5c004000 0x400>;
249 interrupts-extended = <&exti 19 IRQ_TYPE_LEVEL_HIGH>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100250 clocks = <&scmi_clk CK_SCMI_RTCAPB>,
251 <&scmi_clk CK_SCMI_RTC>;
Patrick Delaunay12d5a062022-06-30 10:20:17 +0200252 clock-names = "pclk", "rtc_ck";
253 status = "disabled";
254 };
255
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200256 bsec: efuse@5c005000 {
257 compatible = "st,stm32mp13-bsec";
258 reg = <0x5c005000 0x400>;
259 #address-cells = <1>;
260 #size-cells = <1>;
261
262 part_number_otp: part_number_otp@4 {
263 reg = <0x4 0x2>;
264 };
265 ts_cal1: calib@5c {
266 reg = <0x5c 0x2>;
267 };
268 ts_cal2: calib@5e {
269 reg = <0x5e 0x2>;
270 };
271 };
272
273 /*
274 * Break node order to solve dependency probe issue between
275 * pinctrl and exti.
276 */
Patrick Delaunay12d5a062022-06-30 10:20:17 +0200277 pinctrl: pinctrl@50002000 {
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200278 #address-cells = <1>;
279 #size-cells = <1>;
280 compatible = "st,stm32mp135-pinctrl";
281 ranges = <0 0x50002000 0x8400>;
Patrick Delaunay12d5a062022-06-30 10:20:17 +0200282 interrupt-parent = <&exti>;
283 st,syscfg = <&exti 0x60 0xff>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200284 pins-are-numbered;
285
286 gpioa: gpio@50002000 {
287 gpio-controller;
288 #gpio-cells = <2>;
289 interrupt-controller;
290 #interrupt-cells = <2>;
291 reg = <0x0 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100292 clocks = <&rcc GPIOA>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200293 st,bank-name = "GPIOA";
294 ngpios = <16>;
295 gpio-ranges = <&pinctrl 0 0 16>;
296 };
297
298 gpiob: gpio@50003000 {
299 gpio-controller;
300 #gpio-cells = <2>;
301 interrupt-controller;
302 #interrupt-cells = <2>;
303 reg = <0x1000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100304 clocks = <&rcc GPIOB>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200305 st,bank-name = "GPIOB";
306 ngpios = <16>;
307 gpio-ranges = <&pinctrl 0 16 16>;
308 };
309
310 gpioc: gpio@50004000 {
311 gpio-controller;
312 #gpio-cells = <2>;
313 interrupt-controller;
314 #interrupt-cells = <2>;
315 reg = <0x2000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100316 clocks = <&rcc GPIOC>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200317 st,bank-name = "GPIOC";
318 ngpios = <16>;
319 gpio-ranges = <&pinctrl 0 32 16>;
320 };
321
322 gpiod: gpio@50005000 {
323 gpio-controller;
324 #gpio-cells = <2>;
325 interrupt-controller;
326 #interrupt-cells = <2>;
327 reg = <0x3000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100328 clocks = <&rcc GPIOD>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200329 st,bank-name = "GPIOD";
330 ngpios = <16>;
331 gpio-ranges = <&pinctrl 0 48 16>;
332 };
333
334 gpioe: gpio@50006000 {
335 gpio-controller;
336 #gpio-cells = <2>;
337 interrupt-controller;
338 #interrupt-cells = <2>;
339 reg = <0x4000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100340 clocks = <&rcc GPIOE>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200341 st,bank-name = "GPIOE";
342 ngpios = <16>;
343 gpio-ranges = <&pinctrl 0 64 16>;
344 };
345
346 gpiof: gpio@50007000 {
347 gpio-controller;
348 #gpio-cells = <2>;
349 interrupt-controller;
350 #interrupt-cells = <2>;
351 reg = <0x5000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100352 clocks = <&rcc GPIOF>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200353 st,bank-name = "GPIOF";
354 ngpios = <16>;
355 gpio-ranges = <&pinctrl 0 80 16>;
356 };
357
358 gpiog: gpio@50008000 {
359 gpio-controller;
360 #gpio-cells = <2>;
361 interrupt-controller;
362 #interrupt-cells = <2>;
363 reg = <0x6000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100364 clocks = <&rcc GPIOG>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200365 st,bank-name = "GPIOG";
366 ngpios = <16>;
367 gpio-ranges = <&pinctrl 0 96 16>;
368 };
369
370 gpioh: gpio@50009000 {
371 gpio-controller;
372 #gpio-cells = <2>;
373 interrupt-controller;
374 #interrupt-cells = <2>;
375 reg = <0x7000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100376 clocks = <&rcc GPIOH>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200377 st,bank-name = "GPIOH";
378 ngpios = <15>;
379 gpio-ranges = <&pinctrl 0 112 15>;
380 };
381
382 gpioi: gpio@5000a000 {
383 gpio-controller;
384 #gpio-cells = <2>;
385 interrupt-controller;
386 #interrupt-cells = <2>;
387 reg = <0x8000 0x400>;
Gabriel Fernandez2c8d5482022-11-24 11:36:05 +0100388 clocks = <&rcc GPIOI>;
Patrick Delaunaya82abb12022-05-20 18:24:39 +0200389 st,bank-name = "GPIOI";
390 ngpios = <8>;
391 gpio-ranges = <&pinctrl 0 128 8>;
392 };
393 };
394 };
395};