blob: fa2d73f1803118e48e596783fd71603975fe3777 [file] [log] [blame]
Peng Fan8740b892019-08-27 06:26:01 +00001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2019 NXP
4 */
5
6#include <dt-bindings/clock/imx8mm-clock.h>
7#include <dt-bindings/gpio/gpio.h>
8#include <dt-bindings/input/input.h>
9#include <dt-bindings/interrupt-controller/arm-gic.h>
10#include <dt-bindings/thermal/thermal.h>
11
12#include "imx8mm-pinfunc.h"
13
14/ {
Peng Fan8740b892019-08-27 06:26:01 +000015 interrupt-parent = <&gic>;
16 #address-cells = <2>;
17 #size-cells = <2>;
18
19 aliases {
20 ethernet0 = &fec1;
Adam Ford427454c2020-12-04 17:27:46 -060021 gpio0 = &gpio1;
22 gpio1 = &gpio2;
23 gpio2 = &gpio3;
24 gpio3 = &gpio4;
25 gpio4 = &gpio5;
Peng Fan8740b892019-08-27 06:26:01 +000026 i2c0 = &i2c1;
27 i2c1 = &i2c2;
28 i2c2 = &i2c3;
29 i2c3 = &i2c4;
Adam Ford427454c2020-12-04 17:27:46 -060030 mmc0 = &usdhc1;
31 mmc1 = &usdhc2;
32 mmc2 = &usdhc3;
Peng Fan8740b892019-08-27 06:26:01 +000033 serial0 = &uart1;
34 serial1 = &uart2;
35 serial2 = &uart3;
36 serial3 = &uart4;
37 spi0 = &ecspi1;
38 spi1 = &ecspi2;
39 spi2 = &ecspi3;
Peng Fan8740b892019-08-27 06:26:01 +000040 };
41
42 cpus {
43 #address-cells = <1>;
44 #size-cells = <0>;
45
Peng Fanab93ef62019-10-16 10:24:30 +000046 idle-states {
47 entry-method = "psci";
48
49 cpu_pd_wait: cpu-pd-wait {
50 compatible = "arm,idle-state";
51 arm,psci-suspend-param = <0x0010033>;
52 local-timer-stop;
53 entry-latency-us = <1000>;
54 exit-latency-us = <700>;
55 min-residency-us = <2700>;
56 };
57 };
58
Peng Fan8740b892019-08-27 06:26:01 +000059 A53_0: cpu@0 {
60 device_type = "cpu";
61 compatible = "arm,cortex-a53";
62 reg = <0x0>;
63 clock-latency = <61036>; /* two CLK32 periods */
64 clocks = <&clk IMX8MM_CLK_ARM>;
65 enable-method = "psci";
66 next-level-cache = <&A53_L2>;
67 operating-points-v2 = <&a53_opp_table>;
Peng Fanab93ef62019-10-16 10:24:30 +000068 nvmem-cells = <&cpu_speed_grade>;
69 nvmem-cell-names = "speed_grade";
70 cpu-idle-states = <&cpu_pd_wait>;
Adam Ford427454c2020-12-04 17:27:46 -060071 #cooling-cells = <2>;
Peng Fan8740b892019-08-27 06:26:01 +000072 };
73
74 A53_1: cpu@1 {
75 device_type = "cpu";
76 compatible = "arm,cortex-a53";
77 reg = <0x1>;
78 clock-latency = <61036>; /* two CLK32 periods */
79 clocks = <&clk IMX8MM_CLK_ARM>;
80 enable-method = "psci";
81 next-level-cache = <&A53_L2>;
82 operating-points-v2 = <&a53_opp_table>;
Peng Fanab93ef62019-10-16 10:24:30 +000083 cpu-idle-states = <&cpu_pd_wait>;
Adam Ford427454c2020-12-04 17:27:46 -060084 #cooling-cells = <2>;
Peng Fan8740b892019-08-27 06:26:01 +000085 };
86
87 A53_2: cpu@2 {
88 device_type = "cpu";
89 compatible = "arm,cortex-a53";
90 reg = <0x2>;
91 clock-latency = <61036>; /* two CLK32 periods */
92 clocks = <&clk IMX8MM_CLK_ARM>;
93 enable-method = "psci";
94 next-level-cache = <&A53_L2>;
95 operating-points-v2 = <&a53_opp_table>;
Peng Fanab93ef62019-10-16 10:24:30 +000096 cpu-idle-states = <&cpu_pd_wait>;
Adam Ford427454c2020-12-04 17:27:46 -060097 #cooling-cells = <2>;
Peng Fan8740b892019-08-27 06:26:01 +000098 };
99
100 A53_3: cpu@3 {
101 device_type = "cpu";
102 compatible = "arm,cortex-a53";
103 reg = <0x3>;
104 clock-latency = <61036>; /* two CLK32 periods */
105 clocks = <&clk IMX8MM_CLK_ARM>;
106 enable-method = "psci";
107 next-level-cache = <&A53_L2>;
108 operating-points-v2 = <&a53_opp_table>;
Peng Fanab93ef62019-10-16 10:24:30 +0000109 cpu-idle-states = <&cpu_pd_wait>;
Adam Ford427454c2020-12-04 17:27:46 -0600110 #cooling-cells = <2>;
Peng Fan8740b892019-08-27 06:26:01 +0000111 };
112
113 A53_L2: l2-cache0 {
114 compatible = "cache";
115 };
116 };
117
118 a53_opp_table: opp-table {
119 compatible = "operating-points-v2";
120 opp-shared;
121
122 opp-1200000000 {
123 opp-hz = /bits/ 64 <1200000000>;
124 opp-microvolt = <850000>;
Peng Fanab93ef62019-10-16 10:24:30 +0000125 opp-supported-hw = <0xe>, <0x7>;
Peng Fan8740b892019-08-27 06:26:01 +0000126 clock-latency-ns = <150000>;
Peng Fanab93ef62019-10-16 10:24:30 +0000127 opp-suspend;
Peng Fan8740b892019-08-27 06:26:01 +0000128 };
129
130 opp-1600000000 {
131 opp-hz = /bits/ 64 <1600000000>;
Adam Ford427454c2020-12-04 17:27:46 -0600132 opp-microvolt = <950000>;
Peng Fanab93ef62019-10-16 10:24:30 +0000133 opp-supported-hw = <0xc>, <0x7>;
134 clock-latency-ns = <150000>;
135 opp-suspend;
136 };
137
138 opp-1800000000 {
139 opp-hz = /bits/ 64 <1800000000>;
140 opp-microvolt = <1000000>;
141 opp-supported-hw = <0x8>, <0x3>;
Peng Fan8740b892019-08-27 06:26:01 +0000142 clock-latency-ns = <150000>;
143 opp-suspend;
144 };
145 };
146
Peng Fan8740b892019-08-27 06:26:01 +0000147 osc_32k: clock-osc-32k {
148 compatible = "fixed-clock";
149 #clock-cells = <0>;
150 clock-frequency = <32768>;
151 clock-output-names = "osc_32k";
152 };
153
154 osc_24m: clock-osc-24m {
155 compatible = "fixed-clock";
156 #clock-cells = <0>;
157 clock-frequency = <24000000>;
158 clock-output-names = "osc_24m";
159 };
160
161 clk_ext1: clock-ext1 {
162 compatible = "fixed-clock";
163 #clock-cells = <0>;
164 clock-frequency = <133000000>;
165 clock-output-names = "clk_ext1";
166 };
167
168 clk_ext2: clock-ext2 {
169 compatible = "fixed-clock";
170 #clock-cells = <0>;
171 clock-frequency = <133000000>;
172 clock-output-names = "clk_ext2";
173 };
174
175 clk_ext3: clock-ext3 {
176 compatible = "fixed-clock";
177 #clock-cells = <0>;
178 clock-frequency = <133000000>;
179 clock-output-names = "clk_ext3";
180 };
181
182 clk_ext4: clock-ext4 {
183 compatible = "fixed-clock";
184 #clock-cells = <0>;
185 clock-frequency= <133000000>;
186 clock-output-names = "clk_ext4";
187 };
188
Peng Fan8740b892019-08-27 06:26:01 +0000189 psci {
190 compatible = "arm,psci-1.0";
191 method = "smc";
192 };
193
194 pmu {
195 compatible = "arm,armv8-pmuv3";
196 interrupts = <GIC_PPI 7
Peng Fane85e26a2020-12-27 14:18:13 +0800197 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Peng Fan8740b892019-08-27 06:26:01 +0000198 interrupt-affinity = <&A53_0>, <&A53_1>, <&A53_2>, <&A53_3>;
199 };
200
201 timer {
202 compatible = "arm,armv8-timer";
Peng Fane85e26a2020-12-27 14:18:13 +0800203 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Secure */
204 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Non-Secure */
205 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Virtual */
206 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; /* Hypervisor */
Peng Fan8740b892019-08-27 06:26:01 +0000207 clock-frequency = <8000000>;
208 arm,no-tick-in-suspend;
209 };
210
Adam Ford427454c2020-12-04 17:27:46 -0600211 thermal-zones {
212 cpu-thermal {
213 polling-delay-passive = <250>;
214 polling-delay = <2000>;
215 thermal-sensors = <&tmu>;
216 trips {
217 cpu_alert0: trip0 {
218 temperature = <85000>;
219 hysteresis = <2000>;
220 type = "passive";
221 };
222
223 cpu_crit0: trip1 {
224 temperature = <95000>;
225 hysteresis = <2000>;
226 type = "critical";
227 };
228 };
229
230 cooling-maps {
231 map0 {
232 trip = <&cpu_alert0>;
233 cooling-device =
234 <&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
235 <&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
236 <&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
237 <&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
238 };
239 };
240 };
241 };
242
Peng Fanab93ef62019-10-16 10:24:30 +0000243 usbphynop1: usbphynop1 {
Marek Vasut432e4df2021-03-31 11:47:25 +0200244 #phy-cells = <0>;
Peng Fanab93ef62019-10-16 10:24:30 +0000245 compatible = "usb-nop-xceiv";
246 clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
247 assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
248 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
249 clock-names = "main_clk";
250 };
251
252 usbphynop2: usbphynop2 {
Marek Vasut432e4df2021-03-31 11:47:25 +0200253 #phy-cells = <0>;
Peng Fanab93ef62019-10-16 10:24:30 +0000254 compatible = "usb-nop-xceiv";
255 clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
256 assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
257 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
258 clock-names = "main_clk";
259 };
260
261 soc@0 {
Peng Fan8740b892019-08-27 06:26:01 +0000262 compatible = "simple-bus";
263 #address-cells = <1>;
264 #size-cells = <1>;
265 ranges = <0x0 0x0 0x0 0x3e000000>;
266
267 aips1: bus@30000000 {
Adam Ford427454c2020-12-04 17:27:46 -0600268 compatible = "fsl,aips-bus", "simple-bus";
269 reg = <0x30000000 0x400000>;
Peng Fan8740b892019-08-27 06:26:01 +0000270 #address-cells = <1>;
271 #size-cells = <1>;
Peng Fanab93ef62019-10-16 10:24:30 +0000272 ranges = <0x30000000 0x30000000 0x400000>;
273
274 sai1: sai@30010000 {
Adam Ford427454c2020-12-04 17:27:46 -0600275 #sound-dai-cells = <0>;
Peng Fanab93ef62019-10-16 10:24:30 +0000276 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
277 reg = <0x30010000 0x10000>;
278 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
279 clocks = <&clk IMX8MM_CLK_SAI1_IPG>,
280 <&clk IMX8MM_CLK_SAI1_ROOT>,
281 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
282 clock-names = "bus", "mclk1", "mclk2", "mclk3";
283 dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
284 dma-names = "rx", "tx";
285 status = "disabled";
286 };
287
288 sai2: sai@30020000 {
Adam Ford427454c2020-12-04 17:27:46 -0600289 #sound-dai-cells = <0>;
Peng Fanab93ef62019-10-16 10:24:30 +0000290 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
291 reg = <0x30020000 0x10000>;
292 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
293 clocks = <&clk IMX8MM_CLK_SAI2_IPG>,
294 <&clk IMX8MM_CLK_SAI2_ROOT>,
295 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
296 clock-names = "bus", "mclk1", "mclk2", "mclk3";
297 dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>;
298 dma-names = "rx", "tx";
299 status = "disabled";
300 };
301
302 sai3: sai@30030000 {
303 #sound-dai-cells = <0>;
304 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
305 reg = <0x30030000 0x10000>;
306 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
307 clocks = <&clk IMX8MM_CLK_SAI3_IPG>,
308 <&clk IMX8MM_CLK_SAI3_ROOT>,
309 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
310 clock-names = "bus", "mclk1", "mclk2", "mclk3";
311 dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>;
312 dma-names = "rx", "tx";
313 status = "disabled";
314 };
315
316 sai5: sai@30050000 {
Adam Ford427454c2020-12-04 17:27:46 -0600317 #sound-dai-cells = <0>;
Peng Fanab93ef62019-10-16 10:24:30 +0000318 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
319 reg = <0x30050000 0x10000>;
320 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
321 clocks = <&clk IMX8MM_CLK_SAI5_IPG>,
322 <&clk IMX8MM_CLK_SAI5_ROOT>,
323 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
324 clock-names = "bus", "mclk1", "mclk2", "mclk3";
325 dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>;
326 dma-names = "rx", "tx";
327 status = "disabled";
328 };
329
330 sai6: sai@30060000 {
Adam Ford427454c2020-12-04 17:27:46 -0600331 #sound-dai-cells = <0>;
Peng Fanab93ef62019-10-16 10:24:30 +0000332 compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
333 reg = <0x30060000 0x10000>;
334 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
335 clocks = <&clk IMX8MM_CLK_SAI6_IPG>,
336 <&clk IMX8MM_CLK_SAI6_ROOT>,
337 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
338 clock-names = "bus", "mclk1", "mclk2", "mclk3";
339 dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>;
340 dma-names = "rx", "tx";
341 status = "disabled";
342 };
Peng Fan8740b892019-08-27 06:26:01 +0000343
Peng Fane85e26a2020-12-27 14:18:13 +0800344 micfil: audio-controller@30080000 {
345 compatible = "fsl,imx8mm-micfil";
346 reg = <0x30080000 0x10000>;
347 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
348 <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
349 <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
350 <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
351 clocks = <&clk IMX8MM_CLK_PDM_IPG>,
352 <&clk IMX8MM_CLK_PDM_ROOT>,
353 <&clk IMX8MM_AUDIO_PLL1_OUT>,
354 <&clk IMX8MM_AUDIO_PLL2_OUT>,
355 <&clk IMX8MM_CLK_EXT3>;
356 clock-names = "ipg_clk", "ipg_clk_app",
357 "pll8k", "pll11k", "clkext3";
358 dmas = <&sdma2 24 25 0x80000000>;
359 dma-names = "rx";
360 status = "disabled";
361 };
362
363 spdif1: spdif@30090000 {
364 compatible = "fsl,imx35-spdif";
365 reg = <0x30090000 0x10000>;
366 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
367 clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, /* core */
368 <&clk IMX8MM_CLK_24M>, /* rxtx0 */
369 <&clk IMX8MM_CLK_SPDIF1>, /* rxtx1 */
370 <&clk IMX8MM_CLK_DUMMY>, /* rxtx2 */
371 <&clk IMX8MM_CLK_DUMMY>, /* rxtx3 */
372 <&clk IMX8MM_CLK_DUMMY>, /* rxtx4 */
373 <&clk IMX8MM_CLK_AUDIO_AHB>, /* rxtx5 */
374 <&clk IMX8MM_CLK_DUMMY>, /* rxtx6 */
375 <&clk IMX8MM_CLK_DUMMY>, /* rxtx7 */
376 <&clk IMX8MM_CLK_DUMMY>; /* spba */
377 clock-names = "core", "rxtx0",
378 "rxtx1", "rxtx2",
379 "rxtx3", "rxtx4",
380 "rxtx5", "rxtx6",
381 "rxtx7", "spba";
382 dmas = <&sdma2 28 18 0>, <&sdma2 29 18 0>;
383 dma-names = "rx", "tx";
384 status = "disabled";
385 };
386
Peng Fan8740b892019-08-27 06:26:01 +0000387 gpio1: gpio@30200000 {
388 compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
389 reg = <0x30200000 0x10000>;
390 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
391 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000392 clocks = <&clk IMX8MM_CLK_GPIO1_ROOT>;
Peng Fan8740b892019-08-27 06:26:01 +0000393 gpio-controller;
394 #gpio-cells = <2>;
395 interrupt-controller;
396 #interrupt-cells = <2>;
Peng Fanab93ef62019-10-16 10:24:30 +0000397 gpio-ranges = <&iomuxc 0 10 30>;
Peng Fan8740b892019-08-27 06:26:01 +0000398 };
399
400 gpio2: gpio@30210000 {
401 compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
402 reg = <0x30210000 0x10000>;
403 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
404 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000405 clocks = <&clk IMX8MM_CLK_GPIO2_ROOT>;
Peng Fan8740b892019-08-27 06:26:01 +0000406 gpio-controller;
407 #gpio-cells = <2>;
408 interrupt-controller;
409 #interrupt-cells = <2>;
Peng Fanab93ef62019-10-16 10:24:30 +0000410 gpio-ranges = <&iomuxc 0 40 21>;
Peng Fan8740b892019-08-27 06:26:01 +0000411 };
412
413 gpio3: gpio@30220000 {
414 compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
415 reg = <0x30220000 0x10000>;
416 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
417 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000418 clocks = <&clk IMX8MM_CLK_GPIO3_ROOT>;
Peng Fan8740b892019-08-27 06:26:01 +0000419 gpio-controller;
420 #gpio-cells = <2>;
421 interrupt-controller;
422 #interrupt-cells = <2>;
Peng Fanab93ef62019-10-16 10:24:30 +0000423 gpio-ranges = <&iomuxc 0 61 26>;
Peng Fan8740b892019-08-27 06:26:01 +0000424 };
425
426 gpio4: gpio@30230000 {
427 compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
428 reg = <0x30230000 0x10000>;
429 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
430 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000431 clocks = <&clk IMX8MM_CLK_GPIO4_ROOT>;
Peng Fan8740b892019-08-27 06:26:01 +0000432 gpio-controller;
433 #gpio-cells = <2>;
434 interrupt-controller;
435 #interrupt-cells = <2>;
Peng Fanab93ef62019-10-16 10:24:30 +0000436 gpio-ranges = <&iomuxc 0 87 32>;
Peng Fan8740b892019-08-27 06:26:01 +0000437 };
438
439 gpio5: gpio@30240000 {
440 compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
441 reg = <0x30240000 0x10000>;
442 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
443 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000444 clocks = <&clk IMX8MM_CLK_GPIO5_ROOT>;
Peng Fan8740b892019-08-27 06:26:01 +0000445 gpio-controller;
446 #gpio-cells = <2>;
447 interrupt-controller;
448 #interrupt-cells = <2>;
Peng Fanab93ef62019-10-16 10:24:30 +0000449 gpio-ranges = <&iomuxc 0 119 30>;
Peng Fan8740b892019-08-27 06:26:01 +0000450 };
451
Adam Ford427454c2020-12-04 17:27:46 -0600452 tmu: tmu@30260000 {
453 compatible = "fsl,imx8mm-tmu";
454 reg = <0x30260000 0x10000>;
455 clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
456 #thermal-sensor-cells = <0>;
457 };
458
Peng Fan8740b892019-08-27 06:26:01 +0000459 wdog1: watchdog@30280000 {
460 compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
461 reg = <0x30280000 0x10000>;
462 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
463 clocks = <&clk IMX8MM_CLK_WDOG1_ROOT>;
464 status = "disabled";
465 };
466
467 wdog2: watchdog@30290000 {
468 compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
469 reg = <0x30290000 0x10000>;
470 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
471 clocks = <&clk IMX8MM_CLK_WDOG2_ROOT>;
472 status = "disabled";
473 };
474
475 wdog3: watchdog@302a0000 {
476 compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
477 reg = <0x302a0000 0x10000>;
478 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
479 clocks = <&clk IMX8MM_CLK_WDOG3_ROOT>;
480 status = "disabled";
481 };
482
483 sdma2: dma-controller@302c0000 {
Adam Forde9ad49f2020-04-27 07:11:19 -0500484 compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
Peng Fan8740b892019-08-27 06:26:01 +0000485 reg = <0x302c0000 0x10000>;
486 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
487 clocks = <&clk IMX8MM_CLK_SDMA2_ROOT>,
488 <&clk IMX8MM_CLK_SDMA2_ROOT>;
489 clock-names = "ipg", "ahb";
490 #dma-cells = <3>;
491 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
492 };
493
494 sdma3: dma-controller@302b0000 {
Adam Forde9ad49f2020-04-27 07:11:19 -0500495 compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
Peng Fan8740b892019-08-27 06:26:01 +0000496 reg = <0x302b0000 0x10000>;
497 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
498 clocks = <&clk IMX8MM_CLK_SDMA3_ROOT>,
499 <&clk IMX8MM_CLK_SDMA3_ROOT>;
500 clock-names = "ipg", "ahb";
501 #dma-cells = <3>;
502 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
503 };
504
505 iomuxc: pinctrl@30330000 {
506 compatible = "fsl,imx8mm-iomuxc";
507 reg = <0x30330000 0x10000>;
508 };
509
510 gpr: iomuxc-gpr@30340000 {
511 compatible = "fsl,imx8mm-iomuxc-gpr", "syscon";
512 reg = <0x30340000 0x10000>;
513 };
514
Adam Ford427454c2020-12-04 17:27:46 -0600515 ocotp: efuse@30350000 {
Peng Fanab93ef62019-10-16 10:24:30 +0000516 compatible = "fsl,imx8mm-ocotp", "syscon";
Peng Fan8740b892019-08-27 06:26:01 +0000517 reg = <0x30350000 0x10000>;
518 clocks = <&clk IMX8MM_CLK_OCOTP_ROOT>;
519 /* For nvmem subnodes */
520 #address-cells = <1>;
521 #size-cells = <1>;
Peng Fanab93ef62019-10-16 10:24:30 +0000522
523 cpu_speed_grade: speed-grade@10 {
524 reg = <0x10 4>;
525 };
Peng Fan8740b892019-08-27 06:26:01 +0000526 };
527
528 anatop: anatop@30360000 {
Adam Forde9ad49f2020-04-27 07:11:19 -0500529 compatible = "fsl,imx8mm-anatop", "syscon";
Peng Fan8740b892019-08-27 06:26:01 +0000530 reg = <0x30360000 0x10000>;
531 };
532
533 snvs: snvs@30370000 {
534 compatible = "fsl,sec-v4.0-mon","syscon", "simple-mfd";
535 reg = <0x30370000 0x10000>;
536
537 snvs_rtc: snvs-rtc-lp {
538 compatible = "fsl,sec-v4.0-mon-rtc-lp";
539 regmap = <&snvs>;
540 offset = <0x34>;
541 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
542 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000543 clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
544 clock-names = "snvs-rtc";
Peng Fan8740b892019-08-27 06:26:01 +0000545 };
546
547 snvs_pwrkey: snvs-powerkey {
548 compatible = "fsl,sec-v4.0-pwrkey";
549 regmap = <&snvs>;
550 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Adam Ford427454c2020-12-04 17:27:46 -0600551 clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
552 clock-names = "snvs-pwrkey";
Peng Fan8740b892019-08-27 06:26:01 +0000553 linux,keycode = <KEY_POWER>;
554 wakeup-source;
Peng Fanab93ef62019-10-16 10:24:30 +0000555 status = "disabled";
Peng Fan8740b892019-08-27 06:26:01 +0000556 };
557 };
558
559 clk: clock-controller@30380000 {
560 compatible = "fsl,imx8mm-ccm";
561 reg = <0x30380000 0x10000>;
562 #clock-cells = <1>;
563 clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>,
564 <&clk_ext3>, <&clk_ext4>;
565 clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2",
566 "clk_ext3", "clk_ext4";
Adam Ford427454c2020-12-04 17:27:46 -0600567 assigned-clocks = <&clk IMX8MM_CLK_A53_SRC>,
568 <&clk IMX8MM_CLK_A53_CORE>,
569 <&clk IMX8MM_CLK_NOC>,
Peng Fanab93ef62019-10-16 10:24:30 +0000570 <&clk IMX8MM_CLK_AUDIO_AHB>,
571 <&clk IMX8MM_CLK_IPG_AUDIO_ROOT>,
572 <&clk IMX8MM_SYS_PLL3>,
Adam Forde9ad49f2020-04-27 07:11:19 -0500573 <&clk IMX8MM_VIDEO_PLL1>,
574 <&clk IMX8MM_AUDIO_PLL1>,
575 <&clk IMX8MM_AUDIO_PLL2>;
Adam Ford427454c2020-12-04 17:27:46 -0600576 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>,
577 <&clk IMX8MM_ARM_PLL_OUT>,
578 <&clk IMX8MM_SYS_PLL3_OUT>,
Peng Fanab93ef62019-10-16 10:24:30 +0000579 <&clk IMX8MM_SYS_PLL1_800M>;
Adam Ford427454c2020-12-04 17:27:46 -0600580 assigned-clock-rates = <0>, <0>, <0>,
Peng Fanab93ef62019-10-16 10:24:30 +0000581 <400000000>,
582 <400000000>,
583 <750000000>,
Adam Forde9ad49f2020-04-27 07:11:19 -0500584 <594000000>,
585 <393216000>,
586 <361267200>;
Peng Fan8740b892019-08-27 06:26:01 +0000587 };
588
589 src: reset-controller@30390000 {
Peng Fanab93ef62019-10-16 10:24:30 +0000590 compatible = "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon";
Peng Fan8740b892019-08-27 06:26:01 +0000591 reg = <0x30390000 0x10000>;
592 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
593 #reset-cells = <1>;
594 };
595 };
596
597 aips2: bus@30400000 {
Adam Ford427454c2020-12-04 17:27:46 -0600598 compatible = "fsl,aips-bus", "simple-bus";
599 reg = <0x30400000 0x400000>;
Peng Fan8740b892019-08-27 06:26:01 +0000600 #address-cells = <1>;
601 #size-cells = <1>;
Peng Fanab93ef62019-10-16 10:24:30 +0000602 ranges = <0x30400000 0x30400000 0x400000>;
Peng Fan8740b892019-08-27 06:26:01 +0000603
604 pwm1: pwm@30660000 {
605 compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
606 reg = <0x30660000 0x10000>;
607 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
608 clocks = <&clk IMX8MM_CLK_PWM1_ROOT>,
609 <&clk IMX8MM_CLK_PWM1_ROOT>;
610 clock-names = "ipg", "per";
611 #pwm-cells = <2>;
612 status = "disabled";
613 };
614
615 pwm2: pwm@30670000 {
616 compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
617 reg = <0x30670000 0x10000>;
618 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
619 clocks = <&clk IMX8MM_CLK_PWM2_ROOT>,
620 <&clk IMX8MM_CLK_PWM2_ROOT>;
621 clock-names = "ipg", "per";
622 #pwm-cells = <2>;
623 status = "disabled";
624 };
625
626 pwm3: pwm@30680000 {
627 compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
628 reg = <0x30680000 0x10000>;
629 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
630 clocks = <&clk IMX8MM_CLK_PWM3_ROOT>,
631 <&clk IMX8MM_CLK_PWM3_ROOT>;
632 clock-names = "ipg", "per";
633 #pwm-cells = <2>;
634 status = "disabled";
635 };
636
637 pwm4: pwm@30690000 {
638 compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
639 reg = <0x30690000 0x10000>;
640 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
641 clocks = <&clk IMX8MM_CLK_PWM4_ROOT>,
642 <&clk IMX8MM_CLK_PWM4_ROOT>;
643 clock-names = "ipg", "per";
644 #pwm-cells = <2>;
645 status = "disabled";
646 };
Peng Fanab93ef62019-10-16 10:24:30 +0000647
648 system_counter: timer@306a0000 {
649 compatible = "nxp,sysctr-timer";
650 reg = <0x306a0000 0x20000>;
651 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
652 clocks = <&osc_24m>;
653 clock-names = "per";
654 };
Peng Fan8740b892019-08-27 06:26:01 +0000655 };
656
657 aips3: bus@30800000 {
Adam Ford427454c2020-12-04 17:27:46 -0600658 compatible = "fsl,aips-bus", "simple-bus";
659 reg = <0x30800000 0x400000>;
Peng Fan8740b892019-08-27 06:26:01 +0000660 #address-cells = <1>;
661 #size-cells = <1>;
Adam Ford427454c2020-12-04 17:27:46 -0600662 ranges = <0x30800000 0x30800000 0x400000>,
663 <0x8000000 0x8000000 0x10000000>;
Peng Fan8740b892019-08-27 06:26:01 +0000664
665 ecspi1: spi@30820000 {
666 compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
667 #address-cells = <1>;
668 #size-cells = <0>;
669 reg = <0x30820000 0x10000>;
670 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
671 clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>,
672 <&clk IMX8MM_CLK_ECSPI1_ROOT>;
673 clock-names = "ipg", "per";
674 dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>;
675 dma-names = "rx", "tx";
676 status = "disabled";
677 };
678
679 ecspi2: spi@30830000 {
680 compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
681 #address-cells = <1>;
682 #size-cells = <0>;
683 reg = <0x30830000 0x10000>;
684 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
685 clocks = <&clk IMX8MM_CLK_ECSPI2_ROOT>,
686 <&clk IMX8MM_CLK_ECSPI2_ROOT>;
687 clock-names = "ipg", "per";
688 dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>;
689 dma-names = "rx", "tx";
690 status = "disabled";
691 };
692
693 ecspi3: spi@30840000 {
694 compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
695 #address-cells = <1>;
696 #size-cells = <0>;
697 reg = <0x30840000 0x10000>;
698 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
699 clocks = <&clk IMX8MM_CLK_ECSPI3_ROOT>,
700 <&clk IMX8MM_CLK_ECSPI3_ROOT>;
701 clock-names = "ipg", "per";
702 dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>;
703 dma-names = "rx", "tx";
704 status = "disabled";
705 };
706
707 uart1: serial@30860000 {
708 compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
709 reg = <0x30860000 0x10000>;
710 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
711 clocks = <&clk IMX8MM_CLK_UART1_ROOT>,
712 <&clk IMX8MM_CLK_UART1_ROOT>;
713 clock-names = "ipg", "per";
714 dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
715 dma-names = "rx", "tx";
716 status = "disabled";
717 };
718
719 uart3: serial@30880000 {
720 compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
721 reg = <0x30880000 0x10000>;
722 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
723 clocks = <&clk IMX8MM_CLK_UART3_ROOT>,
724 <&clk IMX8MM_CLK_UART3_ROOT>;
725 clock-names = "ipg", "per";
726 dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>;
727 dma-names = "rx", "tx";
728 status = "disabled";
729 };
730
731 uart2: serial@30890000 {
732 compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
733 reg = <0x30890000 0x10000>;
734 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
735 clocks = <&clk IMX8MM_CLK_UART2_ROOT>,
736 <&clk IMX8MM_CLK_UART2_ROOT>;
737 clock-names = "ipg", "per";
738 status = "disabled";
739 };
740
Adam Forde9ad49f2020-04-27 07:11:19 -0500741 crypto: crypto@30900000 {
742 compatible = "fsl,sec-v4.0";
743 #address-cells = <1>;
744 #size-cells = <1>;
745 reg = <0x30900000 0x40000>;
746 ranges = <0 0x30900000 0x40000>;
747 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
748 clocks = <&clk IMX8MM_CLK_AHB>,
749 <&clk IMX8MM_CLK_IPG_ROOT>;
750 clock-names = "aclk", "ipg";
751
752 sec_jr0: jr@1000 {
753 compatible = "fsl,sec-v4.0-job-ring";
754 reg = <0x1000 0x1000>;
755 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
756 };
757
758 sec_jr1: jr@2000 {
759 compatible = "fsl,sec-v4.0-job-ring";
760 reg = <0x2000 0x1000>;
761 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
762 };
763
764 sec_jr2: jr@3000 {
765 compatible = "fsl,sec-v4.0-job-ring";
766 reg = <0x3000 0x1000>;
767 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
768 };
769 };
770
Peng Fan8740b892019-08-27 06:26:01 +0000771 i2c1: i2c@30a20000 {
772 compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
773 #address-cells = <1>;
774 #size-cells = <0>;
775 reg = <0x30a20000 0x10000>;
776 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
777 clocks = <&clk IMX8MM_CLK_I2C1_ROOT>;
778 status = "disabled";
779 };
780
781 i2c2: i2c@30a30000 {
782 compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
783 #address-cells = <1>;
784 #size-cells = <0>;
785 reg = <0x30a30000 0x10000>;
786 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
787 clocks = <&clk IMX8MM_CLK_I2C2_ROOT>;
788 status = "disabled";
789 };
790
791 i2c3: i2c@30a40000 {
792 #address-cells = <1>;
793 #size-cells = <0>;
794 compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
795 reg = <0x30a40000 0x10000>;
796 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
797 clocks = <&clk IMX8MM_CLK_I2C3_ROOT>;
798 status = "disabled";
799 };
800
801 i2c4: i2c@30a50000 {
802 compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
803 #address-cells = <1>;
804 #size-cells = <0>;
805 reg = <0x30a50000 0x10000>;
806 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
807 clocks = <&clk IMX8MM_CLK_I2C4_ROOT>;
808 status = "disabled";
809 };
810
811 uart4: serial@30a60000 {
812 compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
813 reg = <0x30a60000 0x10000>;
814 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
815 clocks = <&clk IMX8MM_CLK_UART4_ROOT>,
816 <&clk IMX8MM_CLK_UART4_ROOT>;
817 clock-names = "ipg", "per";
818 dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
819 dma-names = "rx", "tx";
820 status = "disabled";
821 };
822
Adam Ford427454c2020-12-04 17:27:46 -0600823 mu: mailbox@30aa0000 {
824 compatible = "fsl,imx8mm-mu", "fsl,imx6sx-mu";
825 reg = <0x30aa0000 0x10000>;
826 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
827 clocks = <&clk IMX8MM_CLK_MU_ROOT>;
828 #mbox-cells = <2>;
829 };
830
Peng Fan8740b892019-08-27 06:26:01 +0000831 usdhc1: mmc@30b40000 {
832 compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
833 reg = <0x30b40000 0x10000>;
834 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000835 clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
Peng Fan8740b892019-08-27 06:26:01 +0000836 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
837 <&clk IMX8MM_CLK_USDHC1_ROOT>;
838 clock-names = "ipg", "ahb", "per";
Peng Fan8740b892019-08-27 06:26:01 +0000839 fsl,tuning-start-tap = <20>;
840 fsl,tuning-step= <2>;
841 bus-width = <4>;
842 status = "disabled";
843 };
844
845 usdhc2: mmc@30b50000 {
846 compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
847 reg = <0x30b50000 0x10000>;
848 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000849 clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
Peng Fan8740b892019-08-27 06:26:01 +0000850 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
851 <&clk IMX8MM_CLK_USDHC2_ROOT>;
852 clock-names = "ipg", "ahb", "per";
853 fsl,tuning-start-tap = <20>;
854 fsl,tuning-step= <2>;
855 bus-width = <4>;
856 status = "disabled";
857 };
858
859 usdhc3: mmc@30b60000 {
860 compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
861 reg = <0x30b60000 0x10000>;
862 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Peng Fanab93ef62019-10-16 10:24:30 +0000863 clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
Peng Fan8740b892019-08-27 06:26:01 +0000864 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
865 <&clk IMX8MM_CLK_USDHC3_ROOT>;
866 clock-names = "ipg", "ahb", "per";
Peng Fan8740b892019-08-27 06:26:01 +0000867 fsl,tuning-start-tap = <20>;
868 fsl,tuning-step= <2>;
869 bus-width = <4>;
870 status = "disabled";
871 };
872
Adam Ford427454c2020-12-04 17:27:46 -0600873 flexspi: spi@30bb0000 {
874 #address-cells = <1>;
875 #size-cells = <0>;
876 compatible = "nxp,imx8mm-fspi";
877 reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>;
878 reg-names = "fspi_base", "fspi_mmap";
879 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
880 clocks = <&clk IMX8MM_CLK_QSPI_ROOT>,
881 <&clk IMX8MM_CLK_QSPI_ROOT>;
882 clock-names = "fspi", "fspi_en";
883 status = "disabled";
884 };
885
Peng Fan8740b892019-08-27 06:26:01 +0000886 sdma1: dma-controller@30bd0000 {
Adam Forde9ad49f2020-04-27 07:11:19 -0500887 compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
Peng Fan8740b892019-08-27 06:26:01 +0000888 reg = <0x30bd0000 0x10000>;
889 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
890 clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
Adam Forde9ad49f2020-04-27 07:11:19 -0500891 <&clk IMX8MM_CLK_AHB>;
Peng Fan8740b892019-08-27 06:26:01 +0000892 clock-names = "ipg", "ahb";
893 #dma-cells = <3>;
894 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
895 };
896
897 fec1: ethernet@30be0000 {
898 compatible = "fsl,imx8mm-fec", "fsl,imx6sx-fec";
899 reg = <0x30be0000 0x10000>;
900 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
901 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
Adam Ford427454c2020-12-04 17:27:46 -0600902 <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
903 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Peng Fan8740b892019-08-27 06:26:01 +0000904 clocks = <&clk IMX8MM_CLK_ENET1_ROOT>,
905 <&clk IMX8MM_CLK_ENET1_ROOT>,
906 <&clk IMX8MM_CLK_ENET_TIMER>,
907 <&clk IMX8MM_CLK_ENET_REF>,
908 <&clk IMX8MM_CLK_ENET_PHY_REF>;
909 clock-names = "ipg", "ahb", "ptp",
910 "enet_clk_ref", "enet_out";
911 assigned-clocks = <&clk IMX8MM_CLK_ENET_AXI>,
912 <&clk IMX8MM_CLK_ENET_TIMER>,
913 <&clk IMX8MM_CLK_ENET_REF>,
914 <&clk IMX8MM_CLK_ENET_TIMER>;
915 assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>,
916 <&clk IMX8MM_SYS_PLL2_100M>,
917 <&clk IMX8MM_SYS_PLL2_125M>;
918 assigned-clock-rates = <0>, <0>, <125000000>, <100000000>;
919 fsl,num-tx-queues = <3>;
920 fsl,num-rx-queues = <3>;
921 status = "disabled";
922 };
923
924 };
925
926 aips4: bus@32c00000 {
Adam Ford427454c2020-12-04 17:27:46 -0600927 compatible = "fsl,aips-bus", "simple-bus";
928 reg = <0x32c00000 0x400000>;
Peng Fan8740b892019-08-27 06:26:01 +0000929 #address-cells = <1>;
930 #size-cells = <1>;
Peng Fanab93ef62019-10-16 10:24:30 +0000931 ranges = <0x32c00000 0x32c00000 0x400000>;
Peng Fan8740b892019-08-27 06:26:01 +0000932
933 usbotg1: usb@32e40000 {
934 compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
935 reg = <0x32e40000 0x200>;
936 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
937 clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
938 clock-names = "usb1_ctrl_root_clk";
Peng Fanab93ef62019-10-16 10:24:30 +0000939 assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
940 assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
Marek Vasut432e4df2021-03-31 11:47:25 +0200941 phys = <&usbphynop1>;
Peng Fan8740b892019-08-27 06:26:01 +0000942 fsl,usbmisc = <&usbmisc1 0>;
943 status = "disabled";
944 };
945
Peng Fan8740b892019-08-27 06:26:01 +0000946 usbmisc1: usbmisc@32e40200 {
947 compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
948 #index-cells = <1>;
949 reg = <0x32e40200 0x200>;
950 };
951
952 usbotg2: usb@32e50000 {
953 compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
954 reg = <0x32e50000 0x200>;
955 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
956 clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
957 clock-names = "usb1_ctrl_root_clk";
Peng Fanab93ef62019-10-16 10:24:30 +0000958 assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
959 assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
Marek Vasut432e4df2021-03-31 11:47:25 +0200960 phys = <&usbphynop2>;
Peng Fan8740b892019-08-27 06:26:01 +0000961 fsl,usbmisc = <&usbmisc2 0>;
962 status = "disabled";
963 };
964
Peng Fan8740b892019-08-27 06:26:01 +0000965 usbmisc2: usbmisc@32e50200 {
966 compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
967 #index-cells = <1>;
968 reg = <0x32e50200 0x200>;
969 };
970
971 };
972
973 dma_apbh: dma-controller@33000000 {
974 compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
975 reg = <0x33000000 0x2000>;
976 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
977 <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
978 <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
979 <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
980 interrupt-names = "gpmi0", "gpmi1", "gpmi2", "gpmi3";
981 #dma-cells = <1>;
982 dma-channels = <4>;
983 clocks = <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
984 };
985
986 gpmi: nand-controller@33002000{
987 compatible = "fsl,imx8mm-gpmi-nand", "fsl,imx7d-gpmi-nand";
988 #address-cells = <1>;
989 #size-cells = <1>;
990 reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
991 reg-names = "gpmi-nand", "bch";
992 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
993 interrupt-names = "bch";
994 clocks = <&clk IMX8MM_CLK_NAND_ROOT>,
995 <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
996 clock-names = "gpmi_io", "gpmi_bch_apb";
997 dmas = <&dma_apbh 0>;
998 dma-names = "rx-tx";
999 status = "disabled";
1000 };
Peng Fanab93ef62019-10-16 10:24:30 +00001001
1002 gic: interrupt-controller@38800000 {
1003 compatible = "arm,gic-v3";
1004 reg = <0x38800000 0x10000>, /* GIC Dist */
1005 <0x38880000 0xc0000>; /* GICR (RD_base + SGI_base) */
1006 #interrupt-cells = <3>;
1007 interrupt-controller;
1008 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
1009 };
1010
Adam Forde9ad49f2020-04-27 07:11:19 -05001011 ddrc: memory-controller@3d400000 {
1012 compatible = "fsl,imx8mm-ddrc", "fsl,imx8m-ddrc";
1013 reg = <0x3d400000 0x400000>;
1014 clock-names = "core", "pll", "alt", "apb";
1015 clocks = <&clk IMX8MM_CLK_DRAM_CORE>,
1016 <&clk IMX8MM_DRAM_PLL>,
1017 <&clk IMX8MM_CLK_DRAM_ALT>,
1018 <&clk IMX8MM_CLK_DRAM_APB>;
1019 };
1020
Peng Fanab93ef62019-10-16 10:24:30 +00001021 ddr-pmu@3d800000 {
1022 compatible = "fsl,imx8mm-ddr-pmu", "fsl,imx8m-ddr-pmu";
1023 reg = <0x3d800000 0x400000>;
Peng Fanab93ef62019-10-16 10:24:30 +00001024 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
1025 };
Peng Fan8740b892019-08-27 06:26:01 +00001026 };
1027};