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>;
142cb551b5eSPeng Fan			cache-size = <0x80000>;
143cb551b5eSPeng Fan			cache-line-size = <64>;
144cb551b5eSPeng Fan			cache-sets = <512>;
145a05ea40eSJacky Bai		};
146a05ea40eSJacky Bai	};
147a05ea40eSJacky Bai
148e85c9d0fSLeonard Crestez	a53_opp_table: opp-table {
149e85c9d0fSLeonard Crestez		compatible = "operating-points-v2";
150e85c9d0fSLeonard Crestez		opp-shared;
151e85c9d0fSLeonard Crestez
152e85c9d0fSLeonard Crestez		opp-1200000000 {
153e85c9d0fSLeonard Crestez			opp-hz = /bits/ 64 <1200000000>;
154e85c9d0fSLeonard Crestez			opp-microvolt = <850000>;
155f403a26cSLeonard Crestez			opp-supported-hw = <0xe>, <0x7>;
156e85c9d0fSLeonard Crestez			clock-latency-ns = <150000>;
1570d9df581SAnson Huang			opp-suspend;
158e85c9d0fSLeonard Crestez		};
159e85c9d0fSLeonard Crestez
160e85c9d0fSLeonard Crestez		opp-1600000000 {
161e85c9d0fSLeonard Crestez			opp-hz = /bits/ 64 <1600000000>;
162d19d2152SLucas Stach			opp-microvolt = <950000>;
163f403a26cSLeonard Crestez			opp-supported-hw = <0xc>, <0x7>;
164e85c9d0fSLeonard Crestez			clock-latency-ns = <150000>;
1650d9df581SAnson Huang			opp-suspend;
166f403a26cSLeonard Crestez		};
167f403a26cSLeonard Crestez
168f403a26cSLeonard Crestez		opp-1800000000 {
169f403a26cSLeonard Crestez			opp-hz = /bits/ 64 <1800000000>;
170f403a26cSLeonard Crestez			opp-microvolt = <1000000>;
171cd7c2ddfSAnson Huang			opp-supported-hw = <0x8>, <0x3>;
172f403a26cSLeonard Crestez			clock-latency-ns = <150000>;
1730d9df581SAnson Huang			opp-suspend;
174e85c9d0fSLeonard Crestez		};
175e85c9d0fSLeonard Crestez	};
176e85c9d0fSLeonard Crestez
177a05ea40eSJacky Bai	osc_32k: clock-osc-32k {
178a05ea40eSJacky Bai		compatible = "fixed-clock";
179a05ea40eSJacky Bai		#clock-cells = <0>;
180a05ea40eSJacky Bai		clock-frequency = <32768>;
181a05ea40eSJacky Bai		clock-output-names = "osc_32k";
182a05ea40eSJacky Bai	};
183a05ea40eSJacky Bai
184a05ea40eSJacky Bai	osc_24m: clock-osc-24m {
185a05ea40eSJacky Bai		compatible = "fixed-clock";
186a05ea40eSJacky Bai		#clock-cells = <0>;
187a05ea40eSJacky Bai		clock-frequency = <24000000>;
188a05ea40eSJacky Bai		clock-output-names = "osc_24m";
189a05ea40eSJacky Bai	};
190a05ea40eSJacky Bai
191a05ea40eSJacky Bai	clk_ext1: clock-ext1 {
192a05ea40eSJacky Bai		compatible = "fixed-clock";
193a05ea40eSJacky Bai		#clock-cells = <0>;
194a05ea40eSJacky Bai		clock-frequency = <133000000>;
195a05ea40eSJacky Bai		clock-output-names = "clk_ext1";
196a05ea40eSJacky Bai	};
197a05ea40eSJacky Bai
198a05ea40eSJacky Bai	clk_ext2: clock-ext2 {
199a05ea40eSJacky Bai		compatible = "fixed-clock";
200a05ea40eSJacky Bai		#clock-cells = <0>;
201a05ea40eSJacky Bai		clock-frequency = <133000000>;
202a05ea40eSJacky Bai		clock-output-names = "clk_ext2";
203a05ea40eSJacky Bai	};
204a05ea40eSJacky Bai
205a05ea40eSJacky Bai	clk_ext3: clock-ext3 {
206a05ea40eSJacky Bai		compatible = "fixed-clock";
207a05ea40eSJacky Bai		#clock-cells = <0>;
208a05ea40eSJacky Bai		clock-frequency = <133000000>;
209a05ea40eSJacky Bai		clock-output-names = "clk_ext3";
210a05ea40eSJacky Bai	};
211a05ea40eSJacky Bai
212a05ea40eSJacky Bai	clk_ext4: clock-ext4 {
213a05ea40eSJacky Bai		compatible = "fixed-clock";
214a05ea40eSJacky Bai		#clock-cells = <0>;
215a05ea40eSJacky Bai		clock-frequency = <133000000>;
216a05ea40eSJacky Bai		clock-output-names = "clk_ext4";
217a05ea40eSJacky Bai	};
218a05ea40eSJacky Bai
219a05ea40eSJacky Bai	psci {
220a05ea40eSJacky Bai		compatible = "arm,psci-1.0";
221a05ea40eSJacky Bai		method = "smc";
222a05ea40eSJacky Bai	};
223a05ea40eSJacky Bai
224a05ea40eSJacky Bai	pmu {
225ceec36eeSPeng Fan		compatible = "arm,cortex-a53-pmu";
226a05ea40eSJacky Bai		interrupts = <GIC_PPI 7
2275c22a9afSKrzysztof Kozlowski			     (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
228a05ea40eSJacky Bai	};
229a05ea40eSJacky Bai
230a05ea40eSJacky Bai	timer {
231a05ea40eSJacky Bai		compatible = "arm,armv8-timer";
2325c22a9afSKrzysztof Kozlowski		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Secure */
2335c22a9afSKrzysztof Kozlowski			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Non-Secure */
2345c22a9afSKrzysztof Kozlowski			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, /* Virtual */
2355c22a9afSKrzysztof Kozlowski			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; /* Hypervisor */
236a05ea40eSJacky Bai		clock-frequency = <8000000>;
237a05ea40eSJacky Bai		arm,no-tick-in-suspend;
238a05ea40eSJacky Bai	};
239a05ea40eSJacky Bai
24011699fd5SAnson Huang	thermal-zones {
24111699fd5SAnson Huang		cpu-thermal {
24211699fd5SAnson Huang			polling-delay-passive = <250>;
24311699fd5SAnson Huang			polling-delay = <2000>;
24411699fd5SAnson Huang			thermal-sensors = <&tmu>;
24511699fd5SAnson Huang			trips {
24611699fd5SAnson Huang				cpu_alert0: trip0 {
24711699fd5SAnson Huang					temperature = <85000>;
24811699fd5SAnson Huang					hysteresis = <2000>;
24911699fd5SAnson Huang					type = "passive";
25011699fd5SAnson Huang				};
25111699fd5SAnson Huang
25211699fd5SAnson Huang				cpu_crit0: trip1 {
25311699fd5SAnson Huang					temperature = <95000>;
25411699fd5SAnson Huang					hysteresis = <2000>;
25511699fd5SAnson Huang					type = "critical";
25611699fd5SAnson Huang				};
25711699fd5SAnson Huang			};
25811699fd5SAnson Huang
25911699fd5SAnson Huang			cooling-maps {
26011699fd5SAnson Huang				map0 {
26111699fd5SAnson Huang					trip = <&cpu_alert0>;
26211699fd5SAnson Huang					cooling-device =
26311699fd5SAnson Huang						<&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
26411699fd5SAnson Huang						<&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
26511699fd5SAnson Huang						<&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
26611699fd5SAnson Huang						<&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
26711699fd5SAnson Huang				};
26811699fd5SAnson Huang			};
26911699fd5SAnson Huang		};
27011699fd5SAnson Huang	};
27111699fd5SAnson Huang
272a656622aSFabio Estevam	usbphynop1: usbphynop1 {
27378e80c4bSMarek Vasut		#phy-cells = <0>;
274a656622aSFabio Estevam		compatible = "usb-nop-xceiv";
275a656622aSFabio Estevam		clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
276a656622aSFabio Estevam		assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
277a656622aSFabio Estevam		assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
278a656622aSFabio Estevam		clock-names = "main_clk";
279*4585c79fSLi Jun		power-domains = <&pgc_otg1>;
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";
289*4585c79fSLi Jun		power-domains = <&pgc_otg2>;
290a656622aSFabio Estevam	};
291a656622aSFabio Estevam
292fcdef92bSFabio Estevam	soc: soc@0 {
293ce58459dSAlice Guo		compatible = "fsl,imx8mm-soc", "simple-bus";
294a05ea40eSJacky Bai		#address-cells = <1>;
295a05ea40eSJacky Bai		#size-cells = <1>;
296a05ea40eSJacky Bai		ranges = <0x0 0x0 0x0 0x3e000000>;
2974251a3acSLucas Stach		dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>;
298cbff2379SAlice Guo		nvmem-cells = <&imx8mm_uid>;
299cbff2379SAlice Guo		nvmem-cell-names = "soc_unique_id";
300a05ea40eSJacky Bai
301a05ea40eSJacky Bai		aips1: bus@30000000 {
302dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
303921a6845SFabio Estevam			reg = <0x30000000 0x400000>;
304a05ea40eSJacky Bai			#address-cells = <1>;
305a05ea40eSJacky Bai			#size-cells = <1>;
30610c74207SFabio Estevam			ranges = <0x30000000 0x30000000 0x400000>;
307a05ea40eSJacky Bai
3087923353bSAdam Ford			spba2: spba-bus@30000000 {
3097923353bSAdam Ford				compatible = "fsl,spba-bus", "simple-bus";
3107923353bSAdam Ford				#address-cells = <1>;
3117923353bSAdam Ford				#size-cells = <1>;
3127923353bSAdam Ford				reg = <0x30000000 0x100000>;
3137923353bSAdam Ford				ranges;
3147923353bSAdam Ford
3154bee4357SDaniel Baluta				sai1: sai@30010000 {
316ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3174bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3184bee4357SDaniel Baluta					reg = <0x30010000 0x10000>;
3194bee4357SDaniel Baluta					interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
3204bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI1_IPG>,
3214bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI1_ROOT>,
3224bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3234bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3244bee4357SDaniel Baluta					dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
3254bee4357SDaniel Baluta					dma-names = "rx", "tx";
3264bee4357SDaniel Baluta					status = "disabled";
3274bee4357SDaniel Baluta				};
3284bee4357SDaniel Baluta
3294bee4357SDaniel Baluta				sai2: sai@30020000 {
330ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3314bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3324bee4357SDaniel Baluta					reg = <0x30020000 0x10000>;
3334bee4357SDaniel Baluta					interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
3344bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI2_IPG>,
3354bee4357SDaniel Baluta						<&clk IMX8MM_CLK_SAI2_ROOT>,
3364bee4357SDaniel Baluta						<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3374bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3384bee4357SDaniel Baluta					dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>;
3394bee4357SDaniel Baluta					dma-names = "rx", "tx";
3404bee4357SDaniel Baluta					status = "disabled";
3414bee4357SDaniel Baluta				};
3424bee4357SDaniel Baluta
3434bee4357SDaniel Baluta				sai3: sai@30030000 {
3444bee4357SDaniel Baluta					#sound-dai-cells = <0>;
3454bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3464bee4357SDaniel Baluta					reg = <0x30030000 0x10000>;
3474bee4357SDaniel Baluta					interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
3484bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI3_IPG>,
3494bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI3_ROOT>,
3504bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3514bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3524bee4357SDaniel Baluta					dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>;
3534bee4357SDaniel Baluta					dma-names = "rx", "tx";
3544bee4357SDaniel Baluta					status = "disabled";
3554bee4357SDaniel Baluta				};
3564bee4357SDaniel Baluta
3574bee4357SDaniel Baluta				sai5: sai@30050000 {
358ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3594bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3604bee4357SDaniel Baluta					reg = <0x30050000 0x10000>;
3614bee4357SDaniel Baluta					interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
3624bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI5_IPG>,
3634bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI5_ROOT>,
3644bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3654bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3664bee4357SDaniel Baluta					dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>;
3674bee4357SDaniel Baluta					dma-names = "rx", "tx";
3684bee4357SDaniel Baluta					status = "disabled";
3694bee4357SDaniel Baluta				};
3704bee4357SDaniel Baluta
3714bee4357SDaniel Baluta				sai6: sai@30060000 {
372ebfa8951SMatt Porter					#sound-dai-cells = <0>;
3734bee4357SDaniel Baluta					compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
3744bee4357SDaniel Baluta					reg = <0x30060000 0x10000>;
3754bee4357SDaniel Baluta					interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
3764bee4357SDaniel Baluta					clocks = <&clk IMX8MM_CLK_SAI6_IPG>,
3774bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_SAI6_ROOT>,
3784bee4357SDaniel Baluta						 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3794bee4357SDaniel Baluta					clock-names = "bus", "mclk1", "mclk2", "mclk3";
3804bee4357SDaniel Baluta					dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>;
3814bee4357SDaniel Baluta					dma-names = "rx", "tx";
3824bee4357SDaniel Baluta					status = "disabled";
3834bee4357SDaniel Baluta				};
384a05ea40eSJacky Bai
3853bd0788cSAdam Ford				micfil: audio-controller@30080000 {
3863bd0788cSAdam Ford					compatible = "fsl,imx8mm-micfil";
3873bd0788cSAdam Ford					reg = <0x30080000 0x10000>;
3883bd0788cSAdam Ford					interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
3893bd0788cSAdam Ford						     <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
3903bd0788cSAdam Ford						     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
3913bd0788cSAdam Ford						     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
3923bd0788cSAdam Ford					clocks = <&clk IMX8MM_CLK_PDM_IPG>,
3933bd0788cSAdam Ford						 <&clk IMX8MM_CLK_PDM_ROOT>,
3943bd0788cSAdam Ford						 <&clk IMX8MM_AUDIO_PLL1_OUT>,
3953bd0788cSAdam Ford						 <&clk IMX8MM_AUDIO_PLL2_OUT>,
3963bd0788cSAdam Ford						 <&clk IMX8MM_CLK_EXT3>;
3973bd0788cSAdam Ford					clock-names = "ipg_clk", "ipg_clk_app",
3983bd0788cSAdam Ford						      "pll8k", "pll11k", "clkext3";
3993bd0788cSAdam Ford					dmas = <&sdma2 24 25 0x80000000>;
4003bd0788cSAdam Ford					dma-names = "rx";
4013bd0788cSAdam Ford					status = "disabled";
4023bd0788cSAdam Ford				};
4033bd0788cSAdam Ford
40457412197SAdam Ford				spdif1: spdif@30090000 {
40557412197SAdam Ford					compatible = "fsl,imx35-spdif";
40657412197SAdam Ford					reg = <0x30090000 0x10000>;
40757412197SAdam Ford					interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
40857412197SAdam Ford					clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, /* core */
40957412197SAdam Ford						 <&clk IMX8MM_CLK_24M>, /* rxtx0 */
41057412197SAdam Ford						 <&clk IMX8MM_CLK_SPDIF1>, /* rxtx1 */
41157412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx2 */
41257412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx3 */
41357412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx4 */
41457412197SAdam Ford						 <&clk IMX8MM_CLK_AUDIO_AHB>, /* rxtx5 */
41557412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx6 */
41657412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>, /* rxtx7 */
41757412197SAdam Ford						 <&clk IMX8MM_CLK_DUMMY>; /* spba */
41857412197SAdam Ford					clock-names = "core", "rxtx0",
41957412197SAdam Ford						      "rxtx1", "rxtx2",
42057412197SAdam Ford						      "rxtx3", "rxtx4",
42157412197SAdam Ford						      "rxtx5", "rxtx6",
42257412197SAdam Ford						      "rxtx7", "spba";
42357412197SAdam Ford					dmas = <&sdma2 28 18 0>, <&sdma2 29 18 0>;
42457412197SAdam Ford					dma-names = "rx", "tx";
42557412197SAdam Ford					status = "disabled";
42657412197SAdam Ford				};
4277923353bSAdam Ford			};
42857412197SAdam Ford
429a05ea40eSJacky Bai			gpio1: gpio@30200000 {
430a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
431a05ea40eSJacky Bai				reg = <0x30200000 0x10000>;
432a05ea40eSJacky Bai				interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
433a05ea40eSJacky Bai					     <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
43409892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO1_ROOT>;
435a05ea40eSJacky Bai				gpio-controller;
436a05ea40eSJacky Bai				#gpio-cells = <2>;
437a05ea40eSJacky Bai				interrupt-controller;
438a05ea40eSJacky Bai				#interrupt-cells = <2>;
43915626359SAnson Huang				gpio-ranges = <&iomuxc 0 10 30>;
440a05ea40eSJacky Bai			};
441a05ea40eSJacky Bai
442a05ea40eSJacky Bai			gpio2: gpio@30210000 {
443a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
444a05ea40eSJacky Bai				reg = <0x30210000 0x10000>;
445a05ea40eSJacky Bai				interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
446a05ea40eSJacky Bai					     <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
44709892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO2_ROOT>;
448a05ea40eSJacky Bai				gpio-controller;
449a05ea40eSJacky Bai				#gpio-cells = <2>;
450a05ea40eSJacky Bai				interrupt-controller;
451a05ea40eSJacky Bai				#interrupt-cells = <2>;
45215626359SAnson Huang				gpio-ranges = <&iomuxc 0 40 21>;
453a05ea40eSJacky Bai			};
454a05ea40eSJacky Bai
455a05ea40eSJacky Bai			gpio3: gpio@30220000 {
456a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
457a05ea40eSJacky Bai				reg = <0x30220000 0x10000>;
458a05ea40eSJacky Bai				interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
459a05ea40eSJacky Bai					     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
46009892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO3_ROOT>;
461a05ea40eSJacky Bai				gpio-controller;
462a05ea40eSJacky Bai				#gpio-cells = <2>;
463a05ea40eSJacky Bai				interrupt-controller;
464a05ea40eSJacky Bai				#interrupt-cells = <2>;
46515626359SAnson Huang				gpio-ranges = <&iomuxc 0 61 26>;
466a05ea40eSJacky Bai			};
467a05ea40eSJacky Bai
468a05ea40eSJacky Bai			gpio4: gpio@30230000 {
469a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
470a05ea40eSJacky Bai				reg = <0x30230000 0x10000>;
471a05ea40eSJacky Bai				interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
472a05ea40eSJacky Bai					     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
47309892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO4_ROOT>;
474a05ea40eSJacky Bai				gpio-controller;
475a05ea40eSJacky Bai				#gpio-cells = <2>;
476a05ea40eSJacky Bai				interrupt-controller;
477a05ea40eSJacky Bai				#interrupt-cells = <2>;
47815626359SAnson Huang				gpio-ranges = <&iomuxc 0 87 32>;
479a05ea40eSJacky Bai			};
480a05ea40eSJacky Bai
481a05ea40eSJacky Bai			gpio5: gpio@30240000 {
482a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
483a05ea40eSJacky Bai				reg = <0x30240000 0x10000>;
484a05ea40eSJacky Bai				interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
485a05ea40eSJacky Bai					     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
48609892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO5_ROOT>;
487a05ea40eSJacky Bai				gpio-controller;
488a05ea40eSJacky Bai				#gpio-cells = <2>;
489a05ea40eSJacky Bai				interrupt-controller;
490a05ea40eSJacky Bai				#interrupt-cells = <2>;
49115626359SAnson Huang				gpio-ranges = <&iomuxc 0 119 30>;
492a05ea40eSJacky Bai			};
493a05ea40eSJacky Bai
49411699fd5SAnson Huang			tmu: tmu@30260000 {
49511699fd5SAnson Huang				compatible = "fsl,imx8mm-tmu";
49611699fd5SAnson Huang				reg = <0x30260000 0x10000>;
49711699fd5SAnson Huang				clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
49811699fd5SAnson Huang				#thermal-sensor-cells = <0>;
49911699fd5SAnson Huang			};
50011699fd5SAnson Huang
501a05ea40eSJacky Bai			wdog1: watchdog@30280000 {
502a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
503a05ea40eSJacky Bai				reg = <0x30280000 0x10000>;
504a05ea40eSJacky Bai				interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
505a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG1_ROOT>;
506a05ea40eSJacky Bai				status = "disabled";
507a05ea40eSJacky Bai			};
508a05ea40eSJacky Bai
509a05ea40eSJacky Bai			wdog2: watchdog@30290000 {
510a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
511a05ea40eSJacky Bai				reg = <0x30290000 0x10000>;
512a05ea40eSJacky Bai				interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
513a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG2_ROOT>;
514a05ea40eSJacky Bai				status = "disabled";
515a05ea40eSJacky Bai			};
516a05ea40eSJacky Bai
517a05ea40eSJacky Bai			wdog3: watchdog@302a0000 {
518a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
519a05ea40eSJacky Bai				reg = <0x302a0000 0x10000>;
520a05ea40eSJacky Bai				interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
521a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG3_ROOT>;
522a05ea40eSJacky Bai				status = "disabled";
523a05ea40eSJacky Bai			};
524a05ea40eSJacky Bai
525a05ea40eSJacky Bai			sdma2: dma-controller@302c0000 {
526e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
527a05ea40eSJacky Bai				reg = <0x302c0000 0x10000>;
528a05ea40eSJacky Bai				interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
529a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA2_ROOT>,
530a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_SDMA2_ROOT>;
531a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
532a05ea40eSJacky Bai				#dma-cells = <3>;
533a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
534a05ea40eSJacky Bai			};
535a05ea40eSJacky Bai
536a05ea40eSJacky Bai			sdma3: dma-controller@302b0000 {
537e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
538a05ea40eSJacky Bai				reg = <0x302b0000 0x10000>;
539a05ea40eSJacky Bai				interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
540a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA3_ROOT>,
541a05ea40eSJacky Bai				 <&clk IMX8MM_CLK_SDMA3_ROOT>;
542a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
543a05ea40eSJacky Bai				#dma-cells = <3>;
544a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
545a05ea40eSJacky Bai			};
546a05ea40eSJacky Bai
547a05ea40eSJacky Bai			iomuxc: pinctrl@30330000 {
548a05ea40eSJacky Bai				compatible = "fsl,imx8mm-iomuxc";
549a05ea40eSJacky Bai				reg = <0x30330000 0x10000>;
550a05ea40eSJacky Bai			};
551a05ea40eSJacky Bai
552a05ea40eSJacky Bai			gpr: iomuxc-gpr@30340000 {
553aaeba6a8SRichard Zhu				compatible = "fsl,imx8mm-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon";
554a05ea40eSJacky Bai				reg = <0x30340000 0x10000>;
555a05ea40eSJacky Bai			};
556a05ea40eSJacky Bai
55712fa1078SAnson Huang			ocotp: efuse@30350000 {
558b09802a0SAnson Huang				compatible = "fsl,imx8mm-ocotp", "syscon";
559a05ea40eSJacky Bai				reg = <0x30350000 0x10000>;
560a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_OCOTP_ROOT>;
561a05ea40eSJacky Bai				/* For nvmem subnodes */
562a05ea40eSJacky Bai				#address-cells = <1>;
563a05ea40eSJacky Bai				#size-cells = <1>;
564f403a26cSLeonard Crestez
565cbff2379SAlice Guo				imx8mm_uid: unique-id@410 {
566cbff2379SAlice Guo					reg = <0x4 0x8>;
567cbff2379SAlice Guo				};
568cbff2379SAlice Guo
569f403a26cSLeonard Crestez				cpu_speed_grade: speed-grade@10 {
570f403a26cSLeonard Crestez					reg = <0x10 4>;
571f403a26cSLeonard Crestez				};
572066438aeSJoakim Zhang
573066438aeSJoakim Zhang				fec_mac_address: mac-address@90 {
574066438aeSJoakim Zhang					reg = <0x90 6>;
575066438aeSJoakim Zhang				};
576a05ea40eSJacky Bai			};
577a05ea40eSJacky Bai
578a05ea40eSJacky Bai			anatop: anatop@30360000 {
5790900a484SFancy Fang				compatible = "fsl,imx8mm-anatop", "syscon";
580a05ea40eSJacky Bai				reg = <0x30360000 0x10000>;
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					};
680d39d4bb1SLucas Stach
681d39d4bb1SLucas Stach					pgc_otg2: power-domain@3 {
682d39d4bb1SLucas Stach						#power-domain-cells = <0>;
683d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_OTG2>;
684d39d4bb1SLucas Stach					};
685d39d4bb1SLucas Stach
686d39d4bb1SLucas Stach					pgc_gpumix: power-domain@4 {
687d39d4bb1SLucas Stach						#power-domain-cells = <0>;
688d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_GPUMIX>;
689d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
690d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU_AHB>;
691d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_GPU_AXI>,
692d39d4bb1SLucas Stach								  <&clk IMX8MM_CLK_GPU_AHB>;
693d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>,
694d39d4bb1SLucas Stach									 <&clk IMX8MM_SYS_PLL1_800M>;
695d39d4bb1SLucas Stach						assigned-clock-rates = <800000000>, <400000000>;
696d39d4bb1SLucas Stach					};
697d39d4bb1SLucas Stach
698d39d4bb1SLucas Stach					pgc_gpu: power-domain@5 {
699d39d4bb1SLucas Stach						#power-domain-cells = <0>;
700d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_GPU>;
701d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_GPU_AHB>,
702d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
703d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU2D_ROOT>,
704d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_GPU3D_ROOT>;
705d39d4bb1SLucas Stach						resets = <&src IMX8MQ_RESET_GPU_RESET>;
706d39d4bb1SLucas Stach						power-domains = <&pgc_gpumix>;
707d39d4bb1SLucas Stach					};
708d39d4bb1SLucas Stach
709d39d4bb1SLucas Stach					pgc_vpumix: power-domain@6 {
710d39d4bb1SLucas Stach						#power-domain-cells = <0>;
711d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUMIX>;
712d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_VPU_DEC_ROOT>;
713d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_VPU_BUS>;
714d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_800M>;
715d39d4bb1SLucas Stach					};
716d39d4bb1SLucas Stach
717d39d4bb1SLucas Stach					pgc_vpu_g1: power-domain@7 {
718d39d4bb1SLucas Stach						#power-domain-cells = <0>;
719d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUG1>;
720d39d4bb1SLucas Stach					};
721d39d4bb1SLucas Stach
722d39d4bb1SLucas Stach					pgc_vpu_g2: power-domain@8 {
723d39d4bb1SLucas Stach						#power-domain-cells = <0>;
724d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUG2>;
725d39d4bb1SLucas Stach					};
726d39d4bb1SLucas Stach
727d39d4bb1SLucas Stach					pgc_vpu_h1: power-domain@9 {
728d39d4bb1SLucas Stach						#power-domain-cells = <0>;
729d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_VPUH1>;
730d39d4bb1SLucas Stach					};
731d39d4bb1SLucas Stach
732d39d4bb1SLucas Stach					pgc_dispmix: power-domain@10 {
733d39d4bb1SLucas Stach						#power-domain-cells = <0>;
734d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_DISPMIX>;
735d39d4bb1SLucas Stach						clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
736d39d4bb1SLucas Stach							 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
737d39d4bb1SLucas Stach						assigned-clocks = <&clk IMX8MM_CLK_DISP_AXI>,
738d39d4bb1SLucas Stach								  <&clk IMX8MM_CLK_DISP_APB>;
739d39d4bb1SLucas Stach						assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
740d39d4bb1SLucas Stach									 <&clk IMX8MM_SYS_PLL1_800M>;
741d39d4bb1SLucas Stach						assigned-clock-rates = <500000000>, <200000000>;
742d39d4bb1SLucas Stach					};
743d39d4bb1SLucas Stach
744d39d4bb1SLucas Stach					pgc_mipi: power-domain@11 {
745d39d4bb1SLucas Stach						#power-domain-cells = <0>;
746d39d4bb1SLucas Stach						reg = <IMX8MM_POWER_DOMAIN_MIPI>;
747d39d4bb1SLucas Stach					};
748d39d4bb1SLucas Stach				};
749d39d4bb1SLucas Stach			};
750a05ea40eSJacky Bai		};
751a05ea40eSJacky Bai
752a05ea40eSJacky Bai		aips2: bus@30400000 {
753dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
754921a6845SFabio Estevam			reg = <0x30400000 0x400000>;
755a05ea40eSJacky Bai			#address-cells = <1>;
756a05ea40eSJacky Bai			#size-cells = <1>;
75710c74207SFabio Estevam			ranges = <0x30400000 0x30400000 0x400000>;
758a05ea40eSJacky Bai
759a05ea40eSJacky Bai			pwm1: pwm@30660000 {
760a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
761a05ea40eSJacky Bai				reg = <0x30660000 0x10000>;
762a05ea40eSJacky Bai				interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
763a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM1_ROOT>,
764a05ea40eSJacky Bai					<&clk IMX8MM_CLK_PWM1_ROOT>;
765a05ea40eSJacky Bai				clock-names = "ipg", "per";
766957aef02SMarkus Niebel				#pwm-cells = <3>;
767a05ea40eSJacky Bai				status = "disabled";
768a05ea40eSJacky Bai			};
769a05ea40eSJacky Bai
770a05ea40eSJacky Bai			pwm2: pwm@30670000 {
771a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
772a05ea40eSJacky Bai				reg = <0x30670000 0x10000>;
773a05ea40eSJacky Bai				interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
774a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM2_ROOT>,
775a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM2_ROOT>;
776a05ea40eSJacky Bai				clock-names = "ipg", "per";
777957aef02SMarkus Niebel				#pwm-cells = <3>;
778a05ea40eSJacky Bai				status = "disabled";
779a05ea40eSJacky Bai			};
780a05ea40eSJacky Bai
781a05ea40eSJacky Bai			pwm3: pwm@30680000 {
782a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
783a05ea40eSJacky Bai				reg = <0x30680000 0x10000>;
784a05ea40eSJacky Bai				interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
785a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM3_ROOT>,
786a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM3_ROOT>;
787a05ea40eSJacky Bai				clock-names = "ipg", "per";
788957aef02SMarkus Niebel				#pwm-cells = <3>;
789a05ea40eSJacky Bai				status = "disabled";
790a05ea40eSJacky Bai			};
791a05ea40eSJacky Bai
792a05ea40eSJacky Bai			pwm4: pwm@30690000 {
793a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
794a05ea40eSJacky Bai				reg = <0x30690000 0x10000>;
795a05ea40eSJacky Bai				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
796a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM4_ROOT>,
797a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM4_ROOT>;
798a05ea40eSJacky Bai				clock-names = "ipg", "per";
799957aef02SMarkus Niebel				#pwm-cells = <3>;
800a05ea40eSJacky Bai				status = "disabled";
801a05ea40eSJacky Bai			};
8025b0221bfSAnson Huang
8035b0221bfSAnson Huang			system_counter: timer@306a0000 {
8045b0221bfSAnson Huang				compatible = "nxp,sysctr-timer";
8055b0221bfSAnson Huang				reg = <0x306a0000 0x20000>;
8065b0221bfSAnson Huang				interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
8075b0221bfSAnson Huang				clocks = <&osc_24m>;
8085b0221bfSAnson Huang				clock-names = "per";
8095b0221bfSAnson Huang			};
810a05ea40eSJacky Bai		};
811a05ea40eSJacky Bai
812a05ea40eSJacky Bai		aips3: bus@30800000 {
813dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
814921a6845SFabio Estevam			reg = <0x30800000 0x400000>;
815a05ea40eSJacky Bai			#address-cells = <1>;
816a05ea40eSJacky Bai			#size-cells = <1>;
817f0692bb8SAdam Ford			ranges = <0x30800000 0x30800000 0x400000>,
818f0692bb8SAdam Ford				 <0x8000000 0x8000000 0x10000000>;
819a05ea40eSJacky Bai
8207923353bSAdam Ford			spba1: spba-bus@30800000 {
8217923353bSAdam Ford				compatible = "fsl,spba-bus", "simple-bus";
8227923353bSAdam Ford				#address-cells = <1>;
8237923353bSAdam Ford				#size-cells = <1>;
8247923353bSAdam Ford				reg = <0x30800000 0x100000>;
8257923353bSAdam Ford				ranges;
8267923353bSAdam Ford
827a05ea40eSJacky Bai				ecspi1: spi@30820000 {
828a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
829a05ea40eSJacky Bai					#address-cells = <1>;
830a05ea40eSJacky Bai					#size-cells = <0>;
831a05ea40eSJacky Bai					reg = <0x30820000 0x10000>;
832a05ea40eSJacky Bai					interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
833a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>,
834a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI1_ROOT>;
835a05ea40eSJacky Bai					clock-names = "ipg", "per";
836a05ea40eSJacky Bai					dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>;
837a05ea40eSJacky Bai					dma-names = "rx", "tx";
838a05ea40eSJacky Bai					status = "disabled";
839a05ea40eSJacky Bai				};
840a05ea40eSJacky Bai
841a05ea40eSJacky Bai				ecspi2: spi@30830000 {
842a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
843a05ea40eSJacky Bai					#address-cells = <1>;
844a05ea40eSJacky Bai					#size-cells = <0>;
845a05ea40eSJacky Bai					reg = <0x30830000 0x10000>;
846a05ea40eSJacky Bai					interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
847a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI2_ROOT>,
848a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI2_ROOT>;
849a05ea40eSJacky Bai					clock-names = "ipg", "per";
850a05ea40eSJacky Bai					dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>;
851a05ea40eSJacky Bai					dma-names = "rx", "tx";
852a05ea40eSJacky Bai					status = "disabled";
853a05ea40eSJacky Bai				};
854a05ea40eSJacky Bai
855a05ea40eSJacky Bai				ecspi3: spi@30840000 {
856a05ea40eSJacky Bai					compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
857a05ea40eSJacky Bai					#address-cells = <1>;
858a05ea40eSJacky Bai					#size-cells = <0>;
859a05ea40eSJacky Bai					reg = <0x30840000 0x10000>;
860a05ea40eSJacky Bai					interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
861a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_ECSPI3_ROOT>,
862a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_ECSPI3_ROOT>;
863a05ea40eSJacky Bai					clock-names = "ipg", "per";
864a05ea40eSJacky Bai					dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>;
865a05ea40eSJacky Bai					dma-names = "rx", "tx";
866a05ea40eSJacky Bai					status = "disabled";
867a05ea40eSJacky Bai				};
868a05ea40eSJacky Bai
869a05ea40eSJacky Bai				uart1: serial@30860000 {
870a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
871a05ea40eSJacky Bai					reg = <0x30860000 0x10000>;
872a05ea40eSJacky Bai					interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
873a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART1_ROOT>,
874a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART1_ROOT>;
875a05ea40eSJacky Bai					clock-names = "ipg", "per";
876a05ea40eSJacky Bai					dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
877a05ea40eSJacky Bai					dma-names = "rx", "tx";
878a05ea40eSJacky Bai					status = "disabled";
879a05ea40eSJacky Bai				};
880a05ea40eSJacky Bai
881a05ea40eSJacky Bai				uart3: serial@30880000 {
882a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
883a05ea40eSJacky Bai					reg = <0x30880000 0x10000>;
884a05ea40eSJacky Bai					interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
885a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART3_ROOT>,
886a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART3_ROOT>;
887a05ea40eSJacky Bai					clock-names = "ipg", "per";
888a05ea40eSJacky Bai					dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>;
889a05ea40eSJacky Bai					dma-names = "rx", "tx";
890a05ea40eSJacky Bai					status = "disabled";
891a05ea40eSJacky Bai				};
892a05ea40eSJacky Bai
893a05ea40eSJacky Bai				uart2: serial@30890000 {
894a05ea40eSJacky Bai					compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
895a05ea40eSJacky Bai					reg = <0x30890000 0x10000>;
896a05ea40eSJacky Bai					interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
897a05ea40eSJacky Bai					clocks = <&clk IMX8MM_CLK_UART2_ROOT>,
898a05ea40eSJacky Bai						 <&clk IMX8MM_CLK_UART2_ROOT>;
899a05ea40eSJacky Bai					clock-names = "ipg", "per";
900a05ea40eSJacky Bai					status = "disabled";
901a05ea40eSJacky Bai				};
9027923353bSAdam Ford			};
903a05ea40eSJacky Bai
904bff5b972SAdam Ford			crypto: crypto@30900000 {
905bff5b972SAdam Ford				compatible = "fsl,sec-v4.0";
906bff5b972SAdam Ford				#address-cells = <1>;
907bff5b972SAdam Ford				#size-cells = <1>;
908bff5b972SAdam Ford				reg = <0x30900000 0x40000>;
909bff5b972SAdam Ford				ranges = <0 0x30900000 0x40000>;
910bff5b972SAdam Ford				interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
911bff5b972SAdam Ford				clocks = <&clk IMX8MM_CLK_AHB>,
912bff5b972SAdam Ford					 <&clk IMX8MM_CLK_IPG_ROOT>;
913bff5b972SAdam Ford				clock-names = "aclk", "ipg";
914bff5b972SAdam Ford
915bff5b972SAdam Ford				sec_jr0: jr@1000 {
916bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
917bff5b972SAdam Ford					reg = <0x1000 0x1000>;
918bff5b972SAdam Ford					interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
919dc9c1cebSFabio Estevam					status = "disabled";
920bff5b972SAdam Ford				};
921bff5b972SAdam Ford
922bff5b972SAdam Ford				sec_jr1: jr@2000 {
923bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
924bff5b972SAdam Ford					reg = <0x2000 0x1000>;
925bff5b972SAdam Ford					interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
926bff5b972SAdam Ford				};
927bff5b972SAdam Ford
928bff5b972SAdam Ford				sec_jr2: jr@3000 {
929bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
930bff5b972SAdam Ford					reg = <0x3000 0x1000>;
931bff5b972SAdam Ford					interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
932bff5b972SAdam Ford				};
933bff5b972SAdam Ford			};
934bff5b972SAdam Ford
935a05ea40eSJacky Bai			i2c1: i2c@30a20000 {
936a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
937a05ea40eSJacky Bai				#address-cells = <1>;
938a05ea40eSJacky Bai				#size-cells = <0>;
939a05ea40eSJacky Bai				reg = <0x30a20000 0x10000>;
940a05ea40eSJacky Bai				interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
941a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C1_ROOT>;
942a05ea40eSJacky Bai				status = "disabled";
943a05ea40eSJacky Bai			};
944a05ea40eSJacky Bai
945a05ea40eSJacky Bai			i2c2: i2c@30a30000 {
946a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
947a05ea40eSJacky Bai				#address-cells = <1>;
948a05ea40eSJacky Bai				#size-cells = <0>;
949a05ea40eSJacky Bai				reg = <0x30a30000 0x10000>;
950a05ea40eSJacky Bai				interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
951a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C2_ROOT>;
952a05ea40eSJacky Bai				status = "disabled";
953a05ea40eSJacky Bai			};
954a05ea40eSJacky Bai
955a05ea40eSJacky Bai			i2c3: i2c@30a40000 {
956a05ea40eSJacky Bai				#address-cells = <1>;
957a05ea40eSJacky Bai				#size-cells = <0>;
958a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
959a05ea40eSJacky Bai				reg = <0x30a40000 0x10000>;
960a05ea40eSJacky Bai				interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
961a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C3_ROOT>;
962a05ea40eSJacky Bai				status = "disabled";
963a05ea40eSJacky Bai			};
964a05ea40eSJacky Bai
965a05ea40eSJacky Bai			i2c4: i2c@30a50000 {
966a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
967a05ea40eSJacky Bai				#address-cells = <1>;
968a05ea40eSJacky Bai				#size-cells = <0>;
969a05ea40eSJacky Bai				reg = <0x30a50000 0x10000>;
970a05ea40eSJacky Bai				interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
971a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C4_ROOT>;
972a05ea40eSJacky Bai				status = "disabled";
973a05ea40eSJacky Bai			};
974a05ea40eSJacky Bai
975a05ea40eSJacky Bai			uart4: serial@30a60000 {
976a05ea40eSJacky Bai				compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
977a05ea40eSJacky Bai				reg = <0x30a60000 0x10000>;
978a05ea40eSJacky Bai				interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
979a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_UART4_ROOT>,
980a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_UART4_ROOT>;
981a05ea40eSJacky Bai				clock-names = "ipg", "per";
982a05ea40eSJacky Bai				dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
983a05ea40eSJacky Bai				dma-names = "rx", "tx";
984a05ea40eSJacky Bai				status = "disabled";
985a05ea40eSJacky Bai			};
986a05ea40eSJacky Bai
987bbfc59beSPeng Fan			mu: mailbox@30aa0000 {
988bbfc59beSPeng Fan				compatible = "fsl,imx8mm-mu", "fsl,imx6sx-mu";
989bbfc59beSPeng Fan				reg = <0x30aa0000 0x10000>;
990bbfc59beSPeng Fan				interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
991bbfc59beSPeng Fan				clocks = <&clk IMX8MM_CLK_MU_ROOT>;
992bbfc59beSPeng Fan				#mbox-cells = <2>;
993bbfc59beSPeng Fan			};
994bbfc59beSPeng Fan
995a05ea40eSJacky Bai			usdhc1: mmc@30b40000 {
996a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
997a05ea40eSJacky Bai				reg = <0x30b40000 0x10000>;
998a05ea40eSJacky Bai				interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
999a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1000a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1001a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC1_ROOT>;
1002a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1003a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1004a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1005a05ea40eSJacky Bai				bus-width = <4>;
1006a05ea40eSJacky Bai				status = "disabled";
1007a05ea40eSJacky Bai			};
1008a05ea40eSJacky Bai
1009a05ea40eSJacky Bai			usdhc2: mmc@30b50000 {
1010a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1011a05ea40eSJacky Bai				reg = <0x30b50000 0x10000>;
1012a05ea40eSJacky Bai				interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
1013a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1014a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1015a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC2_ROOT>;
1016a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1017a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1018a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1019a05ea40eSJacky Bai				bus-width = <4>;
1020a05ea40eSJacky Bai				status = "disabled";
1021a05ea40eSJacky Bai			};
1022a05ea40eSJacky Bai
1023a05ea40eSJacky Bai			usdhc3: mmc@30b60000 {
1024a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
1025a05ea40eSJacky Bai				reg = <0x30b60000 0x10000>;
1026a05ea40eSJacky Bai				interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1027a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
1028a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
1029a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC3_ROOT>;
1030a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
1031a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
1032a05ea40eSJacky Bai				fsl,tuning-step = <2>;
1033a05ea40eSJacky Bai				bus-width = <4>;
1034a05ea40eSJacky Bai				status = "disabled";
1035a05ea40eSJacky Bai			};
1036a05ea40eSJacky Bai
1037f0692bb8SAdam Ford			flexspi: spi@30bb0000 {
1038f0692bb8SAdam Ford				#address-cells = <1>;
1039f0692bb8SAdam Ford				#size-cells = <0>;
1040f0692bb8SAdam Ford				compatible = "nxp,imx8mm-fspi";
1041f0692bb8SAdam Ford				reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>;
1042f0692bb8SAdam Ford				reg-names = "fspi_base", "fspi_mmap";
1043f0692bb8SAdam Ford				interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
1044f0692bb8SAdam Ford				clocks = <&clk IMX8MM_CLK_QSPI_ROOT>,
1045f0692bb8SAdam Ford					 <&clk IMX8MM_CLK_QSPI_ROOT>;
10469eaf9984SKuldeep Singh				clock-names = "fspi_en", "fspi";
1047f0692bb8SAdam Ford				status = "disabled";
1048f0692bb8SAdam Ford			};
1049f0692bb8SAdam Ford
1050a05ea40eSJacky Bai			sdma1: dma-controller@30bd0000 {
1051e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
1052a05ea40eSJacky Bai				reg = <0x30bd0000 0x10000>;
1053a05ea40eSJacky Bai				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1054a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
105524a572bfSAdam Ford					 <&clk IMX8MM_CLK_AHB>;
1056a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
1057a05ea40eSJacky Bai				#dma-cells = <3>;
1058a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
1059a05ea40eSJacky Bai			};
1060a05ea40eSJacky Bai
1061a05ea40eSJacky Bai			fec1: ethernet@30be0000 {
1062a758dee8SJoakim Zhang				compatible = "fsl,imx8mm-fec", "fsl,imx8mq-fec", "fsl,imx6sx-fec";
1063a05ea40eSJacky Bai				reg = <0x30be0000 0x10000>;
1064a05ea40eSJacky Bai				interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
1065a05ea40eSJacky Bai					     <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
1066d3762a47SFabio Estevam					     <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
1067d3762a47SFabio Estevam					     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
1068a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_ENET1_ROOT>,
1069a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET1_ROOT>,
1070a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_TIMER>,
1071a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_REF>,
1072a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_PHY_REF>;
1073a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "ptp",
1074a05ea40eSJacky Bai					      "enet_clk_ref", "enet_out";
1075a05ea40eSJacky Bai				assigned-clocks = <&clk IMX8MM_CLK_ENET_AXI>,
1076a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_TIMER>,
1077a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_REF>,
107870eacf42SJoakim Zhang						  <&clk IMX8MM_CLK_ENET_PHY_REF>;
1079a05ea40eSJacky Bai				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>,
1080a05ea40eSJacky Bai							 <&clk IMX8MM_SYS_PLL2_100M>,
108170eacf42SJoakim Zhang							 <&clk IMX8MM_SYS_PLL2_125M>,
108270eacf42SJoakim Zhang							 <&clk IMX8MM_SYS_PLL2_50M>;
108370eacf42SJoakim Zhang				assigned-clock-rates = <0>, <100000000>, <125000000>, <0>;
1084a05ea40eSJacky Bai				fsl,num-tx-queues = <3>;
1085a05ea40eSJacky Bai				fsl,num-rx-queues = <3>;
1086066438aeSJoakim Zhang				nvmem-cells = <&fec_mac_address>;
1087066438aeSJoakim Zhang				nvmem-cell-names = "mac-address";
1088afe99354SJoakim Zhang				fsl,stop-mode = <&gpr 0x10 3>;
1089a05ea40eSJacky Bai				status = "disabled";
1090a05ea40eSJacky Bai			};
1091a05ea40eSJacky Bai
1092a05ea40eSJacky Bai		};
1093a05ea40eSJacky Bai
1094a05ea40eSJacky Bai		aips4: bus@32c00000 {
1095dc3efc6fSPeng Fan			compatible = "fsl,aips-bus", "simple-bus";
1096921a6845SFabio Estevam			reg = <0x32c00000 0x400000>;
1097a05ea40eSJacky Bai			#address-cells = <1>;
1098a05ea40eSJacky Bai			#size-cells = <1>;
109910c74207SFabio Estevam			ranges = <0x32c00000 0x32c00000 0x400000>;
1100a05ea40eSJacky Bai
1101e523b7c5SAdam Ford			csi: csi@32e20000 {
1102e523b7c5SAdam Ford				compatible = "fsl,imx8mm-csi", "fsl,imx7-csi";
1103e523b7c5SAdam Ford				reg = <0x32e20000 0x1000>;
1104e523b7c5SAdam Ford				interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1105e523b7c5SAdam Ford				clocks = <&clk IMX8MM_CLK_CSI1_ROOT>;
1106e523b7c5SAdam Ford				clock-names = "mclk";
1107e523b7c5SAdam Ford				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_CSI_BRIDGE>;
1108e523b7c5SAdam Ford				status = "disabled";
1109e523b7c5SAdam Ford
1110e523b7c5SAdam Ford				port {
1111e523b7c5SAdam Ford					csi_in: endpoint {
1112e523b7c5SAdam Ford						remote-endpoint = <&imx8mm_mipi_csi_out>;
1113e523b7c5SAdam Ford					};
1114e523b7c5SAdam Ford				};
1115e523b7c5SAdam Ford			};
1116e523b7c5SAdam Ford
1117d2fefef9SLucas Stach			disp_blk_ctrl: blk-ctrl@32e28000 {
1118d2fefef9SLucas Stach				compatible = "fsl,imx8mm-disp-blk-ctrl", "syscon";
1119d2fefef9SLucas Stach				reg = <0x32e28000 0x100>;
1120d2fefef9SLucas Stach				power-domains = <&pgc_dispmix>, <&pgc_dispmix>,
1121d2fefef9SLucas Stach						<&pgc_dispmix>, <&pgc_mipi>,
1122d2fefef9SLucas Stach						<&pgc_mipi>;
1123d2fefef9SLucas Stach				power-domain-names = "bus", "csi-bridge",
1124d2fefef9SLucas Stach						     "lcdif", "mipi-dsi",
1125d2fefef9SLucas Stach						     "mipi-csi";
1126d2fefef9SLucas Stach				clocks = <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
1127d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1128d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_ROOT>,
1129d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>,
1130d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1131d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DISP_ROOT>,
1132d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DSI_CORE>,
1133d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_DSI_PHY_REF>,
1134d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_CORE>,
1135d2fefef9SLucas Stach					 <&clk IMX8MM_CLK_CSI1_PHY_REF>;
1136d2fefef9SLucas Stach				clock-names = "csi-bridge-axi","csi-bridge-apb",
1137d2fefef9SLucas Stach					      "csi-bridge-core", "lcdif-axi",
1138d2fefef9SLucas Stach					      "lcdif-apb", "lcdif-pix",
1139d2fefef9SLucas Stach					      "dsi-pclk", "dsi-ref",
1140d2fefef9SLucas Stach					      "csi-aclk", "csi-pclk";
1141d2fefef9SLucas Stach				#power-domain-cells = <1>;
1142d2fefef9SLucas Stach			};
1143d2fefef9SLucas Stach
1144e523b7c5SAdam Ford			mipi_csi: mipi-csi@32e30000 {
1145e523b7c5SAdam Ford				compatible = "fsl,imx8mm-mipi-csi2";
1146e523b7c5SAdam Ford				reg = <0x32e30000 0x1000>;
1147e523b7c5SAdam Ford				interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1148e523b7c5SAdam Ford				assigned-clocks = <&clk IMX8MM_CLK_CSI1_CORE>,
1149e523b7c5SAdam Ford						  <&clk IMX8MM_CLK_CSI1_PHY_REF>;
1150e523b7c5SAdam Ford				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
1151e523b7c5SAdam Ford							  <&clk IMX8MM_SYS_PLL2_1000M>;
1152e523b7c5SAdam Ford				clock-frequency = <333000000>;
1153e523b7c5SAdam Ford				clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
1154e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_CSI1_ROOT>,
1155e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_CSI1_PHY_REF>,
1156e523b7c5SAdam Ford					 <&clk IMX8MM_CLK_DISP_AXI_ROOT>;
1157e523b7c5SAdam Ford				clock-names = "pclk", "wrap", "phy", "axi";
1158e523b7c5SAdam Ford				power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_MIPI_CSI>;
1159e523b7c5SAdam Ford				status = "disabled";
1160e523b7c5SAdam Ford
1161e523b7c5SAdam Ford				ports {
1162e523b7c5SAdam Ford					#address-cells = <1>;
1163e523b7c5SAdam Ford					#size-cells = <0>;
1164e523b7c5SAdam Ford
1165e523b7c5SAdam Ford					port@0 {
1166e523b7c5SAdam Ford						reg = <0>;
1167e523b7c5SAdam Ford					};
1168e523b7c5SAdam Ford
1169e523b7c5SAdam Ford					port@1 {
1170e523b7c5SAdam Ford						reg = <1>;
1171e523b7c5SAdam Ford
1172e523b7c5SAdam Ford						imx8mm_mipi_csi_out: endpoint {
1173e523b7c5SAdam Ford							remote-endpoint = <&csi_in>;
1174e523b7c5SAdam Ford						};
1175e523b7c5SAdam Ford					};
1176e523b7c5SAdam Ford				};
1177e523b7c5SAdam Ford			};
1178e523b7c5SAdam Ford
1179a05ea40eSJacky Bai			usbotg1: usb@32e40000 {
1180a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
1181a05ea40eSJacky Bai				reg = <0x32e40000 0x200>;
1182a05ea40eSJacky Bai				interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1183a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
1184a05ea40eSJacky Bai				clock-names = "usb1_ctrl_root_clk";
11858b01840eSLi Jun				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
11868b01840eSLi Jun				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
118778e80c4bSMarek Vasut				phys = <&usbphynop1>;
1188a05ea40eSJacky Bai				fsl,usbmisc = <&usbmisc1 0>;
1189*4585c79fSLi Jun				power-domains = <&pgc_hsiomix>;
1190a05ea40eSJacky Bai				status = "disabled";
1191a05ea40eSJacky Bai			};
1192a05ea40eSJacky Bai
1193a05ea40eSJacky Bai			usbmisc1: usbmisc@32e40200 {
1194a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
1195a05ea40eSJacky Bai				#index-cells = <1>;
1196a05ea40eSJacky Bai				reg = <0x32e40200 0x200>;
1197a05ea40eSJacky Bai			};
1198a05ea40eSJacky Bai
1199a05ea40eSJacky Bai			usbotg2: usb@32e50000 {
1200a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
1201a05ea40eSJacky Bai				reg = <0x32e50000 0x200>;
1202a05ea40eSJacky Bai				interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1203a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
1204a05ea40eSJacky Bai				clock-names = "usb1_ctrl_root_clk";
12058b01840eSLi Jun				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
12068b01840eSLi Jun				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
120778e80c4bSMarek Vasut				phys = <&usbphynop2>;
1208a05ea40eSJacky Bai				fsl,usbmisc = <&usbmisc2 0>;
1209*4585c79fSLi Jun				power-domains = <&pgc_hsiomix>;
1210a05ea40eSJacky Bai				status = "disabled";
1211a05ea40eSJacky Bai			};
1212a05ea40eSJacky Bai
1213a05ea40eSJacky Bai			usbmisc2: usbmisc@32e50200 {
1214a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
1215a05ea40eSJacky Bai				#index-cells = <1>;
1216a05ea40eSJacky Bai				reg = <0x32e50200 0x200>;
1217a05ea40eSJacky Bai			};
1218a05ea40eSJacky Bai
1219cfc50784SRichard Zhu			pcie_phy: pcie-phy@32f00000 {
1220cfc50784SRichard Zhu				compatible = "fsl,imx8mm-pcie-phy";
1221cfc50784SRichard Zhu				reg = <0x32f00000 0x10000>;
1222cfc50784SRichard Zhu				clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
1223cfc50784SRichard Zhu				clock-names = "ref";
1224cfc50784SRichard Zhu				assigned-clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
1225cfc50784SRichard Zhu				assigned-clock-rates = <100000000>;
1226cfc50784SRichard Zhu				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_100M>;
1227cfc50784SRichard Zhu				resets = <&src IMX8MQ_RESET_PCIEPHY>;
1228cfc50784SRichard Zhu				reset-names = "pciephy";
1229cfc50784SRichard Zhu				#phy-cells = <0>;
1230cfc50784SRichard Zhu				status = "disabled";
1231cfc50784SRichard Zhu			};
1232a05ea40eSJacky Bai		};
1233a05ea40eSJacky Bai
1234a05ea40eSJacky Bai		dma_apbh: dma-controller@33000000 {
1235a05ea40eSJacky Bai			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
1236a05ea40eSJacky Bai			reg = <0x33000000 0x2000>;
1237a05ea40eSJacky Bai			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1238a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1239a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
1240a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1241a05ea40eSJacky Bai			interrupt-names = "gpmi0", "gpmi1", "gpmi2", "gpmi3";
1242a05ea40eSJacky Bai			#dma-cells = <1>;
1243a05ea40eSJacky Bai			dma-channels = <4>;
1244a05ea40eSJacky Bai			clocks = <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
1245a05ea40eSJacky Bai		};
1246a05ea40eSJacky Bai
1247a05ea40eSJacky Bai		gpmi: nand-controller@33002000{
1248a05ea40eSJacky Bai			compatible = "fsl,imx8mm-gpmi-nand", "fsl,imx7d-gpmi-nand";
1249a05ea40eSJacky Bai			#address-cells = <1>;
1250a05ea40eSJacky Bai			#size-cells = <1>;
1251a05ea40eSJacky Bai			reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
1252a05ea40eSJacky Bai			reg-names = "gpmi-nand", "bch";
1253a05ea40eSJacky Bai			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1254a05ea40eSJacky Bai			interrupt-names = "bch";
1255a05ea40eSJacky Bai			clocks = <&clk IMX8MM_CLK_NAND_ROOT>,
1256a05ea40eSJacky Bai				 <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
1257a05ea40eSJacky Bai			clock-names = "gpmi_io", "gpmi_bch_apb";
1258a05ea40eSJacky Bai			dmas = <&dma_apbh 0>;
1259a05ea40eSJacky Bai			dma-names = "rx-tx";
1260a05ea40eSJacky Bai			status = "disabled";
1261a05ea40eSJacky Bai		};
1262b4e3e54aSAnson Huang
1263aaeba6a8SRichard Zhu		pcie0: pcie@33800000 {
1264aaeba6a8SRichard Zhu			compatible = "fsl,imx8mm-pcie";
1265aaeba6a8SRichard Zhu			reg = <0x33800000 0x400000>, <0x1ff00000 0x80000>;
1266aaeba6a8SRichard Zhu			reg-names = "dbi", "config";
1267aaeba6a8SRichard Zhu			#address-cells = <3>;
1268aaeba6a8SRichard Zhu			#size-cells = <2>;
1269aaeba6a8SRichard Zhu			device_type = "pci";
1270aaeba6a8SRichard Zhu			bus-range = <0x00 0xff>;
1271aaeba6a8SRichard Zhu			ranges =  <0x81000000 0 0x00000000 0x1ff80000 0 0x00010000 /* downstream I/O 64KB */
1272aaeba6a8SRichard Zhu				   0x82000000 0 0x18000000 0x18000000 0 0x07f00000>; /* non-prefetchable memory */
1273aaeba6a8SRichard Zhu			num-lanes = <1>;
1274aaeba6a8SRichard Zhu			num-viewport = <4>;
1275aaeba6a8SRichard Zhu			interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
1276aaeba6a8SRichard Zhu			interrupt-names = "msi";
1277aaeba6a8SRichard Zhu			#interrupt-cells = <1>;
1278aaeba6a8SRichard Zhu			interrupt-map-mask = <0 0 0 0x7>;
1279aaeba6a8SRichard Zhu			interrupt-map = <0 0 0 1 &gic GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
1280aaeba6a8SRichard Zhu					<0 0 0 2 &gic GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
1281aaeba6a8SRichard Zhu					<0 0 0 3 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
1282aaeba6a8SRichard Zhu					<0 0 0 4 &gic GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
1283aaeba6a8SRichard Zhu			fsl,max-link-speed = <2>;
1284aaeba6a8SRichard Zhu			linux,pci-domain = <0>;
1285aaeba6a8SRichard Zhu			power-domains = <&pgc_pcie>;
1286aaeba6a8SRichard Zhu			resets = <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>,
1287aaeba6a8SRichard Zhu				 <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>;
1288aaeba6a8SRichard Zhu			reset-names = "apps", "turnoff";
1289aaeba6a8SRichard Zhu			phys = <&pcie_phy>;
1290aaeba6a8SRichard Zhu			phy-names = "pcie-phy";
1291aaeba6a8SRichard Zhu			status = "disabled";
1292aaeba6a8SRichard Zhu		};
1293aaeba6a8SRichard Zhu
12944523be8eSFrieder Schrempf		gpu_3d: gpu@38000000 {
12954523be8eSFrieder Schrempf			compatible = "vivante,gc";
12964523be8eSFrieder Schrempf			reg = <0x38000000 0x8000>;
12974523be8eSFrieder Schrempf			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
12984523be8eSFrieder Schrempf			clocks = <&clk IMX8MM_CLK_GPU_AHB>,
12994523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
13004523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU3D_ROOT>,
13014523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU3D_ROOT>;
13024523be8eSFrieder Schrempf			clock-names = "reg", "bus", "core", "shader";
13034523be8eSFrieder Schrempf			assigned-clocks = <&clk IMX8MM_CLK_GPU3D_CORE>,
13044523be8eSFrieder Schrempf					  <&clk IMX8MM_GPU_PLL_OUT>;
13054523be8eSFrieder Schrempf			assigned-clock-parents = <&clk IMX8MM_GPU_PLL_OUT>;
13064523be8eSFrieder Schrempf			assigned-clock-rates = <0>, <1000000000>;
13074523be8eSFrieder Schrempf			power-domains = <&pgc_gpu>;
13084523be8eSFrieder Schrempf		};
13094523be8eSFrieder Schrempf
13104523be8eSFrieder Schrempf		gpu_2d: gpu@38008000 {
13114523be8eSFrieder Schrempf			compatible = "vivante,gc";
13124523be8eSFrieder Schrempf			reg = <0x38008000 0x8000>;
13134523be8eSFrieder Schrempf			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
13144523be8eSFrieder Schrempf			clocks = <&clk IMX8MM_CLK_GPU_AHB>,
13154523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU_BUS_ROOT>,
13164523be8eSFrieder Schrempf				 <&clk IMX8MM_CLK_GPU2D_ROOT>;
13174523be8eSFrieder Schrempf			clock-names = "reg", "bus", "core";
13184523be8eSFrieder Schrempf			assigned-clocks = <&clk IMX8MM_CLK_GPU2D_CORE>,
13194523be8eSFrieder Schrempf					  <&clk IMX8MM_GPU_PLL_OUT>;
13204523be8eSFrieder Schrempf			assigned-clock-parents = <&clk IMX8MM_GPU_PLL_OUT>;
13214523be8eSFrieder Schrempf			assigned-clock-rates = <0>, <1000000000>;
13224523be8eSFrieder Schrempf			power-domains = <&pgc_gpu>;
13234523be8eSFrieder Schrempf		};
13244523be8eSFrieder Schrempf
13259cbe605bSAdam Ford		vpu_g1: video-codec@38300000 {
13269cbe605bSAdam Ford			compatible = "nxp,imx8mm-vpu-g1";
13279cbe605bSAdam Ford			reg = <0x38300000 0x10000>;
13289cbe605bSAdam Ford			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
13299cbe605bSAdam Ford			clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>;
13309cbe605bSAdam Ford			power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G1>;
13319cbe605bSAdam Ford		};
13329cbe605bSAdam Ford
13339cbe605bSAdam Ford		vpu_g2: video-codec@38310000 {
13349cbe605bSAdam Ford			compatible = "nxp,imx8mq-vpu-g2";
13359cbe605bSAdam Ford			reg = <0x38310000 0x10000>;
13369cbe605bSAdam Ford			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
13379cbe605bSAdam Ford			clocks = <&clk IMX8MM_CLK_VPU_G2_ROOT>;
13389cbe605bSAdam Ford			power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G2>;
13399cbe605bSAdam Ford		};
13409cbe605bSAdam Ford
13412604c5caSLucas Stach		vpu_blk_ctrl: blk-ctrl@38330000 {
13422604c5caSLucas Stach			compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon";
13432604c5caSLucas Stach			reg = <0x38330000 0x100>;
13442604c5caSLucas Stach			power-domains = <&pgc_vpumix>, <&pgc_vpu_g1>,
13452604c5caSLucas Stach					<&pgc_vpu_g2>, <&pgc_vpu_h1>;
13462604c5caSLucas Stach			power-domain-names = "bus", "g1", "g2", "h1";
13472604c5caSLucas Stach			clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>,
13482604c5caSLucas Stach				 <&clk IMX8MM_CLK_VPU_G2_ROOT>,
13492604c5caSLucas Stach				 <&clk IMX8MM_CLK_VPU_H1_ROOT>;
13502604c5caSLucas Stach			clock-names = "g1", "g2", "h1";
13519cbe605bSAdam Ford			assigned-clocks = <&clk IMX8MM_CLK_VPU_G1>,
13529cbe605bSAdam Ford					  <&clk IMX8MM_CLK_VPU_G2>;
13539cbe605bSAdam Ford			assigned-clock-parents = <&clk IMX8MM_VPU_PLL_OUT>,
13549cbe605bSAdam Ford						 <&clk IMX8MM_VPU_PLL_OUT>;
13559cbe605bSAdam Ford			assigned-clock-rates = <600000000>,
13569cbe605bSAdam Ford					       <600000000>;
13572604c5caSLucas Stach			#power-domain-cells = <1>;
13582604c5caSLucas Stach		};
13592604c5caSLucas Stach
1360b4e3e54aSAnson Huang		gic: interrupt-controller@38800000 {
1361b4e3e54aSAnson Huang			compatible = "arm,gic-v3";
1362b4e3e54aSAnson Huang			reg = <0x38800000 0x10000>, /* GIC Dist */
1363b4e3e54aSAnson Huang			      <0x38880000 0xc0000>; /* GICR (RD_base + SGI_base) */
1364b4e3e54aSAnson Huang			#interrupt-cells = <3>;
1365b4e3e54aSAnson Huang			interrupt-controller;
1366b4e3e54aSAnson Huang			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
1367b4e3e54aSAnson Huang		};
13681efe85c9SLeonard Crestez
13690376f6ecSLeonard Crestez		ddrc: memory-controller@3d400000 {
13700376f6ecSLeonard Crestez			compatible = "fsl,imx8mm-ddrc", "fsl,imx8m-ddrc";
13710376f6ecSLeonard Crestez			reg = <0x3d400000 0x400000>;
13720376f6ecSLeonard Crestez			clock-names = "core", "pll", "alt", "apb";
13730376f6ecSLeonard Crestez			clocks = <&clk IMX8MM_CLK_DRAM_CORE>,
13740376f6ecSLeonard Crestez				 <&clk IMX8MM_DRAM_PLL>,
13750376f6ecSLeonard Crestez				 <&clk IMX8MM_CLK_DRAM_ALT>,
13760376f6ecSLeonard Crestez				 <&clk IMX8MM_CLK_DRAM_APB>;
13770376f6ecSLeonard Crestez		};
13780376f6ecSLeonard Crestez
13791efe85c9SLeonard Crestez		ddr-pmu@3d800000 {
13801efe85c9SLeonard Crestez			compatible = "fsl,imx8mm-ddr-pmu", "fsl,imx8m-ddr-pmu";
13811efe85c9SLeonard Crestez			reg = <0x3d800000 0x400000>;
13821efe85c9SLeonard Crestez			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
13831efe85c9SLeonard Crestez		};
1384a05ea40eSJacky Bai	};
1385a05ea40eSJacky Bai};
1386