1a05ea40eSJacky Bai// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2a05ea40eSJacky Bai/*
3a05ea40eSJacky Bai * Copyright 2019 NXP
4a05ea40eSJacky Bai */
5a05ea40eSJacky Bai
6a05ea40eSJacky Bai#include <dt-bindings/clock/imx8mm-clock.h>
7a05ea40eSJacky Bai#include <dt-bindings/gpio/gpio.h>
8a05ea40eSJacky Bai#include <dt-bindings/input/input.h>
9a05ea40eSJacky Bai#include <dt-bindings/interrupt-controller/arm-gic.h>
10d39d4bb1SLucas Stach#include <dt-bindings/power/imx8mm-power.h>
11d39d4bb1SLucas Stach#include <dt-bindings/reset/imx8mq-reset.h>
12a05ea40eSJacky Bai#include <dt-bindings/thermal/thermal.h>
13a05ea40eSJacky Bai
14a05ea40eSJacky Bai#include "imx8mm-pinfunc.h"
15a05ea40eSJacky Bai
16a05ea40eSJacky Bai/ {
17a05ea40eSJacky Bai	interrupt-parent = <&gic>;
18a05ea40eSJacky Bai	#address-cells = <2>;
19a05ea40eSJacky Bai	#size-cells = <2>;
20a05ea40eSJacky Bai
21a05ea40eSJacky Bai	aliases {
22a05ea40eSJacky Bai		ethernet0 = &fec1;
2383ae2848SPeng Fan		gpio0 = &gpio1;
2483ae2848SPeng Fan		gpio1 = &gpio2;
2583ae2848SPeng Fan		gpio2 = &gpio3;
2683ae2848SPeng Fan		gpio3 = &gpio4;
2783ae2848SPeng Fan		gpio4 = &gpio5;
28a05ea40eSJacky Bai		i2c0 = &i2c1;
29a05ea40eSJacky Bai		i2c1 = &i2c2;
30a05ea40eSJacky Bai		i2c2 = &i2c3;
31a05ea40eSJacky Bai		i2c3 = &i2c4;
3283ae2848SPeng Fan		mmc0 = &usdhc1;
3383ae2848SPeng Fan		mmc1 = &usdhc2;
3483ae2848SPeng Fan		mmc2 = &usdhc3;
35a05ea40eSJacky Bai		serial0 = &uart1;
36a05ea40eSJacky Bai		serial1 = &uart2;
37a05ea40eSJacky Bai		serial2 = &uart3;
38a05ea40eSJacky Bai		serial3 = &uart4;
39a05ea40eSJacky Bai		spi0 = &ecspi1;
40a05ea40eSJacky Bai		spi1 = &ecspi2;
41a05ea40eSJacky Bai		spi2 = &ecspi3;
42a05ea40eSJacky Bai	};
43a05ea40eSJacky Bai
44a05ea40eSJacky Bai	cpus {
45a05ea40eSJacky Bai		#address-cells = <1>;
46a05ea40eSJacky Bai		#size-cells = <0>;
47a05ea40eSJacky Bai
48a1406b72SAnson Huang		idle-states {
49a1406b72SAnson Huang			entry-method = "psci";
50a1406b72SAnson Huang
51a1406b72SAnson Huang			cpu_pd_wait: cpu-pd-wait {
52a1406b72SAnson Huang				compatible = "arm,idle-state";
53a1406b72SAnson Huang				arm,psci-suspend-param = <0x0010033>;
54a1406b72SAnson Huang				local-timer-stop;
55a1406b72SAnson Huang				entry-latency-us = <1000>;
56a1406b72SAnson Huang				exit-latency-us = <700>;
57a1406b72SAnson Huang				min-residency-us = <2700>;
58a1406b72SAnson Huang			};
59a1406b72SAnson Huang		};
60a1406b72SAnson Huang
61a05ea40eSJacky Bai		A53_0: cpu@0 {
62a05ea40eSJacky Bai			device_type = "cpu";
63a05ea40eSJacky Bai			compatible = "arm,cortex-a53";
64a05ea40eSJacky Bai			reg = <0x0>;
65e85c9d0fSLeonard Crestez			clock-latency = <61036>; /* two CLK32 periods */
66e85c9d0fSLeonard Crestez			clocks = <&clk IMX8MM_CLK_ARM>;
67a05ea40eSJacky Bai			enable-method = "psci";
68cb551b5eSPeng Fan			i-cache-size = <0x8000>;
69cb551b5eSPeng Fan			i-cache-line-size = <64>;
70cb551b5eSPeng Fan			i-cache-sets = <256>;
71cb551b5eSPeng Fan			d-cache-size = <0x8000>;
72cb551b5eSPeng Fan			d-cache-line-size = <64>;
73cb551b5eSPeng Fan			d-cache-sets = <128>;
74a05ea40eSJacky Bai			next-level-cache = <&A53_L2>;
75e85c9d0fSLeonard Crestez			operating-points-v2 = <&a53_opp_table>;
76f403a26cSLeonard Crestez			nvmem-cells = <&cpu_speed_grade>;
77f403a26cSLeonard Crestez			nvmem-cell-names = "speed_grade";
78a1406b72SAnson Huang			cpu-idle-states = <&cpu_pd_wait>;
7911699fd5SAnson Huang			#cooling-cells = <2>;
80a05ea40eSJacky Bai		};
81a05ea40eSJacky Bai
82a05ea40eSJacky Bai		A53_1: cpu@1 {
83a05ea40eSJacky Bai			device_type = "cpu";
84a05ea40eSJacky Bai			compatible = "arm,cortex-a53";
85a05ea40eSJacky Bai			reg = <0x1>;
86e85c9d0fSLeonard Crestez			clock-latency = <61036>; /* two CLK32 periods */
87e85c9d0fSLeonard Crestez			clocks = <&clk IMX8MM_CLK_ARM>;
88a05ea40eSJacky Bai			enable-method = "psci";
89cb551b5eSPeng Fan			i-cache-size = <0x8000>;
90cb551b5eSPeng Fan			i-cache-line-size = <64>;
91cb551b5eSPeng Fan			i-cache-sets = <256>;
92cb551b5eSPeng Fan			d-cache-size = <0x8000>;
93cb551b5eSPeng Fan			d-cache-line-size = <64>;
94cb551b5eSPeng Fan			d-cache-sets = <128>;
95a05ea40eSJacky Bai			next-level-cache = <&A53_L2>;
96e85c9d0fSLeonard Crestez			operating-points-v2 = <&a53_opp_table>;
97a1406b72SAnson Huang			cpu-idle-states = <&cpu_pd_wait>;
9811699fd5SAnson Huang			#cooling-cells = <2>;
99a05ea40eSJacky Bai		};
100a05ea40eSJacky Bai
101a05ea40eSJacky Bai		A53_2: cpu@2 {
102a05ea40eSJacky Bai			device_type = "cpu";
103a05ea40eSJacky Bai			compatible = "arm,cortex-a53";
104a05ea40eSJacky Bai			reg = <0x2>;
105e85c9d0fSLeonard Crestez			clock-latency = <61036>; /* two CLK32 periods */
106e85c9d0fSLeonard Crestez			clocks = <&clk IMX8MM_CLK_ARM>;
107a05ea40eSJacky Bai			enable-method = "psci";
108cb551b5eSPeng Fan			i-cache-size = <0x8000>;
109cb551b5eSPeng Fan			i-cache-line-size = <64>;
110cb551b5eSPeng Fan			i-cache-sets = <256>;
111cb551b5eSPeng Fan			d-cache-size = <0x8000>;
112cb551b5eSPeng Fan			d-cache-line-size = <64>;
113cb551b5eSPeng Fan			d-cache-sets = <128>;
114a05ea40eSJacky Bai			next-level-cache = <&A53_L2>;
115e85c9d0fSLeonard Crestez			operating-points-v2 = <&a53_opp_table>;
116a1406b72SAnson Huang			cpu-idle-states = <&cpu_pd_wait>;
11711699fd5SAnson Huang			#cooling-cells = <2>;
118a05ea40eSJacky Bai		};
119a05ea40eSJacky Bai
120a05ea40eSJacky Bai		A53_3: cpu@3 {
121a05ea40eSJacky Bai			device_type = "cpu";
122a05ea40eSJacky Bai			compatible = "arm,cortex-a53";
123a05ea40eSJacky Bai			reg = <0x3>;
124e85c9d0fSLeonard Crestez			clock-latency = <61036>; /* two CLK32 periods */
125e85c9d0fSLeonard Crestez			clocks = <&clk IMX8MM_CLK_ARM>;
126a05ea40eSJacky Bai			enable-method = "psci";
127cb551b5eSPeng Fan			i-cache-size = <0x8000>;
128cb551b5eSPeng Fan			i-cache-line-size = <64>;
129cb551b5eSPeng Fan			i-cache-sets = <256>;
130cb551b5eSPeng Fan			d-cache-size = <0x8000>;
131cb551b5eSPeng Fan			d-cache-line-size = <64>;
132cb551b5eSPeng Fan			d-cache-sets = <128>;
133a05ea40eSJacky Bai			next-level-cache = <&A53_L2>;
134e85c9d0fSLeonard Crestez			operating-points-v2 = <&a53_opp_table>;
135a1406b72SAnson Huang			cpu-idle-states = <&cpu_pd_wait>;
13611699fd5SAnson Huang			#cooling-cells = <2>;
137a05ea40eSJacky Bai		};
138a05ea40eSJacky Bai
139a05ea40eSJacky Bai		A53_L2: l2-cache0 {
140a05ea40eSJacky Bai			compatible = "cache";
141cb551b5eSPeng Fan			cache-level = <2>;
1423b450831SPierre Gondois			cache-unified;
143cb551b5eSPeng Fan			cache-size = <0x80000>;
144cb551b5eSPeng Fan			cache-line-size = <64>;
145cb551b5eSPeng Fan			cache-sets = <512>;
146a05ea40eSJacky Bai		};
147a05ea40eSJacky Bai	};
148a05ea40eSJacky Bai
149e85c9d0fSLeonard Crestez	a53_opp_table: opp-table {
150e85c9d0fSLeonard Crestez		compatible = "operating-points-v2";
151e85c9d0fSLeonard Crestez		opp-shared;
152e85c9d0fSLeonard Crestez
153e85c9d0fSLeonard Crestez		opp-1200000000 {
154e85c9d0fSLeonard Crestez			opp-hz = /bits/ 64 <1200000000>;
155e85c9d0fSLeonard Crestez			opp-microvolt = <850000>;
156f403a26cSLeonard Crestez			opp-supported-hw = <0xe>, <0x7>;
157e85c9d0fSLeonard Crestez			clock-latency-ns = <150000>;
1580d9df581SAnson Huang			opp-suspend;
159e85c9d0fSLeonard Crestez		};
160e85c9d0fSLeonard Crestez
161e85c9d0fSLeonard Crestez		opp-1600000000 {
162e85c9d0fSLeonard Crestez			opp-hz = /bits/ 64 <1600000000>;
163d19d2152SLucas Stach			opp-microvolt = <950000>;
164f403a26cSLeonard Crestez			opp-supported-hw = <0xc>, <0x7>;
165e85c9d0fSLeonard Crestez			clock-latency-ns = <150000>;
1660d9df581SAnson Huang			opp-suspend;
167f403a26cSLeonard Crestez		};
168f403a26cSLeonard Crestez
169f403a26cSLeonard Crestez		opp-1800000000 {
170f403a26cSLeonard Crestez			opp-hz = /bits/ 64 <1800000000>;
171f403a26cSLeonard Crestez			opp-microvolt = <1000000>;
172cd7c2ddfSAnson Huang			opp-supported-hw = <0x8>, <0x3>;
173f403a26cSLeonard Crestez			clock-latency-ns = <150000>;
1740d9df581SAnson Huang			opp-suspend;
175e85c9d0fSLeonard Crestez		};
176e85c9d0fSLeonard Crestez	};
177e85c9d0fSLeonard Crestez
178a05ea40eSJacky Bai	osc_32k: clock-osc-32k {
179a05ea40eSJacky Bai		compatible = "fixed-clock";
180a05ea40eSJacky Bai		#clock-cells = <0>;
181a05ea40eSJacky Bai		clock-frequency = <32768>;
182a05ea40eSJacky Bai		clock-output-names = "osc_32k";
183a05ea40eSJacky Bai	};
184a05ea40eSJacky Bai
185a05ea40eSJacky Bai	osc_24m: clock-osc-24m {
186a05ea40eSJacky Bai		compatible = "fixed-clock";
187a05ea40eSJacky Bai		#clock-cells = <0>;
188a05ea40eSJacky Bai		clock-frequency = <24000000>;
189a05ea40eSJacky Bai		clock-output-names = "osc_24m";
190a05ea40eSJacky Bai	};
191a05ea40eSJacky Bai
192a05ea40eSJacky Bai	clk_ext1: clock-ext1 {
193a05ea40eSJacky Bai		compatible = "fixed-clock";
194a05ea40eSJacky Bai		#clock-cells = <0>;
195a05ea40eSJacky Bai		clock-frequency = <133000000>;
196a05ea40eSJacky Bai		clock-output-names = "clk_ext1";
197a05ea40eSJacky Bai	};
198a05ea40eSJacky Bai
199a05ea40eSJacky Bai	clk_ext2: clock-ext2 {
200a05ea40eSJacky Bai		compatible = "fixed-clock";
201a05ea40eSJacky Bai		#clock-cells = <0>;
202a05ea40eSJacky Bai		clock-frequency = <133000000>;
203a05ea40eSJacky Bai		clock-output-names = "clk_ext2";
204a05ea40eSJacky Bai	};
205a05ea40eSJacky Bai
206a05ea40eSJacky Bai	clk_ext3: clock-ext3 {
207a05ea40eSJacky Bai		compatible = "fixed-clock";
208a05ea40eSJacky Bai		#clock-cells = <0>;
209a05ea40eSJacky Bai		clock-frequency = <133000000>;
210a05ea40eSJacky Bai		clock-output-names = "clk_ext3";
211a05ea40eSJacky Bai	};
212a05ea40eSJacky Bai
213a05ea40eSJacky Bai	clk_ext4: clock-ext4 {
214a05ea40eSJacky Bai		compatible = "fixed-clock";
215a05ea40eSJacky Bai		#clock-cells = <0>;
216a05ea40eSJacky Bai		clock-frequency = <133000000>;
217a05ea40eSJacky Bai		clock-output-names = "clk_ext4";
218a05ea40eSJacky Bai	};
219a05ea40eSJacky Bai
220a05ea40eSJacky Bai	psci {
221a05ea40eSJacky Bai		compatible = "arm,psci-1.0";
222a05ea40eSJacky Bai		method = "smc";
223a05ea40eSJacky Bai	};
224a05ea40eSJacky Bai
225a05ea40eSJacky Bai	pmu {
226ceec36eeSPeng Fan		compatible = "arm,cortex-a53-pmu";
227a05ea40eSJacky Bai		interrupts = <GIC_PPI 7
2285c22a9afSKrzysztof Kozlowski			     (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
229a05ea40eSJacky Bai	};
230a05ea40eSJacky Bai
231a05ea40eSJacky Bai	timer {
232a05ea40eSJacky Bai		compatible = "arm,armv8-timer";
2335c22a9afSKrzysztof Kozlowski		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Secure */
2345c22a9afSKrzysztof Kozlowski			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Non-Secure */
2355c22a9afSKrzysztof Kozlowski			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Virtual */
2365c22a9afSKrzysztof Kozlowski			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; /* Hypervisor */
237a05ea40eSJacky Bai		clock-frequency = <8000000>;
238a05ea40eSJacky Bai		arm,no-tick-in-suspend;
239a05ea40eSJacky Bai	};
240a05ea40eSJacky Bai
24111699fd5SAnson Huang	thermal-zones {
24211699fd5SAnson Huang		cpu-thermal {
24311699fd5SAnson Huang			polling-delay-passive = <250>;
24411699fd5SAnson Huang			polling-delay = <2000>;
24511699fd5SAnson Huang			thermal-sensors = <&tmu>;
24611699fd5SAnson Huang			trips {
24711699fd5SAnson Huang				cpu_alert0: trip0 {
24811699fd5SAnson Huang					temperature = <85000>;
24911699fd5SAnson Huang					hysteresis = <2000>;
25011699fd5SAnson Huang					type = "passive";
25111699fd5SAnson Huang				};
25211699fd5SAnson Huang
25311699fd5SAnson Huang				cpu_crit0: trip1 {
25411699fd5SAnson Huang					temperature = <95000>;
25511699fd5SAnson Huang					hysteresis = <2000>;
25611699fd5SAnson Huang					type = "critical";
25711699fd5SAnson Huang				};
25811699fd5SAnson Huang			};
25911699fd5SAnson Huang
26011699fd5SAnson Huang			cooling-maps {
26111699fd5SAnson Huang				map0 {
26211699fd5SAnson Huang					trip = <&cpu_alert0>;
26311699fd5SAnson Huang					cooling-device =
26411699fd5SAnson Huang						<&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
26511699fd5SAnson Huang						<&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
26611699fd5SAnson Huang						<&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
26711699fd5SAnson Huang						<&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
26811699fd5SAnson Huang				};
26911699fd5SAnson Huang			};
27011699fd5SAnson Huang		};
27111699fd5SAnson Huang	};
27211699fd5SAnson Huang
273a656622aSFabio Estevam	usbphynop1: usbphynop1 {
27478e80c4bSMarek Vasut		#phy-cells = <0>;
275a656622aSFabio Estevam		compatible = "usb-nop-xceiv";
276a656622aSFabio Estevam		clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
277a656622aSFabio Estevam		assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
278a656622aSFabio Estevam		assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
279a656622aSFabio Estevam		clock-names = "main_clk";
2804585c79fSLi Jun		power-domains = <&pgc_otg1>;
281a656622aSFabio Estevam	};
282a656622aSFabio Estevam
283a656622aSFabio Estevam	usbphynop2: usbphynop2 {
28478e80c4bSMarek Vasut		#phy-cells = <0>;
285a656622aSFabio Estevam		compatible = "usb-nop-xceiv";
286a656622aSFabio Estevam		clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
287a656622aSFabio Estevam		assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
288a656622aSFabio Estevam		assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
289a656622aSFabio Estevam		clock-names = "main_clk";
2904585c79fSLi Jun		power-domains = <&pgc_otg2>;
291a656622aSFabio Estevam	};
292a656622aSFabio Estevam
293fcdef92bSFabio Estevam	soc: soc@0 {
294ce58459dSAlice Guo		compatible = "fsl,imx8mm-soc", "simple-bus";
295a05ea40eSJacky Bai		#address-cells = <1>;
296a05ea40eSJacky Bai		#size-cells = <1>;
297a05ea40eSJacky Bai		ranges = <0x0 0x0 0x0 0x3e000000>;
2984251a3acSLucas Stach		dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>;
299cbff2379SAlice Guo		nvmem-cells = <&imx8mm_uid>;
300cbff2379SAlice Guo		nvmem-cell-names = "soc_unique_id";
301a05ea40eSJacky Bai
302a05ea40eSJacky Bai		aips1: bus@30000000 {
303dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
304921a6845SFabio Estevam			reg = <0x30000000 0x400000>;
305a05ea40eSJacky Bai			#address-cells = <1>;
306a05ea40eSJacky Bai			#size-cells = <1>;
30710c74207SFabio Estevam			ranges = <0x30000000 0x30000000 0x400000>;
308a05ea40eSJacky Bai
3097923353bSAdam Ford			spba2: spba-bus@30000000 {
3107923353bSAdam Ford				compatible = "fsl,spba-bus", "simple-bus";
3117923353bSAdam Ford				#address-cells = <1>;
3127923353bSAdam Ford				#size-cells = <1>;
3137923353bSAdam Ford				reg = <0x30000000 0x100000>;
3147923353bSAdam Ford				ranges;
3157923353bSAdam Ford
3164bee4357SDaniel Baluta				sai1: sai@30010000 {
317ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3184bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3194bee4357SDaniel Baluta					reg = <0x30010000 0x10000>;
3204bee4357SDaniel Baluta					interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
3214bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI1_IPG>,
3224bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI1_ROOT>,
3234bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3244bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3254bee4357SDaniel Baluta					dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
3264bee4357SDaniel Baluta					dma-names = "rx", "tx";
3274bee4357SDaniel Baluta					status = "disabled";
3284bee4357SDaniel Baluta				};
3294bee4357SDaniel Baluta
3304bee4357SDaniel Baluta				sai2: sai@30020000 {
331ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3324bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3334bee4357SDaniel Baluta					reg = <0x30020000 0x10000>;
3344bee4357SDaniel Baluta					interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
3354bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI2_IPG>,
3364bee4357SDaniel Baluta						<&clk IMX8MM_CLK_SAI2_ROOT>,
3374bee4357SDaniel Baluta						<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3384bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3394bee4357SDaniel Baluta					dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>;
3404bee4357SDaniel Baluta					dma-names = "rx", "tx";
3414bee4357SDaniel Baluta					status = "disabled";
3424bee4357SDaniel Baluta				};
3434bee4357SDaniel Baluta
3444bee4357SDaniel Baluta				sai3: sai@30030000 {
3454bee4357SDaniel Baluta					#sound-dai-cells = <0>;
3464bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3474bee4357SDaniel Baluta					reg = <0x30030000 0x10000>;
3484bee4357SDaniel Baluta					interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
3494bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI3_IPG>,
3504bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI3_ROOT>,
3514bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3524bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3534bee4357SDaniel Baluta					dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>;
3544bee4357SDaniel Baluta					dma-names = "rx", "tx";
3554bee4357SDaniel Baluta					status = "disabled";
3564bee4357SDaniel Baluta				};
3574bee4357SDaniel Baluta
3584bee4357SDaniel Baluta				sai5: sai@30050000 {
359ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3604bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3614bee4357SDaniel Baluta					reg = <0x30050000 0x10000>;
3624bee4357SDaniel Baluta					interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
3634bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI5_IPG>,
3644bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI5_ROOT>,
3654bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3664bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3674bee4357SDaniel Baluta					dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>;
3684bee4357SDaniel Baluta					dma-names = "rx", "tx";
3694bee4357SDaniel Baluta					status = "disabled";
3704bee4357SDaniel Baluta				};
3714bee4357SDaniel Baluta
3724bee4357SDaniel Baluta				sai6: sai@30060000 {
373ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3744bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3754bee4357SDaniel Baluta					reg = <0x30060000 0x10000>;
3764bee4357SDaniel Baluta					interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
3774bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI6_IPG>,
3784bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI6_ROOT>,
3794bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3804bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3814bee4357SDaniel Baluta					dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>;
3824bee4357SDaniel Baluta					dma-names = "rx", "tx";
3834bee4357SDaniel Baluta					status = "disabled";
3844bee4357SDaniel Baluta				};
385a05ea40eSJacky Bai
3863bd0788cSAdam Ford				micfil: audio-controller@30080000 {
3873bd0788cSAdam Ford					compatible = "fsl,imx8mm-micfil";
3883bd0788cSAdam Ford					reg = <0x30080000 0x10000>;
3893bd0788cSAdam Ford					interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
3903bd0788cSAdam Ford						     <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
3913bd0788cSAdam Ford						     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
3923bd0788cSAdam Ford						     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
3933bd0788cSAdam Ford					clocks = <&clk IMX8MM_CLK_PDM_IPG>,
3943bd0788cSAdam Ford						 <&clk IMX8MM_CLK_PDM_ROOT>,
3953bd0788cSAdam Ford						 <&clk IMX8MM_AUDIO_PLL1_OUT>,
3963bd0788cSAdam Ford						 <&clk IMX8MM_AUDIO_PLL2_OUT>,
3973bd0788cSAdam Ford						 <&clk IMX8MM_CLK_EXT3>;
3983bd0788cSAdam Ford					clock-names = "ipg_clk", "ipg_clk_app",
3993bd0788cSAdam Ford						      "pll8k", "pll11k", "clkext3";
4003bd0788cSAdam Ford					dmas = <&sdma2 24 25 0x80000000>;
4013bd0788cSAdam Ford					dma-names = "rx";
4023bd0788cSAdam Ford					status = "disabled";
4033bd0788cSAdam Ford				};
4043bd0788cSAdam Ford
40557412197SAdam Ford				spdif1: spdif@30090000 {
40657412197SAdam Ford					compatible = "fsl,imx35-spdif";
40757412197SAdam Ford					reg = <0x30090000 0x10000>;
40857412197SAdam Ford					interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
40957412197SAdam Ford					clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, /* core */
41057412197SAdam Ford						 <&clk IMX8MM_CLK_24M>, /* rxtx0 */
41157412197SAdam Ford						 <&clk IMX8MM_CLK_SPDIF1>, /* rxtx1 */
41257412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx2 */
41357412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx3 */
41457412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx4 */
41557412197SAdam Ford						 <&clk IMX8MM_CLK_AUDIO_AHB>, /* rxtx5 */
41657412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx6 */
41757412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx7 */
41857412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>; /* spba */
41957412197SAdam Ford					clock-names = "core", "rxtx0",
42057412197SAdam Ford						      "rxtx1", "rxtx2",
42157412197SAdam Ford						      "rxtx3", "rxtx4",
42257412197SAdam Ford						      "rxtx5", "rxtx6",
42357412197SAdam Ford						      "rxtx7", "spba";
42457412197SAdam Ford					dmas = <&sdma2 28 18 0>, <&sdma2 29 18 0>;
42557412197SAdam Ford					dma-names = "rx", "tx";
42657412197SAdam Ford					status = "disabled";
42757412197SAdam Ford				};
4287923353bSAdam Ford			};
42957412197SAdam Ford
430a05ea40eSJacky Bai			gpio1: gpio@30200000 {
431a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
432a05ea40eSJacky Bai				reg = <0x30200000 0x10000>;
433a05ea40eSJacky Bai				interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
434a05ea40eSJacky Bai					     <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
43509892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO1_ROOT>;
436a05ea40eSJacky Bai				gpio-controller;
437a05ea40eSJacky Bai				#gpio-cells = <2>;
438a05ea40eSJacky Bai				interrupt-controller;
439a05ea40eSJacky Bai				#interrupt-cells = <2>;
44015626359SAnson Huang				gpio-ranges = <&iomuxc 0 10 30>;
441a05ea40eSJacky Bai			};
442a05ea40eSJacky Bai
443a05ea40eSJacky Bai			gpio2: gpio@30210000 {
444a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
445a05ea40eSJacky Bai				reg = <0x30210000 0x10000>;
446a05ea40eSJacky Bai				interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
447a05ea40eSJacky Bai					     <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
44809892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO2_ROOT>;
449a05ea40eSJacky Bai				gpio-controller;
450a05ea40eSJacky Bai				#gpio-cells = <2>;
451a05ea40eSJacky Bai				interrupt-controller;
452a05ea40eSJacky Bai				#interrupt-cells = <2>;
45315626359SAnson Huang				gpio-ranges = <&iomuxc 0 40 21>;
454a05ea40eSJacky Bai			};
455a05ea40eSJacky Bai
456a05ea40eSJacky Bai			gpio3: gpio@30220000 {
457a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
458a05ea40eSJacky Bai				reg = <0x30220000 0x10000>;
459a05ea40eSJacky Bai				interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
460a05ea40eSJacky Bai					     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
46109892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO3_ROOT>;
462a05ea40eSJacky Bai				gpio-controller;
463a05ea40eSJacky Bai				#gpio-cells = <2>;
464a05ea40eSJacky Bai				interrupt-controller;
465a05ea40eSJacky Bai				#interrupt-cells = <2>;
46615626359SAnson Huang				gpio-ranges = <&iomuxc 0 61 26>;
467a05ea40eSJacky Bai			};
468a05ea40eSJacky Bai
469a05ea40eSJacky Bai			gpio4: gpio@30230000 {
470a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
471a05ea40eSJacky Bai				reg = <0x30230000 0x10000>;
472a05ea40eSJacky Bai				interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
473a05ea40eSJacky Bai					     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
47409892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO4_ROOT>;
475a05ea40eSJacky Bai				gpio-controller;
476a05ea40eSJacky Bai				#gpio-cells = <2>;
477a05ea40eSJacky Bai				interrupt-controller;
478a05ea40eSJacky Bai				#interrupt-cells = <2>;
47915626359SAnson Huang				gpio-ranges = <&iomuxc 0 87 32>;
480a05ea40eSJacky Bai			};
481a05ea40eSJacky Bai
482a05ea40eSJacky Bai			gpio5: gpio@30240000 {
483a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
484a05ea40eSJacky Bai				reg = <0x30240000 0x10000>;
485a05ea40eSJacky Bai				interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
486a05ea40eSJacky Bai					     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
48709892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO5_ROOT>;
488a05ea40eSJacky Bai				gpio-controller;
489a05ea40eSJacky Bai				#gpio-cells = <2>;
490a05ea40eSJacky Bai				interrupt-controller;
491a05ea40eSJacky Bai				#interrupt-cells = <2>;
49215626359SAnson Huang				gpio-ranges = <&iomuxc 0 119 30>;
493a05ea40eSJacky Bai			};
494a05ea40eSJacky Bai
49511699fd5SAnson Huang			tmu: tmu@30260000 {
49611699fd5SAnson Huang				compatible = "fsl,imx8mm-tmu";
49711699fd5SAnson Huang				reg = <0x30260000 0x10000>;
49811699fd5SAnson Huang				clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
499105b9bb8SMarek Vasut				nvmem-cells = <&tmu_calib>;
500105b9bb8SMarek Vasut				nvmem-cell-names = "calib";
50111699fd5SAnson Huang				#thermal-sensor-cells = <0>;
50211699fd5SAnson Huang			};
50311699fd5SAnson Huang
504a05ea40eSJacky Bai			wdog1: watchdog@30280000 {
505a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
506a05ea40eSJacky Bai				reg = <0x30280000 0x10000>;
507a05ea40eSJacky Bai				interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
508a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG1_ROOT>;
509a05ea40eSJacky Bai				status = "disabled";
510a05ea40eSJacky Bai			};
511a05ea40eSJacky Bai
512a05ea40eSJacky Bai			wdog2: watchdog@30290000 {
513a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
514a05ea40eSJacky Bai				reg = <0x30290000 0x10000>;
515a05ea40eSJacky Bai				interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
516a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG2_ROOT>;
517a05ea40eSJacky Bai				status = "disabled";
518a05ea40eSJacky Bai			};
519a05ea40eSJacky Bai
520a05ea40eSJacky Bai			wdog3: watchdog@302a0000 {
521a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
522a05ea40eSJacky Bai				reg = <0x302a0000 0x10000>;
523a05ea40eSJacky Bai				interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
524a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG3_ROOT>;
525a05ea40eSJacky Bai				status = "disabled";
526a05ea40eSJacky Bai			};
527a05ea40eSJacky Bai
528a05ea40eSJacky Bai			sdma2: dma-controller@302c0000 {
529e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
530a05ea40eSJacky Bai				reg = <0x302c0000 0x10000>;
531a05ea40eSJacky Bai				interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
532a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA2_ROOT>,
533a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_SDMA2_ROOT>;
534a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
535a05ea40eSJacky Bai				#dma-cells = <3>;
536a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
537a05ea40eSJacky Bai			};
538a05ea40eSJacky Bai
539a05ea40eSJacky Bai			sdma3: dma-controller@302b0000 {
540e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
541a05ea40eSJacky Bai				reg = <0x302b0000 0x10000>;
542a05ea40eSJacky Bai				interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
543a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA3_ROOT>,
544a05ea40eSJacky Bai				 <&clk IMX8MM_CLK_SDMA3_ROOT>;
545a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
546a05ea40eSJacky Bai				#dma-cells = <3>;
547a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
548a05ea40eSJacky Bai			};
549a05ea40eSJacky Bai
550a05ea40eSJacky Bai			iomuxc: pinctrl@30330000 {
551a05ea40eSJacky Bai				compatible = "fsl,imx8mm-iomuxc";
552a05ea40eSJacky Bai				reg = <0x30330000 0x10000>;
553a05ea40eSJacky Bai			};
554a05ea40eSJacky Bai
555e43f400dSPeng Fan			gpr: syscon@30340000 {
556e43f400dSPeng Fan				compatible = "fsl,imx8mm-iomuxc-gpr", "syscon";
557a05ea40eSJacky Bai				reg = <0x30340000 0x10000>;
558a05ea40eSJacky Bai			};
559a05ea40eSJacky Bai
56012fa1078SAnson Huang			ocotp: efuse@30350000 {
561b09802a0SAnson Huang				compatible = "fsl,imx8mm-ocotp", "syscon";
562a05ea40eSJacky Bai				reg = <0x30350000 0x10000>;
563a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_OCOTP_ROOT>;
564a05ea40eSJacky Bai				/* For nvmem subnodes */
565a05ea40eSJacky Bai				#address-cells = <1>;
566a05ea40eSJacky Bai				#size-cells = <1>;
567f403a26cSLeonard Crestez
5685b81a87dSMarek Vasut				/*
5695b81a87dSMarek Vasut				 * The register address below maps to the MX8M
5705b81a87dSMarek Vasut				 * Fusemap Description Table entries this way.
5715b81a87dSMarek Vasut				 * Assuming
5725b81a87dSMarek Vasut				 *   reg = <ADDR SIZE>;
5735b81a87dSMarek Vasut				 * then
5745b81a87dSMarek Vasut				 *   Fuse Address = (ADDR * 4) + 0x400
5755b81a87dSMarek Vasut				 * Note that if SIZE is greater than 4, then
5765b81a87dSMarek Vasut				 * each subsequent fuse is located at offset
5775b81a87dSMarek Vasut				 * +0x10 in Fusemap Description Table (e.g.
5785b81a87dSMarek Vasut				 * reg = <0x4 0x8> describes fuses 0x410 and
5795b81a87dSMarek Vasut				 * 0x420).
5805b81a87dSMarek Vasut				 */
5815b81a87dSMarek Vasut				imx8mm_uid: unique-id@4 { /* 0x410-0x420 */
582cbff2379SAlice Guo					reg = <0x4 0x8>;
583cbff2379SAlice Guo				};
584cbff2379SAlice Guo
5855b81a87dSMarek Vasut				cpu_speed_grade: speed-grade@10 { /* 0x440 */
586f403a26cSLeonard Crestez					reg = <0x10 4>;
587f403a26cSLeonard Crestez				};
588066438aeSJoakim Zhang
589105b9bb8SMarek Vasut				tmu_calib: calib@3c { /* 0x4f0 */
590105b9bb8SMarek Vasut					reg = <0x3c 4>;
591105b9bb8SMarek Vasut				};
592105b9bb8SMarek Vasut
5935b81a87dSMarek Vasut				fec_mac_address: mac-address@90 { /* 0x640 */
594066438aeSJoakim Zhang					reg = <0x90 6>;
595066438aeSJoakim Zhang				};
596a05ea40eSJacky Bai			};
597a05ea40eSJacky Bai
598f98c2dfeSPeng Fan			anatop: clock-controller@30360000 {
599f98c2dfeSPeng Fan				compatible = "fsl,imx8mm-anatop";
600a05ea40eSJacky Bai				reg = <0x30360000 0x10000>;
601f98c2dfeSPeng Fan				#clock-cells = <1>;
602a05ea40eSJacky Bai			};
603a05ea40eSJacky Bai
604a05ea40eSJacky Bai			snvs: snvs@30370000 {
605a05ea40eSJacky Bai				compatible = "fsl,sec-v4.0-mon","syscon", "simple-mfd";
606a05ea40eSJacky Bai				reg = <0x30370000 0x10000>;
607a05ea40eSJacky Bai
608a05ea40eSJacky Bai				snvs_rtc: snvs-rtc-lp {
609a05ea40eSJacky Bai					compatible = "fsl,sec-v4.0-mon-rtc-lp";
610a05ea40eSJacky Bai					regmap = <&snvs>;
611a05ea40eSJacky Bai					offset = <0x34>;
612a05ea40eSJacky Bai					interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
613a05ea40eSJacky Bai						     <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
614f145b209SAnson Huang					clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
615f145b209SAnson Huang					clock-names = "snvs-rtc";
616a05ea40eSJacky Bai				};
617a05ea40eSJacky Bai
618a05ea40eSJacky Bai				snvs_pwrkey: snvs-powerkey {
619a05ea40eSJacky Bai					compatible = "fsl,sec-v4.0-pwrkey";
620a05ea40eSJacky Bai					regmap = <&snvs>;
621a05ea40eSJacky Bai					interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
62246770eaeSAndré Draszik					clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
62346770eaeSAndré Draszik					clock-names = "snvs-pwrkey";
624a05ea40eSJacky Bai					linux,keycode = <KEY_POWER>;
625a05ea40eSJacky Bai					wakeup-source;
626d038c1dcSAnson Huang					status = "disabled";
627a05ea40eSJacky Bai				};
628fd207b47SMarek Vasut
629fd207b47SMarek Vasut				snvs_lpgpr: snvs-lpgpr {
630fd207b47SMarek Vasut					compatible = "fsl,imx8mm-snvs-lpgpr",
631fd207b47SMarek Vasut						     "fsl,imx7d-snvs-lpgpr";
632fd207b47SMarek Vasut				};
633a05ea40eSJacky Bai			};
634a05ea40eSJacky Bai
635a05ea40eSJacky Bai			clk: clock-controller@30380000 {
636a05ea40eSJacky Bai				compatible = "fsl,imx8mm-ccm";
637a05ea40eSJacky Bai				reg = <0x30380000 0x10000>;
638a05ea40eSJacky Bai				#clock-cells = <1>;
639a05ea40eSJacky Bai				clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>,
640a05ea40eSJacky Bai					 <&clk_ext3>, <&clk_ext4>;
641a05ea40eSJacky Bai				clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2",
642a05ea40eSJacky Bai					      "clk_ext3", "clk_ext4";
6439e6337e6SPeng Fan				assigned-clocks = <&clk IMX8MM_CLK_A53_SRC>,
6449e6337e6SPeng Fan						<&clk IMX8MM_CLK_A53_CORE>,
6459e6337e6SPeng Fan						<&clk IMX8MM_CLK_NOC>,
6466b392e16SAbel Vesa						<&clk IMX8MM_CLK_AUDIO_AHB>,
6476b392e16SAbel Vesa						<&clk IMX8MM_CLK_IPG_AUDIO_ROOT>,
6486b392e16SAbel Vesa						<&clk IMX8MM_SYS_PLL3>,
649e8b395b2SS.j. Wang						<&clk IMX8MM_VIDEO_PLL1>,
650842912c4SLucas Stach						<&clk IMX8MM_AUDIO_PLL1>;
6519e6337e6SPeng Fan				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>,
6529e6337e6SPeng Fan							 <&clk IMX8MM_ARM_PLL_OUT>,
6539e6337e6SPeng Fan							 <&clk IMX8MM_SYS_PLL3_OUT>,
6546b392e16SAbel Vesa							 <&clk IMX8MM_SYS_PLL1_800M>;
6559e6337e6SPeng Fan				assigned-clock-rates = <0>, <0>, <0>,
6566b392e16SAbel Vesa							<400000000>,
6576b392e16SAbel Vesa							<400000000>,
6586b392e16SAbel Vesa							<750000000>,
659e8b395b2SS.j. Wang							<594000000>,
660842912c4SLucas Stach							<393216000>;
661a05ea40eSJacky Bai			};
662a05ea40eSJacky Bai
663a05ea40eSJacky Bai			src: reset-controller@30390000 {
66446b29f4bSAnson Huang				compatible = "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon";
665a05ea40eSJacky Bai				reg = <0x30390000 0x10000>;
666a05ea40eSJacky Bai				interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
667a05ea40eSJacky Bai				#reset-cells = <1>;
668a05ea40eSJacky Bai			};
669d39d4bb1SLucas Stach
670d39d4bb1SLucas Stach			gpc: gpc@303a0000 {
671d39d4bb1SLucas Stach				compatible = "fsl,imx8mm-gpc";
672d39d4bb1SLucas Stach				reg = <0x303a0000 0x10000>;
673d39d4bb1SLucas Stach				interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
674d39d4bb1SLucas Stach				interrupt-parent = <&gic>;
675d39d4bb1SLucas Stach				interrupt-controller;
676d39d4bb1SLucas Stach				#interrupt-cells = <3>;
677d39d4bb1SLucas Stach
678d39d4bb1SLucas Stach				pgc {
679d39d4bb1SLucas Stach					#address-cells = <1>;
680d39d4bb1SLucas Stach					#size-cells = <0>;
681d39d4bb1SLucas Stach
682d39d4bb1SLucas Stach					pgc_hsiomix: power-domain@0 {
683d39d4bb1SLucas Stach						#power-domain-cells = <0>;
684d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_HSIOMIX>;
685d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_USB_BUS>;
686d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
687d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
688d39d4bb1SLucas Stach					};
689d39d4bb1SLucas Stach
690d39d4bb1SLucas Stach					pgc_pcie: power-domain@1 {
691d39d4bb1SLucas Stach						#power-domain-cells = <0>;
692d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_PCIE>;
693d39d4bb1SLucas Stach						power-domains = <&pgc_hsiomix>;
694d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>;
695d39d4bb1SLucas Stach					};
696d39d4bb1SLucas Stach
697d39d4bb1SLucas Stach					pgc_otg1: power-domain@2 {
698d39d4bb1SLucas Stach						#power-domain-cells = <0>;
699d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_OTG1>;
700d39d4bb1SLucas Stach					};
701d39d4bb1SLucas Stach
702d39d4bb1SLucas Stach					pgc_otg2: power-domain@3 {
703d39d4bb1SLucas Stach						#power-domain-cells = <0>;
704d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_OTG2>;
705d39d4bb1SLucas Stach					};
706d39d4bb1SLucas Stach
707d39d4bb1SLucas Stach					pgc_gpumix: power-domain@4 {
708d39d4bb1SLucas Stach						#power-domain-cells = <0>;
709d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_GPUMIX>;
710d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
711d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU_AHB>;
712d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_GPU_AXI>,
713d39d4bb1SLucas Stach								  <&clk IMX8MM_CLK_GPU_AHB>;
714d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>,
715d39d4bb1SLucas Stach									 <&clk IMX8MM_SYS_PLL1_800M>;
716d39d4bb1SLucas Stach						assigned-clock-rates = <800000000>, <400000000>;
717d39d4bb1SLucas Stach					};
718d39d4bb1SLucas Stach
719d39d4bb1SLucas Stach					pgc_gpu: power-domain@5 {
720d39d4bb1SLucas Stach						#power-domain-cells = <0>;
721d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_GPU>;
722d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_GPU_AHB>,
723d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
724d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU2D_ROOT>,
725d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU3D_ROOT>;
726d39d4bb1SLucas Stach						resets = <&src IMX8MQ_RESET_GPU_RESET>;
727d39d4bb1SLucas Stach						power-domains = <&pgc_gpumix>;
728d39d4bb1SLucas Stach					};
729d39d4bb1SLucas Stach
730d39d4bb1SLucas Stach					pgc_vpumix: power-domain@6 {
731d39d4bb1SLucas Stach						#power-domain-cells = <0>;
732d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUMIX>;
733d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_VPU_DEC_ROOT>;
734d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_VPU_BUS>;
735d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>;
736d39d4bb1SLucas Stach					};
737d39d4bb1SLucas Stach
738d39d4bb1SLucas Stach					pgc_vpu_g1: power-domain@7 {
739d39d4bb1SLucas Stach						#power-domain-cells = <0>;
740d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUG1>;
741d39d4bb1SLucas Stach					};
742d39d4bb1SLucas Stach
743d39d4bb1SLucas Stach					pgc_vpu_g2: power-domain@8 {
744d39d4bb1SLucas Stach						#power-domain-cells = <0>;
745d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUG2>;
746d39d4bb1SLucas Stach					};
747d39d4bb1SLucas Stach
748d39d4bb1SLucas Stach					pgc_vpu_h1: power-domain@9 {
749d39d4bb1SLucas Stach						#power-domain-cells = <0>;
750d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUH1>;
751d39d4bb1SLucas Stach					};
752d39d4bb1SLucas Stach
753d39d4bb1SLucas Stach					pgc_dispmix: power-domain@10 {
754d39d4bb1SLucas Stach						#power-domain-cells = <0>;
755d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_DISPMIX>;
756d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
757d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
758d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_DISP_AXI>,
759d39d4bb1SLucas Stach								  <&clk IMX8MM_CLK_DISP_APB>;
760d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
761d39d4bb1SLucas Stach									 <&clk IMX8MM_SYS_PLL1_800M>;
762d39d4bb1SLucas Stach						assigned-clock-rates = <500000000>, <200000000>;
763d39d4bb1SLucas Stach					};
764d39d4bb1SLucas Stach
765d39d4bb1SLucas Stach					pgc_mipi: power-domain@11 {
766d39d4bb1SLucas Stach						#power-domain-cells = <0>;
767d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_MIPI>;
768d39d4bb1SLucas Stach					};
769d39d4bb1SLucas Stach				};
770d39d4bb1SLucas Stach			};
771a05ea40eSJacky Bai		};
772a05ea40eSJacky Bai
773a05ea40eSJacky Bai		aips2: bus@30400000 {
774dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
775921a6845SFabio Estevam			reg = <0x30400000 0x400000>;
776a05ea40eSJacky Bai			#address-cells = <1>;
777a05ea40eSJacky Bai			#size-cells = <1>;
77810c74207SFabio Estevam			ranges = <0x30400000 0x30400000 0x400000>;
779a05ea40eSJacky Bai
780a05ea40eSJacky Bai			pwm1: pwm@30660000 {
781a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
782a05ea40eSJacky Bai				reg = <0x30660000 0x10000>;
783a05ea40eSJacky Bai				interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
784a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM1_ROOT>,
785a05ea40eSJacky Bai					<&clk IMX8MM_CLK_PWM1_ROOT>;
786a05ea40eSJacky Bai				clock-names = "ipg", "per";
787957aef02SMarkus Niebel				#pwm-cells = <3>;
788a05ea40eSJacky Bai				status = "disabled";
789a05ea40eSJacky Bai			};
790a05ea40eSJacky Bai
791a05ea40eSJacky Bai			pwm2: pwm@30670000 {
792a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
793a05ea40eSJacky Bai				reg = <0x30670000 0x10000>;
794a05ea40eSJacky Bai				interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
795a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM2_ROOT>,
796a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM2_ROOT>;
797a05ea40eSJacky Bai				clock-names = "ipg", "per";
798957aef02SMarkus Niebel				#pwm-cells = <3>;
799a05ea40eSJacky Bai				status = "disabled";
800a05ea40eSJacky Bai			};
801a05ea40eSJacky Bai
802a05ea40eSJacky Bai			pwm3: pwm@30680000 {
803a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
804a05ea40eSJacky Bai				reg = <0x30680000 0x10000>;
805a05ea40eSJacky Bai				interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
806a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM3_ROOT>,
807a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM3_ROOT>;
808a05ea40eSJacky Bai				clock-names = "ipg", "per";
809957aef02SMarkus Niebel				#pwm-cells = <3>;
810a05ea40eSJacky Bai				status = "disabled";
811a05ea40eSJacky Bai			};
812a05ea40eSJacky Bai
813a05ea40eSJacky Bai			pwm4: pwm@30690000 {
814a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
815a05ea40eSJacky Bai				reg = <0x30690000 0x10000>;
816a05ea40eSJacky Bai				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
817a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM4_ROOT>,
818a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM4_ROOT>;
819a05ea40eSJacky Bai				clock-names = "ipg", "per";
820957aef02SMarkus Niebel				#pwm-cells = <3>;
821a05ea40eSJacky Bai				status = "disabled";
822a05ea40eSJacky Bai			};
8235b0221bfSAnson Huang
8245b0221bfSAnson Huang			system_counter: timer@306a0000 {
8255b0221bfSAnson Huang				compatible = "nxp,sysctr-timer";
8265b0221bfSAnson Huang				reg = <0x306a0000 0x20000>;
8275b0221bfSAnson Huang				interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
8285b0221bfSAnson Huang				clocks = <&osc_24m>;
8295b0221bfSAnson Huang				clock-names = "per";
8305b0221bfSAnson Huang			};
831a05ea40eSJacky Bai		};
832a05ea40eSJacky Bai
833a05ea40eSJacky Bai		aips3: bus@30800000 {
834dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
835921a6845SFabio Estevam			reg = <0x30800000 0x400000>;
836a05ea40eSJacky Bai			#address-cells = <1>;
837a05ea40eSJacky Bai			#size-cells = <1>;
838f0692bb8SAdam Ford			ranges = <0x30800000 0x30800000 0x400000>,
839f0692bb8SAdam Ford				 <0x8000000 0x8000000 0x10000000>;
840a05ea40eSJacky Bai
8417923353bSAdam Ford			spba1: spba-bus@30800000 {
8427923353bSAdam Ford				compatible = "fsl,spba-bus", "simple-bus";
8437923353bSAdam Ford				#address-cells = <1>;
8447923353bSAdam Ford				#size-cells = <1>;
8457923353bSAdam Ford				reg = <0x30800000 0x100000>;
8467923353bSAdam Ford				ranges;
8477923353bSAdam Ford
848a05ea40eSJacky Bai				ecspi1: spi@30820000 {
849a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
850a05ea40eSJacky Bai					#address-cells = <1>;
851a05ea40eSJacky Bai					#size-cells = <0>;
852a05ea40eSJacky Bai					reg = <0x30820000 0x10000>;
853a05ea40eSJacky Bai					interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
854a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>,
855a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI1_ROOT>;
856a05ea40eSJacky Bai					clock-names = "ipg", "per";
857a05ea40eSJacky Bai					dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>;
858a05ea40eSJacky Bai					dma-names = "rx", "tx";
859a05ea40eSJacky Bai					status = "disabled";
860a05ea40eSJacky Bai				};
861a05ea40eSJacky Bai
862a05ea40eSJacky Bai				ecspi2: spi@30830000 {
863a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
864a05ea40eSJacky Bai					#address-cells = <1>;
865a05ea40eSJacky Bai					#size-cells = <0>;
866a05ea40eSJacky Bai					reg = <0x30830000 0x10000>;
867a05ea40eSJacky Bai					interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
868a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI2_ROOT>,
869a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI2_ROOT>;
870a05ea40eSJacky Bai					clock-names = "ipg", "per";
871a05ea40eSJacky Bai					dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>;
872a05ea40eSJacky Bai					dma-names = "rx", "tx";
873a05ea40eSJacky Bai					status = "disabled";
874a05ea40eSJacky Bai				};
875a05ea40eSJacky Bai
876a05ea40eSJacky Bai				ecspi3: spi@30840000 {
877a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
878a05ea40eSJacky Bai					#address-cells = <1>;
879a05ea40eSJacky Bai					#size-cells = <0>;
880a05ea40eSJacky Bai					reg = <0x30840000 0x10000>;
881a05ea40eSJacky Bai					interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
882a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI3_ROOT>,
883a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI3_ROOT>;
884a05ea40eSJacky Bai					clock-names = "ipg", "per";
885a05ea40eSJacky Bai					dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>;
886a05ea40eSJacky Bai					dma-names = "rx", "tx";
887a05ea40eSJacky Bai					status = "disabled";
888a05ea40eSJacky Bai				};
889a05ea40eSJacky Bai
890a05ea40eSJacky Bai				uart1: serial@30860000 {
891a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
892a05ea40eSJacky Bai					reg = <0x30860000 0x10000>;
893a05ea40eSJacky Bai					interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
894a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART1_ROOT>,
895a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART1_ROOT>;
896a05ea40eSJacky Bai					clock-names = "ipg", "per";
897a05ea40eSJacky Bai					dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
898a05ea40eSJacky Bai					dma-names = "rx", "tx";
899a05ea40eSJacky Bai					status = "disabled";
900a05ea40eSJacky Bai				};
901a05ea40eSJacky Bai
902a05ea40eSJacky Bai				uart3: serial@30880000 {
903a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
904a05ea40eSJacky Bai					reg = <0x30880000 0x10000>;
905a05ea40eSJacky Bai					interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
906a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART3_ROOT>,
907a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART3_ROOT>;
908a05ea40eSJacky Bai					clock-names = "ipg", "per";
909a05ea40eSJacky Bai					dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>;
910a05ea40eSJacky Bai					dma-names = "rx", "tx";
911a05ea40eSJacky Bai					status = "disabled";
912a05ea40eSJacky Bai				};
913a05ea40eSJacky Bai
914a05ea40eSJacky Bai				uart2: serial@30890000 {
915a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
916a05ea40eSJacky Bai					reg = <0x30890000 0x10000>;
917a05ea40eSJacky Bai					interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
918a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART2_ROOT>,
919a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART2_ROOT>;
920a05ea40eSJacky Bai					clock-names = "ipg", "per";
921a05ea40eSJacky Bai					status = "disabled";
922a05ea40eSJacky Bai				};
9237923353bSAdam Ford			};
924a05ea40eSJacky Bai
925bff5b972SAdam Ford			crypto: crypto@30900000 {
926bff5b972SAdam Ford				compatible = "fsl,sec-v4.0";
927bff5b972SAdam Ford				#address-cells = <1>;
928bff5b972SAdam Ford				#size-cells = <1>;
929bff5b972SAdam Ford				reg = <0x30900000 0x40000>;
930bff5b972SAdam Ford				ranges = <0 0x30900000 0x40000>;
931bff5b972SAdam Ford				interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
932bff5b972SAdam Ford				clocks = <&clk IMX8MM_CLK_AHB>,
933bff5b972SAdam Ford					 <&clk IMX8MM_CLK_IPG_ROOT>;
934bff5b972SAdam Ford				clock-names = "aclk", "ipg";
935bff5b972SAdam Ford
936bff5b972SAdam Ford				sec_jr0: jr@1000 {
937bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
938bff5b972SAdam Ford					reg = <0x1000 0x1000>;
939bff5b972SAdam Ford					interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
940dc9c1cebSFabio Estevam					status = "disabled";
941bff5b972SAdam Ford				};
942bff5b972SAdam Ford
943bff5b972SAdam Ford				sec_jr1: jr@2000 {
944bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
945bff5b972SAdam Ford					reg = <0x2000 0x1000>;
946bff5b972SAdam Ford					interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
947bff5b972SAdam Ford				};
948bff5b972SAdam Ford
949bff5b972SAdam Ford				sec_jr2: jr@3000 {
950bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
951bff5b972SAdam Ford					reg = <0x3000 0x1000>;
952bff5b972SAdam Ford					interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
953bff5b972SAdam Ford				};
954bff5b972SAdam Ford			};
955bff5b972SAdam Ford
956a05ea40eSJacky Bai			i2c1: i2c@30a20000 {
957a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
958a05ea40eSJacky Bai				#address-cells = <1>;
959a05ea40eSJacky Bai				#size-cells = <0>;
960a05ea40eSJacky Bai				reg = <0x30a20000 0x10000>;
961a05ea40eSJacky Bai				interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
962a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C1_ROOT>;
963a05ea40eSJacky Bai				status = "disabled";
964a05ea40eSJacky Bai			};
965a05ea40eSJacky Bai
966a05ea40eSJacky Bai			i2c2: i2c@30a30000 {
967a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
968a05ea40eSJacky Bai				#address-cells = <1>;
969a05ea40eSJacky Bai				#size-cells = <0>;
970a05ea40eSJacky Bai				reg = <0x30a30000 0x10000>;
971a05ea40eSJacky Bai				interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
972a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C2_ROOT>;
973a05ea40eSJacky Bai				status = "disabled";
974a05ea40eSJacky Bai			};
975a05ea40eSJacky Bai
976a05ea40eSJacky Bai			i2c3: i2c@30a40000 {
977a05ea40eSJacky Bai				#address-cells = <1>;
978a05ea40eSJacky Bai				#size-cells = <0>;
979a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
980a05ea40eSJacky Bai				reg = <0x30a40000 0x10000>;
981a05ea40eSJacky Bai				interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
982a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C3_ROOT>;
983a05ea40eSJacky Bai				status = "disabled";
984a05ea40eSJacky Bai			};
985a05ea40eSJacky Bai
986a05ea40eSJacky Bai			i2c4: i2c@30a50000 {
987a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
988a05ea40eSJacky Bai				#address-cells = <1>;
989a05ea40eSJacky Bai				#size-cells = <0>;
990a05ea40eSJacky Bai				reg = <0x30a50000 0x10000>;
991a05ea40eSJacky Bai				interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
992a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C4_ROOT>;
993a05ea40eSJacky Bai				status = "disabled";
994a05ea40eSJacky Bai			};
995a05ea40eSJacky Bai
996a05ea40eSJacky Bai			uart4: serial@30a60000 {
997a05ea40eSJacky Bai				compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
998a05ea40eSJacky Bai				reg = <0x30a60000 0x10000>;
999a05ea40eSJacky Bai				interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1000a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_UART4_ROOT>,
1001a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_UART4_ROOT>;
1002a05ea40eSJacky Bai				clock-names = "ipg", "per";
1003a05ea40eSJacky Bai				dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
1004a05ea40eSJacky Bai				dma-names = "rx", "tx";
1005a05ea40eSJacky Bai				status = "disabled";
1006a05ea40eSJacky Bai			};
1007a05ea40eSJacky Bai
1008bbfc59beSPeng Fan			mu: mailbox@30aa0000 {
1009bbfc59beSPeng Fan				compatible = "fsl,imx8mm-mu", "fsl,imx6sx-mu";
1010bbfc59beSPeng Fan				reg = <0x30aa0000 0x10000>;
1011bbfc59beSPeng Fan				interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1012bbfc59beSPeng Fan				clocks = <&clk IMX8MM_CLK_MU_ROOT>;
1013bbfc59beSPeng Fan				#mbox-cells = <2>;
1014bbfc59beSPeng Fan			};
1015bbfc59beSPeng Fan
1016a05ea40eSJacky Bai			usdhc1: mmc@30b40000 {
1017a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1018a05ea40eSJacky Bai				reg = <0x30b40000 0x10000>;
1019a05ea40eSJacky Bai				interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
1020a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1021a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1022a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC1_ROOT>;
1023a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1024a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1025a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1026a05ea40eSJacky Bai				bus-width = <4>;
1027a05ea40eSJacky Bai				status = "disabled";
1028a05ea40eSJacky Bai			};
1029a05ea40eSJacky Bai
1030a05ea40eSJacky Bai			usdhc2: mmc@30b50000 {
1031a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1032a05ea40eSJacky Bai				reg = <0x30b50000 0x10000>;
1033a05ea40eSJacky Bai				interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
1034a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1035a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1036a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC2_ROOT>;
1037a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1038a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1039a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1040a05ea40eSJacky Bai				bus-width = <4>;
1041a05ea40eSJacky Bai				status = "disabled";
1042a05ea40eSJacky Bai			};
1043a05ea40eSJacky Bai
1044a05ea40eSJacky Bai			usdhc3: mmc@30b60000 {
1045a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1046a05ea40eSJacky Bai				reg = <0x30b60000 0x10000>;
1047a05ea40eSJacky Bai				interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1048a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1049a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1050a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC3_ROOT>;
1051a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1052a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1053a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1054a05ea40eSJacky Bai				bus-width = <4>;
1055a05ea40eSJacky Bai				status = "disabled";
1056a05ea40eSJacky Bai			};
1057a05ea40eSJacky Bai
1058f0692bb8SAdam Ford			flexspi: spi@30bb0000 {
1059f0692bb8SAdam Ford				#address-cells = <1>;
1060f0692bb8SAdam Ford				#size-cells = <0>;
1061f0692bb8SAdam Ford				compatible = "nxp,imx8mm-fspi";
1062f0692bb8SAdam Ford				reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>;
1063f0692bb8SAdam Ford				reg-names = "fspi_base", "fspi_mmap";
1064f0692bb8SAdam Ford				interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
1065f0692bb8SAdam Ford				clocks = <&clk IMX8MM_CLK_QSPI_ROOT>,
1066f0692bb8SAdam Ford					 <&clk IMX8MM_CLK_QSPI_ROOT>;
10679eaf9984SKuldeep Singh				clock-names = "fspi_en", "fspi";
1068f0692bb8SAdam Ford				status = "disabled";
1069f0692bb8SAdam Ford			};
1070f0692bb8SAdam Ford
1071a05ea40eSJacky Bai			sdma1: dma-controller@30bd0000 {
1072e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
1073a05ea40eSJacky Bai				reg = <0x30bd0000 0x10000>;
1074a05ea40eSJacky Bai				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1075a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
107624a572bfSAdam Ford					 <&clk IMX8MM_CLK_AHB>;
1077a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
1078a05ea40eSJacky Bai				#dma-cells = <3>;
1079a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
1080a05ea40eSJacky Bai			};
1081a05ea40eSJacky Bai
1082a05ea40eSJacky Bai			fec1: ethernet@30be0000 {
1083a758dee8SJoakim Zhang				compatible = "fsl,imx8mm-fec", "fsl,imx8mq-fec", "fsl,imx6sx-fec";
1084a05ea40eSJacky Bai				reg = <0x30be0000 0x10000>;
1085a05ea40eSJacky Bai				interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
1086a05ea40eSJacky Bai					     <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
1087d3762a47SFabio Estevam					     <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
1088d3762a47SFabio Estevam					     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
1089a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_ENET1_ROOT>,
1090a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET1_ROOT>,
1091a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_TIMER>,
1092a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_REF>,
1093a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_PHY_REF>;
1094a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "ptp",
1095a05ea40eSJacky Bai					      "enet_clk_ref", "enet_out";
1096a05ea40eSJacky Bai				assigned-clocks = <&clk IMX8MM_CLK_ENET_AXI>,
1097a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_TIMER>,
1098a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_REF>,
109970eacf42SJoakim Zhang						  <&clk IMX8MM_CLK_ENET_PHY_REF>;
1100a05ea40eSJacky Bai				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>,
1101a05ea40eSJacky Bai							 <&clk IMX8MM_SYS_PLL2_100M>,
110270eacf42SJoakim Zhang							 <&clk IMX8MM_SYS_PLL2_125M>,
110370eacf42SJoakim Zhang							 <&clk IMX8MM_SYS_PLL2_50M>;
110470eacf42SJoakim Zhang				assigned-clock-rates = <0>, <100000000>, <125000000>, <0>;
1105a05ea40eSJacky Bai				fsl,num-tx-queues = <3>;
1106a05ea40eSJacky Bai				fsl,num-rx-queues = <3>;
1107066438aeSJoakim Zhang				nvmem-cells = <&fec_mac_address>;
1108066438aeSJoakim Zhang				nvmem-cell-names = "mac-address";
1109afe99354SJoakim Zhang				fsl,stop-mode = <&gpr 0x10 3>;
1110a05ea40eSJacky Bai				status = "disabled";
1111a05ea40eSJacky Bai			};
1112a05ea40eSJacky Bai
1113a05ea40eSJacky Bai		};
1114a05ea40eSJacky Bai
1115a05ea40eSJacky Bai		aips4: bus@32c00000 {
1116dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
1117921a6845SFabio Estevam			reg = <0x32c00000 0x400000>;
1118a05ea40eSJacky Bai			#address-cells = <1>;
1119a05ea40eSJacky Bai			#size-cells = <1>;
112010c74207SFabio Estevam			ranges = <0x32c00000 0x32c00000 0x400000>;
1121a05ea40eSJacky Bai
1122c8c96afaSMarek Vasut			lcdif: lcdif@32e00000 {
1123c8c96afaSMarek Vasut				compatible = "fsl,imx8mm-lcdif", "fsl,imx6sx-lcdif";
1124c8c96afaSMarek Vasut				reg = <0x32e00000 0x10000>;
1125c8c96afaSMarek Vasut				clocks = <&clk IMX8MM_CLK_LCDIF_PIXEL>,
1126c8c96afaSMarek Vasut					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1127c8c96afaSMarek Vasut					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
1128c8c96afaSMarek Vasut				clock-names = "pix", "axi", "disp_axi";
1129c8c96afaSMarek Vasut				assigned-clocks = <&clk IMX8MM_CLK_LCDIF_PIXEL>,
1130c8c96afaSMarek Vasut						  <&clk IMX8MM_CLK_DISP_AXI>,
1131c8c96afaSMarek Vasut						  <&clk IMX8MM_CLK_DISP_APB>;
1132c8c96afaSMarek Vasut				assigned-clock-parents = <&clk IMX8MM_VIDEO_PLL1_OUT>,
1133c8c96afaSMarek Vasut							 <&clk IMX8MM_SYS_PLL2_1000M>,
1134c8c96afaSMarek Vasut							 <&clk IMX8MM_SYS_PLL1_800M>;
1135c8c96afaSMarek Vasut				assigned-clock-rates = <594000000>, <500000000>, <200000000>;
1136c8c96afaSMarek Vasut				interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1137c8c96afaSMarek Vasut				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_LCDIF>;
1138c8c96afaSMarek Vasut				status = "disabled";
1139c8c96afaSMarek Vasut
1140c8c96afaSMarek Vasut				port {
1141c8c96afaSMarek Vasut					lcdif_to_dsim: endpoint {
1142c8c96afaSMarek Vasut						remote-endpoint = <&dsim_from_lcdif>;
1143c8c96afaSMarek Vasut					};
1144c8c96afaSMarek Vasut				};
1145c8c96afaSMarek Vasut			};
1146c8c96afaSMarek Vasut
1147c8c96afaSMarek Vasut			mipi_dsi: dsi@32e10000 {
1148c8c96afaSMarek Vasut				compatible = "fsl,imx8mm-mipi-dsim";
1149c8c96afaSMarek Vasut				reg = <0x32e10000 0x400>;
1150c8c96afaSMarek Vasut				clocks = <&clk IMX8MM_CLK_DSI_CORE>,
1151c8c96afaSMarek Vasut					 <&clk IMX8MM_CLK_DSI_PHY_REF>;
1152c8c96afaSMarek Vasut				clock-names = "bus_clk", "sclk_mipi";
1153c8c96afaSMarek Vasut				assigned-clocks = <&clk IMX8MM_CLK_DSI_CORE>,
1154c8c96afaSMarek Vasut						  <&clk IMX8MM_CLK_DSI_PHY_REF>;
1155c8c96afaSMarek Vasut				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>,
1156c8c96afaSMarek Vasut							 <&clk IMX8MM_CLK_24M>;
1157c8c96afaSMarek Vasut				assigned-clock-rates = <266000000>, <24000000>;
1158c8c96afaSMarek Vasut				samsung,pll-clock-frequency = <24000000>;
1159c8c96afaSMarek Vasut				interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1160c8c96afaSMarek Vasut				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_MIPI_DSI>;
1161c8c96afaSMarek Vasut				status = "disabled";
1162c8c96afaSMarek Vasut
1163c8c96afaSMarek Vasut				ports {
1164c8c96afaSMarek Vasut					#address-cells = <1>;
1165c8c96afaSMarek Vasut					#size-cells = <0>;
1166c8c96afaSMarek Vasut
1167c8c96afaSMarek Vasut					port@0 {
1168c8c96afaSMarek Vasut						reg = <0>;
1169c8c96afaSMarek Vasut
1170c8c96afaSMarek Vasut						dsim_from_lcdif: endpoint {
1171c8c96afaSMarek Vasut							remote-endpoint = <&lcdif_to_dsim>;
1172c8c96afaSMarek Vasut						};
1173c8c96afaSMarek Vasut					};
1174c8c96afaSMarek Vasut				};
1175c8c96afaSMarek Vasut			};
1176c8c96afaSMarek Vasut
1177e523b7c5SAdam Ford			csi: csi@32e20000 {
1178e523b7c5SAdam Ford				compatible = "fsl,imx8mm-csi", "fsl,imx7-csi";
1179e523b7c5SAdam Ford				reg = <0x32e20000 0x1000>;
1180e523b7c5SAdam Ford				interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1181e523b7c5SAdam Ford				clocks = <&clk IMX8MM_CLK_CSI1_ROOT>;
1182e523b7c5SAdam Ford				clock-names = "mclk";
1183e523b7c5SAdam Ford				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_CSI_BRIDGE>;
1184e523b7c5SAdam Ford				status = "disabled";
1185e523b7c5SAdam Ford
1186e523b7c5SAdam Ford				port {
1187e523b7c5SAdam Ford					csi_in: endpoint {
1188e523b7c5SAdam Ford						remote-endpoint = <&imx8mm_mipi_csi_out>;
1189e523b7c5SAdam Ford					};
1190e523b7c5SAdam Ford				};
1191e523b7c5SAdam Ford			};
1192e523b7c5SAdam Ford
1193d2fefef9SLucas Stach			disp_blk_ctrl: blk-ctrl@32e28000 {
1194d2fefef9SLucas Stach				compatible = "fsl,imx8mm-disp-blk-ctrl", "syscon";
1195d2fefef9SLucas Stach				reg = <0x32e28000 0x100>;
1196d2fefef9SLucas Stach				power-domains = <&pgc_dispmix>, <&pgc_dispmix>,
1197d2fefef9SLucas Stach						<&pgc_dispmix>, <&pgc_mipi>,
1198d2fefef9SLucas Stach						<&pgc_mipi>;
1199d2fefef9SLucas Stach				power-domain-names = "bus", "csi-bridge",
1200d2fefef9SLucas Stach						     "lcdif", "mipi-dsi",
1201d2fefef9SLucas Stach						     "mipi-csi";
1202d2fefef9SLucas Stach				clocks = <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
1203d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1204d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_ROOT>,
1205d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
1206d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1207d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_ROOT>,
1208d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DSI_CORE>,
1209d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DSI_PHY_REF>,
1210d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_CORE>,
1211d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_PHY_REF>;
1212d2fefef9SLucas Stach				clock-names = "csi-bridge-axi","csi-bridge-apb",
1213d2fefef9SLucas Stach					      "csi-bridge-core", "lcdif-axi",
1214d2fefef9SLucas Stach					      "lcdif-apb", "lcdif-pix",
1215d2fefef9SLucas Stach					      "dsi-pclk", "dsi-ref",
1216d2fefef9SLucas Stach					      "csi-aclk", "csi-pclk";
1217d2fefef9SLucas Stach				#power-domain-cells = <1>;
1218d2fefef9SLucas Stach			};
1219d2fefef9SLucas Stach
1220e523b7c5SAdam Ford			mipi_csi: mipi-csi@32e30000 {
1221e523b7c5SAdam Ford				compatible = "fsl,imx8mm-mipi-csi2";
1222e523b7c5SAdam Ford				reg = <0x32e30000 0x1000>;
1223e523b7c5SAdam Ford				interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1224e523b7c5SAdam Ford				assigned-clocks = <&clk IMX8MM_CLK_CSI1_CORE>,
1225e523b7c5SAdam Ford						  <&clk IMX8MM_CLK_CSI1_PHY_REF>;
1226e523b7c5SAdam Ford				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
1227e523b7c5SAdam Ford							  <&clk IMX8MM_SYS_PLL2_1000M>;
1228e523b7c5SAdam Ford				clock-frequency = <333000000>;
1229e523b7c5SAdam Ford				clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1230e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_CSI1_ROOT>,
1231e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_CSI1_PHY_REF>,
1232e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
1233e523b7c5SAdam Ford				clock-names = "pclk", "wrap", "phy", "axi";
1234e523b7c5SAdam Ford				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_MIPI_CSI>;
1235e523b7c5SAdam Ford				status = "disabled";
1236e523b7c5SAdam Ford
1237e523b7c5SAdam Ford				ports {
1238e523b7c5SAdam Ford					#address-cells = <1>;
1239e523b7c5SAdam Ford					#size-cells = <0>;
1240e523b7c5SAdam Ford
1241e523b7c5SAdam Ford					port@0 {
1242e523b7c5SAdam Ford						reg = <0>;
1243e523b7c5SAdam Ford					};
1244e523b7c5SAdam Ford
1245e523b7c5SAdam Ford					port@1 {
1246e523b7c5SAdam Ford						reg = <1>;
1247e523b7c5SAdam Ford
1248e523b7c5SAdam Ford						imx8mm_mipi_csi_out: endpoint {
1249e523b7c5SAdam Ford							remote-endpoint = <&csi_in>;
1250e523b7c5SAdam Ford						};
1251e523b7c5SAdam Ford					};
1252e523b7c5SAdam Ford				};
1253e523b7c5SAdam Ford			};
1254e523b7c5SAdam Ford
1255a05ea40eSJacky Bai			usbotg1: usb@32e40000 {
125669fef68eSPeng Fan				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb", "fsl,imx27-usb";
1257a05ea40eSJacky Bai				reg = <0x32e40000 0x200>;
1258a05ea40eSJacky Bai				interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1259a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
1260a05ea40eSJacky Bai				clock-names = "usb1_ctrl_root_clk";
12618b01840eSLi Jun				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
12628b01840eSLi Jun				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
126378e80c4bSMarek Vasut				phys = <&usbphynop1>;
1264a05ea40eSJacky Bai				fsl,usbmisc = <&usbmisc1 0>;
12654585c79fSLi Jun				power-domains = <&pgc_hsiomix>;
1266a05ea40eSJacky Bai				status = "disabled";
1267a05ea40eSJacky Bai			};
1268a05ea40eSJacky Bai
1269a05ea40eSJacky Bai			usbmisc1: usbmisc@32e40200 {
127069fef68eSPeng Fan				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc",
127169fef68eSPeng Fan					     "fsl,imx6q-usbmisc";
1272a05ea40eSJacky Bai				#index-cells = <1>;
1273a05ea40eSJacky Bai				reg = <0x32e40200 0x200>;
1274a05ea40eSJacky Bai			};
1275a05ea40eSJacky Bai
1276a05ea40eSJacky Bai			usbotg2: usb@32e50000 {
127769fef68eSPeng Fan				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb", "fsl,imx27-usb";
1278a05ea40eSJacky Bai				reg = <0x32e50000 0x200>;
1279a05ea40eSJacky Bai				interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1280a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
1281a05ea40eSJacky Bai				clock-names = "usb1_ctrl_root_clk";
12828b01840eSLi Jun				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
12838b01840eSLi Jun				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
128478e80c4bSMarek Vasut				phys = <&usbphynop2>;
1285a05ea40eSJacky Bai				fsl,usbmisc = <&usbmisc2 0>;
12864585c79fSLi Jun				power-domains = <&pgc_hsiomix>;
1287a05ea40eSJacky Bai				status = "disabled";
1288a05ea40eSJacky Bai			};
1289a05ea40eSJacky Bai
1290a05ea40eSJacky Bai			usbmisc2: usbmisc@32e50200 {
129169fef68eSPeng Fan				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc",
129269fef68eSPeng Fan					     "fsl,imx6q-usbmisc";
1293a05ea40eSJacky Bai				#index-cells = <1>;
1294a05ea40eSJacky Bai				reg = <0x32e50200 0x200>;
1295a05ea40eSJacky Bai			};
1296a05ea40eSJacky Bai
1297cfc50784SRichard Zhu			pcie_phy: pcie-phy@32f00000 {
1298cfc50784SRichard Zhu				compatible = "fsl,imx8mm-pcie-phy";
1299cfc50784SRichard Zhu				reg = <0x32f00000 0x10000>;
1300cfc50784SRichard Zhu				clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
1301cfc50784SRichard Zhu				clock-names = "ref";
1302cfc50784SRichard Zhu				assigned-clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
1303cfc50784SRichard Zhu				assigned-clock-rates = <100000000>;
1304cfc50784SRichard Zhu				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_100M>;
1305cfc50784SRichard Zhu				resets = <&src IMX8MQ_RESET_PCIEPHY>;
1306cfc50784SRichard Zhu				reset-names = "pciephy";
1307cfc50784SRichard Zhu				#phy-cells = <0>;
1308cfc50784SRichard Zhu				status = "disabled";
1309cfc50784SRichard Zhu			};
1310a05ea40eSJacky Bai		};
1311a05ea40eSJacky Bai
1312a05ea40eSJacky Bai		dma_apbh: dma-controller@33000000 {
1313a05ea40eSJacky Bai			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
1314a05ea40eSJacky Bai			reg = <0x33000000 0x2000>;
1315a05ea40eSJacky Bai			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1316a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1317a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1318a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1319a05ea40eSJacky Bai			#dma-cells = <1>;
1320a05ea40eSJacky Bai			dma-channels = <4>;
1321a05ea40eSJacky Bai			clocks = <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
1322a05ea40eSJacky Bai		};
1323a05ea40eSJacky Bai
1324a05ea40eSJacky Bai		gpmi: nand-controller@33002000 {
1325a05ea40eSJacky Bai			compatible = "fsl,imx8mm-gpmi-nand", "fsl,imx7d-gpmi-nand";
1326a05ea40eSJacky Bai			#address-cells = <1>;
13271610233bSMarek Vasut			#size-cells = <0>;
1328a05ea40eSJacky Bai			reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
1329a05ea40eSJacky Bai			reg-names = "gpmi-nand", "bch";
1330a05ea40eSJacky Bai			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1331a05ea40eSJacky Bai			interrupt-names = "bch";
1332a05ea40eSJacky Bai			clocks = <&clk IMX8MM_CLK_NAND_ROOT>,
1333a05ea40eSJacky Bai				 <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
1334a05ea40eSJacky Bai			clock-names = "gpmi_io", "gpmi_bch_apb";
1335a05ea40eSJacky Bai			dmas = <&dma_apbh 0>;
1336a05ea40eSJacky Bai			dma-names = "rx-tx";
1337a05ea40eSJacky Bai			status = "disabled";
1338a05ea40eSJacky Bai		};
1339b4e3e54aSAnson Huang
1340aaeba6a8SRichard Zhu		pcie0: pcie@33800000 {
1341aaeba6a8SRichard Zhu			compatible = "fsl,imx8mm-pcie";
1342aaeba6a8SRichard Zhu			reg = <0x33800000 0x400000>, <0x1ff00000 0x80000>;
1343aaeba6a8SRichard Zhu			reg-names = "dbi", "config";
1344aaeba6a8SRichard Zhu			#address-cells = <3>;
1345aaeba6a8SRichard Zhu			#size-cells = <2>;
1346aaeba6a8SRichard Zhu			device_type = "pci";
1347aaeba6a8SRichard Zhu			bus-range = <0x00 0xff>;
1348*7271f14dSKrzysztof Kozlowski			ranges = <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000>, /* downstream I/O 64KB */
1349*7271f14dSKrzysztof Kozlowski				 <0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */
1350aaeba6a8SRichard Zhu			num-lanes = <1>;
1351aaeba6a8SRichard Zhu			num-viewport = <4>;
1352aaeba6a8SRichard Zhu			interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
1353aaeba6a8SRichard Zhu			interrupt-names = "msi";
1354aaeba6a8SRichard Zhu			#interrupt-cells = <1>;
1355aaeba6a8SRichard Zhu			interrupt-map-mask = <0 0 0 0x7>;
1356aaeba6a8SRichard Zhu			interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
1357aaeba6a8SRichard Zhu					<0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
1358aaeba6a8SRichard Zhu					<0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
1359aaeba6a8SRichard Zhu					<0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
1360aaeba6a8SRichard Zhu			fsl,max-link-speed = <2>;
1361aaeba6a8SRichard Zhu			linux,pci-domain = <0>;
13623c033fb1SMarek Vasut			clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>,
13633c033fb1SMarek Vasut				 <&clk IMX8MM_CLK_PCIE1_PHY>,
13643c033fb1SMarek Vasut				 <&clk IMX8MM_CLK_PCIE1_AUX>;
13653c033fb1SMarek Vasut			clock-names = "pcie", "pcie_bus", "pcie_aux";
1366aaeba6a8SRichard Zhu			power-domains = <&pgc_pcie>;
1367aaeba6a8SRichard Zhu			resets = <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>,
1368aaeba6a8SRichard Zhu				 <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>;
1369aaeba6a8SRichard Zhu			reset-names = "apps", "turnoff";
1370aaeba6a8SRichard Zhu			phys = <&pcie_phy>;
1371aaeba6a8SRichard Zhu			phy-names = "pcie-phy";
1372aaeba6a8SRichard Zhu			status = "disabled";
1373aaeba6a8SRichard Zhu		};
1374aaeba6a8SRichard Zhu
13756eabc54cSRichard Zhu		pcie0_ep: pcie-ep@33800000 {
13766eabc54cSRichard Zhu			compatible = "fsl,imx8mm-pcie-ep";
13776eabc54cSRichard Zhu			reg = <0x33800000 0x400000>,
13786eabc54cSRichard Zhu			      <0x18000000 0x8000000>;
13796eabc54cSRichard Zhu			reg-names = "dbi", "addr_space";
13806eabc54cSRichard Zhu			num-lanes = <1>;
13816eabc54cSRichard Zhu			interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
13826eabc54cSRichard Zhu			interrupt-names = "dma";
13836eabc54cSRichard Zhu			fsl,max-link-speed = <2>;
13846eabc54cSRichard Zhu			clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>,
13856eabc54cSRichard Zhu				 <&clk IMX8MM_CLK_PCIE1_PHY>,
13866eabc54cSRichard Zhu				 <&clk IMX8MM_CLK_PCIE1_AUX>;
13876eabc54cSRichard Zhu			clock-names = "pcie", "pcie_bus", "pcie_aux";
13886eabc54cSRichard Zhu			power-domains = <&pgc_pcie>;
13896eabc54cSRichard Zhu			resets = <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>,
13906eabc54cSRichard Zhu				 <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>;
13916eabc54cSRichard Zhu			reset-names = "apps", "turnoff";
13926eabc54cSRichard Zhu			phys = <&pcie_phy>;
13936eabc54cSRichard Zhu			phy-names = "pcie-phy";
13946eabc54cSRichard Zhu			num-ib-windows = <4>;
13956eabc54cSRichard Zhu			num-ob-windows = <4>;
13966eabc54cSRichard Zhu			status = "disabled";
13976eabc54cSRichard Zhu		};
13986eabc54cSRichard Zhu
13994523be8eSFrieder Schrempf		gpu_3d: gpu@38000000 {
14004523be8eSFrieder Schrempf			compatible = "vivante,gc";
14014523be8eSFrieder Schrempf			reg = <0x38000000 0x8000>;
14024523be8eSFrieder Schrempf			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
14034523be8eSFrieder Schrempf			clocks = <&clk IMX8MM_CLK_GPU_AHB>,
14044523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
14054523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU3D_ROOT>,
14064523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU3D_ROOT>;
14074523be8eSFrieder Schrempf			clock-names = "reg", "bus", "core", "shader";
14084523be8eSFrieder Schrempf			assigned-clocks = <&clk IMX8MM_CLK_GPU3D_CORE>,
14094523be8eSFrieder Schrempf					  <&clk IMX8MM_GPU_PLL_OUT>;
14104523be8eSFrieder Schrempf			assigned-clock-parents = <&clk IMX8MM_GPU_PLL_OUT>;
14114523be8eSFrieder Schrempf			assigned-clock-rates = <0>, <1000000000>;
14124523be8eSFrieder Schrempf			power-domains = <&pgc_gpu>;
14134523be8eSFrieder Schrempf		};
14144523be8eSFrieder Schrempf
14154523be8eSFrieder Schrempf		gpu_2d: gpu@38008000 {
14164523be8eSFrieder Schrempf			compatible = "vivante,gc";
14174523be8eSFrieder Schrempf			reg = <0x38008000 0x8000>;
14184523be8eSFrieder Schrempf			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
14194523be8eSFrieder Schrempf			clocks = <&clk IMX8MM_CLK_GPU_AHB>,
14204523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
14214523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU2D_ROOT>;
14224523be8eSFrieder Schrempf			clock-names = "reg", "bus", "core";
14234523be8eSFrieder Schrempf			assigned-clocks = <&clk IMX8MM_CLK_GPU2D_CORE>,
14244523be8eSFrieder Schrempf					  <&clk IMX8MM_GPU_PLL_OUT>;
14254523be8eSFrieder Schrempf			assigned-clock-parents = <&clk IMX8MM_GPU_PLL_OUT>;
14264523be8eSFrieder Schrempf			assigned-clock-rates = <0>, <1000000000>;
14274523be8eSFrieder Schrempf			power-domains = <&pgc_gpu>;
14284523be8eSFrieder Schrempf		};
14294523be8eSFrieder Schrempf
14309cbe605bSAdam Ford		vpu_g1: video-codec@38300000 {
14319cbe605bSAdam Ford			compatible = "nxp,imx8mm-vpu-g1";
14329cbe605bSAdam Ford			reg = <0x38300000 0x10000>;
14339cbe605bSAdam Ford			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
14349cbe605bSAdam Ford			clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>;
14359cbe605bSAdam Ford			power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G1>;
14369cbe605bSAdam Ford		};
14379cbe605bSAdam Ford
14389cbe605bSAdam Ford		vpu_g2: video-codec@38310000 {
14399cbe605bSAdam Ford			compatible = "nxp,imx8mq-vpu-g2";
14409cbe605bSAdam Ford			reg = <0x38310000 0x10000>;
14419cbe605bSAdam Ford			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
14429cbe605bSAdam Ford			clocks = <&clk IMX8MM_CLK_VPU_G2_ROOT>;
14439cbe605bSAdam Ford			power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G2>;
14449cbe605bSAdam Ford		};
14459cbe605bSAdam Ford
14462604c5caSLucas Stach		vpu_blk_ctrl: blk-ctrl@38330000 {
14472604c5caSLucas Stach			compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon";
14482604c5caSLucas Stach			reg = <0x38330000 0x100>;
14492604c5caSLucas Stach			power-domains = <&pgc_vpumix>, <&pgc_vpu_g1>,
14502604c5caSLucas Stach					<&pgc_vpu_g2>, <&pgc_vpu_h1>;
14512604c5caSLucas Stach			power-domain-names = "bus", "g1", "g2", "h1";
14522604c5caSLucas Stach			clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>,
14532604c5caSLucas Stach				 <&clk IMX8MM_CLK_VPU_G2_ROOT>,
14542604c5caSLucas Stach				 <&clk IMX8MM_CLK_VPU_H1_ROOT>;
14552604c5caSLucas Stach			clock-names = "g1", "g2", "h1";
14569cbe605bSAdam Ford			assigned-clocks = <&clk IMX8MM_CLK_VPU_G1>,
14579cbe605bSAdam Ford					  <&clk IMX8MM_CLK_VPU_G2>;
14589cbe605bSAdam Ford			assigned-clock-parents = <&clk IMX8MM_VPU_PLL_OUT>,
14599cbe605bSAdam Ford						 <&clk IMX8MM_VPU_PLL_OUT>;
14609cbe605bSAdam Ford			assigned-clock-rates = <600000000>,
14619cbe605bSAdam Ford					       <600000000>;
14622604c5caSLucas Stach			#power-domain-cells = <1>;
14632604c5caSLucas Stach		};
14642604c5caSLucas Stach
1465b4e3e54aSAnson Huang		gic: interrupt-controller@38800000 {
1466b4e3e54aSAnson Huang			compatible = "arm,gic-v3";
1467b4e3e54aSAnson Huang			reg = <0x38800000 0x10000>, /* GIC Dist */
1468b4e3e54aSAnson Huang			      <0x38880000 0xc0000>; /* GICR (RD_base + SGI_base) */
1469b4e3e54aSAnson Huang			#interrupt-cells = <3>;
1470b4e3e54aSAnson Huang			interrupt-controller;
1471b4e3e54aSAnson Huang			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
1472b4e3e54aSAnson Huang		};
14731efe85c9SLeonard Crestez
14740376f6ecSLeonard Crestez		ddrc: memory-controller@3d400000 {
14750376f6ecSLeonard Crestez			compatible = "fsl,imx8mm-ddrc", "fsl,imx8m-ddrc";
14760376f6ecSLeonard Crestez			reg = <0x3d400000 0x400000>;
14770376f6ecSLeonard Crestez			clock-names = "core", "pll", "alt", "apb";
14780376f6ecSLeonard Crestez			clocks = <&clk IMX8MM_CLK_DRAM_CORE>,
14790376f6ecSLeonard Crestez				 <&clk IMX8MM_DRAM_PLL>,
14800376f6ecSLeonard Crestez				 <&clk IMX8MM_CLK_DRAM_ALT>,
14810376f6ecSLeonard Crestez				 <&clk IMX8MM_CLK_DRAM_APB>;
14820376f6ecSLeonard Crestez		};
14830376f6ecSLeonard Crestez
14841efe85c9SLeonard Crestez		ddr-pmu@3d800000 {
14851efe85c9SLeonard Crestez			compatible = "fsl,imx8mm-ddr-pmu", "fsl,imx8m-ddr-pmu";
14861efe85c9SLeonard Crestez			reg = <0x3d800000 0x400000>;
14871efe85c9SLeonard Crestez			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
14881efe85c9SLeonard Crestez		};
1489a05ea40eSJacky Bai	};
1490a05ea40eSJacky Bai};
1491