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