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>;
142*3b450831SPierre 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";
280a656622aSFabio Estevam	};
281a656622aSFabio Estevam
282a656622aSFabio Estevam	usbphynop2: usbphynop2 {
28378e80c4bSMarek Vasut		#phy-cells = <0>;
284a656622aSFabio Estevam		compatible = "usb-nop-xceiv";
285a656622aSFabio Estevam		clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
286a656622aSFabio Estevam		assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
287a656622aSFabio Estevam		assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
288a656622aSFabio Estevam		clock-names = "main_clk";
289a656622aSFabio Estevam	};
290a656622aSFabio Estevam
291fcdef92bSFabio Estevam	soc: soc@0 {
292ce58459dSAlice Guo		compatible = "fsl,imx8mm-soc", "simple-bus";
293a05ea40eSJacky Bai		#address-cells = <1>;
294a05ea40eSJacky Bai		#size-cells = <1>;
295a05ea40eSJacky Bai		ranges = <0x0 0x0 0x0 0x3e000000>;
2964251a3acSLucas Stach		dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>;
297cbff2379SAlice Guo		nvmem-cells = <&imx8mm_uid>;
298cbff2379SAlice Guo		nvmem-cell-names = "soc_unique_id";
299a05ea40eSJacky Bai
300a05ea40eSJacky Bai		aips1: bus@30000000 {
301dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
302921a6845SFabio Estevam			reg = <0x30000000 0x400000>;
303a05ea40eSJacky Bai			#address-cells = <1>;
304a05ea40eSJacky Bai			#size-cells = <1>;
30510c74207SFabio Estevam			ranges = <0x30000000 0x30000000 0x400000>;
306a05ea40eSJacky Bai
3077923353bSAdam Ford			spba2: spba-bus@30000000 {
3087923353bSAdam Ford				compatible = "fsl,spba-bus", "simple-bus";
3097923353bSAdam Ford				#address-cells = <1>;
3107923353bSAdam Ford				#size-cells = <1>;
3117923353bSAdam Ford				reg = <0x30000000 0x100000>;
3127923353bSAdam Ford				ranges;
3137923353bSAdam Ford
3144bee4357SDaniel Baluta				sai1: sai@30010000 {
315ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3164bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3174bee4357SDaniel Baluta					reg = <0x30010000 0x10000>;
3184bee4357SDaniel Baluta					interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
3194bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI1_IPG>,
3204bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI1_ROOT>,
3214bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3224bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3234bee4357SDaniel Baluta					dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
3244bee4357SDaniel Baluta					dma-names = "rx", "tx";
3254bee4357SDaniel Baluta					status = "disabled";
3264bee4357SDaniel Baluta				};
3274bee4357SDaniel Baluta
3284bee4357SDaniel Baluta				sai2: sai@30020000 {
329ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3304bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3314bee4357SDaniel Baluta					reg = <0x30020000 0x10000>;
3324bee4357SDaniel Baluta					interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
3334bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI2_IPG>,
3344bee4357SDaniel Baluta						<&clk IMX8MM_CLK_SAI2_ROOT>,
3354bee4357SDaniel Baluta						<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3364bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3374bee4357SDaniel Baluta					dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>;
3384bee4357SDaniel Baluta					dma-names = "rx", "tx";
3394bee4357SDaniel Baluta					status = "disabled";
3404bee4357SDaniel Baluta				};
3414bee4357SDaniel Baluta
3424bee4357SDaniel Baluta				sai3: sai@30030000 {
3434bee4357SDaniel Baluta					#sound-dai-cells = <0>;
3444bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3454bee4357SDaniel Baluta					reg = <0x30030000 0x10000>;
3464bee4357SDaniel Baluta					interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
3474bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI3_IPG>,
3484bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI3_ROOT>,
3494bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3504bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3514bee4357SDaniel Baluta					dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>;
3524bee4357SDaniel Baluta					dma-names = "rx", "tx";
3534bee4357SDaniel Baluta					status = "disabled";
3544bee4357SDaniel Baluta				};
3554bee4357SDaniel Baluta
3564bee4357SDaniel Baluta				sai5: sai@30050000 {
357ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3584bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3594bee4357SDaniel Baluta					reg = <0x30050000 0x10000>;
3604bee4357SDaniel Baluta					interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
3614bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI5_IPG>,
3624bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI5_ROOT>,
3634bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3644bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3654bee4357SDaniel Baluta					dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>;
3664bee4357SDaniel Baluta					dma-names = "rx", "tx";
3674bee4357SDaniel Baluta					status = "disabled";
3684bee4357SDaniel Baluta				};
3694bee4357SDaniel Baluta
3704bee4357SDaniel Baluta				sai6: sai@30060000 {
371ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3724bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3734bee4357SDaniel Baluta					reg = <0x30060000 0x10000>;
3744bee4357SDaniel Baluta					interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
3754bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI6_IPG>,
3764bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI6_ROOT>,
3774bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3784bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3794bee4357SDaniel Baluta					dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>;
3804bee4357SDaniel Baluta					dma-names = "rx", "tx";
3814bee4357SDaniel Baluta					status = "disabled";
3824bee4357SDaniel Baluta				};
383a05ea40eSJacky Bai
3843bd0788cSAdam Ford				micfil: audio-controller@30080000 {
3853bd0788cSAdam Ford					compatible = "fsl,imx8mm-micfil";
3863bd0788cSAdam Ford					reg = <0x30080000 0x10000>;
3873bd0788cSAdam Ford					interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
3883bd0788cSAdam Ford						     <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
3893bd0788cSAdam Ford						     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
3903bd0788cSAdam Ford						     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
3913bd0788cSAdam Ford					clocks = <&clk IMX8MM_CLK_PDM_IPG>,
3923bd0788cSAdam Ford						 <&clk IMX8MM_CLK_PDM_ROOT>,
3933bd0788cSAdam Ford						 <&clk IMX8MM_AUDIO_PLL1_OUT>,
3943bd0788cSAdam Ford						 <&clk IMX8MM_AUDIO_PLL2_OUT>,
3953bd0788cSAdam Ford						 <&clk IMX8MM_CLK_EXT3>;
3963bd0788cSAdam Ford					clock-names = "ipg_clk", "ipg_clk_app",
3973bd0788cSAdam Ford						      "pll8k", "pll11k", "clkext3";
3983bd0788cSAdam Ford					dmas = <&sdma2 24 25 0x80000000>;
3993bd0788cSAdam Ford					dma-names = "rx";
4003bd0788cSAdam Ford					status = "disabled";
4013bd0788cSAdam Ford				};
4023bd0788cSAdam Ford
40357412197SAdam Ford				spdif1: spdif@30090000 {
40457412197SAdam Ford					compatible = "fsl,imx35-spdif";
40557412197SAdam Ford					reg = <0x30090000 0x10000>;
40657412197SAdam Ford					interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
40757412197SAdam Ford					clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, /* core */
40857412197SAdam Ford						 <&clk IMX8MM_CLK_24M>, /* rxtx0 */
40957412197SAdam Ford						 <&clk IMX8MM_CLK_SPDIF1>, /* rxtx1 */
41057412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx2 */
41157412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx3 */
41257412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx4 */
41357412197SAdam Ford						 <&clk IMX8MM_CLK_AUDIO_AHB>, /* rxtx5 */
41457412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx6 */
41557412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx7 */
41657412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>; /* spba */
41757412197SAdam Ford					clock-names = "core", "rxtx0",
41857412197SAdam Ford						      "rxtx1", "rxtx2",
41957412197SAdam Ford						      "rxtx3", "rxtx4",
42057412197SAdam Ford						      "rxtx5", "rxtx6",
42157412197SAdam Ford						      "rxtx7", "spba";
42257412197SAdam Ford					dmas = <&sdma2 28 18 0>, <&sdma2 29 18 0>;
42357412197SAdam Ford					dma-names = "rx", "tx";
42457412197SAdam Ford					status = "disabled";
42557412197SAdam Ford				};
4267923353bSAdam Ford			};
42757412197SAdam Ford
428a05ea40eSJacky Bai			gpio1: gpio@30200000 {
429a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
430a05ea40eSJacky Bai				reg = <0x30200000 0x10000>;
431a05ea40eSJacky Bai				interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
432a05ea40eSJacky Bai					     <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
43309892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO1_ROOT>;
434a05ea40eSJacky Bai				gpio-controller;
435a05ea40eSJacky Bai				#gpio-cells = <2>;
436a05ea40eSJacky Bai				interrupt-controller;
437a05ea40eSJacky Bai				#interrupt-cells = <2>;
43815626359SAnson Huang				gpio-ranges = <&iomuxc 0 10 30>;
439a05ea40eSJacky Bai			};
440a05ea40eSJacky Bai
441a05ea40eSJacky Bai			gpio2: gpio@30210000 {
442a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
443a05ea40eSJacky Bai				reg = <0x30210000 0x10000>;
444a05ea40eSJacky Bai				interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
445a05ea40eSJacky Bai					     <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
44609892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO2_ROOT>;
447a05ea40eSJacky Bai				gpio-controller;
448a05ea40eSJacky Bai				#gpio-cells = <2>;
449a05ea40eSJacky Bai				interrupt-controller;
450a05ea40eSJacky Bai				#interrupt-cells = <2>;
45115626359SAnson Huang				gpio-ranges = <&iomuxc 0 40 21>;
452a05ea40eSJacky Bai			};
453a05ea40eSJacky Bai
454a05ea40eSJacky Bai			gpio3: gpio@30220000 {
455a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
456a05ea40eSJacky Bai				reg = <0x30220000 0x10000>;
457a05ea40eSJacky Bai				interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
458a05ea40eSJacky Bai					     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
45909892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO3_ROOT>;
460a05ea40eSJacky Bai				gpio-controller;
461a05ea40eSJacky Bai				#gpio-cells = <2>;
462a05ea40eSJacky Bai				interrupt-controller;
463a05ea40eSJacky Bai				#interrupt-cells = <2>;
46415626359SAnson Huang				gpio-ranges = <&iomuxc 0 61 26>;
465a05ea40eSJacky Bai			};
466a05ea40eSJacky Bai
467a05ea40eSJacky Bai			gpio4: gpio@30230000 {
468a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
469a05ea40eSJacky Bai				reg = <0x30230000 0x10000>;
470a05ea40eSJacky Bai				interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
471a05ea40eSJacky Bai					     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
47209892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO4_ROOT>;
473a05ea40eSJacky Bai				gpio-controller;
474a05ea40eSJacky Bai				#gpio-cells = <2>;
475a05ea40eSJacky Bai				interrupt-controller;
476a05ea40eSJacky Bai				#interrupt-cells = <2>;
47715626359SAnson Huang				gpio-ranges = <&iomuxc 0 87 32>;
478a05ea40eSJacky Bai			};
479a05ea40eSJacky Bai
480a05ea40eSJacky Bai			gpio5: gpio@30240000 {
481a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
482a05ea40eSJacky Bai				reg = <0x30240000 0x10000>;
483a05ea40eSJacky Bai				interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
484a05ea40eSJacky Bai					     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
48509892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO5_ROOT>;
486a05ea40eSJacky Bai				gpio-controller;
487a05ea40eSJacky Bai				#gpio-cells = <2>;
488a05ea40eSJacky Bai				interrupt-controller;
489a05ea40eSJacky Bai				#interrupt-cells = <2>;
49015626359SAnson Huang				gpio-ranges = <&iomuxc 0 119 30>;
491a05ea40eSJacky Bai			};
492a05ea40eSJacky Bai
49311699fd5SAnson Huang			tmu: tmu@30260000 {
49411699fd5SAnson Huang				compatible = "fsl,imx8mm-tmu";
49511699fd5SAnson Huang				reg = <0x30260000 0x10000>;
49611699fd5SAnson Huang				clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
49711699fd5SAnson Huang				#thermal-sensor-cells = <0>;
49811699fd5SAnson Huang			};
49911699fd5SAnson Huang
500a05ea40eSJacky Bai			wdog1: watchdog@30280000 {
501a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
502a05ea40eSJacky Bai				reg = <0x30280000 0x10000>;
503a05ea40eSJacky Bai				interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
504a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG1_ROOT>;
505a05ea40eSJacky Bai				status = "disabled";
506a05ea40eSJacky Bai			};
507a05ea40eSJacky Bai
508a05ea40eSJacky Bai			wdog2: watchdog@30290000 {
509a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
510a05ea40eSJacky Bai				reg = <0x30290000 0x10000>;
511a05ea40eSJacky Bai				interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
512a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG2_ROOT>;
513a05ea40eSJacky Bai				status = "disabled";
514a05ea40eSJacky Bai			};
515a05ea40eSJacky Bai
516a05ea40eSJacky Bai			wdog3: watchdog@302a0000 {
517a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
518a05ea40eSJacky Bai				reg = <0x302a0000 0x10000>;
519a05ea40eSJacky Bai				interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
520a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG3_ROOT>;
521a05ea40eSJacky Bai				status = "disabled";
522a05ea40eSJacky Bai			};
523a05ea40eSJacky Bai
524a05ea40eSJacky Bai			sdma2: dma-controller@302c0000 {
525e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
526a05ea40eSJacky Bai				reg = <0x302c0000 0x10000>;
527a05ea40eSJacky Bai				interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
528a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA2_ROOT>,
529a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_SDMA2_ROOT>;
530a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
531a05ea40eSJacky Bai				#dma-cells = <3>;
532a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
533a05ea40eSJacky Bai			};
534a05ea40eSJacky Bai
535a05ea40eSJacky Bai			sdma3: dma-controller@302b0000 {
536e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
537a05ea40eSJacky Bai				reg = <0x302b0000 0x10000>;
538a05ea40eSJacky Bai				interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
539a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA3_ROOT>,
540a05ea40eSJacky Bai				 <&clk IMX8MM_CLK_SDMA3_ROOT>;
541a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
542a05ea40eSJacky Bai				#dma-cells = <3>;
543a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
544a05ea40eSJacky Bai			};
545a05ea40eSJacky Bai
546a05ea40eSJacky Bai			iomuxc: pinctrl@30330000 {
547a05ea40eSJacky Bai				compatible = "fsl,imx8mm-iomuxc";
548a05ea40eSJacky Bai				reg = <0x30330000 0x10000>;
549a05ea40eSJacky Bai			};
550a05ea40eSJacky Bai
551a05ea40eSJacky Bai			gpr: iomuxc-gpr@30340000 {
552aaeba6a8SRichard Zhu				compatible = "fsl,imx8mm-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon";
553a05ea40eSJacky Bai				reg = <0x30340000 0x10000>;
554a05ea40eSJacky Bai			};
555a05ea40eSJacky Bai
55612fa1078SAnson Huang			ocotp: efuse@30350000 {
557b09802a0SAnson Huang				compatible = "fsl,imx8mm-ocotp", "syscon";
558a05ea40eSJacky Bai				reg = <0x30350000 0x10000>;
559a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_OCOTP_ROOT>;
560a05ea40eSJacky Bai				/* For nvmem subnodes */
561a05ea40eSJacky Bai				#address-cells = <1>;
562a05ea40eSJacky Bai				#size-cells = <1>;
563f403a26cSLeonard Crestez
564cbff2379SAlice Guo				imx8mm_uid: unique-id@410 {
565cbff2379SAlice Guo					reg = <0x4 0x8>;
566cbff2379SAlice Guo				};
567cbff2379SAlice Guo
568f403a26cSLeonard Crestez				cpu_speed_grade: speed-grade@10 {
569f403a26cSLeonard Crestez					reg = <0x10 4>;
570f403a26cSLeonard Crestez				};
571066438aeSJoakim Zhang
572066438aeSJoakim Zhang				fec_mac_address: mac-address@90 {
573066438aeSJoakim Zhang					reg = <0x90 6>;
574066438aeSJoakim Zhang				};
575a05ea40eSJacky Bai			};
576a05ea40eSJacky Bai
577f98c2dfeSPeng Fan			anatop: clock-controller@30360000 {
578f98c2dfeSPeng Fan				compatible = "fsl,imx8mm-anatop";
579a05ea40eSJacky Bai				reg = <0x30360000 0x10000>;
580f98c2dfeSPeng Fan				#clock-cells = <1>;
581a05ea40eSJacky Bai			};
582a05ea40eSJacky Bai
583a05ea40eSJacky Bai			snvs: snvs@30370000 {
584a05ea40eSJacky Bai				compatible = "fsl,sec-v4.0-mon","syscon", "simple-mfd";
585a05ea40eSJacky Bai				reg = <0x30370000 0x10000>;
586a05ea40eSJacky Bai
587a05ea40eSJacky Bai				snvs_rtc: snvs-rtc-lp {
588a05ea40eSJacky Bai					compatible = "fsl,sec-v4.0-mon-rtc-lp";
589a05ea40eSJacky Bai					regmap = <&snvs>;
590a05ea40eSJacky Bai					offset = <0x34>;
591a05ea40eSJacky Bai					interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
592a05ea40eSJacky Bai						     <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
593f145b209SAnson Huang					clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
594f145b209SAnson Huang					clock-names = "snvs-rtc";
595a05ea40eSJacky Bai				};
596a05ea40eSJacky Bai
597a05ea40eSJacky Bai				snvs_pwrkey: snvs-powerkey {
598a05ea40eSJacky Bai					compatible = "fsl,sec-v4.0-pwrkey";
599a05ea40eSJacky Bai					regmap = <&snvs>;
600a05ea40eSJacky Bai					interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
60146770eaeSAndré Draszik					clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
60246770eaeSAndré Draszik					clock-names = "snvs-pwrkey";
603a05ea40eSJacky Bai					linux,keycode = <KEY_POWER>;
604a05ea40eSJacky Bai					wakeup-source;
605d038c1dcSAnson Huang					status = "disabled";
606a05ea40eSJacky Bai				};
607fd207b47SMarek Vasut
608fd207b47SMarek Vasut				snvs_lpgpr: snvs-lpgpr {
609fd207b47SMarek Vasut					compatible = "fsl,imx8mm-snvs-lpgpr",
610fd207b47SMarek Vasut						     "fsl,imx7d-snvs-lpgpr";
611fd207b47SMarek Vasut				};
612a05ea40eSJacky Bai			};
613a05ea40eSJacky Bai
614a05ea40eSJacky Bai			clk: clock-controller@30380000 {
615a05ea40eSJacky Bai				compatible = "fsl,imx8mm-ccm";
616a05ea40eSJacky Bai				reg = <0x30380000 0x10000>;
617a05ea40eSJacky Bai				#clock-cells = <1>;
618a05ea40eSJacky Bai				clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>,
619a05ea40eSJacky Bai					 <&clk_ext3>, <&clk_ext4>;
620a05ea40eSJacky Bai				clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2",
621a05ea40eSJacky Bai					      "clk_ext3", "clk_ext4";
6229e6337e6SPeng Fan				assigned-clocks = <&clk IMX8MM_CLK_A53_SRC>,
6239e6337e6SPeng Fan						<&clk IMX8MM_CLK_A53_CORE>,
6249e6337e6SPeng Fan						<&clk IMX8MM_CLK_NOC>,
6256b392e16SAbel Vesa						<&clk IMX8MM_CLK_AUDIO_AHB>,
6266b392e16SAbel Vesa						<&clk IMX8MM_CLK_IPG_AUDIO_ROOT>,
6276b392e16SAbel Vesa						<&clk IMX8MM_SYS_PLL3>,
628e8b395b2SS.j. Wang						<&clk IMX8MM_VIDEO_PLL1>,
629842912c4SLucas Stach						<&clk IMX8MM_AUDIO_PLL1>;
6309e6337e6SPeng Fan				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>,
6319e6337e6SPeng Fan							 <&clk IMX8MM_ARM_PLL_OUT>,
6329e6337e6SPeng Fan							 <&clk IMX8MM_SYS_PLL3_OUT>,
6336b392e16SAbel Vesa							 <&clk IMX8MM_SYS_PLL1_800M>;
6349e6337e6SPeng Fan				assigned-clock-rates = <0>, <0>, <0>,
6356b392e16SAbel Vesa							<400000000>,
6366b392e16SAbel Vesa							<400000000>,
6376b392e16SAbel Vesa							<750000000>,
638e8b395b2SS.j. Wang							<594000000>,
639842912c4SLucas Stach							<393216000>;
640a05ea40eSJacky Bai			};
641a05ea40eSJacky Bai
642a05ea40eSJacky Bai			src: reset-controller@30390000 {
64346b29f4bSAnson Huang				compatible = "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon";
644a05ea40eSJacky Bai				reg = <0x30390000 0x10000>;
645a05ea40eSJacky Bai				interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
646a05ea40eSJacky Bai				#reset-cells = <1>;
647a05ea40eSJacky Bai			};
648d39d4bb1SLucas Stach
649d39d4bb1SLucas Stach			gpc: gpc@303a0000 {
650d39d4bb1SLucas Stach				compatible = "fsl,imx8mm-gpc";
651d39d4bb1SLucas Stach				reg = <0x303a0000 0x10000>;
652d39d4bb1SLucas Stach				interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
653d39d4bb1SLucas Stach				interrupt-parent = <&gic>;
654d39d4bb1SLucas Stach				interrupt-controller;
655d39d4bb1SLucas Stach				#interrupt-cells = <3>;
656d39d4bb1SLucas Stach
657d39d4bb1SLucas Stach				pgc {
658d39d4bb1SLucas Stach					#address-cells = <1>;
659d39d4bb1SLucas Stach					#size-cells = <0>;
660d39d4bb1SLucas Stach
661d39d4bb1SLucas Stach					pgc_hsiomix: power-domain@0 {
662d39d4bb1SLucas Stach						#power-domain-cells = <0>;
663d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_HSIOMIX>;
664d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_USB_BUS>;
665d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
666d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
667d39d4bb1SLucas Stach					};
668d39d4bb1SLucas Stach
669d39d4bb1SLucas Stach					pgc_pcie: power-domain@1 {
670d39d4bb1SLucas Stach						#power-domain-cells = <0>;
671d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_PCIE>;
672d39d4bb1SLucas Stach						power-domains = <&pgc_hsiomix>;
673d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>;
674d39d4bb1SLucas Stach					};
675d39d4bb1SLucas Stach
676d39d4bb1SLucas Stach					pgc_otg1: power-domain@2 {
677d39d4bb1SLucas Stach						#power-domain-cells = <0>;
678d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_OTG1>;
679d39d4bb1SLucas Stach						power-domains = <&pgc_hsiomix>;
680d39d4bb1SLucas Stach					};
681d39d4bb1SLucas Stach
682d39d4bb1SLucas Stach					pgc_otg2: power-domain@3 {
683d39d4bb1SLucas Stach						#power-domain-cells = <0>;
684d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_OTG2>;
685d39d4bb1SLucas Stach						power-domains = <&pgc_hsiomix>;
686d39d4bb1SLucas Stach					};
687d39d4bb1SLucas Stach
688d39d4bb1SLucas Stach					pgc_gpumix: power-domain@4 {
689d39d4bb1SLucas Stach						#power-domain-cells = <0>;
690d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_GPUMIX>;
691d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
692d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU_AHB>;
693d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_GPU_AXI>,
694d39d4bb1SLucas Stach								  <&clk IMX8MM_CLK_GPU_AHB>;
695d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>,
696d39d4bb1SLucas Stach									 <&clk IMX8MM_SYS_PLL1_800M>;
697d39d4bb1SLucas Stach						assigned-clock-rates = <800000000>, <400000000>;
698d39d4bb1SLucas Stach					};
699d39d4bb1SLucas Stach
700d39d4bb1SLucas Stach					pgc_gpu: power-domain@5 {
701d39d4bb1SLucas Stach						#power-domain-cells = <0>;
702d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_GPU>;
703d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_GPU_AHB>,
704d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
705d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU2D_ROOT>,
706d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU3D_ROOT>;
707d39d4bb1SLucas Stach						resets = <&src IMX8MQ_RESET_GPU_RESET>;
708d39d4bb1SLucas Stach						power-domains = <&pgc_gpumix>;
709d39d4bb1SLucas Stach					};
710d39d4bb1SLucas Stach
711d39d4bb1SLucas Stach					pgc_vpumix: power-domain@6 {
712d39d4bb1SLucas Stach						#power-domain-cells = <0>;
713d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUMIX>;
714d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_VPU_DEC_ROOT>;
715d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_VPU_BUS>;
716d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>;
717d39d4bb1SLucas Stach					};
718d39d4bb1SLucas Stach
719d39d4bb1SLucas Stach					pgc_vpu_g1: power-domain@7 {
720d39d4bb1SLucas Stach						#power-domain-cells = <0>;
721d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUG1>;
722d39d4bb1SLucas Stach					};
723d39d4bb1SLucas Stach
724d39d4bb1SLucas Stach					pgc_vpu_g2: power-domain@8 {
725d39d4bb1SLucas Stach						#power-domain-cells = <0>;
726d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUG2>;
727d39d4bb1SLucas Stach					};
728d39d4bb1SLucas Stach
729d39d4bb1SLucas Stach					pgc_vpu_h1: power-domain@9 {
730d39d4bb1SLucas Stach						#power-domain-cells = <0>;
731d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUH1>;
732d39d4bb1SLucas Stach					};
733d39d4bb1SLucas Stach
734d39d4bb1SLucas Stach					pgc_dispmix: power-domain@10 {
735d39d4bb1SLucas Stach						#power-domain-cells = <0>;
736d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_DISPMIX>;
737d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
738d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
739d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_DISP_AXI>,
740d39d4bb1SLucas Stach								  <&clk IMX8MM_CLK_DISP_APB>;
741d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
742d39d4bb1SLucas Stach									 <&clk IMX8MM_SYS_PLL1_800M>;
743d39d4bb1SLucas Stach						assigned-clock-rates = <500000000>, <200000000>;
744d39d4bb1SLucas Stach					};
745d39d4bb1SLucas Stach
746d39d4bb1SLucas Stach					pgc_mipi: power-domain@11 {
747d39d4bb1SLucas Stach						#power-domain-cells = <0>;
748d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_MIPI>;
749d39d4bb1SLucas Stach					};
750d39d4bb1SLucas Stach				};
751d39d4bb1SLucas Stach			};
752a05ea40eSJacky Bai		};
753a05ea40eSJacky Bai
754a05ea40eSJacky Bai		aips2: bus@30400000 {
755dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
756921a6845SFabio Estevam			reg = <0x30400000 0x400000>;
757a05ea40eSJacky Bai			#address-cells = <1>;
758a05ea40eSJacky Bai			#size-cells = <1>;
75910c74207SFabio Estevam			ranges = <0x30400000 0x30400000 0x400000>;
760a05ea40eSJacky Bai
761a05ea40eSJacky Bai			pwm1: pwm@30660000 {
762a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
763a05ea40eSJacky Bai				reg = <0x30660000 0x10000>;
764a05ea40eSJacky Bai				interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
765a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM1_ROOT>,
766a05ea40eSJacky Bai					<&clk IMX8MM_CLK_PWM1_ROOT>;
767a05ea40eSJacky Bai				clock-names = "ipg", "per";
768957aef02SMarkus Niebel				#pwm-cells = <3>;
769a05ea40eSJacky Bai				status = "disabled";
770a05ea40eSJacky Bai			};
771a05ea40eSJacky Bai
772a05ea40eSJacky Bai			pwm2: pwm@30670000 {
773a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
774a05ea40eSJacky Bai				reg = <0x30670000 0x10000>;
775a05ea40eSJacky Bai				interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
776a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM2_ROOT>,
777a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM2_ROOT>;
778a05ea40eSJacky Bai				clock-names = "ipg", "per";
779957aef02SMarkus Niebel				#pwm-cells = <3>;
780a05ea40eSJacky Bai				status = "disabled";
781a05ea40eSJacky Bai			};
782a05ea40eSJacky Bai
783a05ea40eSJacky Bai			pwm3: pwm@30680000 {
784a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
785a05ea40eSJacky Bai				reg = <0x30680000 0x10000>;
786a05ea40eSJacky Bai				interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
787a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM3_ROOT>,
788a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM3_ROOT>;
789a05ea40eSJacky Bai				clock-names = "ipg", "per";
790957aef02SMarkus Niebel				#pwm-cells = <3>;
791a05ea40eSJacky Bai				status = "disabled";
792a05ea40eSJacky Bai			};
793a05ea40eSJacky Bai
794a05ea40eSJacky Bai			pwm4: pwm@30690000 {
795a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
796a05ea40eSJacky Bai				reg = <0x30690000 0x10000>;
797a05ea40eSJacky Bai				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
798a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM4_ROOT>,
799a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM4_ROOT>;
800a05ea40eSJacky Bai				clock-names = "ipg", "per";
801957aef02SMarkus Niebel				#pwm-cells = <3>;
802a05ea40eSJacky Bai				status = "disabled";
803a05ea40eSJacky Bai			};
8045b0221bfSAnson Huang
8055b0221bfSAnson Huang			system_counter: timer@306a0000 {
8065b0221bfSAnson Huang				compatible = "nxp,sysctr-timer";
8075b0221bfSAnson Huang				reg = <0x306a0000 0x20000>;
8085b0221bfSAnson Huang				interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
8095b0221bfSAnson Huang				clocks = <&osc_24m>;
8105b0221bfSAnson Huang				clock-names = "per";
8115b0221bfSAnson Huang			};
812a05ea40eSJacky Bai		};
813a05ea40eSJacky Bai
814a05ea40eSJacky Bai		aips3: bus@30800000 {
815dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
816921a6845SFabio Estevam			reg = <0x30800000 0x400000>;
817a05ea40eSJacky Bai			#address-cells = <1>;
818a05ea40eSJacky Bai			#size-cells = <1>;
819f0692bb8SAdam Ford			ranges = <0x30800000 0x30800000 0x400000>,
820f0692bb8SAdam Ford				 <0x8000000 0x8000000 0x10000000>;
821a05ea40eSJacky Bai
8227923353bSAdam Ford			spba1: spba-bus@30800000 {
8237923353bSAdam Ford				compatible = "fsl,spba-bus", "simple-bus";
8247923353bSAdam Ford				#address-cells = <1>;
8257923353bSAdam Ford				#size-cells = <1>;
8267923353bSAdam Ford				reg = <0x30800000 0x100000>;
8277923353bSAdam Ford				ranges;
8287923353bSAdam Ford
829a05ea40eSJacky Bai				ecspi1: spi@30820000 {
830a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
831a05ea40eSJacky Bai					#address-cells = <1>;
832a05ea40eSJacky Bai					#size-cells = <0>;
833a05ea40eSJacky Bai					reg = <0x30820000 0x10000>;
834a05ea40eSJacky Bai					interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
835a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>,
836a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI1_ROOT>;
837a05ea40eSJacky Bai					clock-names = "ipg", "per";
838a05ea40eSJacky Bai					dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>;
839a05ea40eSJacky Bai					dma-names = "rx", "tx";
840a05ea40eSJacky Bai					status = "disabled";
841a05ea40eSJacky Bai				};
842a05ea40eSJacky Bai
843a05ea40eSJacky Bai				ecspi2: spi@30830000 {
844a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
845a05ea40eSJacky Bai					#address-cells = <1>;
846a05ea40eSJacky Bai					#size-cells = <0>;
847a05ea40eSJacky Bai					reg = <0x30830000 0x10000>;
848a05ea40eSJacky Bai					interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
849a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI2_ROOT>,
850a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI2_ROOT>;
851a05ea40eSJacky Bai					clock-names = "ipg", "per";
852a05ea40eSJacky Bai					dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>;
853a05ea40eSJacky Bai					dma-names = "rx", "tx";
854a05ea40eSJacky Bai					status = "disabled";
855a05ea40eSJacky Bai				};
856a05ea40eSJacky Bai
857a05ea40eSJacky Bai				ecspi3: spi@30840000 {
858a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
859a05ea40eSJacky Bai					#address-cells = <1>;
860a05ea40eSJacky Bai					#size-cells = <0>;
861a05ea40eSJacky Bai					reg = <0x30840000 0x10000>;
862a05ea40eSJacky Bai					interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
863a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI3_ROOT>,
864a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI3_ROOT>;
865a05ea40eSJacky Bai					clock-names = "ipg", "per";
866a05ea40eSJacky Bai					dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>;
867a05ea40eSJacky Bai					dma-names = "rx", "tx";
868a05ea40eSJacky Bai					status = "disabled";
869a05ea40eSJacky Bai				};
870a05ea40eSJacky Bai
871a05ea40eSJacky Bai				uart1: serial@30860000 {
872a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
873a05ea40eSJacky Bai					reg = <0x30860000 0x10000>;
874a05ea40eSJacky Bai					interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
875a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART1_ROOT>,
876a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART1_ROOT>;
877a05ea40eSJacky Bai					clock-names = "ipg", "per";
878a05ea40eSJacky Bai					dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
879a05ea40eSJacky Bai					dma-names = "rx", "tx";
880a05ea40eSJacky Bai					status = "disabled";
881a05ea40eSJacky Bai				};
882a05ea40eSJacky Bai
883a05ea40eSJacky Bai				uart3: serial@30880000 {
884a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
885a05ea40eSJacky Bai					reg = <0x30880000 0x10000>;
886a05ea40eSJacky Bai					interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
887a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART3_ROOT>,
888a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART3_ROOT>;
889a05ea40eSJacky Bai					clock-names = "ipg", "per";
890a05ea40eSJacky Bai					dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>;
891a05ea40eSJacky Bai					dma-names = "rx", "tx";
892a05ea40eSJacky Bai					status = "disabled";
893a05ea40eSJacky Bai				};
894a05ea40eSJacky Bai
895a05ea40eSJacky Bai				uart2: serial@30890000 {
896a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
897a05ea40eSJacky Bai					reg = <0x30890000 0x10000>;
898a05ea40eSJacky Bai					interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
899a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART2_ROOT>,
900a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART2_ROOT>;
901a05ea40eSJacky Bai					clock-names = "ipg", "per";
902a05ea40eSJacky Bai					status = "disabled";
903a05ea40eSJacky Bai				};
9047923353bSAdam Ford			};
905a05ea40eSJacky Bai
906bff5b972SAdam Ford			crypto: crypto@30900000 {
907bff5b972SAdam Ford				compatible = "fsl,sec-v4.0";
908bff5b972SAdam Ford				#address-cells = <1>;
909bff5b972SAdam Ford				#size-cells = <1>;
910bff5b972SAdam Ford				reg = <0x30900000 0x40000>;
911bff5b972SAdam Ford				ranges = <0 0x30900000 0x40000>;
912bff5b972SAdam Ford				interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
913bff5b972SAdam Ford				clocks = <&clk IMX8MM_CLK_AHB>,
914bff5b972SAdam Ford					 <&clk IMX8MM_CLK_IPG_ROOT>;
915bff5b972SAdam Ford				clock-names = "aclk", "ipg";
916bff5b972SAdam Ford
917bff5b972SAdam Ford				sec_jr0: jr@1000 {
918bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
919bff5b972SAdam Ford					reg = <0x1000 0x1000>;
920bff5b972SAdam Ford					interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
921dc9c1cebSFabio Estevam					status = "disabled";
922bff5b972SAdam Ford				};
923bff5b972SAdam Ford
924bff5b972SAdam Ford				sec_jr1: jr@2000 {
925bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
926bff5b972SAdam Ford					reg = <0x2000 0x1000>;
927bff5b972SAdam Ford					interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
928bff5b972SAdam Ford				};
929bff5b972SAdam Ford
930bff5b972SAdam Ford				sec_jr2: jr@3000 {
931bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
932bff5b972SAdam Ford					reg = <0x3000 0x1000>;
933bff5b972SAdam Ford					interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
934bff5b972SAdam Ford				};
935bff5b972SAdam Ford			};
936bff5b972SAdam Ford
937a05ea40eSJacky Bai			i2c1: i2c@30a20000 {
938a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
939a05ea40eSJacky Bai				#address-cells = <1>;
940a05ea40eSJacky Bai				#size-cells = <0>;
941a05ea40eSJacky Bai				reg = <0x30a20000 0x10000>;
942a05ea40eSJacky Bai				interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
943a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C1_ROOT>;
944a05ea40eSJacky Bai				status = "disabled";
945a05ea40eSJacky Bai			};
946a05ea40eSJacky Bai
947a05ea40eSJacky Bai			i2c2: i2c@30a30000 {
948a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
949a05ea40eSJacky Bai				#address-cells = <1>;
950a05ea40eSJacky Bai				#size-cells = <0>;
951a05ea40eSJacky Bai				reg = <0x30a30000 0x10000>;
952a05ea40eSJacky Bai				interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
953a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C2_ROOT>;
954a05ea40eSJacky Bai				status = "disabled";
955a05ea40eSJacky Bai			};
956a05ea40eSJacky Bai
957a05ea40eSJacky Bai			i2c3: i2c@30a40000 {
958a05ea40eSJacky Bai				#address-cells = <1>;
959a05ea40eSJacky Bai				#size-cells = <0>;
960a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
961a05ea40eSJacky Bai				reg = <0x30a40000 0x10000>;
962a05ea40eSJacky Bai				interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
963a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C3_ROOT>;
964a05ea40eSJacky Bai				status = "disabled";
965a05ea40eSJacky Bai			};
966a05ea40eSJacky Bai
967a05ea40eSJacky Bai			i2c4: i2c@30a50000 {
968a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
969a05ea40eSJacky Bai				#address-cells = <1>;
970a05ea40eSJacky Bai				#size-cells = <0>;
971a05ea40eSJacky Bai				reg = <0x30a50000 0x10000>;
972a05ea40eSJacky Bai				interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
973a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C4_ROOT>;
974a05ea40eSJacky Bai				status = "disabled";
975a05ea40eSJacky Bai			};
976a05ea40eSJacky Bai
977a05ea40eSJacky Bai			uart4: serial@30a60000 {
978a05ea40eSJacky Bai				compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
979a05ea40eSJacky Bai				reg = <0x30a60000 0x10000>;
980a05ea40eSJacky Bai				interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
981a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_UART4_ROOT>,
982a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_UART4_ROOT>;
983a05ea40eSJacky Bai				clock-names = "ipg", "per";
984a05ea40eSJacky Bai				dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
985a05ea40eSJacky Bai				dma-names = "rx", "tx";
986a05ea40eSJacky Bai				status = "disabled";
987a05ea40eSJacky Bai			};
988a05ea40eSJacky Bai
989bbfc59beSPeng Fan			mu: mailbox@30aa0000 {
990bbfc59beSPeng Fan				compatible = "fsl,imx8mm-mu", "fsl,imx6sx-mu";
991bbfc59beSPeng Fan				reg = <0x30aa0000 0x10000>;
992bbfc59beSPeng Fan				interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
993bbfc59beSPeng Fan				clocks = <&clk IMX8MM_CLK_MU_ROOT>;
994bbfc59beSPeng Fan				#mbox-cells = <2>;
995bbfc59beSPeng Fan			};
996bbfc59beSPeng Fan
997a05ea40eSJacky Bai			usdhc1: mmc@30b40000 {
998a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
999a05ea40eSJacky Bai				reg = <0x30b40000 0x10000>;
1000a05ea40eSJacky Bai				interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
1001a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1002a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1003a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC1_ROOT>;
1004a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1005a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1006a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1007a05ea40eSJacky Bai				bus-width = <4>;
1008a05ea40eSJacky Bai				status = "disabled";
1009a05ea40eSJacky Bai			};
1010a05ea40eSJacky Bai
1011a05ea40eSJacky Bai			usdhc2: mmc@30b50000 {
1012a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1013a05ea40eSJacky Bai				reg = <0x30b50000 0x10000>;
1014a05ea40eSJacky Bai				interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
1015a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1016a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1017a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC2_ROOT>;
1018a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1019a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1020a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1021a05ea40eSJacky Bai				bus-width = <4>;
1022a05ea40eSJacky Bai				status = "disabled";
1023a05ea40eSJacky Bai			};
1024a05ea40eSJacky Bai
1025a05ea40eSJacky Bai			usdhc3: mmc@30b60000 {
1026a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1027a05ea40eSJacky Bai				reg = <0x30b60000 0x10000>;
1028a05ea40eSJacky Bai				interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1029a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1030a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1031a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC3_ROOT>;
1032a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1033a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1034a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1035a05ea40eSJacky Bai				bus-width = <4>;
1036a05ea40eSJacky Bai				status = "disabled";
1037a05ea40eSJacky Bai			};
1038a05ea40eSJacky Bai
1039f0692bb8SAdam Ford			flexspi: spi@30bb0000 {
1040f0692bb8SAdam Ford				#address-cells = <1>;
1041f0692bb8SAdam Ford				#size-cells = <0>;
1042f0692bb8SAdam Ford				compatible = "nxp,imx8mm-fspi";
1043f0692bb8SAdam Ford				reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>;
1044f0692bb8SAdam Ford				reg-names = "fspi_base", "fspi_mmap";
1045f0692bb8SAdam Ford				interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
1046f0692bb8SAdam Ford				clocks = <&clk IMX8MM_CLK_QSPI_ROOT>,
1047f0692bb8SAdam Ford					 <&clk IMX8MM_CLK_QSPI_ROOT>;
10489eaf9984SKuldeep Singh				clock-names = "fspi_en", "fspi";
1049f0692bb8SAdam Ford				status = "disabled";
1050f0692bb8SAdam Ford			};
1051f0692bb8SAdam Ford
1052a05ea40eSJacky Bai			sdma1: dma-controller@30bd0000 {
1053e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
1054a05ea40eSJacky Bai				reg = <0x30bd0000 0x10000>;
1055a05ea40eSJacky Bai				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1056a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
105724a572bfSAdam Ford					 <&clk IMX8MM_CLK_AHB>;
1058a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
1059a05ea40eSJacky Bai				#dma-cells = <3>;
1060a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
1061a05ea40eSJacky Bai			};
1062a05ea40eSJacky Bai
1063a05ea40eSJacky Bai			fec1: ethernet@30be0000 {
1064a758dee8SJoakim Zhang				compatible = "fsl,imx8mm-fec", "fsl,imx8mq-fec", "fsl,imx6sx-fec";
1065a05ea40eSJacky Bai				reg = <0x30be0000 0x10000>;
1066a05ea40eSJacky Bai				interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
1067a05ea40eSJacky Bai					     <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
1068d3762a47SFabio Estevam					     <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
1069d3762a47SFabio Estevam					     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
1070a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_ENET1_ROOT>,
1071a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET1_ROOT>,
1072a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_TIMER>,
1073a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_REF>,
1074a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_PHY_REF>;
1075a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "ptp",
1076a05ea40eSJacky Bai					      "enet_clk_ref", "enet_out";
1077a05ea40eSJacky Bai				assigned-clocks = <&clk IMX8MM_CLK_ENET_AXI>,
1078a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_TIMER>,
1079a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_REF>,
108070eacf42SJoakim Zhang						  <&clk IMX8MM_CLK_ENET_PHY_REF>;
1081a05ea40eSJacky Bai				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>,
1082a05ea40eSJacky Bai							 <&clk IMX8MM_SYS_PLL2_100M>,
108370eacf42SJoakim Zhang							 <&clk IMX8MM_SYS_PLL2_125M>,
108470eacf42SJoakim Zhang							 <&clk IMX8MM_SYS_PLL2_50M>;
108570eacf42SJoakim Zhang				assigned-clock-rates = <0>, <100000000>, <125000000>, <0>;
1086a05ea40eSJacky Bai				fsl,num-tx-queues = <3>;
1087a05ea40eSJacky Bai				fsl,num-rx-queues = <3>;
1088066438aeSJoakim Zhang				nvmem-cells = <&fec_mac_address>;
1089066438aeSJoakim Zhang				nvmem-cell-names = "mac-address";
1090afe99354SJoakim Zhang				fsl,stop-mode = <&gpr 0x10 3>;
1091a05ea40eSJacky Bai				status = "disabled";
1092a05ea40eSJacky Bai			};
1093a05ea40eSJacky Bai
1094a05ea40eSJacky Bai		};
1095a05ea40eSJacky Bai
1096a05ea40eSJacky Bai		aips4: bus@32c00000 {
1097dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
1098921a6845SFabio Estevam			reg = <0x32c00000 0x400000>;
1099a05ea40eSJacky Bai			#address-cells = <1>;
1100a05ea40eSJacky Bai			#size-cells = <1>;
110110c74207SFabio Estevam			ranges = <0x32c00000 0x32c00000 0x400000>;
1102a05ea40eSJacky Bai
1103e523b7c5SAdam Ford			csi: csi@32e20000 {
1104e523b7c5SAdam Ford				compatible = "fsl,imx8mm-csi", "fsl,imx7-csi";
1105e523b7c5SAdam Ford				reg = <0x32e20000 0x1000>;
1106e523b7c5SAdam Ford				interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1107e523b7c5SAdam Ford				clocks = <&clk IMX8MM_CLK_CSI1_ROOT>;
1108e523b7c5SAdam Ford				clock-names = "mclk";
1109e523b7c5SAdam Ford				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_CSI_BRIDGE>;
1110e523b7c5SAdam Ford				status = "disabled";
1111e523b7c5SAdam Ford
1112e523b7c5SAdam Ford				port {
1113e523b7c5SAdam Ford					csi_in: endpoint {
1114e523b7c5SAdam Ford						remote-endpoint = <&imx8mm_mipi_csi_out>;
1115e523b7c5SAdam Ford					};
1116e523b7c5SAdam Ford				};
1117e523b7c5SAdam Ford			};
1118e523b7c5SAdam Ford
1119d2fefef9SLucas Stach			disp_blk_ctrl: blk-ctrl@32e28000 {
1120d2fefef9SLucas Stach				compatible = "fsl,imx8mm-disp-blk-ctrl", "syscon";
1121d2fefef9SLucas Stach				reg = <0x32e28000 0x100>;
1122d2fefef9SLucas Stach				power-domains = <&pgc_dispmix>, <&pgc_dispmix>,
1123d2fefef9SLucas Stach						<&pgc_dispmix>, <&pgc_mipi>,
1124d2fefef9SLucas Stach						<&pgc_mipi>;
1125d2fefef9SLucas Stach				power-domain-names = "bus", "csi-bridge",
1126d2fefef9SLucas Stach						     "lcdif", "mipi-dsi",
1127d2fefef9SLucas Stach						     "mipi-csi";
1128d2fefef9SLucas Stach				clocks = <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
1129d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1130d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_ROOT>,
1131d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
1132d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1133d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_ROOT>,
1134d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DSI_CORE>,
1135d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DSI_PHY_REF>,
1136d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_CORE>,
1137d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_PHY_REF>;
1138d2fefef9SLucas Stach				clock-names = "csi-bridge-axi","csi-bridge-apb",
1139d2fefef9SLucas Stach					      "csi-bridge-core", "lcdif-axi",
1140d2fefef9SLucas Stach					      "lcdif-apb", "lcdif-pix",
1141d2fefef9SLucas Stach					      "dsi-pclk", "dsi-ref",
1142d2fefef9SLucas Stach					      "csi-aclk", "csi-pclk";
1143d2fefef9SLucas Stach				#power-domain-cells = <1>;
1144d2fefef9SLucas Stach			};
1145d2fefef9SLucas Stach
1146e523b7c5SAdam Ford			mipi_csi: mipi-csi@32e30000 {
1147e523b7c5SAdam Ford				compatible = "fsl,imx8mm-mipi-csi2";
1148e523b7c5SAdam Ford				reg = <0x32e30000 0x1000>;
1149e523b7c5SAdam Ford				interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1150e523b7c5SAdam Ford				assigned-clocks = <&clk IMX8MM_CLK_CSI1_CORE>,
1151e523b7c5SAdam Ford						  <&clk IMX8MM_CLK_CSI1_PHY_REF>;
1152e523b7c5SAdam Ford				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
1153e523b7c5SAdam Ford							  <&clk IMX8MM_SYS_PLL2_1000M>;
1154e523b7c5SAdam Ford				clock-frequency = <333000000>;
1155e523b7c5SAdam Ford				clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1156e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_CSI1_ROOT>,
1157e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_CSI1_PHY_REF>,
1158e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
1159e523b7c5SAdam Ford				clock-names = "pclk", "wrap", "phy", "axi";
1160e523b7c5SAdam Ford				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_MIPI_CSI>;
1161e523b7c5SAdam Ford				status = "disabled";
1162e523b7c5SAdam Ford
1163e523b7c5SAdam Ford				ports {
1164e523b7c5SAdam Ford					#address-cells = <1>;
1165e523b7c5SAdam Ford					#size-cells = <0>;
1166e523b7c5SAdam Ford
1167e523b7c5SAdam Ford					port@0 {
1168e523b7c5SAdam Ford						reg = <0>;
1169e523b7c5SAdam Ford					};
1170e523b7c5SAdam Ford
1171e523b7c5SAdam Ford					port@1 {
1172e523b7c5SAdam Ford						reg = <1>;
1173e523b7c5SAdam Ford
1174e523b7c5SAdam Ford						imx8mm_mipi_csi_out: endpoint {
1175e523b7c5SAdam Ford							remote-endpoint = <&csi_in>;
1176e523b7c5SAdam Ford						};
1177e523b7c5SAdam Ford					};
1178e523b7c5SAdam Ford				};
1179e523b7c5SAdam Ford			};
1180e523b7c5SAdam Ford
1181a05ea40eSJacky Bai			usbotg1: usb@32e40000 {
1182a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
1183a05ea40eSJacky Bai				reg = <0x32e40000 0x200>;
1184a05ea40eSJacky Bai				interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1185a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
1186a05ea40eSJacky Bai				clock-names = "usb1_ctrl_root_clk";
11878b01840eSLi Jun				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
11888b01840eSLi Jun				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
118978e80c4bSMarek Vasut				phys = <&usbphynop1>;
1190a05ea40eSJacky Bai				fsl,usbmisc = <&usbmisc1 0>;
119101df28d8SLucas Stach				power-domains = <&pgc_otg1>;
1192a05ea40eSJacky Bai				status = "disabled";
1193a05ea40eSJacky Bai			};
1194a05ea40eSJacky Bai
1195a05ea40eSJacky Bai			usbmisc1: usbmisc@32e40200 {
1196a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
1197a05ea40eSJacky Bai				#index-cells = <1>;
1198a05ea40eSJacky Bai				reg = <0x32e40200 0x200>;
1199a05ea40eSJacky Bai			};
1200a05ea40eSJacky Bai
1201a05ea40eSJacky Bai			usbotg2: usb@32e50000 {
1202a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
1203a05ea40eSJacky Bai				reg = <0x32e50000 0x200>;
1204a05ea40eSJacky Bai				interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1205a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
1206a05ea40eSJacky Bai				clock-names = "usb1_ctrl_root_clk";
12078b01840eSLi Jun				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
12088b01840eSLi Jun				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
120978e80c4bSMarek Vasut				phys = <&usbphynop2>;
1210a05ea40eSJacky Bai				fsl,usbmisc = <&usbmisc2 0>;
121101df28d8SLucas Stach				power-domains = <&pgc_otg2>;
1212a05ea40eSJacky Bai				status = "disabled";
1213a05ea40eSJacky Bai			};
1214a05ea40eSJacky Bai
1215a05ea40eSJacky Bai			usbmisc2: usbmisc@32e50200 {
1216a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
1217a05ea40eSJacky Bai				#index-cells = <1>;
1218a05ea40eSJacky Bai				reg = <0x32e50200 0x200>;
1219a05ea40eSJacky Bai			};
1220a05ea40eSJacky Bai
1221cfc50784SRichard Zhu			pcie_phy: pcie-phy@32f00000 {
1222cfc50784SRichard Zhu				compatible = "fsl,imx8mm-pcie-phy";
1223cfc50784SRichard Zhu				reg = <0x32f00000 0x10000>;
1224cfc50784SRichard Zhu				clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
1225cfc50784SRichard Zhu				clock-names = "ref";
1226cfc50784SRichard Zhu				assigned-clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
1227cfc50784SRichard Zhu				assigned-clock-rates = <100000000>;
1228cfc50784SRichard Zhu				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_100M>;
1229cfc50784SRichard Zhu				resets = <&src IMX8MQ_RESET_PCIEPHY>;
1230cfc50784SRichard Zhu				reset-names = "pciephy";
1231cfc50784SRichard Zhu				#phy-cells = <0>;
1232cfc50784SRichard Zhu				status = "disabled";
1233cfc50784SRichard Zhu			};
1234a05ea40eSJacky Bai		};
1235a05ea40eSJacky Bai
1236a05ea40eSJacky Bai		dma_apbh: dma-controller@33000000 {
1237a05ea40eSJacky Bai			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
1238a05ea40eSJacky Bai			reg = <0x33000000 0x2000>;
1239a05ea40eSJacky Bai			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1240a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1241a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1242a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1243a05ea40eSJacky Bai			interrupt-names = "gpmi0", "gpmi1", "gpmi2", "gpmi3";
1244a05ea40eSJacky Bai			#dma-cells = <1>;
1245a05ea40eSJacky Bai			dma-channels = <4>;
1246a05ea40eSJacky Bai			clocks = <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
1247a05ea40eSJacky Bai		};
1248a05ea40eSJacky Bai
1249a05ea40eSJacky Bai		gpmi: nand-controller@33002000{
1250a05ea40eSJacky Bai			compatible = "fsl,imx8mm-gpmi-nand", "fsl,imx7d-gpmi-nand";
1251a05ea40eSJacky Bai			#address-cells = <1>;
1252a05ea40eSJacky Bai			#size-cells = <1>;
1253a05ea40eSJacky Bai			reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
1254a05ea40eSJacky Bai			reg-names = "gpmi-nand", "bch";
1255a05ea40eSJacky Bai			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1256a05ea40eSJacky Bai			interrupt-names = "bch";
1257a05ea40eSJacky Bai			clocks = <&clk IMX8MM_CLK_NAND_ROOT>,
1258a05ea40eSJacky Bai				 <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
1259a05ea40eSJacky Bai			clock-names = "gpmi_io", "gpmi_bch_apb";
1260a05ea40eSJacky Bai			dmas = <&dma_apbh 0>;
1261a05ea40eSJacky Bai			dma-names = "rx-tx";
1262a05ea40eSJacky Bai			status = "disabled";
1263a05ea40eSJacky Bai		};
1264b4e3e54aSAnson Huang
1265aaeba6a8SRichard Zhu		pcie0: pcie@33800000 {
1266aaeba6a8SRichard Zhu			compatible = "fsl,imx8mm-pcie";
1267aaeba6a8SRichard Zhu			reg = <0x33800000 0x400000>, <0x1ff00000 0x80000>;
1268aaeba6a8SRichard Zhu			reg-names = "dbi", "config";
1269aaeba6a8SRichard Zhu			#address-cells = <3>;
1270aaeba6a8SRichard Zhu			#size-cells = <2>;
1271aaeba6a8SRichard Zhu			device_type = "pci";
1272aaeba6a8SRichard Zhu			bus-range = <0x00 0xff>;
1273aaeba6a8SRichard Zhu			ranges =  <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000 /* downstream I/O 64KB */
1274aaeba6a8SRichard Zhu				   0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */
1275aaeba6a8SRichard Zhu			num-lanes = <1>;
1276aaeba6a8SRichard Zhu			num-viewport = <4>;
1277aaeba6a8SRichard Zhu			interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
1278aaeba6a8SRichard Zhu			interrupt-names = "msi";
1279aaeba6a8SRichard Zhu			#interrupt-cells = <1>;
1280aaeba6a8SRichard Zhu			interrupt-map-mask = <0 0 0 0x7>;
1281aaeba6a8SRichard Zhu			interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
1282aaeba6a8SRichard Zhu					<0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
1283aaeba6a8SRichard Zhu					<0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
1284aaeba6a8SRichard Zhu					<0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
1285aaeba6a8SRichard Zhu			fsl,max-link-speed = <2>;
1286aaeba6a8SRichard Zhu			linux,pci-domain = <0>;
1287aaeba6a8SRichard Zhu			power-domains = <&pgc_pcie>;
1288aaeba6a8SRichard Zhu			resets = <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>,
1289aaeba6a8SRichard Zhu				 <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>;
1290aaeba6a8SRichard Zhu			reset-names = "apps", "turnoff";
1291aaeba6a8SRichard Zhu			phys = <&pcie_phy>;
1292aaeba6a8SRichard Zhu			phy-names = "pcie-phy";
1293aaeba6a8SRichard Zhu			status = "disabled";
1294aaeba6a8SRichard Zhu		};
1295aaeba6a8SRichard Zhu
12964523be8eSFrieder Schrempf		gpu_3d: gpu@38000000 {
12974523be8eSFrieder Schrempf			compatible = "vivante,gc";
12984523be8eSFrieder Schrempf			reg = <0x38000000 0x8000>;
12994523be8eSFrieder Schrempf			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
13004523be8eSFrieder Schrempf			clocks = <&clk IMX8MM_CLK_GPU_AHB>,
13014523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
13024523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU3D_ROOT>,
13034523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU3D_ROOT>;
13044523be8eSFrieder Schrempf			clock-names = "reg", "bus", "core", "shader";
13054523be8eSFrieder Schrempf			assigned-clocks = <&clk IMX8MM_CLK_GPU3D_CORE>,
13064523be8eSFrieder Schrempf					  <&clk IMX8MM_GPU_PLL_OUT>;
13074523be8eSFrieder Schrempf			assigned-clock-parents = <&clk IMX8MM_GPU_PLL_OUT>;
13084523be8eSFrieder Schrempf			assigned-clock-rates = <0>, <1000000000>;
13094523be8eSFrieder Schrempf			power-domains = <&pgc_gpu>;
13104523be8eSFrieder Schrempf		};
13114523be8eSFrieder Schrempf
13124523be8eSFrieder Schrempf		gpu_2d: gpu@38008000 {
13134523be8eSFrieder Schrempf			compatible = "vivante,gc";
13144523be8eSFrieder Schrempf			reg = <0x38008000 0x8000>;
13154523be8eSFrieder Schrempf			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
13164523be8eSFrieder Schrempf			clocks = <&clk IMX8MM_CLK_GPU_AHB>,
13174523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
13184523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU2D_ROOT>;
13194523be8eSFrieder Schrempf			clock-names = "reg", "bus", "core";
13204523be8eSFrieder Schrempf			assigned-clocks = <&clk IMX8MM_CLK_GPU2D_CORE>,
13214523be8eSFrieder Schrempf					  <&clk IMX8MM_GPU_PLL_OUT>;
13224523be8eSFrieder Schrempf			assigned-clock-parents = <&clk IMX8MM_GPU_PLL_OUT>;
13234523be8eSFrieder Schrempf			assigned-clock-rates = <0>, <1000000000>;
13244523be8eSFrieder Schrempf			power-domains = <&pgc_gpu>;
13254523be8eSFrieder Schrempf		};
13264523be8eSFrieder Schrempf
13279cbe605bSAdam Ford		vpu_g1: video-codec@38300000 {
13289cbe605bSAdam Ford			compatible = "nxp,imx8mm-vpu-g1";
13299cbe605bSAdam Ford			reg = <0x38300000 0x10000>;
13309cbe605bSAdam Ford			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
13319cbe605bSAdam Ford			clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>;
13329cbe605bSAdam Ford			power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G1>;
13339cbe605bSAdam Ford		};
13349cbe605bSAdam Ford
13359cbe605bSAdam Ford		vpu_g2: video-codec@38310000 {
13369cbe605bSAdam Ford			compatible = "nxp,imx8mq-vpu-g2";
13379cbe605bSAdam Ford			reg = <0x38310000 0x10000>;
13389cbe605bSAdam Ford			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
13399cbe605bSAdam Ford			clocks = <&clk IMX8MM_CLK_VPU_G2_ROOT>;
13409cbe605bSAdam Ford			power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G2>;
13419cbe605bSAdam Ford		};
13429cbe605bSAdam Ford
13432604c5caSLucas Stach		vpu_blk_ctrl: blk-ctrl@38330000 {
13442604c5caSLucas Stach			compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon";
13452604c5caSLucas Stach			reg = <0x38330000 0x100>;
13462604c5caSLucas Stach			power-domains = <&pgc_vpumix>, <&pgc_vpu_g1>,
13472604c5caSLucas Stach					<&pgc_vpu_g2>, <&pgc_vpu_h1>;
13482604c5caSLucas Stach			power-domain-names = "bus", "g1", "g2", "h1";
13492604c5caSLucas Stach			clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>,
13502604c5caSLucas Stach				 <&clk IMX8MM_CLK_VPU_G2_ROOT>,
13512604c5caSLucas Stach				 <&clk IMX8MM_CLK_VPU_H1_ROOT>;
13522604c5caSLucas Stach			clock-names = "g1", "g2", "h1";
13539cbe605bSAdam Ford			assigned-clocks = <&clk IMX8MM_CLK_VPU_G1>,
13549cbe605bSAdam Ford					  <&clk IMX8MM_CLK_VPU_G2>;
13559cbe605bSAdam Ford			assigned-clock-parents = <&clk IMX8MM_VPU_PLL_OUT>,
13569cbe605bSAdam Ford						 <&clk IMX8MM_VPU_PLL_OUT>;
13579cbe605bSAdam Ford			assigned-clock-rates = <600000000>,
13589cbe605bSAdam Ford					       <600000000>;
13592604c5caSLucas Stach			#power-domain-cells = <1>;
13602604c5caSLucas Stach		};
13612604c5caSLucas Stach
1362b4e3e54aSAnson Huang		gic: interrupt-controller@38800000 {
1363b4e3e54aSAnson Huang			compatible = "arm,gic-v3";
1364b4e3e54aSAnson Huang			reg = <0x38800000 0x10000>, /* GIC Dist */
1365b4e3e54aSAnson Huang			      <0x38880000 0xc0000>; /* GICR (RD_base + SGI_base) */
1366b4e3e54aSAnson Huang			#interrupt-cells = <3>;
1367b4e3e54aSAnson Huang			interrupt-controller;
1368b4e3e54aSAnson Huang			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
1369b4e3e54aSAnson Huang		};
13701efe85c9SLeonard Crestez
13710376f6ecSLeonard Crestez		ddrc: memory-controller@3d400000 {
13720376f6ecSLeonard Crestez			compatible = "fsl,imx8mm-ddrc", "fsl,imx8m-ddrc";
13730376f6ecSLeonard Crestez			reg = <0x3d400000 0x400000>;
13740376f6ecSLeonard Crestez			clock-names = "core", "pll", "alt", "apb";
13750376f6ecSLeonard Crestez			clocks = <&clk IMX8MM_CLK_DRAM_CORE>,
13760376f6ecSLeonard Crestez				 <&clk IMX8MM_DRAM_PLL>,
13770376f6ecSLeonard Crestez				 <&clk IMX8MM_CLK_DRAM_ALT>,
13780376f6ecSLeonard Crestez				 <&clk IMX8MM_CLK_DRAM_APB>;
13790376f6ecSLeonard Crestez		};
13800376f6ecSLeonard Crestez
13811efe85c9SLeonard Crestez		ddr-pmu@3d800000 {
13821efe85c9SLeonard Crestez			compatible = "fsl,imx8mm-ddr-pmu", "fsl,imx8m-ddr-pmu";
13831efe85c9SLeonard Crestez			reg = <0x3d800000 0x400000>;
13841efe85c9SLeonard Crestez			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
13851efe85c9SLeonard Crestez		};
1386a05ea40eSJacky Bai	};
1387a05ea40eSJacky Bai};
1388