1// 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/power/imx8mm-power.h>
11#include <dt-bindings/reset/imx8mq-reset.h>
12#include <dt-bindings/thermal/thermal.h>
13
14#include "imx8mm-pinfunc.h"
15
16/ {
17	interrupt-parent = <&gic>;
18	#address-cells = <2>;
19	#size-cells = <2>;
20
21	aliases {
22		ethernet0 = &fec1;
23		gpio0 = &gpio1;
24		gpio1 = &gpio2;
25		gpio2 = &gpio3;
26		gpio3 = &gpio4;
27		gpio4 = &gpio5;
28		i2c0 = &i2c1;
29		i2c1 = &i2c2;
30		i2c2 = &i2c3;
31		i2c3 = &i2c4;
32		mmc0 = &usdhc1;
33		mmc1 = &usdhc2;
34		mmc2 = &usdhc3;
35		serial0 = &uart1;
36		serial1 = &uart2;
37		serial2 = &uart3;
38		serial3 = &uart4;
39		spi0 = &ecspi1;
40		spi1 = &ecspi2;
41		spi2 = &ecspi3;
42	};
43
44	cpus {
45		#address-cells = <1>;
46		#size-cells = <0>;
47
48		idle-states {
49			entry-method = "psci";
50
51			cpu_pd_wait: cpu-pd-wait {
52				compatible = "arm,idle-state";
53				arm,psci-suspend-param = <0x0010033>;
54				local-timer-stop;
55				entry-latency-us = <1000>;
56				exit-latency-us = <700>;
57				min-residency-us = <2700>;
58			};
59		};
60
61		A53_0: cpu@0 {
62			device_type = "cpu";
63			compatible = "arm,cortex-a53";
64			reg = <0x0>;
65			clock-latency = <61036>; /* two CLK32 periods */
66			clocks = <&clk IMX8MM_CLK_ARM>;
67			enable-method = "psci";
68			i-cache-size = <0x8000>;
69			i-cache-line-size = <64>;
70			i-cache-sets = <256>;
71			d-cache-size = <0x8000>;
72			d-cache-line-size = <64>;
73			d-cache-sets = <128>;
74			next-level-cache = <&A53_L2>;
75			operating-points-v2 = <&a53_opp_table>;
76			nvmem-cells = <&cpu_speed_grade>;
77			nvmem-cell-names = "speed_grade";
78			cpu-idle-states = <&cpu_pd_wait>;
79			#cooling-cells = <2>;
80		};
81
82		A53_1: cpu@1 {
83			device_type = "cpu";
84			compatible = "arm,cortex-a53";
85			reg = <0x1>;
86			clock-latency = <61036>; /* two CLK32 periods */
87			clocks = <&clk IMX8MM_CLK_ARM>;
88			enable-method = "psci";
89			i-cache-size = <0x8000>;
90			i-cache-line-size = <64>;
91			i-cache-sets = <256>;
92			d-cache-size = <0x8000>;
93			d-cache-line-size = <64>;
94			d-cache-sets = <128>;
95			next-level-cache = <&A53_L2>;
96			operating-points-v2 = <&a53_opp_table>;
97			cpu-idle-states = <&cpu_pd_wait>;
98			#cooling-cells = <2>;
99		};
100
101		A53_2: cpu@2 {
102			device_type = "cpu";
103			compatible = "arm,cortex-a53";
104			reg = <0x2>;
105			clock-latency = <61036>; /* two CLK32 periods */
106			clocks = <&clk IMX8MM_CLK_ARM>;
107			enable-method = "psci";
108			i-cache-size = <0x8000>;
109			i-cache-line-size = <64>;
110			i-cache-sets = <256>;
111			d-cache-size = <0x8000>;
112			d-cache-line-size = <64>;
113			d-cache-sets = <128>;
114			next-level-cache = <&A53_L2>;
115			operating-points-v2 = <&a53_opp_table>;
116			cpu-idle-states = <&cpu_pd_wait>;
117			#cooling-cells = <2>;
118		};
119
120		A53_3: cpu@3 {
121			device_type = "cpu";
122			compatible = "arm,cortex-a53";
123			reg = <0x3>;
124			clock-latency = <61036>; /* two CLK32 periods */
125			clocks = <&clk IMX8MM_CLK_ARM>;
126			enable-method = "psci";
127			i-cache-size = <0x8000>;
128			i-cache-line-size = <64>;
129			i-cache-sets = <256>;
130			d-cache-size = <0x8000>;
131			d-cache-line-size = <64>;
132			d-cache-sets = <128>;
133			next-level-cache = <&A53_L2>;
134			operating-points-v2 = <&a53_opp_table>;
135			cpu-idle-states = <&cpu_pd_wait>;
136			#cooling-cells = <2>;
137		};
138
139		A53_L2: l2-cache0 {
140			compatible = "cache";
141			cache-level = <2>;
142			cache-size = <0x80000>;
143			cache-line-size = <64>;
144			cache-sets = <512>;
145		};
146	};
147
148	a53_opp_table: opp-table {
149		compatible = "operating-points-v2";
150		opp-shared;
151
152		opp-1200000000 {
153			opp-hz = /bits/ 64 <1200000000>;
154			opp-microvolt = <850000>;
155			opp-supported-hw = <0xe>, <0x7>;
156			clock-latency-ns = <150000>;
157			opp-suspend;
158		};
159
160		opp-1600000000 {
161			opp-hz = /bits/ 64 <1600000000>;
162			opp-microvolt = <950000>;
163			opp-supported-hw = <0xc>, <0x7>;
164			clock-latency-ns = <150000>;
165			opp-suspend;
166		};
167
168		opp-1800000000 {
169			opp-hz = /bits/ 64 <1800000000>;
170			opp-microvolt = <1000000>;
171			opp-supported-hw = <0x8>, <0x3>;
172			clock-latency-ns = <150000>;
173			opp-suspend;
174		};
175	};
176
177	osc_32k: clock-osc-32k {
178		compatible = "fixed-clock";
179		#clock-cells = <0>;
180		clock-frequency = <32768>;
181		clock-output-names = "osc_32k";
182	};
183
184	osc_24m: clock-osc-24m {
185		compatible = "fixed-clock";
186		#clock-cells = <0>;
187		clock-frequency = <24000000>;
188		clock-output-names = "osc_24m";
189	};
190
191	clk_ext1: clock-ext1 {
192		compatible = "fixed-clock";
193		#clock-cells = <0>;
194		clock-frequency = <133000000>;
195		clock-output-names = "clk_ext1";
196	};
197
198	clk_ext2: clock-ext2 {
199		compatible = "fixed-clock";
200		#clock-cells = <0>;
201		clock-frequency = <133000000>;
202		clock-output-names = "clk_ext2";
203	};
204
205	clk_ext3: clock-ext3 {
206		compatible = "fixed-clock";
207		#clock-cells = <0>;
208		clock-frequency = <133000000>;
209		clock-output-names = "clk_ext3";
210	};
211
212	clk_ext4: clock-ext4 {
213		compatible = "fixed-clock";
214		#clock-cells = <0>;
215		clock-frequency= <133000000>;
216		clock-output-names = "clk_ext4";
217	};
218
219	psci {
220		compatible = "arm,psci-1.0";
221		method = "smc";
222	};
223
224	pmu {
225		compatible = "arm,cortex-a53-pmu";
226		interrupts = <GIC_PPI 7
227			     (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
228	};
229
230	timer {
231		compatible = "arm,armv8-timer";
232		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Secure */
233			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Non-Secure */
234			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Virtual */
235			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; /* Hypervisor */
236		clock-frequency = <8000000>;
237		arm,no-tick-in-suspend;
238	};
239
240	thermal-zones {
241		cpu-thermal {
242			polling-delay-passive = <250>;
243			polling-delay = <2000>;
244			thermal-sensors = <&tmu>;
245			trips {
246				cpu_alert0: trip0 {
247					temperature = <85000>;
248					hysteresis = <2000>;
249					type = "passive";
250				};
251
252				cpu_crit0: trip1 {
253					temperature = <95000>;
254					hysteresis = <2000>;
255					type = "critical";
256				};
257			};
258
259			cooling-maps {
260				map0 {
261					trip = <&cpu_alert0>;
262					cooling-device =
263						<&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
264						<&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
265						<&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
266						<&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
267				};
268			};
269		};
270	};
271
272	usbphynop1: usbphynop1 {
273		#phy-cells = <0>;
274		compatible = "usb-nop-xceiv";
275		clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
276		assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
277		assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
278		clock-names = "main_clk";
279	};
280
281	usbphynop2: usbphynop2 {
282		#phy-cells = <0>;
283		compatible = "usb-nop-xceiv";
284		clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
285		assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
286		assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
287		clock-names = "main_clk";
288	};
289
290	soc@0 {
291		compatible = "fsl,imx8mm-soc", "simple-bus";
292		#address-cells = <1>;
293		#size-cells = <1>;
294		ranges = <0x0 0x0 0x0 0x3e000000>;
295		dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>;
296		nvmem-cells = <&imx8mm_uid>;
297		nvmem-cell-names = "soc_unique_id";
298
299		aips1: bus@30000000 {
300			compatible = "fsl,aips-bus", "simple-bus";
301			reg = <0x30000000 0x400000>;
302			#address-cells = <1>;
303			#size-cells = <1>;
304			ranges = <0x30000000 0x30000000 0x400000>;
305
306			spba2: spba-bus@30000000 {
307				compatible = "fsl,spba-bus", "simple-bus";
308				#address-cells = <1>;
309				#size-cells = <1>;
310				reg = <0x30000000 0x100000>;
311				ranges;
312
313				sai1: sai@30010000 {
314					#sound-dai-cells = <0>;
315					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
316					reg = <0x30010000 0x10000>;
317					interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
318					clocks = <&clk IMX8MM_CLK_SAI1_IPG>,
319						 <&clk IMX8MM_CLK_SAI1_ROOT>,
320						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
321					clock-names = "bus", "mclk1", "mclk2", "mclk3";
322					dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
323					dma-names = "rx", "tx";
324					status = "disabled";
325				};
326
327				sai2: sai@30020000 {
328					#sound-dai-cells = <0>;
329					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
330					reg = <0x30020000 0x10000>;
331					interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
332					clocks = <&clk IMX8MM_CLK_SAI2_IPG>,
333						<&clk IMX8MM_CLK_SAI2_ROOT>,
334						<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
335					clock-names = "bus", "mclk1", "mclk2", "mclk3";
336					dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>;
337					dma-names = "rx", "tx";
338					status = "disabled";
339				};
340
341				sai3: sai@30030000 {
342					#sound-dai-cells = <0>;
343					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
344					reg = <0x30030000 0x10000>;
345					interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
346					clocks = <&clk IMX8MM_CLK_SAI3_IPG>,
347						 <&clk IMX8MM_CLK_SAI3_ROOT>,
348						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
349					clock-names = "bus", "mclk1", "mclk2", "mclk3";
350					dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>;
351					dma-names = "rx", "tx";
352					status = "disabled";
353				};
354
355				sai5: sai@30050000 {
356					#sound-dai-cells = <0>;
357					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
358					reg = <0x30050000 0x10000>;
359					interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
360					clocks = <&clk IMX8MM_CLK_SAI5_IPG>,
361						 <&clk IMX8MM_CLK_SAI5_ROOT>,
362						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
363					clock-names = "bus", "mclk1", "mclk2", "mclk3";
364					dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>;
365					dma-names = "rx", "tx";
366					status = "disabled";
367				};
368
369				sai6: sai@30060000 {
370					#sound-dai-cells = <0>;
371					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
372					reg = <0x30060000 0x10000>;
373					interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
374					clocks = <&clk IMX8MM_CLK_SAI6_IPG>,
375						 <&clk IMX8MM_CLK_SAI6_ROOT>,
376						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
377					clock-names = "bus", "mclk1", "mclk2", "mclk3";
378					dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>;
379					dma-names = "rx", "tx";
380					status = "disabled";
381				};
382
383				micfil: audio-controller@30080000 {
384					compatible = "fsl,imx8mm-micfil";
385					reg = <0x30080000 0x10000>;
386					interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
387						     <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
388						     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
389						     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
390					clocks = <&clk IMX8MM_CLK_PDM_IPG>,
391						 <&clk IMX8MM_CLK_PDM_ROOT>,
392						 <&clk IMX8MM_AUDIO_PLL1_OUT>,
393						 <&clk IMX8MM_AUDIO_PLL2_OUT>,
394						 <&clk IMX8MM_CLK_EXT3>;
395					clock-names = "ipg_clk", "ipg_clk_app",
396						      "pll8k", "pll11k", "clkext3";
397					dmas = <&sdma2 24 25 0x80000000>;
398					dma-names = "rx";
399					status = "disabled";
400				};
401
402				spdif1: spdif@30090000 {
403					compatible = "fsl,imx35-spdif";
404					reg = <0x30090000 0x10000>;
405					interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
406					clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, /* core */
407						 <&clk IMX8MM_CLK_24M>, /* rxtx0 */
408						 <&clk IMX8MM_CLK_SPDIF1>, /* rxtx1 */
409						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx2 */
410						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx3 */
411						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx4 */
412						 <&clk IMX8MM_CLK_AUDIO_AHB>, /* rxtx5 */
413						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx6 */
414						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx7 */
415						 <&clk IMX8MM_CLK_DUMMY>; /* spba */
416					clock-names = "core", "rxtx0",
417						      "rxtx1", "rxtx2",
418						      "rxtx3", "rxtx4",
419						      "rxtx5", "rxtx6",
420						      "rxtx7", "spba";
421					dmas = <&sdma2 28 18 0>, <&sdma2 29 18 0>;
422					dma-names = "rx", "tx";
423					status = "disabled";
424				};
425			};
426
427			gpio1: gpio@30200000 {
428				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
429				reg = <0x30200000 0x10000>;
430				interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
431					     <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
432				clocks = <&clk IMX8MM_CLK_GPIO1_ROOT>;
433				gpio-controller;
434				#gpio-cells = <2>;
435				interrupt-controller;
436				#interrupt-cells = <2>;
437				gpio-ranges = <&iomuxc 0 10 30>;
438			};
439
440			gpio2: gpio@30210000 {
441				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
442				reg = <0x30210000 0x10000>;
443				interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
444					     <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
445				clocks = <&clk IMX8MM_CLK_GPIO2_ROOT>;
446				gpio-controller;
447				#gpio-cells = <2>;
448				interrupt-controller;
449				#interrupt-cells = <2>;
450				gpio-ranges = <&iomuxc 0 40 21>;
451			};
452
453			gpio3: gpio@30220000 {
454				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
455				reg = <0x30220000 0x10000>;
456				interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
457					     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
458				clocks = <&clk IMX8MM_CLK_GPIO3_ROOT>;
459				gpio-controller;
460				#gpio-cells = <2>;
461				interrupt-controller;
462				#interrupt-cells = <2>;
463				gpio-ranges = <&iomuxc 0 61 26>;
464			};
465
466			gpio4: gpio@30230000 {
467				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
468				reg = <0x30230000 0x10000>;
469				interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
470					     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
471				clocks = <&clk IMX8MM_CLK_GPIO4_ROOT>;
472				gpio-controller;
473				#gpio-cells = <2>;
474				interrupt-controller;
475				#interrupt-cells = <2>;
476				gpio-ranges = <&iomuxc 0 87 32>;
477			};
478
479			gpio5: gpio@30240000 {
480				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
481				reg = <0x30240000 0x10000>;
482				interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
483					     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
484				clocks = <&clk IMX8MM_CLK_GPIO5_ROOT>;
485				gpio-controller;
486				#gpio-cells = <2>;
487				interrupt-controller;
488				#interrupt-cells = <2>;
489				gpio-ranges = <&iomuxc 0 119 30>;
490			};
491
492			tmu: tmu@30260000 {
493				compatible = "fsl,imx8mm-tmu";
494				reg = <0x30260000 0x10000>;
495				clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
496				#thermal-sensor-cells = <0>;
497			};
498
499			wdog1: watchdog@30280000 {
500				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
501				reg = <0x30280000 0x10000>;
502				interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
503				clocks = <&clk IMX8MM_CLK_WDOG1_ROOT>;
504				status = "disabled";
505			};
506
507			wdog2: watchdog@30290000 {
508				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
509				reg = <0x30290000 0x10000>;
510				interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
511				clocks = <&clk IMX8MM_CLK_WDOG2_ROOT>;
512				status = "disabled";
513			};
514
515			wdog3: watchdog@302a0000 {
516				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
517				reg = <0x302a0000 0x10000>;
518				interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
519				clocks = <&clk IMX8MM_CLK_WDOG3_ROOT>;
520				status = "disabled";
521			};
522
523			sdma2: dma-controller@302c0000 {
524				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
525				reg = <0x302c0000 0x10000>;
526				interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
527				clocks = <&clk IMX8MM_CLK_SDMA2_ROOT>,
528					 <&clk IMX8MM_CLK_SDMA2_ROOT>;
529				clock-names = "ipg", "ahb";
530				#dma-cells = <3>;
531				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
532			};
533
534			sdma3: dma-controller@302b0000 {
535				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
536				reg = <0x302b0000 0x10000>;
537				interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
538				clocks = <&clk IMX8MM_CLK_SDMA3_ROOT>,
539				 <&clk IMX8MM_CLK_SDMA3_ROOT>;
540				clock-names = "ipg", "ahb";
541				#dma-cells = <3>;
542				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
543			};
544
545			iomuxc: pinctrl@30330000 {
546				compatible = "fsl,imx8mm-iomuxc";
547				reg = <0x30330000 0x10000>;
548			};
549
550			gpr: iomuxc-gpr@30340000 {
551				compatible = "fsl,imx8mm-iomuxc-gpr", "syscon";
552				reg = <0x30340000 0x10000>;
553			};
554
555			ocotp: efuse@30350000 {
556				compatible = "fsl,imx8mm-ocotp", "syscon";
557				reg = <0x30350000 0x10000>;
558				clocks = <&clk IMX8MM_CLK_OCOTP_ROOT>;
559				/* For nvmem subnodes */
560				#address-cells = <1>;
561				#size-cells = <1>;
562
563				imx8mm_uid: unique-id@410 {
564					reg = <0x4 0x8>;
565				};
566
567				cpu_speed_grade: speed-grade@10 {
568					reg = <0x10 4>;
569				};
570
571				fec_mac_address: mac-address@90 {
572					reg = <0x90 6>;
573				};
574			};
575
576			anatop: anatop@30360000 {
577				compatible = "fsl,imx8mm-anatop", "syscon";
578				reg = <0x30360000 0x10000>;
579			};
580
581			snvs: snvs@30370000 {
582				compatible = "fsl,sec-v4.0-mon","syscon", "simple-mfd";
583				reg = <0x30370000 0x10000>;
584
585				snvs_rtc: snvs-rtc-lp {
586					compatible = "fsl,sec-v4.0-mon-rtc-lp";
587					regmap = <&snvs>;
588					offset = <0x34>;
589					interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
590						     <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
591					clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
592					clock-names = "snvs-rtc";
593				};
594
595				snvs_pwrkey: snvs-powerkey {
596					compatible = "fsl,sec-v4.0-pwrkey";
597					regmap = <&snvs>;
598					interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
599					clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
600					clock-names = "snvs-pwrkey";
601					linux,keycode = <KEY_POWER>;
602					wakeup-source;
603					status = "disabled";
604				};
605			};
606
607			clk: clock-controller@30380000 {
608				compatible = "fsl,imx8mm-ccm";
609				reg = <0x30380000 0x10000>;
610				#clock-cells = <1>;
611				clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>,
612					 <&clk_ext3>, <&clk_ext4>;
613				clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2",
614					      "clk_ext3", "clk_ext4";
615				assigned-clocks = <&clk IMX8MM_CLK_A53_SRC>,
616						<&clk IMX8MM_CLK_A53_CORE>,
617						<&clk IMX8MM_CLK_NOC>,
618						<&clk IMX8MM_CLK_AUDIO_AHB>,
619						<&clk IMX8MM_CLK_IPG_AUDIO_ROOT>,
620						<&clk IMX8MM_SYS_PLL3>,
621						<&clk IMX8MM_VIDEO_PLL1>,
622						<&clk IMX8MM_AUDIO_PLL1>;
623				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>,
624							 <&clk IMX8MM_ARM_PLL_OUT>,
625							 <&clk IMX8MM_SYS_PLL3_OUT>,
626							 <&clk IMX8MM_SYS_PLL1_800M>;
627				assigned-clock-rates = <0>, <0>, <0>,
628							<400000000>,
629							<400000000>,
630							<750000000>,
631							<594000000>,
632							<393216000>;
633			};
634
635			src: reset-controller@30390000 {
636				compatible = "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon";
637				reg = <0x30390000 0x10000>;
638				interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
639				#reset-cells = <1>;
640			};
641
642			gpc: gpc@303a0000 {
643				compatible = "fsl,imx8mm-gpc";
644				reg = <0x303a0000 0x10000>;
645				interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
646				interrupt-parent = <&gic>;
647				interrupt-controller;
648				#interrupt-cells = <3>;
649
650				pgc {
651					#address-cells = <1>;
652					#size-cells = <0>;
653
654					pgc_hsiomix: power-domain@0 {
655						#power-domain-cells = <0>;
656						reg = <IMX8MM_POWER_DOMAIN_HSIOMIX>;
657						clocks = <&clk IMX8MM_CLK_USB_BUS>;
658						assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
659						assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
660					};
661
662					pgc_pcie: power-domain@1 {
663						#power-domain-cells = <0>;
664						reg = <IMX8MM_POWER_DOMAIN_PCIE>;
665						power-domains = <&pgc_hsiomix>;
666						clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>;
667					};
668
669					pgc_otg1: power-domain@2 {
670						#power-domain-cells = <0>;
671						reg = <IMX8MM_POWER_DOMAIN_OTG1>;
672						power-domains = <&pgc_hsiomix>;
673					};
674
675					pgc_otg2: power-domain@3 {
676						#power-domain-cells = <0>;
677						reg = <IMX8MM_POWER_DOMAIN_OTG2>;
678						power-domains = <&pgc_hsiomix>;
679					};
680
681					pgc_gpumix: power-domain@4 {
682						#power-domain-cells = <0>;
683						reg = <IMX8MM_POWER_DOMAIN_GPUMIX>;
684						clocks = <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
685							 <&clk IMX8MM_CLK_GPU_AHB>;
686						assigned-clocks = <&clk IMX8MM_CLK_GPU_AXI>,
687								  <&clk IMX8MM_CLK_GPU_AHB>;
688						assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>,
689									 <&clk IMX8MM_SYS_PLL1_800M>;
690						assigned-clock-rates = <800000000>, <400000000>;
691					};
692
693					pgc_gpu: power-domain@5 {
694						#power-domain-cells = <0>;
695						reg = <IMX8MM_POWER_DOMAIN_GPU>;
696						clocks = <&clk IMX8MM_CLK_GPU_AHB>,
697							 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
698							 <&clk IMX8MM_CLK_GPU2D_ROOT>,
699							 <&clk IMX8MM_CLK_GPU3D_ROOT>;
700						resets = <&src IMX8MQ_RESET_GPU_RESET>;
701						power-domains = <&pgc_gpumix>;
702					};
703
704					pgc_vpumix: power-domain@6 {
705						#power-domain-cells = <0>;
706						reg = <IMX8MM_POWER_DOMAIN_VPUMIX>;
707						clocks = <&clk IMX8MM_CLK_VPU_DEC_ROOT>;
708						assigned-clocks = <&clk IMX8MM_CLK_VPU_BUS>;
709						assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>;
710						resets = <&src IMX8MQ_RESET_VPU_RESET>;
711					};
712
713					pgc_vpu_g1: power-domain@7 {
714						#power-domain-cells = <0>;
715						reg = <IMX8MM_POWER_DOMAIN_VPUG1>;
716					};
717
718					pgc_vpu_g2: power-domain@8 {
719						#power-domain-cells = <0>;
720						reg = <IMX8MM_POWER_DOMAIN_VPUG2>;
721					};
722
723					pgc_vpu_h1: power-domain@9 {
724						#power-domain-cells = <0>;
725						reg = <IMX8MM_POWER_DOMAIN_VPUH1>;
726					};
727
728					pgc_dispmix: power-domain@10 {
729						#power-domain-cells = <0>;
730						reg = <IMX8MM_POWER_DOMAIN_DISPMIX>;
731						clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
732							 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
733						assigned-clocks = <&clk IMX8MM_CLK_DISP_AXI>,
734								  <&clk IMX8MM_CLK_DISP_APB>;
735						assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
736									 <&clk IMX8MM_SYS_PLL1_800M>;
737						assigned-clock-rates = <500000000>, <200000000>;
738					};
739
740					pgc_mipi: power-domain@11 {
741						#power-domain-cells = <0>;
742						reg = <IMX8MM_POWER_DOMAIN_MIPI>;
743					};
744				};
745			};
746		};
747
748		aips2: bus@30400000 {
749			compatible = "fsl,aips-bus", "simple-bus";
750			reg = <0x30400000 0x400000>;
751			#address-cells = <1>;
752			#size-cells = <1>;
753			ranges = <0x30400000 0x30400000 0x400000>;
754
755			pwm1: pwm@30660000 {
756				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
757				reg = <0x30660000 0x10000>;
758				interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
759				clocks = <&clk IMX8MM_CLK_PWM1_ROOT>,
760					<&clk IMX8MM_CLK_PWM1_ROOT>;
761				clock-names = "ipg", "per";
762				#pwm-cells = <2>;
763				status = "disabled";
764			};
765
766			pwm2: pwm@30670000 {
767				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
768				reg = <0x30670000 0x10000>;
769				interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
770				clocks = <&clk IMX8MM_CLK_PWM2_ROOT>,
771					 <&clk IMX8MM_CLK_PWM2_ROOT>;
772				clock-names = "ipg", "per";
773				#pwm-cells = <2>;
774				status = "disabled";
775			};
776
777			pwm3: pwm@30680000 {
778				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
779				reg = <0x30680000 0x10000>;
780				interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
781				clocks = <&clk IMX8MM_CLK_PWM3_ROOT>,
782					 <&clk IMX8MM_CLK_PWM3_ROOT>;
783				clock-names = "ipg", "per";
784				#pwm-cells = <2>;
785				status = "disabled";
786			};
787
788			pwm4: pwm@30690000 {
789				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
790				reg = <0x30690000 0x10000>;
791				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
792				clocks = <&clk IMX8MM_CLK_PWM4_ROOT>,
793					 <&clk IMX8MM_CLK_PWM4_ROOT>;
794				clock-names = "ipg", "per";
795				#pwm-cells = <2>;
796				status = "disabled";
797			};
798
799			system_counter: timer@306a0000 {
800				compatible = "nxp,sysctr-timer";
801				reg = <0x306a0000 0x20000>;
802				interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
803				clocks = <&osc_24m>;
804				clock-names = "per";
805			};
806		};
807
808		aips3: bus@30800000 {
809			compatible = "fsl,aips-bus", "simple-bus";
810			reg = <0x30800000 0x400000>;
811			#address-cells = <1>;
812			#size-cells = <1>;
813			ranges = <0x30800000 0x30800000 0x400000>,
814				 <0x8000000 0x8000000 0x10000000>;
815
816			spba1: spba-bus@30800000 {
817				compatible = "fsl,spba-bus", "simple-bus";
818				#address-cells = <1>;
819				#size-cells = <1>;
820				reg = <0x30800000 0x100000>;
821				ranges;
822
823				ecspi1: spi@30820000 {
824					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
825					#address-cells = <1>;
826					#size-cells = <0>;
827					reg = <0x30820000 0x10000>;
828					interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
829					clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>,
830						 <&clk IMX8MM_CLK_ECSPI1_ROOT>;
831					clock-names = "ipg", "per";
832					dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>;
833					dma-names = "rx", "tx";
834					status = "disabled";
835				};
836
837				ecspi2: spi@30830000 {
838					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
839					#address-cells = <1>;
840					#size-cells = <0>;
841					reg = <0x30830000 0x10000>;
842					interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
843					clocks = <&clk IMX8MM_CLK_ECSPI2_ROOT>,
844						 <&clk IMX8MM_CLK_ECSPI2_ROOT>;
845					clock-names = "ipg", "per";
846					dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>;
847					dma-names = "rx", "tx";
848					status = "disabled";
849				};
850
851				ecspi3: spi@30840000 {
852					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
853					#address-cells = <1>;
854					#size-cells = <0>;
855					reg = <0x30840000 0x10000>;
856					interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
857					clocks = <&clk IMX8MM_CLK_ECSPI3_ROOT>,
858						 <&clk IMX8MM_CLK_ECSPI3_ROOT>;
859					clock-names = "ipg", "per";
860					dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>;
861					dma-names = "rx", "tx";
862					status = "disabled";
863				};
864
865				uart1: serial@30860000 {
866					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
867					reg = <0x30860000 0x10000>;
868					interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
869					clocks = <&clk IMX8MM_CLK_UART1_ROOT>,
870						 <&clk IMX8MM_CLK_UART1_ROOT>;
871					clock-names = "ipg", "per";
872					dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
873					dma-names = "rx", "tx";
874					status = "disabled";
875				};
876
877				uart3: serial@30880000 {
878					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
879					reg = <0x30880000 0x10000>;
880					interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
881					clocks = <&clk IMX8MM_CLK_UART3_ROOT>,
882						 <&clk IMX8MM_CLK_UART3_ROOT>;
883					clock-names = "ipg", "per";
884					dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>;
885					dma-names = "rx", "tx";
886					status = "disabled";
887				};
888
889				uart2: serial@30890000 {
890					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
891					reg = <0x30890000 0x10000>;
892					interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
893					clocks = <&clk IMX8MM_CLK_UART2_ROOT>,
894						 <&clk IMX8MM_CLK_UART2_ROOT>;
895					clock-names = "ipg", "per";
896					status = "disabled";
897				};
898			};
899
900			crypto: crypto@30900000 {
901				compatible = "fsl,sec-v4.0";
902				#address-cells = <1>;
903				#size-cells = <1>;
904				reg = <0x30900000 0x40000>;
905				ranges = <0 0x30900000 0x40000>;
906				interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
907				clocks = <&clk IMX8MM_CLK_AHB>,
908					 <&clk IMX8MM_CLK_IPG_ROOT>;
909				clock-names = "aclk", "ipg";
910
911				sec_jr0: jr@1000 {
912					compatible = "fsl,sec-v4.0-job-ring";
913					reg = <0x1000 0x1000>;
914					interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
915				};
916
917				sec_jr1: jr@2000 {
918					compatible = "fsl,sec-v4.0-job-ring";
919					reg = <0x2000 0x1000>;
920					interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
921				};
922
923				sec_jr2: jr@3000 {
924					compatible = "fsl,sec-v4.0-job-ring";
925					reg = <0x3000 0x1000>;
926					interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
927				};
928			};
929
930			i2c1: i2c@30a20000 {
931				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
932				#address-cells = <1>;
933				#size-cells = <0>;
934				reg = <0x30a20000 0x10000>;
935				interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
936				clocks = <&clk IMX8MM_CLK_I2C1_ROOT>;
937				status = "disabled";
938			};
939
940			i2c2: i2c@30a30000 {
941				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
942				#address-cells = <1>;
943				#size-cells = <0>;
944				reg = <0x30a30000 0x10000>;
945				interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
946				clocks = <&clk IMX8MM_CLK_I2C2_ROOT>;
947				status = "disabled";
948			};
949
950			i2c3: i2c@30a40000 {
951				#address-cells = <1>;
952				#size-cells = <0>;
953				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
954				reg = <0x30a40000 0x10000>;
955				interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
956				clocks = <&clk IMX8MM_CLK_I2C3_ROOT>;
957				status = "disabled";
958			};
959
960			i2c4: i2c@30a50000 {
961				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
962				#address-cells = <1>;
963				#size-cells = <0>;
964				reg = <0x30a50000 0x10000>;
965				interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
966				clocks = <&clk IMX8MM_CLK_I2C4_ROOT>;
967				status = "disabled";
968			};
969
970			uart4: serial@30a60000 {
971				compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
972				reg = <0x30a60000 0x10000>;
973				interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
974				clocks = <&clk IMX8MM_CLK_UART4_ROOT>,
975					 <&clk IMX8MM_CLK_UART4_ROOT>;
976				clock-names = "ipg", "per";
977				dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
978				dma-names = "rx", "tx";
979				status = "disabled";
980			};
981
982			mu: mailbox@30aa0000 {
983				compatible = "fsl,imx8mm-mu", "fsl,imx6sx-mu";
984				reg = <0x30aa0000 0x10000>;
985				interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
986				clocks = <&clk IMX8MM_CLK_MU_ROOT>;
987				#mbox-cells = <2>;
988			};
989
990			usdhc1: mmc@30b40000 {
991				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
992				reg = <0x30b40000 0x10000>;
993				interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
994				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
995					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
996					 <&clk IMX8MM_CLK_USDHC1_ROOT>;
997				clock-names = "ipg", "ahb", "per";
998				fsl,tuning-start-tap = <20>;
999				fsl,tuning-step= <2>;
1000				bus-width = <4>;
1001				status = "disabled";
1002			};
1003
1004			usdhc2: mmc@30b50000 {
1005				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1006				reg = <0x30b50000 0x10000>;
1007				interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
1008				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1009					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1010					 <&clk IMX8MM_CLK_USDHC2_ROOT>;
1011				clock-names = "ipg", "ahb", "per";
1012				fsl,tuning-start-tap = <20>;
1013				fsl,tuning-step= <2>;
1014				bus-width = <4>;
1015				status = "disabled";
1016			};
1017
1018			usdhc3: mmc@30b60000 {
1019				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1020				reg = <0x30b60000 0x10000>;
1021				interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1022				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1023					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1024					 <&clk IMX8MM_CLK_USDHC3_ROOT>;
1025				clock-names = "ipg", "ahb", "per";
1026				fsl,tuning-start-tap = <20>;
1027				fsl,tuning-step= <2>;
1028				bus-width = <4>;
1029				status = "disabled";
1030			};
1031
1032			flexspi: spi@30bb0000 {
1033				#address-cells = <1>;
1034				#size-cells = <0>;
1035				compatible = "nxp,imx8mm-fspi";
1036				reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>;
1037				reg-names = "fspi_base", "fspi_mmap";
1038				interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
1039				clocks = <&clk IMX8MM_CLK_QSPI_ROOT>,
1040					 <&clk IMX8MM_CLK_QSPI_ROOT>;
1041				clock-names = "fspi_en", "fspi";
1042				status = "disabled";
1043			};
1044
1045			sdma1: dma-controller@30bd0000 {
1046				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
1047				reg = <0x30bd0000 0x10000>;
1048				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1049				clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
1050					 <&clk IMX8MM_CLK_AHB>;
1051				clock-names = "ipg", "ahb";
1052				#dma-cells = <3>;
1053				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
1054			};
1055
1056			fec1: ethernet@30be0000 {
1057				compatible = "fsl,imx8mm-fec", "fsl,imx8mq-fec", "fsl,imx6sx-fec";
1058				reg = <0x30be0000 0x10000>;
1059				interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
1060					     <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
1061					     <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
1062					     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
1063				clocks = <&clk IMX8MM_CLK_ENET1_ROOT>,
1064					 <&clk IMX8MM_CLK_ENET1_ROOT>,
1065					 <&clk IMX8MM_CLK_ENET_TIMER>,
1066					 <&clk IMX8MM_CLK_ENET_REF>,
1067					 <&clk IMX8MM_CLK_ENET_PHY_REF>;
1068				clock-names = "ipg", "ahb", "ptp",
1069					      "enet_clk_ref", "enet_out";
1070				assigned-clocks = <&clk IMX8MM_CLK_ENET_AXI>,
1071						  <&clk IMX8MM_CLK_ENET_TIMER>,
1072						  <&clk IMX8MM_CLK_ENET_REF>,
1073						  <&clk IMX8MM_CLK_ENET_PHY_REF>;
1074				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>,
1075							 <&clk IMX8MM_SYS_PLL2_100M>,
1076							 <&clk IMX8MM_SYS_PLL2_125M>,
1077							 <&clk IMX8MM_SYS_PLL2_50M>;
1078				assigned-clock-rates = <0>, <100000000>, <125000000>, <0>;
1079				fsl,num-tx-queues = <3>;
1080				fsl,num-rx-queues = <3>;
1081				nvmem-cells = <&fec_mac_address>;
1082				nvmem-cell-names = "mac-address";
1083				fsl,stop-mode = <&gpr 0x10 3>;
1084				status = "disabled";
1085			};
1086
1087		};
1088
1089		aips4: bus@32c00000 {
1090			compatible = "fsl,aips-bus", "simple-bus";
1091			reg = <0x32c00000 0x400000>;
1092			#address-cells = <1>;
1093			#size-cells = <1>;
1094			ranges = <0x32c00000 0x32c00000 0x400000>;
1095
1096			csi: csi@32e20000 {
1097				compatible = "fsl,imx8mm-csi", "fsl,imx7-csi";
1098				reg = <0x32e20000 0x1000>;
1099				interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1100				clocks = <&clk IMX8MM_CLK_CSI1_ROOT>;
1101				clock-names = "mclk";
1102				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_CSI_BRIDGE>;
1103				status = "disabled";
1104
1105				port {
1106					csi_in: endpoint {
1107						remote-endpoint = <&imx8mm_mipi_csi_out>;
1108					};
1109				};
1110			};
1111
1112			disp_blk_ctrl: blk-ctrl@32e28000 {
1113				compatible = "fsl,imx8mm-disp-blk-ctrl", "syscon";
1114				reg = <0x32e28000 0x100>;
1115				power-domains = <&pgc_dispmix>, <&pgc_dispmix>,
1116						<&pgc_dispmix>, <&pgc_mipi>,
1117						<&pgc_mipi>;
1118				power-domain-names = "bus", "csi-bridge",
1119						     "lcdif", "mipi-dsi",
1120						     "mipi-csi";
1121				clocks = <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
1122					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1123					 <&clk IMX8MM_CLK_CSI1_ROOT>,
1124					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
1125					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1126					 <&clk IMX8MM_CLK_DISP_ROOT>,
1127					 <&clk IMX8MM_CLK_DSI_CORE>,
1128					 <&clk IMX8MM_CLK_DSI_PHY_REF>,
1129					 <&clk IMX8MM_CLK_CSI1_CORE>,
1130					 <&clk IMX8MM_CLK_CSI1_PHY_REF>;
1131				clock-names = "csi-bridge-axi","csi-bridge-apb",
1132					      "csi-bridge-core", "lcdif-axi",
1133					      "lcdif-apb", "lcdif-pix",
1134					      "dsi-pclk", "dsi-ref",
1135					      "csi-aclk", "csi-pclk";
1136				#power-domain-cells = <1>;
1137			};
1138
1139			mipi_csi: mipi-csi@32e30000 {
1140				compatible = "fsl,imx8mm-mipi-csi2";
1141				reg = <0x32e30000 0x1000>;
1142				interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1143				assigned-clocks = <&clk IMX8MM_CLK_CSI1_CORE>,
1144						  <&clk IMX8MM_CLK_CSI1_PHY_REF>;
1145				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
1146							  <&clk IMX8MM_SYS_PLL2_1000M>;
1147				clock-frequency = <333000000>;
1148				clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1149					 <&clk IMX8MM_CLK_CSI1_ROOT>,
1150					 <&clk IMX8MM_CLK_CSI1_PHY_REF>,
1151					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
1152				clock-names = "pclk", "wrap", "phy", "axi";
1153				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_MIPI_CSI>;
1154				status = "disabled";
1155
1156				ports {
1157					#address-cells = <1>;
1158					#size-cells = <0>;
1159
1160					port@0 {
1161						reg = <0>;
1162					};
1163
1164					port@1 {
1165						reg = <1>;
1166
1167						imx8mm_mipi_csi_out: endpoint {
1168							remote-endpoint = <&csi_in>;
1169						};
1170					};
1171				};
1172			};
1173
1174			usbotg1: usb@32e40000 {
1175				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
1176				reg = <0x32e40000 0x200>;
1177				interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1178				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
1179				clock-names = "usb1_ctrl_root_clk";
1180				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
1181				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
1182				phys = <&usbphynop1>;
1183				fsl,usbmisc = <&usbmisc1 0>;
1184				power-domains = <&pgc_otg1>;
1185				status = "disabled";
1186			};
1187
1188			usbmisc1: usbmisc@32e40200 {
1189				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
1190				#index-cells = <1>;
1191				reg = <0x32e40200 0x200>;
1192			};
1193
1194			usbotg2: usb@32e50000 {
1195				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
1196				reg = <0x32e50000 0x200>;
1197				interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1198				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
1199				clock-names = "usb1_ctrl_root_clk";
1200				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
1201				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
1202				phys = <&usbphynop2>;
1203				fsl,usbmisc = <&usbmisc2 0>;
1204				power-domains = <&pgc_otg2>;
1205				status = "disabled";
1206			};
1207
1208			usbmisc2: usbmisc@32e50200 {
1209				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
1210				#index-cells = <1>;
1211				reg = <0x32e50200 0x200>;
1212			};
1213
1214		};
1215
1216		dma_apbh: dma-controller@33000000 {
1217			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
1218			reg = <0x33000000 0x2000>;
1219			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1220				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1221				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1222				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1223			interrupt-names = "gpmi0", "gpmi1", "gpmi2", "gpmi3";
1224			#dma-cells = <1>;
1225			dma-channels = <4>;
1226			clocks = <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
1227		};
1228
1229		gpmi: nand-controller@33002000{
1230			compatible = "fsl,imx8mm-gpmi-nand", "fsl,imx7d-gpmi-nand";
1231			#address-cells = <1>;
1232			#size-cells = <1>;
1233			reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
1234			reg-names = "gpmi-nand", "bch";
1235			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1236			interrupt-names = "bch";
1237			clocks = <&clk IMX8MM_CLK_NAND_ROOT>,
1238				 <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
1239			clock-names = "gpmi_io", "gpmi_bch_apb";
1240			dmas = <&dma_apbh 0>;
1241			dma-names = "rx-tx";
1242			status = "disabled";
1243		};
1244
1245		gpu_3d: gpu@38000000 {
1246			compatible = "vivante,gc";
1247			reg = <0x38000000 0x8000>;
1248			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1249			clocks = <&clk IMX8MM_CLK_GPU_AHB>,
1250				 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
1251				 <&clk IMX8MM_CLK_GPU3D_ROOT>,
1252				 <&clk IMX8MM_CLK_GPU3D_ROOT>;
1253			clock-names = "reg", "bus", "core", "shader";
1254			assigned-clocks = <&clk IMX8MM_CLK_GPU3D_CORE>,
1255					  <&clk IMX8MM_GPU_PLL_OUT>;
1256			assigned-clock-parents = <&clk IMX8MM_GPU_PLL_OUT>;
1257			assigned-clock-rates = <0>, <1000000000>;
1258			power-domains = <&pgc_gpu>;
1259		};
1260
1261		gpu_2d: gpu@38008000 {
1262			compatible = "vivante,gc";
1263			reg = <0x38008000 0x8000>;
1264			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
1265			clocks = <&clk IMX8MM_CLK_GPU_AHB>,
1266				 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
1267				 <&clk IMX8MM_CLK_GPU2D_ROOT>;
1268			clock-names = "reg", "bus", "core";
1269			assigned-clocks = <&clk IMX8MM_CLK_GPU2D_CORE>,
1270					  <&clk IMX8MM_GPU_PLL_OUT>;
1271			assigned-clock-parents = <&clk IMX8MM_GPU_PLL_OUT>;
1272			assigned-clock-rates = <0>, <1000000000>;
1273			power-domains = <&pgc_gpu>;
1274		};
1275
1276		vpu_blk_ctrl: blk-ctrl@38330000 {
1277			compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon";
1278			reg = <0x38330000 0x100>;
1279			power-domains = <&pgc_vpumix>, <&pgc_vpu_g1>,
1280					<&pgc_vpu_g2>, <&pgc_vpu_h1>;
1281			power-domain-names = "bus", "g1", "g2", "h1";
1282			clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>,
1283				 <&clk IMX8MM_CLK_VPU_G2_ROOT>,
1284				 <&clk IMX8MM_CLK_VPU_H1_ROOT>;
1285			clock-names = "g1", "g2", "h1";
1286			#power-domain-cells = <1>;
1287		};
1288
1289		gic: interrupt-controller@38800000 {
1290			compatible = "arm,gic-v3";
1291			reg = <0x38800000 0x10000>, /* GIC Dist */
1292			      <0x38880000 0xc0000>; /* GICR (RD_base + SGI_base) */
1293			#interrupt-cells = <3>;
1294			interrupt-controller;
1295			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
1296		};
1297
1298		ddrc: memory-controller@3d400000 {
1299			compatible = "fsl,imx8mm-ddrc", "fsl,imx8m-ddrc";
1300			reg = <0x3d400000 0x400000>;
1301			clock-names = "core", "pll", "alt", "apb";
1302			clocks = <&clk IMX8MM_CLK_DRAM_CORE>,
1303				 <&clk IMX8MM_DRAM_PLL>,
1304				 <&clk IMX8MM_CLK_DRAM_ALT>,
1305				 <&clk IMX8MM_CLK_DRAM_APB>;
1306		};
1307
1308		ddr-pmu@3d800000 {
1309			compatible = "fsl,imx8mm-ddr-pmu", "fsl,imx8m-ddr-pmu";
1310			reg = <0x3d800000 0x400000>;
1311			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
1312		};
1313	};
1314};
1315