stm32mp157c.dtsi 8.55 KB
Newer Older
Yann Gautier's avatar
Yann Gautier committed
1
2
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
3
 * Copyright (C) STMicroelectronics 2017-2019 - All Rights Reserved
Yann Gautier's avatar
Yann Gautier committed
4
5
 * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
 */
6
#include <dt-bindings/interrupt-controller/arm-gic.h>
Yann Gautier's avatar
Yann Gautier committed
7
8
9
10
11
12
13
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>

/ {
	#address-cells = <1>;
	#size-cells = <1>;

14
15
16
17
18
19
	intc: interrupt-controller@a0021000 {
		compatible = "arm,cortex-a7-gic";
		#interrupt-cells = <3>;
		interrupt-controller;
		reg = <0xa0021000 0x1000>,
		      <0xa0022000 0x2000>;
Yann Gautier's avatar
Yann Gautier committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
	};

	clocks {
		clk_hse: clk-hse {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <24000000>;
		};

		clk_hsi: clk-hsi {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <64000000>;
		};

		clk_lse: clk-lse {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <32768>;
		};

		clk_lsi: clk-lsi {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <32000>;
		};

		clk_csi: clk-csi {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <4000000>;
		};

		clk_i2s_ckin: i2s_ckin {
			#clock-cells = <0>;
			compatible = "fixed-clock";
56
			clock-frequency = <0>;
Yann Gautier's avatar
Yann Gautier committed
57
58
59
60
61
62
63
64
65
66
67
68
69
		};

		clk_dsi_phy: ck_dsi_phy {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <0>;
		};
	};

	soc {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <1>;
70
		interrupt-parent = <&intc>;
Yann Gautier's avatar
Yann Gautier committed
71
72
		ranges;

73
74
75
76
77
78
79
80
81
82
		timers12: timer@40006000 {
			#address-cells = <1>;
			#size-cells = <0>;
			compatible = "st,stm32-timers";
			reg = <0x40006000 0x400>;
			clocks = <&rcc TIM12_K>;
			clock-names = "int";
			status = "disabled";
		};

Yann Gautier's avatar
Yann Gautier committed
83
		usart2: serial@4000e000 {
84
			compatible = "st,stm32h7-uart";
Yann Gautier's avatar
Yann Gautier committed
85
86
			reg = <0x4000e000 0x400>;
			clocks = <&rcc USART2_K>;
87
			resets = <&rcc USART2_R>;
Yann Gautier's avatar
Yann Gautier committed
88
89
90
91
			status = "disabled";
		};

		usart3: serial@4000f000 {
92
			compatible = "st,stm32h7-uart";
Yann Gautier's avatar
Yann Gautier committed
93
94
			reg = <0x4000f000 0x400>;
			clocks = <&rcc USART3_K>;
95
			resets = <&rcc USART3_R>;
Yann Gautier's avatar
Yann Gautier committed
96
97
98
99
100
101
102
			status = "disabled";
		};

		uart4: serial@40010000 {
			compatible = "st,stm32h7-uart";
			reg = <0x40010000 0x400>;
			clocks = <&rcc UART4_K>;
103
			resets = <&rcc UART4_R>;
Yann Gautier's avatar
Yann Gautier committed
104
105
106
107
108
109
110
			status = "disabled";
		};

		uart5: serial@40011000 {
			compatible = "st,stm32h7-uart";
			reg = <0x40011000 0x400>;
			clocks = <&rcc UART5_K>;
111
			resets = <&rcc UART5_R>;
Yann Gautier's avatar
Yann Gautier committed
112
113
114
115
116
117
118
119
			status = "disabled";
		};


		uart7: serial@40018000 {
			compatible = "st,stm32h7-uart";
			reg = <0x40018000 0x400>;
			clocks = <&rcc UART7_K>;
120
			resets = <&rcc UART7_R>;
Yann Gautier's avatar
Yann Gautier committed
121
122
123
124
125
126
127
			status = "disabled";
		};

		uart8: serial@40019000 {
			compatible = "st,stm32h7-uart";
			reg = <0x40019000 0x400>;
			clocks = <&rcc UART8_K>;
128
			resets = <&rcc UART8_R>;
Yann Gautier's avatar
Yann Gautier committed
129
130
131
132
			status = "disabled";
		};

		usart6: serial@44003000 {
133
			compatible = "st,stm32h7-uart";
Yann Gautier's avatar
Yann Gautier committed
134
135
			reg = <0x44003000 0x400>;
			clocks = <&rcc USART6_K>;
136
			resets = <&rcc USART6_R>;
Yann Gautier's avatar
Yann Gautier committed
137
138
139
			status = "disabled";
		};

140
141
142
143
144
145
146
147
148
149
		timers15: timer@44006000 {
			#address-cells = <1>;
			#size-cells = <0>;
			compatible = "st,stm32-timers";
			reg = <0x44006000 0x400>;
			clocks = <&rcc TIM15_K>;
			clock-names = "int";
			status = "disabled";
		};

Yann Gautier's avatar
Yann Gautier committed
150
		sdmmc3: sdmmc@48004000 {
151
152
			compatible = "arm,pl18x", "arm,primecell";
			arm,primecell-periphid = <0x00253180>;
Yann Gautier's avatar
Yann Gautier committed
153
154
			reg = <0x48004000 0x400>, <0x48005000 0x400>;
			clocks = <&rcc SDMMC3_K>;
155
			clock-names = "apb_pclk";
Yann Gautier's avatar
Yann Gautier committed
156
157
158
159
160
161
162
			resets = <&rcc SDMMC3_R>;
			cap-sd-highspeed;
			cap-mmc-highspeed;
			max-frequency = <120000000>;
			status = "disabled";
		};

163
164
165
166
167
168
169
170
171
172
		usbotg_hs: usb-otg@49000000 {
			compatible = "st,stm32mp1-hsotg", "snps,dwc2";
			reg = <0x49000000 0x10000>;
			clocks = <&rcc USBO_K>;
			clock-names = "otg";
			resets = <&rcc USBO_R>;
			reset-names = "dwc2";
			status = "disabled";
		};

Yann Gautier's avatar
Yann Gautier committed
173
		rcc: rcc@50000000 {
174
175
			compatible = "st,stm32mp1-rcc", "syscon";
			reg = <0x50000000 0x1000>;
Yann Gautier's avatar
Yann Gautier committed
176
177
			#clock-cells = <1>;
			#reset-cells = <1>;
178
			interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Yann Gautier's avatar
Yann Gautier committed
179
180
		};

181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
		pwr: pwr@50001000 {
			compatible = "st,stm32mp1-pwr", "syscon", "simple-mfd";
			reg = <0x50001000 0x400>;
		};

		exti: interrupt-controller@5000d000 {
			compatible = "st,stm32mp1-exti", "syscon";
			interrupt-controller;
			#interrupt-cells = <2>;
			reg = <0x5000d000 0x400>;

			/* exti_pwr is an extra interrupt controller used for
			 * EXTI 55 to 60. It's mapped on pwr interrupt
			 * controller.
			 */
			exti_pwr: exti-pwr {
				interrupt-controller;
				#interrupt-cells = <2>;
				interrupt-parent = <&pwr>;
				st,irq-number = <6>;
			};
Yann Gautier's avatar
Yann Gautier committed
202
203
		};

204
205
206
207
208
209
		syscfg: syscon@50020000 {
			compatible = "st,stm32mp157-syscfg", "syscon";
			reg = <0x50020000 0x400>;
			clocks = <&rcc SYSCFG>;
		};

210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
		cryp1: cryp@54001000 {
			compatible = "st,stm32mp1-cryp";
			reg = <0x54001000 0x400>;
			interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&rcc CRYP1>;
			resets = <&rcc CRYP1_R>;
			status = "disabled";
		};

		hash1: hash@54002000 {
			compatible = "st,stm32f756-hash";
			reg = <0x54002000 0x400>;
			interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&rcc HASH1>;
			resets = <&rcc HASH1_R>;
			status = "disabled";
		};

Yann Gautier's avatar
Yann Gautier committed
228
229
230
231
232
233
234
235
		rng1: rng@54003000 {
			compatible = "st,stm32-rng";
			reg = <0x54003000 0x400>;
			clocks = <&rcc RNG1_K>;
			resets = <&rcc RNG1_R>;
			status = "disabled";
		};

236
237
		fmc: nand-controller@58002000 {
			compatible = "st,stm32mp15-fmc2";
Yann Gautier's avatar
Yann Gautier committed
238
			reg = <0x58002000 0x1000>,
239
240
241
242
243
244
			      <0x80000000 0x1000>,
			      <0x88010000 0x1000>,
			      <0x88020000 0x1000>,
			      <0x81000000 0x1000>,
			      <0x89010000 0x1000>,
			      <0x89020000 0x1000>;
Yann Gautier's avatar
Yann Gautier committed
245
246
247
248
249
250
251
252
			clocks = <&rcc FMC_K>;
			resets = <&rcc FMC_R>;
			status = "disabled";
		};

		qspi: qspi@58003000 {
			compatible = "st,stm32f469-qspi";
			reg = <0x58003000 0x1000>, <0x70000000 0x10000000>;
253
			reg-names = "qspi", "qspi_mm";
Yann Gautier's avatar
Yann Gautier committed
254
			clocks = <&rcc QSPI_K>;
255
			resets = <&rcc QSPI_R>;
Yann Gautier's avatar
Yann Gautier committed
256
257
258
259
			status = "disabled";
		};

		sdmmc1: sdmmc@58005000 {
260
261
			compatible = "arm,pl18x", "arm,primecell";
			arm,primecell-periphid = <0x00253180>;
Yann Gautier's avatar
Yann Gautier committed
262
263
			reg = <0x58005000 0x1000>, <0x58006000 0x1000>;
			clocks = <&rcc SDMMC1_K>;
264
			clock-names = "apb_pclk";
Yann Gautier's avatar
Yann Gautier committed
265
266
267
268
269
270
271
272
			resets = <&rcc SDMMC1_R>;
			cap-sd-highspeed;
			cap-mmc-highspeed;
			max-frequency = <120000000>;
			status = "disabled";
		};

		sdmmc2: sdmmc@58007000 {
273
274
			compatible = "arm,pl18x", "arm,primecell";
			arm,primecell-periphid = <0x00253180>;
Yann Gautier's avatar
Yann Gautier committed
275
276
			reg = <0x58007000 0x1000>, <0x58008000 0x1000>;
			clocks = <&rcc SDMMC2_K>;
277
			clock-names = "apb_pclk";
Yann Gautier's avatar
Yann Gautier committed
278
279
280
281
282
283
284
			resets = <&rcc SDMMC2_R>;
			cap-sd-highspeed;
			cap-mmc-highspeed;
			max-frequency = <120000000>;
			status = "disabled";
		};

285
		iwdg2: watchdog@5a002000 {
Yann Gautier's avatar
Yann Gautier committed
286
287
288
289
290
291
292
293
			compatible = "st,stm32mp1-iwdg";
			reg = <0x5a002000 0x400>;
			clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
			clock-names = "pclk", "lsi";
			status = "disabled";
		};

		usart1: serial@5c000000 {
294
			compatible = "st,stm32h7-uart";
Yann Gautier's avatar
Yann Gautier committed
295
			reg = <0x5c000000 0x400>;
296
297
298
			interrupt-names = "event", "wakeup";
			interrupts-extended = <&intc GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
					      <&exti 26 1>;
Yann Gautier's avatar
Yann Gautier committed
299
			clocks = <&rcc USART1_K>;
300
301
302
303
304
305
306
307
308
309
310
311
			resets = <&rcc USART1_R>;
			status = "disabled";
		};

		spi6: spi@5c001000 {
			#address-cells = <1>;
			#size-cells = <0>;
			compatible = "st,stm32h7-spi";
			reg = <0x5c001000 0x400>;
			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&rcc SPI6_K>;
			resets = <&rcc SPI6_R>;
Yann Gautier's avatar
Yann Gautier committed
312
313
314
315
316
317
			status = "disabled";
		};

		i2c4: i2c@5c002000 {
			compatible = "st,stm32f7-i2c";
			reg = <0x5c002000 0x400>;
318
319
320
321
			interrupt-names = "event", "error", "wakeup";
			interrupts-extended = <&intc GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
					      <&intc GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
					      <&exti 24 1>;
Yann Gautier's avatar
Yann Gautier committed
322
323
324
325
326
327
328
329
330
331
332
333
			clocks = <&rcc I2C4_K>;
			resets = <&rcc I2C4_R>;
			#address-cells = <1>;
			#size-cells = <0>;
			status = "disabled";
		};

		rtc: rtc@5c004000 {
			compatible = "st,stm32mp1-rtc";
			reg = <0x5c004000 0x400>;
			clocks = <&rcc RTCAPB>, <&rcc RTC>;
			clock-names = "pclk", "rtc_ck";
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
			interrupts-extended = <&intc GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
					      <&exti 19 1>;
			status = "disabled";
		};

		bsec: nvmem@5c005000 {
			compatible = "st,stm32mp15-bsec";
			reg = <0x5c005000 0x400>;
			#address-cells = <1>;
			#size-cells = <1>;
			ts_cal1: calib@5c {
				reg = <0x5c 0x2>;
			};
			ts_cal2: calib@5e {
				reg = <0x5e 0x2>;
			};
		};

		i2c6: i2c@5c009000 {
			compatible = "st,stm32f7-i2c";
			reg = <0x5c009000 0x400>;
			interrupt-names = "event", "error", "wakeup";
			interrupts-extended = <&intc GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
					      <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
					      <&exti 54 1>;
			clocks = <&rcc I2C6_K>;
			resets = <&rcc I2C6_R>;
			#address-cells = <1>;
			#size-cells = <0>;
			status = "disabled";
Yann Gautier's avatar
Yann Gautier committed
364
365
366
		};
	};
};