xref: /rk3399_ARM-atf/fdts/stm32mp251.dtsi (revision c434b76510118b179ab11189ff938632160e3ea4)
1// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause)
2/*
3 * Copyright (C) 2023-2025, STMicroelectronics - All Rights Reserved
4 * 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
70	timer {
71		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			};
100
101			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
221			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
229			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
237			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			};
262		};
263
264		bsec: efuse@44000000 {
265			compatible = "st,stm32mp25-bsec";
266			reg = <0x44000000 0x400>;
267			#address-cells = <1>;
268			#size-cells = <1>;
269
270			uid_otp: uid-otp@14 {
271				reg = <0x14 0xc>;
272			};
273			part_number_otp: part-number-otp@24 {
274				reg = <0x24 0x4>;
275			};
276			nand_otp: otp16@40 {
277				reg = <0x40 0x4>;
278			};
279			lifecycle2_otp: otp18@48 {
280				reg = <0x48 0x4>;
281			};
282			nand2_otp: otp20@50 {
283				reg = <0x50 0x4>;
284			};
285			rev_otp@198 {
286				reg = <0x198 0x4>;
287			};
288			package_otp: package-otp@1e8 {
289				reg = <0x1e8 0x1>;
290			};
291			hconf1_otp: otp124@1f0 {
292				reg = <0x1f0 0x4>;
293			};
294			pkh_otp: otp144@240 {
295				reg = <0x240 0x20>;
296			};
297			oem_fip_enc_key: otp260@410 {
298				reg = <0x410 0x20>;
299			};
300		};
301
302		rcc: rcc@44200000 {
303			compatible = "st,stm32mp25-rcc";
304			reg = <0x44200000 0x10000>;
305			#clock-cells = <1>;
306			#reset-cells = <1>;
307		};
308
309		pwr: pwr@44210000 {
310			compatible = "st,stm32mp25-pwr";
311			reg = <0x44210000 0x400>;
312
313			vddio1: vddio1 {
314				regulator-name = "vddio1";
315			};
316
317			vddio2: vddio2 {
318				regulator-name = "vddio2";
319			};
320
321			vddio3: vddio3 {
322				regulator-name = "vddio3";
323			};
324
325			vddio4: vddio4 {
326				regulator-name = "vddio4";
327			};
328
329			vddio: vddio {
330				regulator-name = "vddio";
331			};
332		};
333
334		syscfg: syscon@44230000 {
335			compatible = "st,stm32mp25-syscfg", "syscon";
336			reg = <0x44230000 0x10000>;
337		};
338
339		ddr: ddr@48040000 {
340			compatible = "st,stm32mp2-ddr";
341			reg = <0x48040000 0x10000>,
342			      <0x48c00000 0x400000>;
343			status = "okay";
344		};
345
346		pinctrl: pinctrl@44240000 {
347			#address-cells = <1>;
348			#size-cells = <1>;
349			compatible = "st,stm32mp257-pinctrl";
350			ranges = <0 0x44240000 0xa0400>;
351
352			gpioa: gpio@44240000 {
353				gpio-controller;
354				#gpio-cells = <2>;
355				interrupt-controller;
356				#interrupt-cells = <2>;
357				reg = <0x0 0x400>;
358				clocks = <&rcc CK_BUS_GPIOA>;
359				st,bank-name = "GPIOA";
360				status = "disabled";
361			};
362
363			gpiob: gpio@44250000 {
364				gpio-controller;
365				#gpio-cells = <2>;
366				interrupt-controller;
367				#interrupt-cells = <2>;
368				reg = <0x10000 0x400>;
369				clocks = <&rcc CK_BUS_GPIOB>;
370				st,bank-name = "GPIOB";
371				status = "disabled";
372			};
373
374			gpioc: gpio@44260000 {
375				gpio-controller;
376				#gpio-cells = <2>;
377				interrupt-controller;
378				#interrupt-cells = <2>;
379				reg = <0x20000 0x400>;
380				clocks = <&rcc CK_BUS_GPIOC>;
381				st,bank-name = "GPIOC";
382				status = "disabled";
383			};
384
385			gpiod: gpio@44270000 {
386				gpio-controller;
387				#gpio-cells = <2>;
388				interrupt-controller;
389				#interrupt-cells = <2>;
390				reg = <0x30000 0x400>;
391				clocks = <&rcc CK_BUS_GPIOD>;
392				st,bank-name = "GPIOD";
393				status = "disabled";
394			};
395
396			gpioe: gpio@44280000 {
397				gpio-controller;
398				#gpio-cells = <2>;
399				interrupt-controller;
400				#interrupt-cells = <2>;
401				reg = <0x40000 0x400>;
402				clocks = <&rcc CK_BUS_GPIOE>;
403				st,bank-name = "GPIOE";
404				status = "disabled";
405			};
406
407			gpiof: gpio@44290000 {
408				gpio-controller;
409				#gpio-cells = <2>;
410				interrupt-controller;
411				#interrupt-cells = <2>;
412				reg = <0x50000 0x400>;
413				clocks = <&rcc CK_BUS_GPIOF>;
414				st,bank-name = "GPIOF";
415				status = "disabled";
416			};
417
418			gpiog: gpio@442a0000 {
419				gpio-controller;
420				#gpio-cells = <2>;
421				interrupt-controller;
422				#interrupt-cells = <2>;
423				reg = <0x60000 0x400>;
424				clocks = <&rcc CK_BUS_GPIOG>;
425				st,bank-name = "GPIOG";
426				status = "disabled";
427			};
428
429			gpioh: gpio@442b0000 {
430				gpio-controller;
431				#gpio-cells = <2>;
432				interrupt-controller;
433				#interrupt-cells = <2>;
434				reg = <0x70000 0x400>;
435				clocks = <&rcc CK_BUS_GPIOH>;
436				st,bank-name = "GPIOH";
437				status = "disabled";
438			};
439
440			gpioi: gpio@442c0000 {
441				gpio-controller;
442				#gpio-cells = <2>;
443				interrupt-controller;
444				#interrupt-cells = <2>;
445				reg = <0x80000 0x400>;
446				clocks = <&rcc CK_BUS_GPIOI>;
447				st,bank-name = "GPIOI";
448				status = "disabled";
449			};
450
451			gpioj: gpio@442d0000 {
452				gpio-controller;
453				#gpio-cells = <2>;
454				interrupt-controller;
455				#interrupt-cells = <2>;
456				reg = <0x90000 0x400>;
457				clocks = <&rcc CK_BUS_GPIOJ>;
458				st,bank-name = "GPIOJ";
459				status = "disabled";
460			};
461
462			gpiok: gpio@442e0000 {
463				gpio-controller;
464				#gpio-cells = <2>;
465				interrupt-controller;
466				#interrupt-cells = <2>;
467				reg = <0xa0000 0x400>;
468				clocks = <&rcc CK_BUS_GPIOK>;
469				st,bank-name = "GPIOK";
470				status = "disabled";
471			};
472		};
473
474		pinctrl_z: pinctrl@46200000 {
475			#address-cells = <1>;
476			#size-cells = <1>;
477			compatible = "st,stm32mp257-z-pinctrl";
478			ranges = <0 0x46200000 0x400>;
479
480			gpioz: gpio@46200000 {
481				gpio-controller;
482				#gpio-cells = <2>;
483				interrupt-controller;
484				#interrupt-cells = <2>;
485				reg = <0 0x400>;
486				clocks = <&rcc CK_BUS_GPIOZ>;
487				st,bank-name = "GPIOZ";
488				st,bank-ioport = <11>;
489				status = "disabled";
490			};
491
492		};
493	};
494};
495