blob: 460ff0acdc40cdae3f4a77269cfecb985f0993ea [file] [log] [blame]
Lucas Stach748f9082018-12-09 14:26:07 +00001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2017 NXP
4 * Copyright (C) 2017-2018 Pengutronix, Lucas Stach <kernel@pengutronix.de>
5 */
6
7#include <dt-bindings/clock/imx8mq-clock.h>
Lucas Stachfdbcc04d2019-01-15 12:01:44 +01008#include <dt-bindings/power/imx8mq-power.h>
Andrey Smirnovfc26e602019-04-05 10:30:03 -07009#include <dt-bindings/reset/imx8mq-reset.h>
Lucas Stach748f9082018-12-09 14:26:07 +000010#include <dt-bindings/gpio/gpio.h>
Angus Ainslie (Purism)a01194d2019-05-28 09:11:01 -070011#include "dt-bindings/input/input.h"
Lucas Stach748f9082018-12-09 14:26:07 +000012#include <dt-bindings/interrupt-controller/arm-gic.h>
Angus Ainslie (Purism)e464fd2b2019-03-22 10:09:13 +080013#include <dt-bindings/thermal/thermal.h>
Lucas Stach748f9082018-12-09 14:26:07 +000014#include "imx8mq-pinfunc.h"
15
16/ {
Lucas Stachc4121232019-01-25 17:20:33 +010017 interrupt-parent = <&gpc>;
Lucas Stach748f9082018-12-09 14:26:07 +000018
19 #address-cells = <2>;
20 #size-cells = <2>;
21
22 aliases {
Anson Huang1f370972019-05-21 08:15:26 +000023 gpio0 = &gpio1;
24 gpio1 = &gpio2;
25 gpio2 = &gpio3;
26 gpio3 = &gpio4;
27 gpio4 = &gpio5;
Lucas Stach748f9082018-12-09 14:26:07 +000028 i2c0 = &i2c1;
29 i2c1 = &i2c2;
30 i2c2 = &i2c3;
31 i2c3 = &i2c4;
32 serial0 = &uart1;
33 serial1 = &uart2;
34 serial2 = &uart3;
35 serial3 = &uart4;
Fabio Estevam85761f42019-01-28 10:08:13 -020036 spi0 = &ecspi1;
37 spi1 = &ecspi2;
38 spi2 = &ecspi3;
Lucas Stach748f9082018-12-09 14:26:07 +000039 };
40
41 ckil: clock-ckil {
42 compatible = "fixed-clock";
43 #clock-cells = <0>;
44 clock-frequency = <32768>;
45 clock-output-names = "ckil";
46 };
47
48 osc_25m: clock-osc-25m {
49 compatible = "fixed-clock";
50 #clock-cells = <0>;
51 clock-frequency = <25000000>;
52 clock-output-names = "osc_25m";
53 };
54
55 osc_27m: clock-osc-27m {
56 compatible = "fixed-clock";
57 #clock-cells = <0>;
58 clock-frequency = <27000000>;
59 clock-output-names = "osc_27m";
60 };
61
62 clk_ext1: clock-ext1 {
63 compatible = "fixed-clock";
64 #clock-cells = <0>;
65 clock-frequency = <133000000>;
66 clock-output-names = "clk_ext1";
67 };
68
69 clk_ext2: clock-ext2 {
70 compatible = "fixed-clock";
71 #clock-cells = <0>;
72 clock-frequency = <133000000>;
73 clock-output-names = "clk_ext2";
74 };
75
76 clk_ext3: clock-ext3 {
77 compatible = "fixed-clock";
78 #clock-cells = <0>;
79 clock-frequency = <133000000>;
80 clock-output-names = "clk_ext3";
81 };
82
83 clk_ext4: clock-ext4 {
84 compatible = "fixed-clock";
85 #clock-cells = <0>;
86 clock-frequency= <133000000>;
87 clock-output-names = "clk_ext4";
88 };
89
90 cpus {
91 #address-cells = <1>;
92 #size-cells = <0>;
93
94 A53_0: cpu@0 {
95 device_type = "cpu";
96 compatible = "arm,cortex-a53";
97 reg = <0x0>;
Abel Vesab810641a2019-02-28 21:42:44 +000098 clock-latency = <61036>; /* two CLK32 periods */
99 clocks = <&clk IMX8MQ_CLK_ARM>;
Lucas Stach748f9082018-12-09 14:26:07 +0000100 enable-method = "psci";
101 next-level-cache = <&A53_L2>;
Abel Vesa64d26f82019-02-28 21:42:46 +0000102 operating-points-v2 = <&a53_opp_table>;
Angus Ainslie (Purism)e464fd2b2019-03-22 10:09:13 +0800103 #cooling-cells = <2>;
Leonard Crestez12629c52019-05-13 11:01:43 +0000104 nvmem-cells = <&cpu_speed_grade>;
105 nvmem-cell-names = "speed_grade";
Lucas Stach748f9082018-12-09 14:26:07 +0000106 };
107
108 A53_1: cpu@1 {
109 device_type = "cpu";
110 compatible = "arm,cortex-a53";
111 reg = <0x1>;
Abel Vesab810641a2019-02-28 21:42:44 +0000112 clock-latency = <61036>; /* two CLK32 periods */
113 clocks = <&clk IMX8MQ_CLK_ARM>;
Lucas Stach748f9082018-12-09 14:26:07 +0000114 enable-method = "psci";
115 next-level-cache = <&A53_L2>;
Abel Vesa64d26f82019-02-28 21:42:46 +0000116 operating-points-v2 = <&a53_opp_table>;
Angus Ainslie (Purism)e464fd2b2019-03-22 10:09:13 +0800117 #cooling-cells = <2>;
Lucas Stach748f9082018-12-09 14:26:07 +0000118 };
119
120 A53_2: cpu@2 {
121 device_type = "cpu";
122 compatible = "arm,cortex-a53";
123 reg = <0x2>;
Abel Vesab810641a2019-02-28 21:42:44 +0000124 clock-latency = <61036>; /* two CLK32 periods */
125 clocks = <&clk IMX8MQ_CLK_ARM>;
Lucas Stach748f9082018-12-09 14:26:07 +0000126 enable-method = "psci";
127 next-level-cache = <&A53_L2>;
Abel Vesa64d26f82019-02-28 21:42:46 +0000128 operating-points-v2 = <&a53_opp_table>;
Angus Ainslie (Purism)e464fd2b2019-03-22 10:09:13 +0800129 #cooling-cells = <2>;
Lucas Stach748f9082018-12-09 14:26:07 +0000130 };
131
132 A53_3: cpu@3 {
133 device_type = "cpu";
134 compatible = "arm,cortex-a53";
135 reg = <0x3>;
Abel Vesab810641a2019-02-28 21:42:44 +0000136 clock-latency = <61036>; /* two CLK32 periods */
137 clocks = <&clk IMX8MQ_CLK_ARM>;
Lucas Stach748f9082018-12-09 14:26:07 +0000138 enable-method = "psci";
139 next-level-cache = <&A53_L2>;
Abel Vesa64d26f82019-02-28 21:42:46 +0000140 operating-points-v2 = <&a53_opp_table>;
Angus Ainslie (Purism)e464fd2b2019-03-22 10:09:13 +0800141 #cooling-cells = <2>;
Lucas Stach748f9082018-12-09 14:26:07 +0000142 };
143
144 A53_L2: l2-cache0 {
145 compatible = "cache";
146 };
147 };
148
Fabio Estevamdbde7ec2019-03-20 17:05:19 -0300149 a53_opp_table: opp-table {
150 compatible = "operating-points-v2";
151 opp-shared;
152
153 opp-800000000 {
154 opp-hz = /bits/ 64 <800000000>;
155 opp-microvolt = <900000>;
Leonard Crestez12629c52019-05-13 11:01:43 +0000156 /* Industrial only */
157 opp-supported-hw = <0xf>, <0x4>;
158 clock-latency-ns = <150000>;
Anson Huangdb4cfe22019-07-09 16:00:14 +0800159 opp-suspend;
Leonard Crestez12629c52019-05-13 11:01:43 +0000160 };
161
162 opp-1000000000 {
163 opp-hz = /bits/ 64 <1000000000>;
164 opp-microvolt = <900000>;
165 /* Consumer only */
166 opp-supported-hw = <0xe>, <0x3>;
Fabio Estevamdbde7ec2019-03-20 17:05:19 -0300167 clock-latency-ns = <150000>;
Anson Huangdb4cfe22019-07-09 16:00:14 +0800168 opp-suspend;
Fabio Estevamdbde7ec2019-03-20 17:05:19 -0300169 };
170
Lucas Stach8cfd8132019-04-03 18:52:18 +0200171 opp-1300000000 {
172 opp-hz = /bits/ 64 <1300000000>;
Fabio Estevamdbde7ec2019-03-20 17:05:19 -0300173 opp-microvolt = <1000000>;
Anson Huang9eced3a2019-06-29 18:21:57 +0800174 opp-supported-hw = <0xc>, <0x4>;
Fabio Estevamdbde7ec2019-03-20 17:05:19 -0300175 clock-latency-ns = <150000>;
Anson Huangdb4cfe22019-07-09 16:00:14 +0800176 opp-suspend;
Leonard Crestez12629c52019-05-13 11:01:43 +0000177 };
178
179 opp-1500000000 {
180 opp-hz = /bits/ 64 <1500000000>;
181 opp-microvolt = <1000000>;
Anson Huang9eced3a2019-06-29 18:21:57 +0800182 opp-supported-hw = <0x8>, <0x3>;
Leonard Crestez12629c52019-05-13 11:01:43 +0000183 clock-latency-ns = <150000>;
Anson Huangdb4cfe22019-07-09 16:00:14 +0800184 opp-suspend;
Fabio Estevamdbde7ec2019-03-20 17:05:19 -0300185 };
186 };
187
Carlo Caioneb3f6a5f2019-02-02 14:41:58 +0000188 pmu {
189 compatible = "arm,cortex-a53-pmu";
190 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
191 interrupt-parent = <&gic>;
192 interrupt-affinity = <&A53_0>, <&A53_1>, <&A53_2>, <&A53_3>;
193 };
194
Lucas Stach748f9082018-12-09 14:26:07 +0000195 psci {
196 compatible = "arm,psci-1.0";
197 method = "smc";
198 };
199
Fabio Estevamcddbea82019-03-25 12:19:59 -0300200 thermal-zones {
201 cpu-thermal {
202 polling-delay-passive = <250>;
203 polling-delay = <2000>;
204 thermal-sensors = <&tmu 0>;
205
206 trips {
207 cpu_alert: cpu-alert {
208 temperature = <80000>;
209 hysteresis = <2000>;
210 type = "passive";
211 };
212
213 cpu-crit {
214 temperature = <90000>;
215 hysteresis = <2000>;
216 type = "critical";
217 };
218 };
219
220 cooling-maps {
221 map0 {
222 trip = <&cpu_alert>;
223 cooling-device =
224 <&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
225 <&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
226 <&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
227 <&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
228 };
229 };
230 };
231
232 gpu-thermal {
233 polling-delay-passive = <250>;
234 polling-delay = <2000>;
235 thermal-sensors = <&tmu 1>;
236
237 trips {
Guido Günther9404f2e2019-09-11 19:40:35 -0700238 gpu_alert: gpu-alert {
239 temperature = <80000>;
240 hysteresis = <2000>;
241 type = "passive";
242 };
243
Fabio Estevamcddbea82019-03-25 12:19:59 -0300244 gpu-crit {
245 temperature = <90000>;
246 hysteresis = <2000>;
247 type = "critical";
248 };
249 };
Guido Günther9404f2e2019-09-11 19:40:35 -0700250
251 cooling-maps {
252 map0 {
253 trip = <&gpu_alert>;
254 cooling-device =
255 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
256 };
257 };
Fabio Estevamcddbea82019-03-25 12:19:59 -0300258 };
259
260 vpu-thermal {
261 polling-delay-passive = <250>;
262 polling-delay = <2000>;
263 thermal-sensors = <&tmu 2>;
264
265 trips {
266 vpu-crit {
267 temperature = <90000>;
268 hysteresis = <2000>;
269 type = "critical";
270 };
271 };
272 };
273 };
274
Lucas Stach748f9082018-12-09 14:26:07 +0000275 timer {
276 compatible = "arm,armv8-timer";
277 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* Physical Secure */
278 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* Physical Non-Secure */
279 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* Virtual */
280 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* Hypervisor */
281 interrupt-parent = <&gic>;
282 arm,no-tick-in-suspend;
283 };
284
285 soc@0 {
286 compatible = "simple-bus";
287 #address-cells = <1>;
288 #size-cells = <1>;
289 ranges = <0x0 0x0 0x0 0x3e000000>;
Lucas Stachca04fed2019-02-08 19:53:49 +0100290 dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>;
Lucas Stach748f9082018-12-09 14:26:07 +0000291
292 bus@30000000 { /* AIPS1 */
Peng Fanaebf07e2019-12-12 03:19:25 +0000293 compatible = "simple-bus";
Lucas Stach748f9082018-12-09 14:26:07 +0000294 #address-cells = <1>;
295 #size-cells = <1>;
296 ranges = <0x30000000 0x30000000 0x400000>;
297
Lucas Stachfcb19912019-11-27 19:21:26 +0100298 sai1: sai@30010000 {
299 #sound-dai-cells = <0>;
300 compatible = "fsl,imx8mq-sai";
301 reg = <0x30010000 0x10000>;
302 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
303 clocks = <&clk IMX8MQ_CLK_SAI1_IPG>,
304 <&clk IMX8MQ_CLK_SAI1_ROOT>,
305 <&clk IMX8MQ_CLK_DUMMY>, <&clk IMX8MQ_CLK_DUMMY>;
306 clock-names = "bus", "mclk1", "mclk2", "mclk3";
307 dmas = <&sdma2 8 24 0>, <&sdma1 9 24 0>;
308 dma-names = "rx", "tx";
309 status = "disabled";
310 };
311
312 sai6: sai@30030000 {
313 #sound-dai-cells = <0>;
314 compatible = "fsl,imx8mq-sai";
315 reg = <0x30030000 0x10000>;
316 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
317 clocks = <&clk IMX8MQ_CLK_SAI6_IPG>,
318 <&clk IMX8MQ_CLK_SAI6_ROOT>,
319 <&clk IMX8MQ_CLK_DUMMY>, <&clk IMX8MQ_CLK_DUMMY>;
320 clock-names = "bus", "mclk1", "mclk2", "mclk3";
321 dmas = <&sdma2 4 24 0>, <&sdma2 5 24 0>;
322 dma-names = "rx", "tx";
323 status = "disabled";
324 };
325
326 sai5: sai@30040000 {
327 #sound-dai-cells = <0>;
328 compatible = "fsl,imx8mq-sai";
329 reg = <0x30040000 0x10000>;
330 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
331 clocks = <&clk IMX8MQ_CLK_SAI5_IPG>,
332 <&clk IMX8MQ_CLK_SAI5_ROOT>,
333 <&clk IMX8MQ_CLK_DUMMY>, <&clk IMX8MQ_CLK_DUMMY>;
334 clock-names = "bus", "mclk1", "mclk2", "mclk3";
335 dmas = <&sdma2 2 24 0>, <&sdma2 3 24 0>;
336 dma-names = "rx", "tx";
337 status = "disabled";
338 };
339
340 sai4: sai@30050000 {
341 #sound-dai-cells = <0>;
342 compatible = "fsl,imx8mq-sai";
343 reg = <0x30050000 0x10000>;
344 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
345 clocks = <&clk IMX8MQ_CLK_SAI4_IPG>,
346 <&clk IMX8MQ_CLK_SAI4_ROOT>,
347 <&clk IMX8MQ_CLK_DUMMY>, <&clk IMX8MQ_CLK_DUMMY>;
348 clock-names = "bus", "mclk1", "mclk2", "mclk3";
349 dmas = <&sdma2 0 24 0>, <&sdma2 1 24 0>;
350 dma-names = "rx", "tx";
351 status = "disabled";
352 };
353
Lucas Stach748f9082018-12-09 14:26:07 +0000354 gpio1: gpio@30200000 {
355 compatible = "fsl,imx8mq-gpio", "fsl,imx35-gpio";
356 reg = <0x30200000 0x10000>;
357 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
358 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Anson Huang580b0642019-02-27 01:28:32 +0000359 clocks = <&clk IMX8MQ_CLK_GPIO1_ROOT>;
Lucas Stach748f9082018-12-09 14:26:07 +0000360 gpio-controller;
361 #gpio-cells = <2>;
362 interrupt-controller;
363 #interrupt-cells = <2>;
Anson Huang26c2f552019-07-02 09:43:59 +0800364 gpio-ranges = <&iomuxc 0 10 30>;
Lucas Stach748f9082018-12-09 14:26:07 +0000365 };
366
367 gpio2: gpio@30210000 {
368 compatible = "fsl,imx8mq-gpio", "fsl,imx35-gpio";
369 reg = <0x30210000 0x10000>;
370 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
371 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Anson Huang580b0642019-02-27 01:28:32 +0000372 clocks = <&clk IMX8MQ_CLK_GPIO2_ROOT>;
Lucas Stach748f9082018-12-09 14:26:07 +0000373 gpio-controller;
374 #gpio-cells = <2>;
375 interrupt-controller;
376 #interrupt-cells = <2>;
Anson Huang26c2f552019-07-02 09:43:59 +0800377 gpio-ranges = <&iomuxc 0 40 21>;
Lucas Stach748f9082018-12-09 14:26:07 +0000378 };
379
380 gpio3: gpio@30220000 {
381 compatible = "fsl,imx8mq-gpio", "fsl,imx35-gpio";
382 reg = <0x30220000 0x10000>;
383 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
384 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
Anson Huang580b0642019-02-27 01:28:32 +0000385 clocks = <&clk IMX8MQ_CLK_GPIO3_ROOT>;
Lucas Stach748f9082018-12-09 14:26:07 +0000386 gpio-controller;
387 #gpio-cells = <2>;
388 interrupt-controller;
389 #interrupt-cells = <2>;
Anson Huang26c2f552019-07-02 09:43:59 +0800390 gpio-ranges = <&iomuxc 0 61 26>;
Lucas Stach748f9082018-12-09 14:26:07 +0000391 };
392
393 gpio4: gpio@30230000 {
394 compatible = "fsl,imx8mq-gpio", "fsl,imx35-gpio";
395 reg = <0x30230000 0x10000>;
396 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
397 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
Anson Huang580b0642019-02-27 01:28:32 +0000398 clocks = <&clk IMX8MQ_CLK_GPIO4_ROOT>;
Lucas Stach748f9082018-12-09 14:26:07 +0000399 gpio-controller;
400 #gpio-cells = <2>;
401 interrupt-controller;
402 #interrupt-cells = <2>;
Anson Huang26c2f552019-07-02 09:43:59 +0800403 gpio-ranges = <&iomuxc 0 87 32>;
Lucas Stach748f9082018-12-09 14:26:07 +0000404 };
405
406 gpio5: gpio@30240000 {
407 compatible = "fsl,imx8mq-gpio", "fsl,imx35-gpio";
408 reg = <0x30240000 0x10000>;
409 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
410 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Anson Huang580b0642019-02-27 01:28:32 +0000411 clocks = <&clk IMX8MQ_CLK_GPIO5_ROOT>;
Lucas Stach748f9082018-12-09 14:26:07 +0000412 gpio-controller;
413 #gpio-cells = <2>;
414 interrupt-controller;
415 #interrupt-cells = <2>;
Anson Huang26c2f552019-07-02 09:43:59 +0800416 gpio-ranges = <&iomuxc 0 119 30>;
Lucas Stach748f9082018-12-09 14:26:07 +0000417 };
418
Angus Ainslie (Purism)e464fd2b2019-03-22 10:09:13 +0800419 tmu: tmu@30260000 {
420 compatible = "fsl,imx8mq-tmu";
421 reg = <0x30260000 0x10000>;
422 interrupt = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
Anson Huang150736b2019-07-05 12:56:12 +0800423 clocks = <&clk IMX8MQ_CLK_TMU_ROOT>;
Angus Ainslie (Purism)e464fd2b2019-03-22 10:09:13 +0800424 little-endian;
425 fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x70061>;
426 fsl,tmu-calibration = <0x00000000 0x00000023
427 0x00000001 0x00000029
428 0x00000002 0x0000002f
429 0x00000003 0x00000035
430 0x00000004 0x0000003d
431 0x00000005 0x00000043
432 0x00000006 0x0000004b
433 0x00000007 0x00000051
434 0x00000008 0x00000057
435 0x00000009 0x0000005f
436 0x0000000a 0x00000067
437 0x0000000b 0x0000006f
438
439 0x00010000 0x0000001b
440 0x00010001 0x00000023
441 0x00010002 0x0000002b
442 0x00010003 0x00000033
443 0x00010004 0x0000003b
444 0x00010005 0x00000043
445 0x00010006 0x0000004b
446 0x00010007 0x00000055
447 0x00010008 0x0000005d
448 0x00010009 0x00000067
449 0x0001000a 0x00000070
450
451 0x00020000 0x00000017
452 0x00020001 0x00000023
453 0x00020002 0x0000002d
454 0x00020003 0x00000037
455 0x00020004 0x00000041
456 0x00020005 0x0000004b
457 0x00020006 0x00000057
458 0x00020007 0x00000063
459 0x00020008 0x0000006f
460
461 0x00030000 0x00000015
462 0x00030001 0x00000021
463 0x00030002 0x0000002d
464 0x00030003 0x00000039
465 0x00030004 0x00000045
466 0x00030005 0x00000053
467 0x00030006 0x0000005f
468 0x00030007 0x00000071>;
469 #thermal-sensor-cells = <1>;
470 };
471
Baruch Siachd3a2d722018-12-09 14:26:10 +0000472 wdog1: watchdog@30280000 {
473 compatible = "fsl,imx8mq-wdt", "fsl,imx21-wdt";
474 reg = <0x30280000 0x10000>;
475 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
476 clocks = <&clk IMX8MQ_CLK_WDOG1_ROOT>;
477 status = "disabled";
478 };
479
480 wdog2: watchdog@30290000 {
481 compatible = "fsl,imx8mq-wdt", "fsl,imx21-wdt";
482 reg = <0x30290000 0x10000>;
483 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
484 clocks = <&clk IMX8MQ_CLK_WDOG2_ROOT>;
485 status = "disabled";
486 };
487
488 wdog3: watchdog@302a0000 {
489 compatible = "fsl,imx8mq-wdt", "fsl,imx21-wdt";
490 reg = <0x302a0000 0x10000>;
491 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
492 clocks = <&clk IMX8MQ_CLK_WDOG3_ROOT>;
493 status = "disabled";
494 };
Lucas Stacha2b91ef2018-12-14 11:55:09 +0100495
Daniel Baluta1474d482019-03-19 17:48:37 +0000496 sdma2: sdma@302c0000 {
497 compatible = "fsl,imx8mq-sdma","fsl,imx7d-sdma";
498 reg = <0x302c0000 0x10000>;
499 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
500 clocks = <&clk IMX8MQ_CLK_SDMA2_ROOT>,
501 <&clk IMX8MQ_CLK_SDMA2_ROOT>;
502 clock-names = "ipg", "ahb";
503 #dma-cells = <3>;
504 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
505 };
506
Guido Günther1987ddf2019-11-25 15:50:07 +0100507 lcdif: lcd-controller@30320000 {
508 compatible = "fsl,imx8mq-lcdif", "fsl,imx28-lcdif";
509 reg = <0x30320000 0x10000>;
510 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
511 clocks = <&clk IMX8MQ_CLK_LCDIF_PIXEL>;
512 clock-names = "pix";
513 assigned-clocks = <&clk IMX8MQ_VIDEO_PLL1_REF_SEL>,
514 <&clk IMX8MQ_VIDEO_PLL1_BYPASS>,
515 <&clk IMX8MQ_CLK_LCDIF_PIXEL>,
516 <&clk IMX8MQ_VIDEO_PLL1>;
517 assigned-clock-parents = <&clk IMX8MQ_CLK_25M>,
518 <&clk IMX8MQ_VIDEO_PLL1>,
519 <&clk IMX8MQ_VIDEO_PLL1_OUT>;
520 assigned-clock-rates = <0>, <0>, <0>, <594000000>;
521 status = "disabled";
522 };
523
Lucas Stach748f9082018-12-09 14:26:07 +0000524 iomuxc: iomuxc@30330000 {
525 compatible = "fsl,imx8mq-iomuxc";
526 reg = <0x30330000 0x10000>;
527 };
528
529 iomuxc_gpr: syscon@30340000 {
Guido Günther21570182019-08-22 13:10:23 +0200530 compatible = "fsl,imx8mq-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr",
531 "syscon", "simple-mfd";
Lucas Stach748f9082018-12-09 14:26:07 +0000532 reg = <0x30340000 0x10000>;
Guido Günther21570182019-08-22 13:10:23 +0200533
534 mux: mux-controller {
535 compatible = "mmio-mux";
536 #mux-control-cells = <1>;
537 mux-reg-masks = <0x34 0x00000004>; /* MIPI_MUX_SEL */
538 };
Lucas Stach748f9082018-12-09 14:26:07 +0000539 };
540
Carlo Caione9e113b22019-02-26 09:04:48 +0000541 ocotp: ocotp-ctrl@30350000 {
542 compatible = "fsl,imx8mq-ocotp", "syscon";
543 reg = <0x30350000 0x10000>;
544 clocks = <&clk IMX8MQ_CLK_OCOTP_ROOT>;
545 #address-cells = <1>;
546 #size-cells = <1>;
Leonard Crestez12629c52019-05-13 11:01:43 +0000547
548 cpu_speed_grade: speed-grade@10 {
549 reg = <0x10 4>;
550 };
Carlo Caione9e113b22019-02-26 09:04:48 +0000551 };
552
Lucas Stach748f9082018-12-09 14:26:07 +0000553 anatop: syscon@30360000 {
554 compatible = "fsl,imx8mq-anatop", "syscon";
555 reg = <0x30360000 0x10000>;
556 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
557 };
558
Abel Vesa3ea95c32019-01-31 15:01:22 +0000559 snvs: snvs@30370000 {
560 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
561 reg = <0x30370000 0x10000>;
562
563 snvs_rtc: snvs-rtc-lp{
564 compatible = "fsl,sec-v4.0-mon-rtc-lp";
565 regmap =<&snvs>;
566 offset = <0x34>;
567 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
568 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Anson Huang881b54c2019-05-24 13:44:06 +0800569 clocks = <&clk IMX8MQ_CLK_SNVS_ROOT>;
570 clock-names = "snvs-rtc";
Abel Vesa3ea95c32019-01-31 15:01:22 +0000571 };
572
Angus Ainslie (Purism)a01194d2019-05-28 09:11:01 -0700573 snvs_pwrkey: snvs-powerkey {
574 compatible = "fsl,sec-v4.0-pwrkey";
575 regmap = <&snvs>;
576 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
André Draszikedd91ba2020-02-25 16:11:59 +0000577 clocks = <&clk IMX8MQ_CLK_SNVS_ROOT>;
578 clock-names = "snvs-pwrkey";
Angus Ainslie (Purism)a01194d2019-05-28 09:11:01 -0700579 linux,keycode = <KEY_POWER>;
580 wakeup-source;
581 status = "disabled";
582 };
Abel Vesa3ea95c32019-01-31 15:01:22 +0000583 };
584
Lucas Stach748f9082018-12-09 14:26:07 +0000585 clk: clock-controller@30380000 {
586 compatible = "fsl,imx8mq-ccm";
587 reg = <0x30380000 0x10000>;
588 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
589 <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
590 #clock-cells = <1>;
591 clocks = <&ckil>, <&osc_25m>, <&osc_27m>,
592 <&clk_ext1>, <&clk_ext2>,
593 <&clk_ext3>, <&clk_ext4>;
594 clock-names = "ckil", "osc_25m", "osc_27m",
595 "clk_ext1", "clk_ext2",
596 "clk_ext3", "clk_ext4";
Philipp Zabel912b9da2019-11-27 12:05:09 +0100597 assigned-clocks = <&clk IMX8MQ_CLK_NOC>;
598 assigned-clock-rates = <800000000>;
Lucas Stach748f9082018-12-09 14:26:07 +0000599 };
Lucas Stachfdbcc04d2019-01-15 12:01:44 +0100600
Andrey Smirnovd62a2502019-04-05 10:30:01 -0700601 src: reset-controller@30390000 {
602 compatible = "fsl,imx8mq-src", "syscon";
603 reg = <0x30390000 0x10000>;
604 #reset-cells = <1>;
605 };
606
Lucas Stachfdbcc04d2019-01-15 12:01:44 +0100607 gpc: gpc@303a0000 {
608 compatible = "fsl,imx8mq-gpc";
609 reg = <0x303a0000 0x10000>;
Lucas Stachc4121232019-01-25 17:20:33 +0100610 interrupt-parent = <&gic>;
611 interrupt-controller;
612 #interrupt-cells = <3>;
Lucas Stachfdbcc04d2019-01-15 12:01:44 +0100613
614 pgc {
615 #address-cells = <1>;
616 #size-cells = <0>;
617
618 pgc_mipi: power-domain@0 {
619 #power-domain-cells = <0>;
620 reg = <IMX8M_POWER_DOMAIN_MIPI>;
621 };
622
Andrey Smirnovde2a5382019-04-05 10:30:02 -0700623 /*
624 * As per comment in ATF source code:
625 *
626 * PCIE1 and PCIE2 share the
627 * same reset signal, if we
628 * power down PCIE2, PCIE1
629 * will be held in reset too.
630 *
631 * So instead of creating two
632 * separate power domains for
633 * PCIE1 and PCIE2 we create a
634 * link between both and use
635 * it as a shared PCIE power
636 * domain.
637 */
638 pgc_pcie: power-domain@1 {
Lucas Stachfdbcc04d2019-01-15 12:01:44 +0100639 #power-domain-cells = <0>;
640 reg = <IMX8M_POWER_DOMAIN_PCIE1>;
Andrey Smirnovde2a5382019-04-05 10:30:02 -0700641 power-domains = <&pgc_pcie2>;
Lucas Stachfdbcc04d2019-01-15 12:01:44 +0100642 };
643
644 pgc_otg1: power-domain@2 {
645 #power-domain-cells = <0>;
646 reg = <IMX8M_POWER_DOMAIN_USB_OTG1>;
647 };
648
649 pgc_otg2: power-domain@3 {
650 #power-domain-cells = <0>;
651 reg = <IMX8M_POWER_DOMAIN_USB_OTG2>;
652 };
653
654 pgc_ddr1: power-domain@4 {
655 #power-domain-cells = <0>;
656 reg = <IMX8M_POWER_DOMAIN_DDR1>;
657 };
658
659 pgc_gpu: power-domain@5 {
660 #power-domain-cells = <0>;
661 reg = <IMX8M_POWER_DOMAIN_GPU>;
662 clocks = <&clk IMX8MQ_CLK_GPU_ROOT>,
663 <&clk IMX8MQ_CLK_GPU_SHADER_DIV>,
664 <&clk IMX8MQ_CLK_GPU_AXI>,
665 <&clk IMX8MQ_CLK_GPU_AHB>;
666 };
667
668 pgc_vpu: power-domain@6 {
669 #power-domain-cells = <0>;
670 reg = <IMX8M_POWER_DOMAIN_VPU>;
671 };
672
673 pgc_disp: power-domain@7 {
674 #power-domain-cells = <0>;
675 reg = <IMX8M_POWER_DOMAIN_DISP>;
676 };
677
678 pgc_mipi_csi1: power-domain@8 {
679 #power-domain-cells = <0>;
680 reg = <IMX8M_POWER_DOMAIN_MIPI_CSI1>;
681 };
682
683 pgc_mipi_csi2: power-domain@9 {
684 #power-domain-cells = <0>;
685 reg = <IMX8M_POWER_DOMAIN_MIPI_CSI2>;
686 };
687
688 pgc_pcie2: power-domain@a {
689 #power-domain-cells = <0>;
690 reg = <IMX8M_POWER_DOMAIN_PCIE2>;
691 };
692 };
693 };
Lucas Stach748f9082018-12-09 14:26:07 +0000694 };
695
696 bus@30400000 { /* AIPS2 */
Peng Fanaebf07e2019-12-12 03:19:25 +0000697 compatible = "simple-bus";
Lucas Stach748f9082018-12-09 14:26:07 +0000698 #address-cells = <1>;
699 #size-cells = <1>;
700 ranges = <0x30400000 0x30400000 0x400000>;
Guido Günthera0e046e2019-01-14 18:03:16 +0100701
702 pwm1: pwm@30660000 {
703 compatible = "fsl,imx8mq-pwm", "fsl,imx27-pwm";
704 reg = <0x30660000 0x10000>;
705 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
706 clocks = <&clk IMX8MQ_CLK_PWM1_ROOT>,
707 <&clk IMX8MQ_CLK_PWM1_ROOT>;
708 clock-names = "ipg", "per";
709 #pwm-cells = <2>;
710 status = "disabled";
711 };
712
713 pwm2: pwm@30670000 {
714 compatible = "fsl,imx8mq-pwm", "fsl,imx27-pwm";
715 reg = <0x30670000 0x10000>;
716 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
717 clocks = <&clk IMX8MQ_CLK_PWM2_ROOT>,
718 <&clk IMX8MQ_CLK_PWM2_ROOT>;
719 clock-names = "ipg", "per";
720 #pwm-cells = <2>;
721 status = "disabled";
722 };
723
724 pwm3: pwm@30680000 {
725 compatible = "fsl,imx8mq-pwm", "fsl,imx27-pwm";
726 reg = <0x30680000 0x10000>;
727 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
728 clocks = <&clk IMX8MQ_CLK_PWM3_ROOT>,
729 <&clk IMX8MQ_CLK_PWM3_ROOT>;
730 clock-names = "ipg", "per";
731 #pwm-cells = <2>;
732 status = "disabled";
733 };
734
735 pwm4: pwm@30690000 {
736 compatible = "fsl,imx8mq-pwm", "fsl,imx27-pwm";
737 reg = <0x30690000 0x10000>;
738 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
739 clocks = <&clk IMX8MQ_CLK_PWM4_ROOT>,
740 <&clk IMX8MQ_CLK_PWM4_ROOT>;
741 clock-names = "ipg", "per";
742 #pwm-cells = <2>;
743 status = "disabled";
744 };
Anson Huang24e8a5d2019-08-15 20:38:44 -0400745
746 system_counter: timer@306a0000 {
747 compatible = "nxp,sysctr-timer";
748 reg = <0x306a0000 0x20000>;
749 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
750 clocks = <&osc_25m>;
751 clock-names = "per";
752 };
Lucas Stach748f9082018-12-09 14:26:07 +0000753 };
754
755 bus@30800000 { /* AIPS3 */
Peng Fanaebf07e2019-12-12 03:19:25 +0000756 compatible = "simple-bus";
Lucas Stach748f9082018-12-09 14:26:07 +0000757 #address-cells = <1>;
758 #size-cells = <1>;
Carlo Caione39f16222019-02-11 09:53:35 +0800759 ranges = <0x30800000 0x30800000 0x400000>,
760 <0x08000000 0x08000000 0x10000000>;
Lucas Stach748f9082018-12-09 14:26:07 +0000761
Fabio Estevam85761f42019-01-28 10:08:13 -0200762 ecspi1: spi@30820000 {
763 #address-cells = <1>;
764 #size-cells = <0>;
765 compatible = "fsl,imx8mq-ecspi", "fsl,imx51-ecspi";
766 reg = <0x30820000 0x10000>;
767 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
768 clocks = <&clk IMX8MQ_CLK_ECSPI1_ROOT>,
769 <&clk IMX8MQ_CLK_ECSPI1_ROOT>;
770 clock-names = "ipg", "per";
771 status = "disabled";
772 };
773
774 ecspi2: spi@30830000 {
775 #address-cells = <1>;
776 #size-cells = <0>;
777 compatible = "fsl,imx8mq-ecspi", "fsl,imx51-ecspi";
778 reg = <0x30830000 0x10000>;
779 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
780 clocks = <&clk IMX8MQ_CLK_ECSPI2_ROOT>,
781 <&clk IMX8MQ_CLK_ECSPI2_ROOT>;
782 clock-names = "ipg", "per";
783 status = "disabled";
784 };
785
786 ecspi3: spi@30840000 {
787 #address-cells = <1>;
788 #size-cells = <0>;
789 compatible = "fsl,imx8mq-ecspi", "fsl,imx51-ecspi";
790 reg = <0x30840000 0x10000>;
791 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
792 clocks = <&clk IMX8MQ_CLK_ECSPI3_ROOT>,
793 <&clk IMX8MQ_CLK_ECSPI3_ROOT>;
794 clock-names = "ipg", "per";
795 status = "disabled";
796 };
Lucas Stach748f9082018-12-09 14:26:07 +0000797
798 uart1: serial@30860000 {
799 compatible = "fsl,imx8mq-uart",
800 "fsl,imx6q-uart";
801 reg = <0x30860000 0x10000>;
802 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
803 clocks = <&clk IMX8MQ_CLK_UART1_ROOT>,
804 <&clk IMX8MQ_CLK_UART1_ROOT>;
805 clock-names = "ipg", "per";
806 status = "disabled";
807 };
808
809 uart3: serial@30880000 {
810 compatible = "fsl,imx8mq-uart",
811 "fsl,imx6q-uart";
812 reg = <0x30880000 0x10000>;
813 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
814 clocks = <&clk IMX8MQ_CLK_UART3_ROOT>,
815 <&clk IMX8MQ_CLK_UART3_ROOT>;
816 clock-names = "ipg", "per";
817 status = "disabled";
818 };
819
820 uart2: serial@30890000 {
821 compatible = "fsl,imx8mq-uart",
822 "fsl,imx6q-uart";
823 reg = <0x30890000 0x10000>;
824 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
825 clocks = <&clk IMX8MQ_CLK_UART2_ROOT>,
826 <&clk IMX8MQ_CLK_UART2_ROOT>;
827 clock-names = "ipg", "per";
828 status = "disabled";
829 };
830
Daniel Baluta8c615382019-03-19 17:48:40 +0000831 sai2: sai@308b0000 {
832 #sound-dai-cells = <0>;
Lucas Stach8d014842019-07-17 11:54:36 +0200833 compatible = "fsl,imx8mq-sai";
Daniel Baluta8c615382019-03-19 17:48:40 +0000834 reg = <0x308b0000 0x10000>;
835 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
836 clocks = <&clk IMX8MQ_CLK_SAI2_IPG>,
837 <&clk IMX8MQ_CLK_SAI2_ROOT>,
838 <&clk IMX8MQ_CLK_DUMMY>, <&clk IMX8MQ_CLK_DUMMY>;
839 clock-names = "bus", "mclk1", "mclk2", "mclk3";
840 dmas = <&sdma1 10 24 0>, <&sdma1 11 24 0>;
841 dma-names = "rx", "tx";
842 status = "disabled";
843 };
844
Lucas Stachfcb19912019-11-27 19:21:26 +0100845 sai3: sai@308c0000 {
846 #sound-dai-cells = <0>;
847 compatible = "fsl,imx8mq-sai";
848 reg = <0x308c0000 0x10000>;
849 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
850 clocks = <&clk IMX8MQ_CLK_SAI3_IPG>,
851 <&clk IMX8MQ_CLK_SAI3_ROOT>,
852 <&clk IMX8MQ_CLK_DUMMY>, <&clk IMX8MQ_CLK_DUMMY>;
853 clock-names = "bus", "mclk1", "mclk2", "mclk3";
854 dmas = <&sdma1 12 24 0>, <&sdma1 13 24 0>;
855 dma-names = "rx", "tx";
856 status = "disabled";
857 };
858
Andrey Smirnov007b3cf2019-08-30 14:01:39 -0700859 crypto: crypto@30900000 {
860 compatible = "fsl,sec-v4.0";
861 #address-cells = <1>;
862 #size-cells = <1>;
863 reg = <0x30900000 0x40000>;
864 ranges = <0 0x30900000 0x40000>;
865 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
866 clocks = <&clk IMX8MQ_CLK_AHB>,
867 <&clk IMX8MQ_CLK_IPG_ROOT>;
868 clock-names = "aclk", "ipg";
869
870 sec_jr0: jr@1000 {
871 compatible = "fsl,sec-v4.0-job-ring";
872 reg = <0x1000 0x1000>;
873 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
874 };
875
876 sec_jr1: jr@2000 {
877 compatible = "fsl,sec-v4.0-job-ring";
878 reg = <0x2000 0x1000>;
879 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
880 };
881
882 sec_jr2: jr@3000 {
883 compatible = "fsl,sec-v4.0-job-ring";
884 reg = <0x3000 0x1000>;
885 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
886 };
887 };
888
Guido Günthera99b26b2019-06-25 10:27:20 +0200889 dphy: dphy@30a00300 {
890 compatible = "fsl,imx8mq-mipi-dphy";
891 reg = <0x30a00300 0x100>;
892 clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
893 clock-names = "phy_ref";
894 assigned-clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
895 assigned-clock-parents = <&clk IMX8MQ_VIDEO_PLL1_OUT>;
896 assigned-clock-rates = <24000000>;
897 #phy-cells = <0>;
898 power-domains = <&pgc_mipi>;
899 status = "disabled";
900 };
901
Lucas Stach748f9082018-12-09 14:26:07 +0000902 i2c1: i2c@30a20000 {
903 compatible = "fsl,imx8mq-i2c", "fsl,imx21-i2c";
904 reg = <0x30a20000 0x10000>;
905 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
906 clocks = <&clk IMX8MQ_CLK_I2C1_ROOT>;
907 #address-cells = <1>;
908 #size-cells = <0>;
909 status = "disabled";
910 };
911
912 i2c2: i2c@30a30000 {
913 compatible = "fsl,imx8mq-i2c", "fsl,imx21-i2c";
914 reg = <0x30a30000 0x10000>;
915 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
916 clocks = <&clk IMX8MQ_CLK_I2C2_ROOT>;
917 #address-cells = <1>;
918 #size-cells = <0>;
919 status = "disabled";
920 };
921
922 i2c3: i2c@30a40000 {
923 compatible = "fsl,imx8mq-i2c", "fsl,imx21-i2c";
924 reg = <0x30a40000 0x10000>;
925 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
926 clocks = <&clk IMX8MQ_CLK_I2C3_ROOT>;
927 #address-cells = <1>;
928 #size-cells = <0>;
929 status = "disabled";
930 };
931
932 i2c4: i2c@30a50000 {
933 compatible = "fsl,imx8mq-i2c", "fsl,imx21-i2c";
934 reg = <0x30a50000 0x10000>;
935 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
936 clocks = <&clk IMX8MQ_CLK_I2C4_ROOT>;
937 #address-cells = <1>;
938 #size-cells = <0>;
939 status = "disabled";
940 };
941
942 uart4: serial@30a60000 {
943 compatible = "fsl,imx8mq-uart",
944 "fsl,imx6q-uart";
945 reg = <0x30a60000 0x10000>;
946 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
947 clocks = <&clk IMX8MQ_CLK_UART4_ROOT>,
948 <&clk IMX8MQ_CLK_UART4_ROOT>;
949 clock-names = "ipg", "per";
950 status = "disabled";
951 };
952
953 usdhc1: mmc@30b40000 {
954 compatible = "fsl,imx8mq-usdhc",
955 "fsl,imx7d-usdhc";
956 reg = <0x30b40000 0x10000>;
957 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
Anson Huangb0759292019-10-08 08:55:43 +0800958 clocks = <&clk IMX8MQ_CLK_IPG_ROOT>,
Lucas Stach748f9082018-12-09 14:26:07 +0000959 <&clk IMX8MQ_CLK_NAND_USDHC_BUS>,
960 <&clk IMX8MQ_CLK_USDHC1_ROOT>;
961 clock-names = "ipg", "ahb", "per";
Lucas Stach748f9082018-12-09 14:26:07 +0000962 fsl,tuning-start-tap = <20>;
963 fsl,tuning-step = <2>;
964 bus-width = <4>;
965 status = "disabled";
966 };
967
968 usdhc2: mmc@30b50000 {
969 compatible = "fsl,imx8mq-usdhc",
970 "fsl,imx7d-usdhc";
971 reg = <0x30b50000 0x10000>;
972 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Anson Huangb0759292019-10-08 08:55:43 +0800973 clocks = <&clk IMX8MQ_CLK_IPG_ROOT>,
Lucas Stach748f9082018-12-09 14:26:07 +0000974 <&clk IMX8MQ_CLK_NAND_USDHC_BUS>,
975 <&clk IMX8MQ_CLK_USDHC2_ROOT>;
976 clock-names = "ipg", "ahb", "per";
977 fsl,tuning-start-tap = <20>;
978 fsl,tuning-step = <2>;
979 bus-width = <4>;
980 status = "disabled";
981 };
982
Carlo Caione39f16222019-02-11 09:53:35 +0800983 qspi0: spi@30bb0000 {
984 #address-cells = <1>;
985 #size-cells = <0>;
986 compatible = "fsl,imx8mq-qspi", "fsl,imx7d-qspi";
987 reg = <0x30bb0000 0x10000>,
988 <0x08000000 0x10000000>;
989 reg-names = "QuadSPI", "QuadSPI-memory";
990 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
991 clocks = <&clk IMX8MQ_CLK_QSPI_ROOT>,
992 <&clk IMX8MQ_CLK_QSPI_ROOT>;
993 clock-names = "qspi_en", "qspi";
994 status = "disabled";
995 };
996
Daniel Baluta1474d482019-03-19 17:48:37 +0000997 sdma1: sdma@30bd0000 {
Angus Ainslie (Purism)b6c846b2019-03-29 08:21:28 -0700998 compatible = "fsl,imx8mq-sdma","fsl,imx7d-sdma";
Daniel Baluta1474d482019-03-19 17:48:37 +0000999 reg = <0x30bd0000 0x10000>;
1000 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1001 clocks = <&clk IMX8MQ_CLK_SDMA1_ROOT>,
Angus Ainslie (Purism)7240d7d2019-03-29 08:21:30 -07001002 <&clk IMX8MQ_CLK_AHB>;
Daniel Baluta1474d482019-03-19 17:48:37 +00001003 clock-names = "ipg", "ahb";
1004 #dma-cells = <3>;
1005 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
1006 };
1007
Lucas Stach748f9082018-12-09 14:26:07 +00001008 fec1: ethernet@30be0000 {
1009 compatible = "fsl,imx8mq-fec", "fsl,imx6sx-fec";
1010 reg = <0x30be0000 0x10000>;
1011 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
1012 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
1013 <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
1014 clocks = <&clk IMX8MQ_CLK_ENET1_ROOT>,
1015 <&clk IMX8MQ_CLK_ENET1_ROOT>,
1016 <&clk IMX8MQ_CLK_ENET_TIMER>,
1017 <&clk IMX8MQ_CLK_ENET_REF>,
1018 <&clk IMX8MQ_CLK_ENET_PHY_REF>;
1019 clock-names = "ipg", "ahb", "ptp",
1020 "enet_clk_ref", "enet_out";
1021 fsl,num-tx-queues = <3>;
1022 fsl,num-rx-queues = <3>;
1023 status = "disabled";
1024 };
1025 };
1026
Guido Günther4af3cfe2019-04-30 19:15:55 +02001027 bus@32c00000 { /* AIPS4 */
Peng Fanaebf07e2019-12-12 03:19:25 +00001028 compatible = "simple-bus";
Guido Günther4af3cfe2019-04-30 19:15:55 +02001029 #address-cells = <1>;
1030 #size-cells = <1>;
1031 ranges = <0x32c00000 0x32c00000 0x400000>;
1032
1033 irqsteer: interrupt-controller@32e2d000 {
1034 compatible = "fsl,imx8m-irqsteer", "fsl,imx-irqsteer";
1035 reg = <0x32e2d000 0x1000>;
1036 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1037 clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>;
1038 clock-names = "ipg";
1039 fsl,channel = <0>;
1040 fsl,num-irqs = <64>;
1041 interrupt-controller;
1042 #interrupt-cells = <1>;
1043 };
1044 };
1045
Lucas Stach45d2c842019-04-04 18:52:11 +02001046 gpu: gpu@38000000 {
1047 compatible = "vivante,gc";
1048 reg = <0x38000000 0x40000>;
1049 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1050 clocks = <&clk IMX8MQ_CLK_GPU_ROOT>,
1051 <&clk IMX8MQ_CLK_GPU_SHADER_DIV>,
1052 <&clk IMX8MQ_CLK_GPU_AXI>,
1053 <&clk IMX8MQ_CLK_GPU_AHB>;
1054 clock-names = "core", "shader", "bus", "reg";
Guido Günther9404f2e2019-09-11 19:40:35 -07001055 #cooling-cells = <2>;
Lucas Stach45d2c842019-04-04 18:52:11 +02001056 assigned-clocks = <&clk IMX8MQ_CLK_GPU_CORE_SRC>,
1057 <&clk IMX8MQ_CLK_GPU_SHADER_SRC>,
1058 <&clk IMX8MQ_CLK_GPU_AXI>,
Lucas Stachade5a572019-04-15 15:59:22 +02001059 <&clk IMX8MQ_CLK_GPU_AHB>,
1060 <&clk IMX8MQ_GPU_PLL_BYPASS>;
Lucas Stach45d2c842019-04-04 18:52:11 +02001061 assigned-clock-parents = <&clk IMX8MQ_GPU_PLL_OUT>,
1062 <&clk IMX8MQ_GPU_PLL_OUT>,
1063 <&clk IMX8MQ_GPU_PLL_OUT>,
Lucas Stachade5a572019-04-15 15:59:22 +02001064 <&clk IMX8MQ_GPU_PLL_OUT>,
1065 <&clk IMX8MQ_GPU_PLL>;
Lucas Stach45d2c842019-04-04 18:52:11 +02001066 assigned-clock-rates = <800000000>, <800000000>,
Lucas Stachade5a572019-04-15 15:59:22 +02001067 <800000000>, <800000000>, <0>;
Lucas Stach45d2c842019-04-04 18:52:11 +02001068 power-domains = <&pgc_gpu>;
1069 };
1070
Lucas Stachad375492019-01-25 17:25:58 +01001071 usb_dwc3_0: usb@38100000 {
1072 compatible = "fsl,imx8mq-dwc3", "snps,dwc3";
1073 reg = <0x38100000 0x10000>;
Li Jun74bd5952019-07-10 19:19:17 +08001074 clocks = <&clk IMX8MQ_CLK_USB1_CTRL_ROOT>,
Lucas Stachad375492019-01-25 17:25:58 +01001075 <&clk IMX8MQ_CLK_USB_CORE_REF>,
Li Jun74bd5952019-07-10 19:19:17 +08001076 <&clk IMX8MQ_CLK_32K>;
Lucas Stachad375492019-01-25 17:25:58 +01001077 clock-names = "bus_early", "ref", "suspend";
1078 assigned-clocks = <&clk IMX8MQ_CLK_USB_BUS>,
1079 <&clk IMX8MQ_CLK_USB_CORE_REF>;
1080 assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_500M>,
1081 <&clk IMX8MQ_SYS1_PLL_100M>;
1082 assigned-clock-rates = <500000000>, <100000000>;
1083 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1084 phys = <&usb3_phy0>, <&usb3_phy0>;
1085 phy-names = "usb2-phy", "usb3-phy";
1086 power-domains = <&pgc_otg1>;
1087 usb3-resume-missing-cas;
1088 status = "disabled";
1089 };
1090
1091 usb3_phy0: usb-phy@381f0040 {
1092 compatible = "fsl,imx8mq-usb-phy";
1093 reg = <0x381f0040 0x40>;
1094 clocks = <&clk IMX8MQ_CLK_USB1_PHY_ROOT>;
1095 clock-names = "phy";
1096 assigned-clocks = <&clk IMX8MQ_CLK_USB_PHY_REF>;
1097 assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_100M>;
1098 assigned-clock-rates = <100000000>;
1099 #phy-cells = <0>;
1100 status = "disabled";
1101 };
1102
1103 usb_dwc3_1: usb@38200000 {
1104 compatible = "fsl,imx8mq-dwc3", "snps,dwc3";
1105 reg = <0x38200000 0x10000>;
Li Jun74bd5952019-07-10 19:19:17 +08001106 clocks = <&clk IMX8MQ_CLK_USB2_CTRL_ROOT>,
Lucas Stachad375492019-01-25 17:25:58 +01001107 <&clk IMX8MQ_CLK_USB_CORE_REF>,
Li Jun74bd5952019-07-10 19:19:17 +08001108 <&clk IMX8MQ_CLK_32K>;
Lucas Stachad375492019-01-25 17:25:58 +01001109 clock-names = "bus_early", "ref", "suspend";
1110 assigned-clocks = <&clk IMX8MQ_CLK_USB_BUS>,
1111 <&clk IMX8MQ_CLK_USB_CORE_REF>;
1112 assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_500M>,
1113 <&clk IMX8MQ_SYS1_PLL_100M>;
1114 assigned-clock-rates = <500000000>, <100000000>;
1115 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1116 phys = <&usb3_phy1>, <&usb3_phy1>;
1117 phy-names = "usb2-phy", "usb3-phy";
1118 power-domains = <&pgc_otg2>;
1119 usb3-resume-missing-cas;
1120 status = "disabled";
1121 };
1122
1123 usb3_phy1: usb-phy@382f0040 {
1124 compatible = "fsl,imx8mq-usb-phy";
1125 reg = <0x382f0040 0x40>;
1126 clocks = <&clk IMX8MQ_CLK_USB2_PHY_ROOT>;
1127 clock-names = "phy";
1128 assigned-clocks = <&clk IMX8MQ_CLK_USB_PHY_REF>;
1129 assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_100M>;
1130 assigned-clock-rates = <100000000>;
1131 #phy-cells = <0>;
1132 status = "disabled";
1133 };
1134
Andrey Smirnovfc26e602019-04-05 10:30:03 -07001135 pcie0: pcie@33800000 {
1136 compatible = "fsl,imx8mq-pcie";
1137 reg = <0x33800000 0x400000>,
1138 <0x1ff00000 0x80000>;
1139 reg-names = "dbi", "config";
1140 #address-cells = <3>;
1141 #size-cells = <2>;
1142 device_type = "pci";
1143 bus-range = <0x00 0xff>;
1144 ranges = <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000 /* downstream I/O 64KB */
1145 0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */
1146 num-lanes = <1>;
1147 num-viewport = <4>;
1148 interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
1149 interrupt-names = "msi";
1150 #interrupt-cells = <1>;
1151 interrupt-map-mask = <0 0 0 0x7>;
1152 interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
1153 <0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
1154 <0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
1155 <0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
1156 fsl,max-link-speed = <2>;
1157 power-domains = <&pgc_pcie>;
1158 resets = <&src IMX8MQ_RESET_PCIEPHY>,
1159 <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>,
1160 <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>;
1161 reset-names = "pciephy", "apps", "turnoff";
1162 status = "disabled";
1163 };
1164
1165 pcie1: pcie@33c00000 {
1166 compatible = "fsl,imx8mq-pcie";
1167 reg = <0x33c00000 0x400000>,
1168 <0x27f00000 0x80000>;
1169 reg-names = "dbi", "config";
1170 #address-cells = <3>;
1171 #size-cells = <2>;
1172 device_type = "pci";
1173 ranges = <0x81000000 0 0x00000000 0x27f80000 0 0x00010000 /* downstream I/O 64KB */
1174 0x82000000 0 0x20000000 0x20000000 0 0x07f00000>; /* non-prefetchable memory */
1175 num-lanes = <1>;
1176 num-viewport = <4>;
1177 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
1178 interrupt-names = "msi";
1179 #interrupt-cells = <1>;
1180 interrupt-map-mask = <0 0 0 0x7>;
1181 interrupt-map = <0 0 0 1 &gic GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
1182 <0 0 0 2 &gic GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
1183 <0 0 0 3 &gic GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
1184 <0 0 0 4 &gic GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
1185 fsl,max-link-speed = <2>;
1186 power-domains = <&pgc_pcie>;
1187 resets = <&src IMX8MQ_RESET_PCIEPHY2>,
1188 <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_EN>,
1189 <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_TURNOFF>;
1190 reset-names = "pciephy", "apps", "turnoff";
1191 status = "disabled";
1192 };
1193
Lucas Stach748f9082018-12-09 14:26:07 +00001194 gic: interrupt-controller@38800000 {
1195 compatible = "arm,gic-v3";
1196 reg = <0x38800000 0x10000>, /* GIC Dist */
1197 <0x38880000 0xc0000>, /* GICR */
1198 <0x31000000 0x2000>, /* GICC */
1199 <0x31010000 0x2000>, /* GICV */
1200 <0x31020000 0x2000>; /* GICH */
1201 #interrupt-cells = <3>;
1202 interrupt-controller;
1203 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
1204 interrupt-parent = <&gic>;
1205 };
Leonard Crestez1efe85c2019-07-04 11:53:21 +03001206
Leonard Crestez0376f6e2019-11-22 23:45:04 +02001207 ddrc: memory-controller@3d400000 {
1208 compatible = "fsl,imx8mq-ddrc", "fsl,imx8m-ddrc";
1209 reg = <0x3d400000 0x400000>;
1210 clock-names = "core", "pll", "alt", "apb";
1211 clocks = <&clk IMX8MQ_CLK_DRAM_CORE>,
1212 <&clk IMX8MQ_DRAM_PLL_OUT>,
1213 <&clk IMX8MQ_CLK_DRAM_ALT>,
1214 <&clk IMX8MQ_CLK_DRAM_APB>;
1215 };
1216
Leonard Crestez1efe85c2019-07-04 11:53:21 +03001217 ddr-pmu@3d800000 {
1218 compatible = "fsl,imx8mq-ddr-pmu", "fsl,imx8m-ddr-pmu";
1219 reg = <0x3d800000 0x400000>;
1220 interrupt-parent = <&gic>;
1221 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
1222 };
Lucas Stach748f9082018-12-09 14:26:07 +00001223 };
1224};