xref: /openbmc/linux/arch/arm64/boot/dts/freescale/imx8mn.dtsi (revision 53458f86683bee0551c87db4022e6ccc3ab8c868)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2019 NXP
4 */
5
6#include <dt-bindings/clock/imx8mn-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
11#include "imx8mn-pinfunc.h"
12
13/ {
14	interrupt-parent = <&gic>;
15	#address-cells = <2>;
16	#size-cells = <2>;
17
18	aliases {
19		ethernet0 = &fec1;
20		gpio0 = &gpio1;
21		gpio1 = &gpio2;
22		gpio2 = &gpio3;
23		gpio3 = &gpio4;
24		gpio4 = &gpio5;
25		i2c0 = &i2c1;
26		i2c1 = &i2c2;
27		i2c2 = &i2c3;
28		i2c3 = &i2c4;
29		mmc0 = &usdhc1;
30		mmc1 = &usdhc2;
31		mmc2 = &usdhc3;
32		serial0 = &uart1;
33		serial1 = &uart2;
34		serial2 = &uart3;
35		serial3 = &uart4;
36		spi0 = &ecspi1;
37		spi1 = &ecspi2;
38		spi2 = &ecspi3;
39	};
40
41	cpus {
42		#address-cells = <1>;
43		#size-cells = <0>;
44
45		idle-states {
46			entry-method = "psci";
47
48			cpu_pd_wait: cpu-pd-wait {
49				compatible = "arm,idle-state";
50				arm,psci-suspend-param = <0x0010033>;
51				local-timer-stop;
52				entry-latency-us = <1000>;
53				exit-latency-us = <700>;
54				min-residency-us = <2700>;
55			};
56		};
57
58		A53_0: cpu@0 {
59			device_type = "cpu";
60			compatible = "arm,cortex-a53";
61			reg = <0x0>;
62			clock-latency = <61036>;
63			clocks = <&clk IMX8MN_CLK_ARM>;
64			enable-method = "psci";
65			next-level-cache = <&A53_L2>;
66			operating-points-v2 = <&a53_opp_table>;
67			nvmem-cells = <&cpu_speed_grade>;
68			nvmem-cell-names = "speed_grade";
69			cpu-idle-states = <&cpu_pd_wait>;
70		};
71
72		A53_1: cpu@1 {
73			device_type = "cpu";
74			compatible = "arm,cortex-a53";
75			reg = <0x1>;
76			clock-latency = <61036>;
77			clocks = <&clk IMX8MN_CLK_ARM>;
78			enable-method = "psci";
79			next-level-cache = <&A53_L2>;
80			operating-points-v2 = <&a53_opp_table>;
81			cpu-idle-states = <&cpu_pd_wait>;
82		};
83
84		A53_2: cpu@2 {
85			device_type = "cpu";
86			compatible = "arm,cortex-a53";
87			reg = <0x2>;
88			clock-latency = <61036>;
89			clocks = <&clk IMX8MN_CLK_ARM>;
90			enable-method = "psci";
91			next-level-cache = <&A53_L2>;
92			operating-points-v2 = <&a53_opp_table>;
93			cpu-idle-states = <&cpu_pd_wait>;
94		};
95
96		A53_3: cpu@3 {
97			device_type = "cpu";
98			compatible = "arm,cortex-a53";
99			reg = <0x3>;
100			clock-latency = <61036>;
101			clocks = <&clk IMX8MN_CLK_ARM>;
102			enable-method = "psci";
103			next-level-cache = <&A53_L2>;
104			operating-points-v2 = <&a53_opp_table>;
105			cpu-idle-states = <&cpu_pd_wait>;
106		};
107
108		A53_L2: l2-cache0 {
109			compatible = "cache";
110		};
111	};
112
113	a53_opp_table: opp-table {
114		compatible = "operating-points-v2";
115		opp-shared;
116
117		opp-1200000000 {
118			opp-hz = /bits/ 64 <1200000000>;
119			opp-microvolt = <850000>;
120			opp-supported-hw = <0xb00>, <0x7>;
121			clock-latency-ns = <150000>;
122			opp-suspend;
123		};
124
125		opp-1400000000 {
126			opp-hz = /bits/ 64 <1400000000>;
127			opp-microvolt = <950000>;
128			opp-supported-hw = <0x300>, <0x7>;
129			clock-latency-ns = <150000>;
130			opp-suspend;
131		};
132
133		opp-1500000000 {
134			opp-hz = /bits/ 64 <1500000000>;
135			opp-microvolt = <1000000>;
136			opp-supported-hw = <0x100>, <0x3>;
137			clock-latency-ns = <150000>;
138			opp-suspend;
139		};
140	};
141
142	osc_32k: clock-osc-32k {
143		compatible = "fixed-clock";
144		#clock-cells = <0>;
145		clock-frequency = <32768>;
146		clock-output-names = "osc_32k";
147	};
148
149	osc_24m: clock-osc-24m {
150		compatible = "fixed-clock";
151		#clock-cells = <0>;
152		clock-frequency = <24000000>;
153		clock-output-names = "osc_24m";
154	};
155
156	clk_ext1: clock-ext1 {
157		compatible = "fixed-clock";
158		#clock-cells = <0>;
159		clock-frequency = <133000000>;
160		clock-output-names = "clk_ext1";
161	};
162
163	clk_ext2: clock-ext2 {
164		compatible = "fixed-clock";
165		#clock-cells = <0>;
166		clock-frequency = <133000000>;
167		clock-output-names = "clk_ext2";
168	};
169
170	clk_ext3: clock-ext3 {
171		compatible = "fixed-clock";
172		#clock-cells = <0>;
173		clock-frequency = <133000000>;
174		clock-output-names = "clk_ext3";
175	};
176
177	clk_ext4: clock-ext4 {
178		compatible = "fixed-clock";
179		#clock-cells = <0>;
180		clock-frequency= <133000000>;
181		clock-output-names = "clk_ext4";
182	};
183
184	psci {
185		compatible = "arm,psci-1.0";
186		method = "smc";
187	};
188
189	timer {
190		compatible = "arm,armv8-timer";
191		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>,
192			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>,
193			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>,
194			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>;
195		clock-frequency = <8000000>;
196		arm,no-tick-in-suspend;
197	};
198
199	soc@0 {
200		compatible = "simple-bus";
201		#address-cells = <1>;
202		#size-cells = <1>;
203		ranges = <0x0 0x0 0x0 0x3e000000>;
204
205		aips1: bus@30000000 {
206			compatible = "simple-bus";
207			reg = <0x30000000 0x400000>;
208			#address-cells = <1>;
209			#size-cells = <1>;
210			ranges;
211
212			gpio1: gpio@30200000 {
213				compatible = "fsl,imx8mn-gpio", "fsl,imx35-gpio";
214				reg = <0x30200000 0x10000>;
215				interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
216					     <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
217				clocks = <&clk IMX8MN_CLK_GPIO1_ROOT>;
218				gpio-controller;
219				#gpio-cells = <2>;
220				interrupt-controller;
221				#interrupt-cells = <2>;
222				gpio-ranges = <&iomuxc 0 10 30>;
223			};
224
225			gpio2: gpio@30210000 {
226				compatible = "fsl,imx8mn-gpio", "fsl,imx35-gpio";
227				reg = <0x30210000 0x10000>;
228				interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
229					     <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
230				clocks = <&clk IMX8MN_CLK_GPIO2_ROOT>;
231				gpio-controller;
232				#gpio-cells = <2>;
233				interrupt-controller;
234				#interrupt-cells = <2>;
235				gpio-ranges = <&iomuxc 0 40 21>;
236			};
237
238			gpio3: gpio@30220000 {
239				compatible = "fsl,imx8mn-gpio", "fsl,imx35-gpio";
240				reg = <0x30220000 0x10000>;
241				interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
242					     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
243				clocks = <&clk IMX8MN_CLK_GPIO3_ROOT>;
244				gpio-controller;
245				#gpio-cells = <2>;
246				interrupt-controller;
247				#interrupt-cells = <2>;
248				gpio-ranges = <&iomuxc 0 61 26>;
249			};
250
251			gpio4: gpio@30230000 {
252				compatible = "fsl,imx8mn-gpio", "fsl,imx35-gpio";
253				reg = <0x30230000 0x10000>;
254				interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
255					     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
256				clocks = <&clk IMX8MN_CLK_GPIO4_ROOT>;
257				gpio-controller;
258				#gpio-cells = <2>;
259				interrupt-controller;
260				#interrupt-cells = <2>;
261				gpio-ranges = <&iomuxc 21 108 11>;
262			};
263
264			gpio5: gpio@30240000 {
265				compatible = "fsl,imx8mn-gpio", "fsl,imx35-gpio";
266				reg = <0x30240000 0x10000>;
267				interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
268					     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
269				clocks = <&clk IMX8MN_CLK_GPIO5_ROOT>;
270				gpio-controller;
271				#gpio-cells = <2>;
272				interrupt-controller;
273				#interrupt-cells = <2>;
274				gpio-ranges = <&iomuxc 0 119 30>;
275			};
276
277			wdog1: watchdog@30280000 {
278				compatible = "fsl,imx8mn-wdt", "fsl,imx21-wdt";
279				reg = <0x30280000 0x10000>;
280				interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
281				clocks = <&clk IMX8MN_CLK_WDOG1_ROOT>;
282				status = "disabled";
283			};
284
285			wdog2: watchdog@30290000 {
286				compatible = "fsl,imx8mn-wdt", "fsl,imx21-wdt";
287				reg = <0x30290000 0x10000>;
288				interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
289				clocks = <&clk IMX8MN_CLK_WDOG2_ROOT>;
290				status = "disabled";
291			};
292
293			wdog3: watchdog@302a0000 {
294				compatible = "fsl,imx8mn-wdt", "fsl,imx21-wdt";
295				reg = <0x302a0000 0x10000>;
296				interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
297				clocks = <&clk IMX8MN_CLK_WDOG3_ROOT>;
298				status = "disabled";
299			};
300
301			sdma3: dma-controller@302b0000 {
302				compatible = "fsl,imx8mn-sdma", "fsl,imx8mq-sdma";
303				reg = <0x302b0000 0x10000>;
304				interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
305				clocks = <&clk IMX8MN_CLK_SDMA3_ROOT>,
306				 <&clk IMX8MN_CLK_SDMA3_ROOT>;
307				clock-names = "ipg", "ahb";
308				#dma-cells = <3>;
309				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
310			};
311
312			sdma2: dma-controller@302c0000 {
313				compatible = "fsl,imx8mn-sdma", "fsl,imx8mq-sdma";
314				reg = <0x302c0000 0x10000>;
315				interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
316				clocks = <&clk IMX8MN_CLK_SDMA2_ROOT>,
317					 <&clk IMX8MN_CLK_SDMA2_ROOT>;
318				clock-names = "ipg", "ahb";
319				#dma-cells = <3>;
320				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
321			};
322
323			iomuxc: pinctrl@30330000 {
324				compatible = "fsl,imx8mn-iomuxc";
325				reg = <0x30330000 0x10000>;
326			};
327
328			gpr: iomuxc-gpr@30340000 {
329				compatible = "fsl,imx8mn-iomuxc-gpr", "syscon";
330				reg = <0x30340000 0x10000>;
331			};
332
333			ocotp: ocotp-ctrl@30350000 {
334				compatible = "fsl,imx8mn-ocotp", "fsl,imx8mm-ocotp", "syscon";
335				reg = <0x30350000 0x10000>;
336				clocks = <&clk IMX8MN_CLK_OCOTP_ROOT>;
337				#address-cells = <1>;
338				#size-cells = <1>;
339
340				cpu_speed_grade: speed-grade@10 {
341					reg = <0x10 4>;
342				};
343			};
344
345			anatop: anatop@30360000 {
346				compatible = "fsl,imx8mn-anatop", "fsl,imx8mm-anatop",
347					     "syscon";
348				reg = <0x30360000 0x10000>;
349			};
350
351			snvs: snvs@30370000 {
352				compatible = "fsl,sec-v4.0-mon","syscon", "simple-mfd";
353				reg = <0x30370000 0x10000>;
354
355				snvs_rtc: snvs-rtc-lp {
356					compatible = "fsl,sec-v4.0-mon-rtc-lp";
357					regmap = <&snvs>;
358					offset = <0x34>;
359					interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
360						     <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
361					clocks = <&clk IMX8MN_CLK_SNVS_ROOT>;
362					clock-names = "snvs-rtc";
363				};
364
365				snvs_pwrkey: snvs-powerkey {
366					compatible = "fsl,sec-v4.0-pwrkey";
367					regmap = <&snvs>;
368					interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
369					linux,keycode = <KEY_POWER>;
370					wakeup-source;
371					status = "disabled";
372				};
373			};
374
375			clk: clock-controller@30380000 {
376				compatible = "fsl,imx8mn-ccm";
377				reg = <0x30380000 0x10000>;
378				#clock-cells = <1>;
379				clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>,
380					 <&clk_ext3>, <&clk_ext4>;
381				clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2",
382					      "clk_ext3", "clk_ext4";
383				assigned-clocks = <&clk IMX8MN_CLK_NOC>,
384						<&clk IMX8MN_CLK_AUDIO_AHB>,
385						<&clk IMX8MN_CLK_IPG_AUDIO_ROOT>,
386						<&clk IMX8MN_SYS_PLL3>;
387				assigned-clock-parents = <&clk IMX8MN_SYS_PLL3_OUT>,
388							 <&clk IMX8MN_SYS_PLL1_800M>;
389				assigned-clock-rates = <0>,
390							<400000000>,
391							<400000000>,
392							<600000000>;
393			};
394
395			src: reset-controller@30390000 {
396				compatible = "fsl,imx8mn-src", "fsl,imx8mq-src", "syscon";
397				reg = <0x30390000 0x10000>;
398				interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
399				#reset-cells = <1>;
400			};
401		};
402
403		aips2: bus@30400000 {
404			compatible = "simple-bus";
405			reg = <0x30400000 0x400000>;
406			#address-cells = <1>;
407			#size-cells = <1>;
408			ranges;
409
410			pwm1: pwm@30660000 {
411				compatible = "fsl,imx8mn-pwm", "fsl,imx27-pwm";
412				reg = <0x30660000 0x10000>;
413				interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
414				clocks = <&clk IMX8MN_CLK_PWM1_ROOT>,
415					<&clk IMX8MN_CLK_PWM1_ROOT>;
416				clock-names = "ipg", "per";
417				#pwm-cells = <2>;
418				status = "disabled";
419			};
420
421			pwm2: pwm@30670000 {
422				compatible = "fsl,imx8mn-pwm", "fsl,imx27-pwm";
423				reg = <0x30670000 0x10000>;
424				interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
425				clocks = <&clk IMX8MN_CLK_PWM2_ROOT>,
426					 <&clk IMX8MN_CLK_PWM2_ROOT>;
427				clock-names = "ipg", "per";
428				#pwm-cells = <2>;
429				status = "disabled";
430			};
431
432			pwm3: pwm@30680000 {
433				compatible = "fsl,imx8mn-pwm", "fsl,imx27-pwm";
434				reg = <0x30680000 0x10000>;
435				interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
436				clocks = <&clk IMX8MN_CLK_PWM3_ROOT>,
437					 <&clk IMX8MN_CLK_PWM3_ROOT>;
438				clock-names = "ipg", "per";
439				#pwm-cells = <2>;
440				status = "disabled";
441			};
442
443			pwm4: pwm@30690000 {
444				compatible = "fsl,imx8mn-pwm", "fsl,imx27-pwm";
445				reg = <0x30690000 0x10000>;
446				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
447				clocks = <&clk IMX8MN_CLK_PWM4_ROOT>,
448					 <&clk IMX8MN_CLK_PWM4_ROOT>;
449				clock-names = "ipg", "per";
450				#pwm-cells = <2>;
451				status = "disabled";
452			};
453
454			system_counter: timer@306a0000 {
455				compatible = "nxp,sysctr-timer";
456				reg = <0x306a0000 0x20000>;
457				interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
458				clocks = <&osc_24m>;
459				clock-names = "per";
460			};
461		};
462
463		aips3: bus@30800000 {
464			compatible = "simple-bus";
465			reg = <0x30800000 0x400000>;
466			#address-cells = <1>;
467			#size-cells = <1>;
468			ranges;
469
470			ecspi1: spi@30820000 {
471				compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi";
472				#address-cells = <1>;
473				#size-cells = <0>;
474				reg = <0x30820000 0x10000>;
475				interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
476				clocks = <&clk IMX8MN_CLK_ECSPI1_ROOT>,
477					 <&clk IMX8MN_CLK_ECSPI1_ROOT>;
478				clock-names = "ipg", "per";
479				dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>;
480				dma-names = "rx", "tx";
481				status = "disabled";
482			};
483
484			ecspi2: spi@30830000 {
485				compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi";
486				#address-cells = <1>;
487				#size-cells = <0>;
488				reg = <0x30830000 0x10000>;
489				interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
490				clocks = <&clk IMX8MN_CLK_ECSPI2_ROOT>,
491					 <&clk IMX8MN_CLK_ECSPI2_ROOT>;
492				clock-names = "ipg", "per";
493				dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>;
494				dma-names = "rx", "tx";
495				status = "disabled";
496			};
497
498			ecspi3: spi@30840000 {
499				compatible = "fsl,imx8mn-ecspi", "fsl,imx51-ecspi";
500				#address-cells = <1>;
501				#size-cells = <0>;
502				reg = <0x30840000 0x10000>;
503				interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
504				clocks = <&clk IMX8MN_CLK_ECSPI3_ROOT>,
505					 <&clk IMX8MN_CLK_ECSPI3_ROOT>;
506				clock-names = "ipg", "per";
507				dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>;
508				dma-names = "rx", "tx";
509				status = "disabled";
510			};
511
512			uart1: serial@30860000 {
513				compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart";
514				reg = <0x30860000 0x10000>;
515				interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
516				clocks = <&clk IMX8MN_CLK_UART1_ROOT>,
517					 <&clk IMX8MN_CLK_UART1_ROOT>;
518				clock-names = "ipg", "per";
519				dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
520				dma-names = "rx", "tx";
521				status = "disabled";
522			};
523
524			uart3: serial@30880000 {
525				compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart";
526				reg = <0x30880000 0x10000>;
527				interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
528				clocks = <&clk IMX8MN_CLK_UART3_ROOT>,
529					 <&clk IMX8MN_CLK_UART3_ROOT>;
530				clock-names = "ipg", "per";
531				dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>;
532				dma-names = "rx", "tx";
533				status = "disabled";
534			};
535
536			uart2: serial@30890000 {
537				compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart";
538				reg = <0x30890000 0x10000>;
539				interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
540				clocks = <&clk IMX8MN_CLK_UART2_ROOT>,
541					 <&clk IMX8MN_CLK_UART2_ROOT>;
542				clock-names = "ipg", "per";
543				status = "disabled";
544			};
545
546			crypto: crypto@30900000 {
547				compatible = "fsl,sec-v4.0";
548				#address-cells = <1>;
549				#size-cells = <1>;
550				reg = <0x30900000 0x40000>;
551				ranges = <0 0x30900000 0x40000>;
552				interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
553				clocks = <&clk IMX8MN_CLK_AHB>,
554					 <&clk IMX8MN_CLK_IPG_ROOT>;
555				clock-names = "aclk", "ipg";
556
557				sec_jr0: jr0@1000 {
558					 compatible = "fsl,sec-v4.0-job-ring";
559					 reg = <0x1000 0x1000>;
560					 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
561				};
562
563				sec_jr1: jr1@2000 {
564					 compatible = "fsl,sec-v4.0-job-ring";
565					 reg = <0x2000 0x1000>;
566					 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
567				};
568
569				sec_jr2: jr2@3000 {
570					 compatible = "fsl,sec-v4.0-job-ring";
571					 reg = <0x3000 0x1000>;
572					 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
573				};
574			};
575
576			i2c1: i2c@30a20000 {
577				compatible = "fsl,imx8mn-i2c", "fsl,imx21-i2c";
578				#address-cells = <1>;
579				#size-cells = <0>;
580				reg = <0x30a20000 0x10000>;
581				interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
582				clocks = <&clk IMX8MN_CLK_I2C1_ROOT>;
583				status = "disabled";
584			};
585
586			i2c2: i2c@30a30000 {
587				compatible = "fsl,imx8mn-i2c", "fsl,imx21-i2c";
588				#address-cells = <1>;
589				#size-cells = <0>;
590				reg = <0x30a30000 0x10000>;
591				interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
592				clocks = <&clk IMX8MN_CLK_I2C2_ROOT>;
593				status = "disabled";
594			};
595
596			i2c3: i2c@30a40000 {
597				#address-cells = <1>;
598				#size-cells = <0>;
599				compatible = "fsl,imx8mn-i2c", "fsl,imx21-i2c";
600				reg = <0x30a40000 0x10000>;
601				interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
602				clocks = <&clk IMX8MN_CLK_I2C3_ROOT>;
603				status = "disabled";
604			};
605
606			i2c4: i2c@30a50000 {
607				compatible = "fsl,imx8mn-i2c", "fsl,imx21-i2c";
608				#address-cells = <1>;
609				#size-cells = <0>;
610				reg = <0x30a50000 0x10000>;
611				interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
612				clocks = <&clk IMX8MN_CLK_I2C4_ROOT>;
613				status = "disabled";
614			};
615
616			uart4: serial@30a60000 {
617				compatible = "fsl,imx8mn-uart", "fsl,imx6q-uart";
618				reg = <0x30a60000 0x10000>;
619				interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
620				clocks = <&clk IMX8MN_CLK_UART4_ROOT>,
621					 <&clk IMX8MN_CLK_UART4_ROOT>;
622				clock-names = "ipg", "per";
623				dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
624				dma-names = "rx", "tx";
625				status = "disabled";
626			};
627
628			usdhc1: mmc@30b40000 {
629				compatible = "fsl,imx8mn-usdhc", "fsl,imx7d-usdhc";
630				reg = <0x30b40000 0x10000>;
631				interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
632				clocks = <&clk IMX8MN_CLK_IPG_ROOT>,
633					 <&clk IMX8MN_CLK_NAND_USDHC_BUS>,
634					 <&clk IMX8MN_CLK_USDHC1_ROOT>;
635				clock-names = "ipg", "ahb", "per";
636				fsl,tuning-start-tap = <20>;
637				fsl,tuning-step= <2>;
638				bus-width = <4>;
639				status = "disabled";
640			};
641
642			usdhc2: mmc@30b50000 {
643				compatible = "fsl,imx8mn-usdhc", "fsl,imx7d-usdhc";
644				reg = <0x30b50000 0x10000>;
645				interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
646				clocks = <&clk IMX8MN_CLK_IPG_ROOT>,
647					 <&clk IMX8MN_CLK_NAND_USDHC_BUS>,
648					 <&clk IMX8MN_CLK_USDHC2_ROOT>;
649				clock-names = "ipg", "ahb", "per";
650				fsl,tuning-start-tap = <20>;
651				fsl,tuning-step= <2>;
652				bus-width = <4>;
653				status = "disabled";
654			};
655
656			usdhc3: mmc@30b60000 {
657				compatible = "fsl,imx8mn-usdhc", "fsl,imx7d-usdhc";
658				reg = <0x30b60000 0x10000>;
659				interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
660				clocks = <&clk IMX8MN_CLK_IPG_ROOT>,
661					 <&clk IMX8MN_CLK_NAND_USDHC_BUS>,
662					 <&clk IMX8MN_CLK_USDHC3_ROOT>;
663				clock-names = "ipg", "ahb", "per";
664				fsl,tuning-start-tap = <20>;
665				fsl,tuning-step= <2>;
666				bus-width = <4>;
667				status = "disabled";
668			};
669
670			sdma1: dma-controller@30bd0000 {
671				compatible = "fsl,imx8mn-sdma", "fsl,imx8mq-sdma";
672				reg = <0x30bd0000 0x10000>;
673				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
674				clocks = <&clk IMX8MN_CLK_SDMA1_ROOT>,
675					 <&clk IMX8MN_CLK_SDMA1_ROOT>;
676				clock-names = "ipg", "ahb";
677				#dma-cells = <3>;
678				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
679			};
680
681			fec1: ethernet@30be0000 {
682				compatible = "fsl,imx8mn-fec", "fsl,imx6sx-fec";
683				reg = <0x30be0000 0x10000>;
684				interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
685					     <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
686					     <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
687				clocks = <&clk IMX8MN_CLK_ENET1_ROOT>,
688					 <&clk IMX8MN_CLK_ENET1_ROOT>,
689					 <&clk IMX8MN_CLK_ENET_TIMER>,
690					 <&clk IMX8MN_CLK_ENET_REF>,
691					 <&clk IMX8MN_CLK_ENET_PHY_REF>;
692				clock-names = "ipg", "ahb", "ptp",
693					      "enet_clk_ref", "enet_out";
694				assigned-clocks = <&clk IMX8MN_CLK_ENET_AXI>,
695						  <&clk IMX8MN_CLK_ENET_TIMER>,
696						  <&clk IMX8MN_CLK_ENET_REF>,
697						  <&clk IMX8MN_CLK_ENET_TIMER>;
698				assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_266M>,
699							 <&clk IMX8MN_SYS_PLL2_100M>,
700							 <&clk IMX8MN_SYS_PLL2_125M>;
701				assigned-clock-rates = <0>, <0>, <125000000>, <100000000>;
702				fsl,num-tx-queues = <3>;
703				fsl,num-rx-queues = <3>;
704				status = "disabled";
705			};
706
707		};
708
709		aips4: bus@32c00000 {
710			compatible = "simple-bus";
711			reg = <0x32c00000 0x400000>;
712			#address-cells = <1>;
713			#size-cells = <1>;
714			ranges;
715
716			usbotg1: usb@32e40000 {
717				compatible = "fsl,imx8mn-usb", "fsl,imx7d-usb";
718				reg = <0x32e40000 0x200>;
719				interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
720				clocks = <&clk IMX8MN_CLK_USB1_CTRL_ROOT>;
721				clock-names = "usb1_ctrl_root_clk";
722				assigned-clocks = <&clk IMX8MN_CLK_USB_BUS>;
723				assigned-clock-parents = <&clk IMX8MN_SYS_PLL2_500M>;
724				fsl,usbphy = <&usbphynop1>;
725				fsl,usbmisc = <&usbmisc1 0>;
726				status = "disabled";
727			};
728
729			usbmisc1: usbmisc@32e40200 {
730				compatible = "fsl,imx8mn-usbmisc", "fsl,imx7d-usbmisc";
731				#index-cells = <1>;
732				reg = <0x32e40200 0x200>;
733			};
734
735			usbotg2: usb@32e50000 {
736				compatible = "fsl,imx8mn-usb", "fsl,imx7d-usb";
737				reg = <0x32e50000 0x200>;
738				interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
739				clocks = <&clk IMX8MN_CLK_USB1_CTRL_ROOT>;
740				clock-names = "usb1_ctrl_root_clk";
741				assigned-clocks = <&clk IMX8MN_CLK_USB_BUS>,
742						  <&clk IMX8MN_CLK_USB_CORE_REF>;
743				assigned-clock-parents = <&clk IMX8MN_SYS_PLL2_500M>,
744							 <&clk IMX8MN_SYS_PLL1_100M>;
745				fsl,usbphy = <&usbphynop2>;
746				fsl,usbmisc = <&usbmisc2 0>;
747				status = "disabled";
748			};
749
750			usbmisc2: usbmisc@32e50200 {
751				compatible = "fsl,imx8mn-usbmisc", "fsl,imx7d-usbmisc";
752				#index-cells = <1>;
753				reg = <0x32e50200 0x200>;
754			};
755
756		};
757
758		dma_apbh: dma-controller@33000000 {
759			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
760			reg = <0x33000000 0x2000>;
761			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
762				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
763				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
764				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
765			interrupt-names = "gpmi0", "gpmi1", "gpmi2", "gpmi3";
766			#dma-cells = <1>;
767			dma-channels = <4>;
768			clocks = <&clk IMX8MN_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
769		};
770
771		gpmi: nand-controller@33002000 {
772			compatible = "fsl,imx8mn-gpmi-nand", "fsl,imx7d-gpmi-nand";
773			#address-cells = <1>;
774			#size-cells = <1>;
775			reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
776			reg-names = "gpmi-nand", "bch";
777			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
778			interrupt-names = "bch";
779			clocks = <&clk IMX8MN_CLK_NAND_ROOT>,
780				 <&clk IMX8MN_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
781			clock-names = "gpmi_io", "gpmi_bch_apb";
782			dmas = <&dma_apbh 0>;
783			dma-names = "rx-tx";
784			status = "disabled";
785		};
786
787		gic: interrupt-controller@38800000 {
788			compatible = "arm,gic-v3";
789			reg = <0x38800000 0x10000>,
790			      <0x38880000 0xc0000>;
791			#interrupt-cells = <3>;
792			interrupt-controller;
793			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
794		};
795
796		ddrc: memory-controller@3d400000 {
797			compatible = "fsl,imx8mn-ddrc", "fsl,imx8m-ddrc";
798			reg = <0x3d400000 0x400000>;
799			clock-names = "core", "pll", "alt", "apb";
800			clocks = <&clk IMX8MN_CLK_DRAM_CORE>,
801				 <&clk IMX8MN_DRAM_PLL>,
802				 <&clk IMX8MN_CLK_DRAM_ALT>,
803				 <&clk IMX8MN_CLK_DRAM_APB>;
804		};
805
806		ddr-pmu@3d800000 {
807			compatible = "fsl,imx8mn-ddr-pmu", "fsl,imx8m-ddr-pmu";
808			reg = <0x3d800000 0x400000>;
809			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
810		};
811	};
812
813	usbphynop1: usbphynop1 {
814		compatible = "usb-nop-xceiv";
815		clocks = <&clk IMX8MN_CLK_USB_PHY_REF>;
816		assigned-clocks = <&clk IMX8MN_CLK_USB_PHY_REF>;
817		assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_100M>;
818		clock-names = "main_clk";
819	};
820
821	usbphynop2: usbphynop2 {
822		compatible = "usb-nop-xceiv";
823		clocks = <&clk IMX8MN_CLK_USB_PHY_REF>;
824		assigned-clocks = <&clk IMX8MN_CLK_USB_PHY_REF>;
825		assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_100M>;
826		clock-names = "main_clk";
827	};
828};
829