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>
10a05ea40eSJacky Bai#include <dt-bindings/thermal/thermal.h>
11a05ea40eSJacky Bai
12a05ea40eSJacky Bai#include "imx8mm-pinfunc.h"
13a05ea40eSJacky Bai
14a05ea40eSJacky Bai/ {
15a05ea40eSJacky Bai	interrupt-parent = <&gic>;
16a05ea40eSJacky Bai	#address-cells = <2>;
17a05ea40eSJacky Bai	#size-cells = <2>;
18a05ea40eSJacky Bai
19a05ea40eSJacky Bai	aliases {
20a05ea40eSJacky Bai		ethernet0 = &fec1;
21a05ea40eSJacky Bai		i2c0 = &i2c1;
22a05ea40eSJacky Bai		i2c1 = &i2c2;
23a05ea40eSJacky Bai		i2c2 = &i2c3;
24a05ea40eSJacky Bai		i2c3 = &i2c4;
25a05ea40eSJacky Bai		serial0 = &uart1;
26a05ea40eSJacky Bai		serial1 = &uart2;
27a05ea40eSJacky Bai		serial2 = &uart3;
28a05ea40eSJacky Bai		serial3 = &uart4;
29a05ea40eSJacky Bai		spi0 = &ecspi1;
30a05ea40eSJacky Bai		spi1 = &ecspi2;
31a05ea40eSJacky Bai		spi2 = &ecspi3;
32a05ea40eSJacky Bai		mmc0 = &usdhc1;
33a05ea40eSJacky Bai		mmc1 = &usdhc2;
34a05ea40eSJacky Bai		mmc2 = &usdhc3;
35a05ea40eSJacky Bai		gpio0 = &gpio1;
36a05ea40eSJacky Bai		gpio1 = &gpio2;
37a05ea40eSJacky Bai		gpio2 = &gpio3;
38a05ea40eSJacky Bai		gpio3 = &gpio4;
39a05ea40eSJacky Bai		gpio4 = &gpio5;
40a05ea40eSJacky Bai	};
41a05ea40eSJacky Bai
42a05ea40eSJacky Bai	cpus {
43a05ea40eSJacky Bai		#address-cells = <1>;
44a05ea40eSJacky Bai		#size-cells = <0>;
45a05ea40eSJacky Bai
46a1406b72SAnson Huang		idle-states {
47a1406b72SAnson Huang			entry-method = "psci";
48a1406b72SAnson Huang
49a1406b72SAnson Huang			cpu_pd_wait: cpu-pd-wait {
50a1406b72SAnson Huang				compatible = "arm,idle-state";
51a1406b72SAnson Huang				arm,psci-suspend-param = <0x0010033>;
52a1406b72SAnson Huang				local-timer-stop;
53a1406b72SAnson Huang				entry-latency-us = <1000>;
54a1406b72SAnson Huang				exit-latency-us = <700>;
55a1406b72SAnson Huang				min-residency-us = <2700>;
56a1406b72SAnson Huang			};
57a1406b72SAnson Huang		};
58a1406b72SAnson Huang
59a05ea40eSJacky Bai		A53_0: cpu@0 {
60a05ea40eSJacky Bai			device_type = "cpu";
61a05ea40eSJacky Bai			compatible = "arm,cortex-a53";
62a05ea40eSJacky Bai			reg = <0x0>;
63e85c9d0fSLeonard Crestez			clock-latency = <61036>; /* two CLK32 periods */
64e85c9d0fSLeonard Crestez			clocks = <&clk IMX8MM_CLK_ARM>;
65a05ea40eSJacky Bai			enable-method = "psci";
66a05ea40eSJacky Bai			next-level-cache = <&A53_L2>;
67e85c9d0fSLeonard Crestez			operating-points-v2 = <&a53_opp_table>;
68f403a26cSLeonard Crestez			nvmem-cells = <&cpu_speed_grade>;
69f403a26cSLeonard Crestez			nvmem-cell-names = "speed_grade";
70a1406b72SAnson Huang			cpu-idle-states = <&cpu_pd_wait>;
71a05ea40eSJacky Bai		};
72a05ea40eSJacky Bai
73a05ea40eSJacky Bai		A53_1: cpu@1 {
74a05ea40eSJacky Bai			device_type = "cpu";
75a05ea40eSJacky Bai			compatible = "arm,cortex-a53";
76a05ea40eSJacky Bai			reg = <0x1>;
77e85c9d0fSLeonard Crestez			clock-latency = <61036>; /* two CLK32 periods */
78e85c9d0fSLeonard Crestez			clocks = <&clk IMX8MM_CLK_ARM>;
79a05ea40eSJacky Bai			enable-method = "psci";
80a05ea40eSJacky Bai			next-level-cache = <&A53_L2>;
81e85c9d0fSLeonard Crestez			operating-points-v2 = <&a53_opp_table>;
82a1406b72SAnson Huang			cpu-idle-states = <&cpu_pd_wait>;
83a05ea40eSJacky Bai		};
84a05ea40eSJacky Bai
85a05ea40eSJacky Bai		A53_2: cpu@2 {
86a05ea40eSJacky Bai			device_type = "cpu";
87a05ea40eSJacky Bai			compatible = "arm,cortex-a53";
88a05ea40eSJacky Bai			reg = <0x2>;
89e85c9d0fSLeonard Crestez			clock-latency = <61036>; /* two CLK32 periods */
90e85c9d0fSLeonard Crestez			clocks = <&clk IMX8MM_CLK_ARM>;
91a05ea40eSJacky Bai			enable-method = "psci";
92a05ea40eSJacky Bai			next-level-cache = <&A53_L2>;
93e85c9d0fSLeonard Crestez			operating-points-v2 = <&a53_opp_table>;
94a1406b72SAnson Huang			cpu-idle-states = <&cpu_pd_wait>;
95a05ea40eSJacky Bai		};
96a05ea40eSJacky Bai
97a05ea40eSJacky Bai		A53_3: cpu@3 {
98a05ea40eSJacky Bai			device_type = "cpu";
99a05ea40eSJacky Bai			compatible = "arm,cortex-a53";
100a05ea40eSJacky Bai			reg = <0x3>;
101e85c9d0fSLeonard Crestez			clock-latency = <61036>; /* two CLK32 periods */
102e85c9d0fSLeonard Crestez			clocks = <&clk IMX8MM_CLK_ARM>;
103a05ea40eSJacky Bai			enable-method = "psci";
104a05ea40eSJacky Bai			next-level-cache = <&A53_L2>;
105e85c9d0fSLeonard Crestez			operating-points-v2 = <&a53_opp_table>;
106a1406b72SAnson Huang			cpu-idle-states = <&cpu_pd_wait>;
107a05ea40eSJacky Bai		};
108a05ea40eSJacky Bai
109a05ea40eSJacky Bai		A53_L2: l2-cache0 {
110a05ea40eSJacky Bai			compatible = "cache";
111a05ea40eSJacky Bai		};
112a05ea40eSJacky Bai	};
113a05ea40eSJacky Bai
114e85c9d0fSLeonard Crestez	a53_opp_table: opp-table {
115e85c9d0fSLeonard Crestez		compatible = "operating-points-v2";
116e85c9d0fSLeonard Crestez		opp-shared;
117e85c9d0fSLeonard Crestez
118e85c9d0fSLeonard Crestez		opp-1200000000 {
119e85c9d0fSLeonard Crestez			opp-hz = /bits/ 64 <1200000000>;
120e85c9d0fSLeonard Crestez			opp-microvolt = <850000>;
121f403a26cSLeonard Crestez			opp-supported-hw = <0xe>, <0x7>;
122e85c9d0fSLeonard Crestez			clock-latency-ns = <150000>;
1230d9df581SAnson Huang			opp-suspend;
124e85c9d0fSLeonard Crestez		};
125e85c9d0fSLeonard Crestez
126e85c9d0fSLeonard Crestez		opp-1600000000 {
127e85c9d0fSLeonard Crestez			opp-hz = /bits/ 64 <1600000000>;
128e85c9d0fSLeonard Crestez			opp-microvolt = <900000>;
129f403a26cSLeonard Crestez			opp-supported-hw = <0xc>, <0x7>;
130e85c9d0fSLeonard Crestez			clock-latency-ns = <150000>;
1310d9df581SAnson Huang			opp-suspend;
132f403a26cSLeonard Crestez		};
133f403a26cSLeonard Crestez
134f403a26cSLeonard Crestez		opp-1800000000 {
135f403a26cSLeonard Crestez			opp-hz = /bits/ 64 <1800000000>;
136f403a26cSLeonard Crestez			opp-microvolt = <1000000>;
137cd7c2ddfSAnson Huang			opp-supported-hw = <0x8>, <0x3>;
138f403a26cSLeonard Crestez			clock-latency-ns = <150000>;
1390d9df581SAnson Huang			opp-suspend;
140e85c9d0fSLeonard Crestez		};
141e85c9d0fSLeonard Crestez	};
142e85c9d0fSLeonard Crestez
143a05ea40eSJacky Bai	memory@40000000 {
144a05ea40eSJacky Bai		device_type = "memory";
145a05ea40eSJacky Bai		reg = <0x0 0x40000000 0 0x80000000>;
146a05ea40eSJacky Bai	};
147a05ea40eSJacky Bai
148a05ea40eSJacky Bai	osc_32k: clock-osc-32k {
149a05ea40eSJacky Bai		compatible = "fixed-clock";
150a05ea40eSJacky Bai		#clock-cells = <0>;
151a05ea40eSJacky Bai		clock-frequency = <32768>;
152a05ea40eSJacky Bai		clock-output-names = "osc_32k";
153a05ea40eSJacky Bai	};
154a05ea40eSJacky Bai
155a05ea40eSJacky Bai	osc_24m: clock-osc-24m {
156a05ea40eSJacky Bai		compatible = "fixed-clock";
157a05ea40eSJacky Bai		#clock-cells = <0>;
158a05ea40eSJacky Bai		clock-frequency = <24000000>;
159a05ea40eSJacky Bai		clock-output-names = "osc_24m";
160a05ea40eSJacky Bai	};
161a05ea40eSJacky Bai
162a05ea40eSJacky Bai	clk_ext1: clock-ext1 {
163a05ea40eSJacky Bai		compatible = "fixed-clock";
164a05ea40eSJacky Bai		#clock-cells = <0>;
165a05ea40eSJacky Bai		clock-frequency = <133000000>;
166a05ea40eSJacky Bai		clock-output-names = "clk_ext1";
167a05ea40eSJacky Bai	};
168a05ea40eSJacky Bai
169a05ea40eSJacky Bai	clk_ext2: clock-ext2 {
170a05ea40eSJacky Bai		compatible = "fixed-clock";
171a05ea40eSJacky Bai		#clock-cells = <0>;
172a05ea40eSJacky Bai		clock-frequency = <133000000>;
173a05ea40eSJacky Bai		clock-output-names = "clk_ext2";
174a05ea40eSJacky Bai	};
175a05ea40eSJacky Bai
176a05ea40eSJacky Bai	clk_ext3: clock-ext3 {
177a05ea40eSJacky Bai		compatible = "fixed-clock";
178a05ea40eSJacky Bai		#clock-cells = <0>;
179a05ea40eSJacky Bai		clock-frequency = <133000000>;
180a05ea40eSJacky Bai		clock-output-names = "clk_ext3";
181a05ea40eSJacky Bai	};
182a05ea40eSJacky Bai
183a05ea40eSJacky Bai	clk_ext4: clock-ext4 {
184a05ea40eSJacky Bai		compatible = "fixed-clock";
185a05ea40eSJacky Bai		#clock-cells = <0>;
186a05ea40eSJacky Bai		clock-frequency= <133000000>;
187a05ea40eSJacky Bai		clock-output-names = "clk_ext4";
188a05ea40eSJacky Bai	};
189a05ea40eSJacky Bai
190a05ea40eSJacky Bai	psci {
191a05ea40eSJacky Bai		compatible = "arm,psci-1.0";
192a05ea40eSJacky Bai		method = "smc";
193a05ea40eSJacky Bai	};
194a05ea40eSJacky Bai
195a05ea40eSJacky Bai	pmu {
196a05ea40eSJacky Bai		compatible = "arm,armv8-pmuv3";
197a05ea40eSJacky Bai		interrupts = <GIC_PPI 7
198a05ea40eSJacky Bai			     (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
199a05ea40eSJacky Bai		interrupt-affinity = <&A53_0>, <&A53_1>, <&A53_2>, <&A53_3>;
200a05ea40eSJacky Bai	};
201a05ea40eSJacky Bai
202a05ea40eSJacky Bai	timer {
203a05ea40eSJacky Bai		compatible = "arm,armv8-timer";
204a05ea40eSJacky Bai		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Secure */
205a05ea40eSJacky Bai			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, /* Physical Non-Secure */
206a05ea40eSJacky Bai			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>, /* Virtual */
207a05ea40eSJacky Bai			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_LOW)>; /* Hypervisor */
208a05ea40eSJacky Bai		clock-frequency = <8000000>;
209a05ea40eSJacky Bai		arm,no-tick-in-suspend;
210a05ea40eSJacky Bai	};
211a05ea40eSJacky Bai
212a656622aSFabio Estevam	usbphynop1: usbphynop1 {
213a656622aSFabio Estevam		compatible = "usb-nop-xceiv";
214a656622aSFabio Estevam		clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
215a656622aSFabio Estevam		assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
216a656622aSFabio Estevam		assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
217a656622aSFabio Estevam		clock-names = "main_clk";
218a656622aSFabio Estevam	};
219a656622aSFabio Estevam
220a656622aSFabio Estevam	usbphynop2: usbphynop2 {
221a656622aSFabio Estevam		compatible = "usb-nop-xceiv";
222a656622aSFabio Estevam		clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
223a656622aSFabio Estevam		assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>;
224a656622aSFabio Estevam		assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>;
225a656622aSFabio Estevam		clock-names = "main_clk";
226a656622aSFabio Estevam	};
227a656622aSFabio Estevam
228951c1d37SFabio Estevam	soc@0 {
229a05ea40eSJacky Bai		compatible = "simple-bus";
230a05ea40eSJacky Bai		#address-cells = <1>;
231a05ea40eSJacky Bai		#size-cells = <1>;
232a05ea40eSJacky Bai		ranges = <0x0 0x0 0x0 0x3e000000>;
233a05ea40eSJacky Bai
234a05ea40eSJacky Bai		aips1: bus@30000000 {
235aebf07e6SPeng Fan			compatible = "simple-bus";
236a05ea40eSJacky Bai			#address-cells = <1>;
237a05ea40eSJacky Bai			#size-cells = <1>;
23810c74207SFabio Estevam			ranges = <0x30000000 0x30000000 0x400000>;
239a05ea40eSJacky Bai
2404bee4357SDaniel Baluta			sai1: sai@30010000 {
2414bee4357SDaniel Baluta				compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
2424bee4357SDaniel Baluta				reg = <0x30010000 0x10000>;
2434bee4357SDaniel Baluta				interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
2444bee4357SDaniel Baluta				clocks = <&clk IMX8MM_CLK_SAI1_IPG>,
2454bee4357SDaniel Baluta					 <&clk IMX8MM_CLK_SAI1_ROOT>,
2464bee4357SDaniel Baluta					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
2474bee4357SDaniel Baluta				clock-names = "bus", "mclk1", "mclk2", "mclk3";
2484bee4357SDaniel Baluta				dmas = <&sdma2 0 2 0>, <&sdma2 1 2 0>;
2494bee4357SDaniel Baluta				dma-names = "rx", "tx";
2504bee4357SDaniel Baluta				status = "disabled";
2514bee4357SDaniel Baluta			};
2524bee4357SDaniel Baluta
2534bee4357SDaniel Baluta			sai2: sai@30020000 {
2544bee4357SDaniel Baluta				compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
2554bee4357SDaniel Baluta				reg = <0x30020000 0x10000>;
2564bee4357SDaniel Baluta				interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
2574bee4357SDaniel Baluta				clocks = <&clk IMX8MM_CLK_SAI2_IPG>,
2584bee4357SDaniel Baluta					<&clk IMX8MM_CLK_SAI2_ROOT>,
2594bee4357SDaniel Baluta					<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
2604bee4357SDaniel Baluta				clock-names = "bus", "mclk1", "mclk2", "mclk3";
2614bee4357SDaniel Baluta				dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>;
2624bee4357SDaniel Baluta				dma-names = "rx", "tx";
2634bee4357SDaniel Baluta				status = "disabled";
2644bee4357SDaniel Baluta			};
2654bee4357SDaniel Baluta
2664bee4357SDaniel Baluta			sai3: sai@30030000 {
2674bee4357SDaniel Baluta				#sound-dai-cells = <0>;
2684bee4357SDaniel Baluta				compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
2694bee4357SDaniel Baluta				reg = <0x30030000 0x10000>;
2704bee4357SDaniel Baluta				interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
2714bee4357SDaniel Baluta				clocks = <&clk IMX8MM_CLK_SAI3_IPG>,
2724bee4357SDaniel Baluta					 <&clk IMX8MM_CLK_SAI3_ROOT>,
2734bee4357SDaniel Baluta					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
2744bee4357SDaniel Baluta				clock-names = "bus", "mclk1", "mclk2", "mclk3";
2754bee4357SDaniel Baluta				dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>;
2764bee4357SDaniel Baluta				dma-names = "rx", "tx";
2774bee4357SDaniel Baluta				status = "disabled";
2784bee4357SDaniel Baluta			};
2794bee4357SDaniel Baluta
2804bee4357SDaniel Baluta			sai5: sai@30050000 {
2814bee4357SDaniel Baluta				compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
2824bee4357SDaniel Baluta				reg = <0x30050000 0x10000>;
2834bee4357SDaniel Baluta				interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
2844bee4357SDaniel Baluta				clocks = <&clk IMX8MM_CLK_SAI5_IPG>,
2854bee4357SDaniel Baluta					 <&clk IMX8MM_CLK_SAI5_ROOT>,
2864bee4357SDaniel Baluta					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
2874bee4357SDaniel Baluta				clock-names = "bus", "mclk1", "mclk2", "mclk3";
2884bee4357SDaniel Baluta				dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>;
2894bee4357SDaniel Baluta				dma-names = "rx", "tx";
2904bee4357SDaniel Baluta				status = "disabled";
2914bee4357SDaniel Baluta			};
2924bee4357SDaniel Baluta
2934bee4357SDaniel Baluta			sai6: sai@30060000 {
2944bee4357SDaniel Baluta				compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
2954bee4357SDaniel Baluta				reg = <0x30060000 0x10000>;
2964bee4357SDaniel Baluta				interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
2974bee4357SDaniel Baluta				clocks = <&clk IMX8MM_CLK_SAI6_IPG>,
2984bee4357SDaniel Baluta					 <&clk IMX8MM_CLK_SAI6_ROOT>,
2994bee4357SDaniel Baluta					 <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>;
3004bee4357SDaniel Baluta				clock-names = "bus", "mclk1", "mclk2", "mclk3";
3014bee4357SDaniel Baluta				dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>;
3024bee4357SDaniel Baluta				dma-names = "rx", "tx";
3034bee4357SDaniel Baluta				status = "disabled";
3044bee4357SDaniel Baluta			};
305a05ea40eSJacky Bai
306a05ea40eSJacky Bai			gpio1: gpio@30200000 {
307a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
308a05ea40eSJacky Bai				reg = <0x30200000 0x10000>;
309a05ea40eSJacky Bai				interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
310a05ea40eSJacky Bai					     <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
31109892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO1_ROOT>;
312a05ea40eSJacky Bai				gpio-controller;
313a05ea40eSJacky Bai				#gpio-cells = <2>;
314a05ea40eSJacky Bai				interrupt-controller;
315a05ea40eSJacky Bai				#interrupt-cells = <2>;
31615626359SAnson Huang				gpio-ranges = <&iomuxc 0 10 30>;
317a05ea40eSJacky Bai			};
318a05ea40eSJacky Bai
319a05ea40eSJacky Bai			gpio2: gpio@30210000 {
320a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
321a05ea40eSJacky Bai				reg = <0x30210000 0x10000>;
322a05ea40eSJacky Bai				interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
323a05ea40eSJacky Bai					     <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
32409892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO2_ROOT>;
325a05ea40eSJacky Bai				gpio-controller;
326a05ea40eSJacky Bai				#gpio-cells = <2>;
327a05ea40eSJacky Bai				interrupt-controller;
328a05ea40eSJacky Bai				#interrupt-cells = <2>;
32915626359SAnson Huang				gpio-ranges = <&iomuxc 0 40 21>;
330a05ea40eSJacky Bai			};
331a05ea40eSJacky Bai
332a05ea40eSJacky Bai			gpio3: gpio@30220000 {
333a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
334a05ea40eSJacky Bai				reg = <0x30220000 0x10000>;
335a05ea40eSJacky Bai				interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
336a05ea40eSJacky Bai					     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
33709892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO3_ROOT>;
338a05ea40eSJacky Bai				gpio-controller;
339a05ea40eSJacky Bai				#gpio-cells = <2>;
340a05ea40eSJacky Bai				interrupt-controller;
341a05ea40eSJacky Bai				#interrupt-cells = <2>;
34215626359SAnson Huang				gpio-ranges = <&iomuxc 0 61 26>;
343a05ea40eSJacky Bai			};
344a05ea40eSJacky Bai
345a05ea40eSJacky Bai			gpio4: gpio@30230000 {
346a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
347a05ea40eSJacky Bai				reg = <0x30230000 0x10000>;
348a05ea40eSJacky Bai				interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
349a05ea40eSJacky Bai					     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
35009892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO4_ROOT>;
351a05ea40eSJacky Bai				gpio-controller;
352a05ea40eSJacky Bai				#gpio-cells = <2>;
353a05ea40eSJacky Bai				interrupt-controller;
354a05ea40eSJacky Bai				#interrupt-cells = <2>;
35515626359SAnson Huang				gpio-ranges = <&iomuxc 0 87 32>;
356a05ea40eSJacky Bai			};
357a05ea40eSJacky Bai
358a05ea40eSJacky Bai			gpio5: gpio@30240000 {
359a05ea40eSJacky Bai				compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";
360a05ea40eSJacky Bai				reg = <0x30240000 0x10000>;
361a05ea40eSJacky Bai				interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
362a05ea40eSJacky Bai					     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
36309892aa1SAnson Huang				clocks = <&clk IMX8MM_CLK_GPIO5_ROOT>;
364a05ea40eSJacky Bai				gpio-controller;
365a05ea40eSJacky Bai				#gpio-cells = <2>;
366a05ea40eSJacky Bai				interrupt-controller;
367a05ea40eSJacky Bai				#interrupt-cells = <2>;
36815626359SAnson Huang				gpio-ranges = <&iomuxc 0 119 30>;
369a05ea40eSJacky Bai			};
370a05ea40eSJacky Bai
371a05ea40eSJacky Bai			wdog1: watchdog@30280000 {
372a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
373a05ea40eSJacky Bai				reg = <0x30280000 0x10000>;
374a05ea40eSJacky Bai				interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
375a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG1_ROOT>;
376a05ea40eSJacky Bai				status = "disabled";
377a05ea40eSJacky Bai			};
378a05ea40eSJacky Bai
379a05ea40eSJacky Bai			wdog2: watchdog@30290000 {
380a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
381a05ea40eSJacky Bai				reg = <0x30290000 0x10000>;
382a05ea40eSJacky Bai				interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
383a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG2_ROOT>;
384a05ea40eSJacky Bai				status = "disabled";
385a05ea40eSJacky Bai			};
386a05ea40eSJacky Bai
387a05ea40eSJacky Bai			wdog3: watchdog@302a0000 {
388a05ea40eSJacky Bai				compatible = "fsl,imx8mm-wdt", "fsl,imx21-wdt";
389a05ea40eSJacky Bai				reg = <0x302a0000 0x10000>;
390a05ea40eSJacky Bai				interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
391a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_WDOG3_ROOT>;
392a05ea40eSJacky Bai				status = "disabled";
393a05ea40eSJacky Bai			};
394a05ea40eSJacky Bai
395a05ea40eSJacky Bai			sdma2: dma-controller@302c0000 {
396e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
397a05ea40eSJacky Bai				reg = <0x302c0000 0x10000>;
398a05ea40eSJacky Bai				interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
399a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA2_ROOT>,
400a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_SDMA2_ROOT>;
401a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
402a05ea40eSJacky Bai				#dma-cells = <3>;
403a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
404a05ea40eSJacky Bai			};
405a05ea40eSJacky Bai
406a05ea40eSJacky Bai			sdma3: dma-controller@302b0000 {
407e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
408a05ea40eSJacky Bai				reg = <0x302b0000 0x10000>;
409a05ea40eSJacky Bai				interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
410a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA3_ROOT>,
411a05ea40eSJacky Bai				 <&clk IMX8MM_CLK_SDMA3_ROOT>;
412a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
413a05ea40eSJacky Bai				#dma-cells = <3>;
414a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
415a05ea40eSJacky Bai			};
416a05ea40eSJacky Bai
417a05ea40eSJacky Bai			iomuxc: pinctrl@30330000 {
418a05ea40eSJacky Bai				compatible = "fsl,imx8mm-iomuxc";
419a05ea40eSJacky Bai				reg = <0x30330000 0x10000>;
420a05ea40eSJacky Bai			};
421a05ea40eSJacky Bai
422a05ea40eSJacky Bai			gpr: iomuxc-gpr@30340000 {
423a05ea40eSJacky Bai				compatible = "fsl,imx8mm-iomuxc-gpr", "syscon";
424a05ea40eSJacky Bai				reg = <0x30340000 0x10000>;
425a05ea40eSJacky Bai			};
426a05ea40eSJacky Bai
427a05ea40eSJacky Bai			ocotp: ocotp-ctrl@30350000 {
428b09802a0SAnson Huang				compatible = "fsl,imx8mm-ocotp", "syscon";
429a05ea40eSJacky Bai				reg = <0x30350000 0x10000>;
430a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_OCOTP_ROOT>;
431a05ea40eSJacky Bai				/* For nvmem subnodes */
432a05ea40eSJacky Bai				#address-cells = <1>;
433a05ea40eSJacky Bai				#size-cells = <1>;
434f403a26cSLeonard Crestez
435f403a26cSLeonard Crestez				cpu_speed_grade: speed-grade@10 {
436f403a26cSLeonard Crestez					reg = <0x10 4>;
437f403a26cSLeonard Crestez				};
438a05ea40eSJacky Bai			};
439a05ea40eSJacky Bai
440a05ea40eSJacky Bai			anatop: anatop@30360000 {
4410900a484SFancy Fang				compatible = "fsl,imx8mm-anatop", "syscon";
442a05ea40eSJacky Bai				reg = <0x30360000 0x10000>;
443a05ea40eSJacky Bai			};
444a05ea40eSJacky Bai
445a05ea40eSJacky Bai			snvs: snvs@30370000 {
446a05ea40eSJacky Bai				compatible = "fsl,sec-v4.0-mon","syscon", "simple-mfd";
447a05ea40eSJacky Bai				reg = <0x30370000 0x10000>;
448a05ea40eSJacky Bai
449a05ea40eSJacky Bai				snvs_rtc: snvs-rtc-lp {
450a05ea40eSJacky Bai					compatible = "fsl,sec-v4.0-mon-rtc-lp";
451a05ea40eSJacky Bai					regmap = <&snvs>;
452a05ea40eSJacky Bai					offset = <0x34>;
453a05ea40eSJacky Bai					interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
454a05ea40eSJacky Bai						     <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
455f145b209SAnson Huang					clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
456f145b209SAnson Huang					clock-names = "snvs-rtc";
457a05ea40eSJacky Bai				};
458a05ea40eSJacky Bai
459a05ea40eSJacky Bai				snvs_pwrkey: snvs-powerkey {
460a05ea40eSJacky Bai					compatible = "fsl,sec-v4.0-pwrkey";
461a05ea40eSJacky Bai					regmap = <&snvs>;
462a05ea40eSJacky Bai					interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
463a05ea40eSJacky Bai					linux,keycode = <KEY_POWER>;
464a05ea40eSJacky Bai					wakeup-source;
465d038c1dcSAnson Huang					status = "disabled";
466a05ea40eSJacky Bai				};
467a05ea40eSJacky Bai			};
468a05ea40eSJacky Bai
469a05ea40eSJacky Bai			clk: clock-controller@30380000 {
470a05ea40eSJacky Bai				compatible = "fsl,imx8mm-ccm";
471a05ea40eSJacky Bai				reg = <0x30380000 0x10000>;
472a05ea40eSJacky Bai				#clock-cells = <1>;
473a05ea40eSJacky Bai				clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>,
474a05ea40eSJacky Bai					 <&clk_ext3>, <&clk_ext4>;
475a05ea40eSJacky Bai				clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2",
476a05ea40eSJacky Bai					      "clk_ext3", "clk_ext4";
4776b392e16SAbel Vesa				assigned-clocks = <&clk IMX8MM_CLK_NOC>,
4786b392e16SAbel Vesa						<&clk IMX8MM_CLK_AUDIO_AHB>,
4796b392e16SAbel Vesa						<&clk IMX8MM_CLK_IPG_AUDIO_ROOT>,
4806b392e16SAbel Vesa						<&clk IMX8MM_SYS_PLL3>,
481e8b395b2SS.j. Wang						<&clk IMX8MM_VIDEO_PLL1>,
482e8b395b2SS.j. Wang						<&clk IMX8MM_AUDIO_PLL1>,
483e8b395b2SS.j. Wang						<&clk IMX8MM_AUDIO_PLL2>;
4846b392e16SAbel Vesa				assigned-clock-parents = <&clk IMX8MM_SYS_PLL3_OUT>,
4856b392e16SAbel Vesa							 <&clk IMX8MM_SYS_PLL1_800M>;
4866b392e16SAbel Vesa				assigned-clock-rates = <0>,
4876b392e16SAbel Vesa							<400000000>,
4886b392e16SAbel Vesa							<400000000>,
4896b392e16SAbel Vesa							<750000000>,
490e8b395b2SS.j. Wang							<594000000>,
491e8b395b2SS.j. Wang							<393216000>,
492e8b395b2SS.j. Wang							<361267200>;
493a05ea40eSJacky Bai			};
494a05ea40eSJacky Bai
495a05ea40eSJacky Bai			src: reset-controller@30390000 {
49646b29f4bSAnson Huang				compatible = "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon";
497a05ea40eSJacky Bai				reg = <0x30390000 0x10000>;
498a05ea40eSJacky Bai				interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
499a05ea40eSJacky Bai				#reset-cells = <1>;
500a05ea40eSJacky Bai			};
501a05ea40eSJacky Bai		};
502a05ea40eSJacky Bai
503a05ea40eSJacky Bai		aips2: bus@30400000 {
504aebf07e6SPeng Fan			compatible = "simple-bus";
505a05ea40eSJacky Bai			#address-cells = <1>;
506a05ea40eSJacky Bai			#size-cells = <1>;
50710c74207SFabio Estevam			ranges = <0x30400000 0x30400000 0x400000>;
508a05ea40eSJacky Bai
509a05ea40eSJacky Bai			pwm1: pwm@30660000 {
510a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
511a05ea40eSJacky Bai				reg = <0x30660000 0x10000>;
512a05ea40eSJacky Bai				interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
513a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM1_ROOT>,
514a05ea40eSJacky Bai					<&clk IMX8MM_CLK_PWM1_ROOT>;
515a05ea40eSJacky Bai				clock-names = "ipg", "per";
516a05ea40eSJacky Bai				#pwm-cells = <2>;
517a05ea40eSJacky Bai				status = "disabled";
518a05ea40eSJacky Bai			};
519a05ea40eSJacky Bai
520a05ea40eSJacky Bai			pwm2: pwm@30670000 {
521a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
522a05ea40eSJacky Bai				reg = <0x30670000 0x10000>;
523a05ea40eSJacky Bai				interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
524a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM2_ROOT>,
525a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM2_ROOT>;
526a05ea40eSJacky Bai				clock-names = "ipg", "per";
527a05ea40eSJacky Bai				#pwm-cells = <2>;
528a05ea40eSJacky Bai				status = "disabled";
529a05ea40eSJacky Bai			};
530a05ea40eSJacky Bai
531a05ea40eSJacky Bai			pwm3: pwm@30680000 {
532a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
533a05ea40eSJacky Bai				reg = <0x30680000 0x10000>;
534a05ea40eSJacky Bai				interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
535a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM3_ROOT>,
536a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM3_ROOT>;
537a05ea40eSJacky Bai				clock-names = "ipg", "per";
538a05ea40eSJacky Bai				#pwm-cells = <2>;
539a05ea40eSJacky Bai				status = "disabled";
540a05ea40eSJacky Bai			};
541a05ea40eSJacky Bai
542a05ea40eSJacky Bai			pwm4: pwm@30690000 {
543a05ea40eSJacky Bai				compatible = "fsl,imx8mm-pwm", "fsl,imx27-pwm";
544a05ea40eSJacky Bai				reg = <0x30690000 0x10000>;
545a05ea40eSJacky Bai				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
546a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_PWM4_ROOT>,
547a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_PWM4_ROOT>;
548a05ea40eSJacky Bai				clock-names = "ipg", "per";
549a05ea40eSJacky Bai				#pwm-cells = <2>;
550a05ea40eSJacky Bai				status = "disabled";
551a05ea40eSJacky Bai			};
5525b0221bfSAnson Huang
5535b0221bfSAnson Huang			system_counter: timer@306a0000 {
5545b0221bfSAnson Huang				compatible = "nxp,sysctr-timer";
5555b0221bfSAnson Huang				reg = <0x306a0000 0x20000>;
5565b0221bfSAnson Huang				interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
5575b0221bfSAnson Huang				clocks = <&osc_24m>;
5585b0221bfSAnson Huang				clock-names = "per";
5595b0221bfSAnson Huang			};
560a05ea40eSJacky Bai		};
561a05ea40eSJacky Bai
562a05ea40eSJacky Bai		aips3: bus@30800000 {
563aebf07e6SPeng Fan			compatible = "simple-bus";
564a05ea40eSJacky Bai			#address-cells = <1>;
565a05ea40eSJacky Bai			#size-cells = <1>;
56610c74207SFabio Estevam			ranges = <0x30800000 0x30800000 0x400000>;
567a05ea40eSJacky Bai
568a05ea40eSJacky Bai			ecspi1: spi@30820000 {
569a05ea40eSJacky Bai				compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
570a05ea40eSJacky Bai				#address-cells = <1>;
571a05ea40eSJacky Bai				#size-cells = <0>;
572a05ea40eSJacky Bai				reg = <0x30820000 0x10000>;
573a05ea40eSJacky Bai				interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
574a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>,
575a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ECSPI1_ROOT>;
576a05ea40eSJacky Bai				clock-names = "ipg", "per";
577a05ea40eSJacky Bai				dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>;
578a05ea40eSJacky Bai				dma-names = "rx", "tx";
579a05ea40eSJacky Bai				status = "disabled";
580a05ea40eSJacky Bai			};
581a05ea40eSJacky Bai
582a05ea40eSJacky Bai			ecspi2: spi@30830000 {
583a05ea40eSJacky Bai				compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
584a05ea40eSJacky Bai				#address-cells = <1>;
585a05ea40eSJacky Bai				#size-cells = <0>;
586a05ea40eSJacky Bai				reg = <0x30830000 0x10000>;
587a05ea40eSJacky Bai				interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
588a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_ECSPI2_ROOT>,
589a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ECSPI2_ROOT>;
590a05ea40eSJacky Bai				clock-names = "ipg", "per";
591a05ea40eSJacky Bai				dmas = <&sdma1 2 7 1>, <&sdma1 3 7 2>;
592a05ea40eSJacky Bai				dma-names = "rx", "tx";
593a05ea40eSJacky Bai				status = "disabled";
594a05ea40eSJacky Bai			};
595a05ea40eSJacky Bai
596a05ea40eSJacky Bai			ecspi3: spi@30840000 {
597a05ea40eSJacky Bai				compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";
598a05ea40eSJacky Bai				#address-cells = <1>;
599a05ea40eSJacky Bai				#size-cells = <0>;
600a05ea40eSJacky Bai				reg = <0x30840000 0x10000>;
601a05ea40eSJacky Bai				interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
602a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_ECSPI3_ROOT>,
603a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ECSPI3_ROOT>;
604a05ea40eSJacky Bai				clock-names = "ipg", "per";
605a05ea40eSJacky Bai				dmas = <&sdma1 4 7 1>, <&sdma1 5 7 2>;
606a05ea40eSJacky Bai				dma-names = "rx", "tx";
607a05ea40eSJacky Bai				status = "disabled";
608a05ea40eSJacky Bai			};
609a05ea40eSJacky Bai
610a05ea40eSJacky Bai			uart1: serial@30860000 {
611a05ea40eSJacky Bai				compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
612a05ea40eSJacky Bai				reg = <0x30860000 0x10000>;
613a05ea40eSJacky Bai				interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
614a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_UART1_ROOT>,
615a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_UART1_ROOT>;
616a05ea40eSJacky Bai				clock-names = "ipg", "per";
617a05ea40eSJacky Bai				dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
618a05ea40eSJacky Bai				dma-names = "rx", "tx";
619a05ea40eSJacky Bai				status = "disabled";
620a05ea40eSJacky Bai			};
621a05ea40eSJacky Bai
622a05ea40eSJacky Bai			uart3: serial@30880000 {
623a05ea40eSJacky Bai				compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
624a05ea40eSJacky Bai				reg = <0x30880000 0x10000>;
625a05ea40eSJacky Bai				interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
626a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_UART3_ROOT>,
627a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_UART3_ROOT>;
628a05ea40eSJacky Bai				clock-names = "ipg", "per";
629a05ea40eSJacky Bai				dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>;
630a05ea40eSJacky Bai				dma-names = "rx", "tx";
631a05ea40eSJacky Bai				status = "disabled";
632a05ea40eSJacky Bai			};
633a05ea40eSJacky Bai
634a05ea40eSJacky Bai			uart2: serial@30890000 {
635a05ea40eSJacky Bai				compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
636a05ea40eSJacky Bai				reg = <0x30890000 0x10000>;
637a05ea40eSJacky Bai				interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
638a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_UART2_ROOT>,
639a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_UART2_ROOT>;
640a05ea40eSJacky Bai				clock-names = "ipg", "per";
641a05ea40eSJacky Bai				status = "disabled";
642a05ea40eSJacky Bai			};
643a05ea40eSJacky Bai
644bff5b972SAdam Ford			crypto: crypto@30900000 {
645bff5b972SAdam Ford				compatible = "fsl,sec-v4.0";
646bff5b972SAdam Ford				#address-cells = <1>;
647bff5b972SAdam Ford				#size-cells = <1>;
648bff5b972SAdam Ford				reg = <0x30900000 0x40000>;
649bff5b972SAdam Ford				ranges = <0 0x30900000 0x40000>;
650bff5b972SAdam Ford				interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
651bff5b972SAdam Ford				clocks = <&clk IMX8MM_CLK_AHB>,
652bff5b972SAdam Ford					 <&clk IMX8MM_CLK_IPG_ROOT>;
653bff5b972SAdam Ford				clock-names = "aclk", "ipg";
654bff5b972SAdam Ford
655bff5b972SAdam Ford				sec_jr0: jr@1000 {
656bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
657bff5b972SAdam Ford					reg = <0x1000 0x1000>;
658bff5b972SAdam Ford					interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
659bff5b972SAdam Ford				};
660bff5b972SAdam Ford
661bff5b972SAdam Ford				sec_jr1: jr@2000 {
662bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
663bff5b972SAdam Ford					reg = <0x2000 0x1000>;
664bff5b972SAdam Ford					interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
665bff5b972SAdam Ford				};
666bff5b972SAdam Ford
667bff5b972SAdam Ford				sec_jr2: jr@3000 {
668bff5b972SAdam Ford					compatible = "fsl,sec-v4.0-job-ring";
669bff5b972SAdam Ford					reg = <0x3000 0x1000>;
670bff5b972SAdam Ford					interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
671bff5b972SAdam Ford				};
672bff5b972SAdam Ford			};
673bff5b972SAdam Ford
674a05ea40eSJacky Bai			i2c1: i2c@30a20000 {
675a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
676a05ea40eSJacky Bai				#address-cells = <1>;
677a05ea40eSJacky Bai				#size-cells = <0>;
678a05ea40eSJacky Bai				reg = <0x30a20000 0x10000>;
679a05ea40eSJacky Bai				interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
680a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C1_ROOT>;
681a05ea40eSJacky Bai				status = "disabled";
682a05ea40eSJacky Bai			};
683a05ea40eSJacky Bai
684a05ea40eSJacky Bai			i2c2: i2c@30a30000 {
685a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
686a05ea40eSJacky Bai				#address-cells = <1>;
687a05ea40eSJacky Bai				#size-cells = <0>;
688a05ea40eSJacky Bai				reg = <0x30a30000 0x10000>;
689a05ea40eSJacky Bai				interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
690a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C2_ROOT>;
691a05ea40eSJacky Bai				status = "disabled";
692a05ea40eSJacky Bai			};
693a05ea40eSJacky Bai
694a05ea40eSJacky Bai			i2c3: i2c@30a40000 {
695a05ea40eSJacky Bai				#address-cells = <1>;
696a05ea40eSJacky Bai				#size-cells = <0>;
697a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
698a05ea40eSJacky Bai				reg = <0x30a40000 0x10000>;
699a05ea40eSJacky Bai				interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
700a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C3_ROOT>;
701a05ea40eSJacky Bai				status = "disabled";
702a05ea40eSJacky Bai			};
703a05ea40eSJacky Bai
704a05ea40eSJacky Bai			i2c4: i2c@30a50000 {
705a05ea40eSJacky Bai				compatible = "fsl,imx8mm-i2c", "fsl,imx21-i2c";
706a05ea40eSJacky Bai				#address-cells = <1>;
707a05ea40eSJacky Bai				#size-cells = <0>;
708a05ea40eSJacky Bai				reg = <0x30a50000 0x10000>;
709a05ea40eSJacky Bai				interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
710a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_I2C4_ROOT>;
711a05ea40eSJacky Bai				status = "disabled";
712a05ea40eSJacky Bai			};
713a05ea40eSJacky Bai
714a05ea40eSJacky Bai			uart4: serial@30a60000 {
715a05ea40eSJacky Bai				compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
716a05ea40eSJacky Bai				reg = <0x30a60000 0x10000>;
717a05ea40eSJacky Bai				interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
718a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_UART4_ROOT>,
719a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_UART4_ROOT>;
720a05ea40eSJacky Bai				clock-names = "ipg", "per";
721a05ea40eSJacky Bai				dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
722a05ea40eSJacky Bai				dma-names = "rx", "tx";
723a05ea40eSJacky Bai				status = "disabled";
724a05ea40eSJacky Bai			};
725a05ea40eSJacky Bai
726a05ea40eSJacky Bai			usdhc1: mmc@30b40000 {
727a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
728a05ea40eSJacky Bai				reg = <0x30b40000 0x10000>;
729a05ea40eSJacky Bai				interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
730a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
731a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
732a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC1_ROOT>;
733a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
734a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
735a05ea40eSJacky Bai				fsl,tuning-step= <2>;
736a05ea40eSJacky Bai				bus-width = <4>;
737a05ea40eSJacky Bai				status = "disabled";
738a05ea40eSJacky Bai			};
739a05ea40eSJacky Bai
740a05ea40eSJacky Bai			usdhc2: mmc@30b50000 {
741a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
742a05ea40eSJacky Bai				reg = <0x30b50000 0x10000>;
743a05ea40eSJacky Bai				interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
744a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
745a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
746a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC2_ROOT>;
747a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
748a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
749a05ea40eSJacky Bai				fsl,tuning-step= <2>;
750a05ea40eSJacky Bai				bus-width = <4>;
751a05ea40eSJacky Bai				status = "disabled";
752a05ea40eSJacky Bai			};
753a05ea40eSJacky Bai
754a05ea40eSJacky Bai			usdhc3: mmc@30b60000 {
755a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usdhc", "fsl,imx7d-usdhc";
756a05ea40eSJacky Bai				reg = <0x30b60000 0x10000>;
757a05ea40eSJacky Bai				interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
758a6a40d56SAnson Huang				clocks = <&clk IMX8MM_CLK_IPG_ROOT>,
759a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_NAND_USDHC_BUS>,
760a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_USDHC3_ROOT>;
761a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "per";
762a05ea40eSJacky Bai				fsl,tuning-start-tap = <20>;
763a05ea40eSJacky Bai				fsl,tuning-step= <2>;
764a05ea40eSJacky Bai				bus-width = <4>;
765a05ea40eSJacky Bai				status = "disabled";
766a05ea40eSJacky Bai			};
767a05ea40eSJacky Bai
768a05ea40eSJacky Bai			sdma1: dma-controller@30bd0000 {
769e346ff93SShengjiu Wang				compatible = "fsl,imx8mm-sdma", "fsl,imx8mq-sdma";
770a05ea40eSJacky Bai				reg = <0x30bd0000 0x10000>;
771a05ea40eSJacky Bai				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
772a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_SDMA1_ROOT>,
773a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_SDMA1_ROOT>;
774a05ea40eSJacky Bai				clock-names = "ipg", "ahb";
775a05ea40eSJacky Bai				#dma-cells = <3>;
776a05ea40eSJacky Bai				fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
777a05ea40eSJacky Bai			};
778a05ea40eSJacky Bai
779a05ea40eSJacky Bai			fec1: ethernet@30be0000 {
780a05ea40eSJacky Bai				compatible = "fsl,imx8mm-fec", "fsl,imx6sx-fec";
781a05ea40eSJacky Bai				reg = <0x30be0000 0x10000>;
782a05ea40eSJacky Bai				interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
783a05ea40eSJacky Bai					     <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
784a05ea40eSJacky Bai					     <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
785a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_ENET1_ROOT>,
786a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET1_ROOT>,
787a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_TIMER>,
788a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_REF>,
789a05ea40eSJacky Bai					 <&clk IMX8MM_CLK_ENET_PHY_REF>;
790a05ea40eSJacky Bai				clock-names = "ipg", "ahb", "ptp",
791a05ea40eSJacky Bai					      "enet_clk_ref", "enet_out";
792a05ea40eSJacky Bai				assigned-clocks = <&clk IMX8MM_CLK_ENET_AXI>,
793a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_TIMER>,
794a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_REF>,
795a05ea40eSJacky Bai						  <&clk IMX8MM_CLK_ENET_TIMER>;
796a05ea40eSJacky Bai				assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>,
797a05ea40eSJacky Bai							 <&clk IMX8MM_SYS_PLL2_100M>,
798a05ea40eSJacky Bai							 <&clk IMX8MM_SYS_PLL2_125M>;
799a05ea40eSJacky Bai				assigned-clock-rates = <0>, <0>, <125000000>, <100000000>;
800a05ea40eSJacky Bai				fsl,num-tx-queues = <3>;
801a05ea40eSJacky Bai				fsl,num-rx-queues = <3>;
802a05ea40eSJacky Bai				status = "disabled";
803a05ea40eSJacky Bai			};
804a05ea40eSJacky Bai
805a05ea40eSJacky Bai		};
806a05ea40eSJacky Bai
807a05ea40eSJacky Bai		aips4: bus@32c00000 {
808aebf07e6SPeng Fan			compatible = "simple-bus";
809a05ea40eSJacky Bai			#address-cells = <1>;
810a05ea40eSJacky Bai			#size-cells = <1>;
81110c74207SFabio Estevam			ranges = <0x32c00000 0x32c00000 0x400000>;
812a05ea40eSJacky Bai
813a05ea40eSJacky Bai			usbotg1: usb@32e40000 {
814a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
815a05ea40eSJacky Bai				reg = <0x32e40000 0x200>;
816a05ea40eSJacky Bai				interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
817a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
818a05ea40eSJacky Bai				clock-names = "usb1_ctrl_root_clk";
8198b01840eSLi Jun				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
8208b01840eSLi Jun				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
821a05ea40eSJacky Bai				fsl,usbphy = <&usbphynop1>;
822a05ea40eSJacky Bai				fsl,usbmisc = <&usbmisc1 0>;
823a05ea40eSJacky Bai				status = "disabled";
824a05ea40eSJacky Bai			};
825a05ea40eSJacky Bai
826a05ea40eSJacky Bai			usbmisc1: usbmisc@32e40200 {
827a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
828a05ea40eSJacky Bai				#index-cells = <1>;
829a05ea40eSJacky Bai				reg = <0x32e40200 0x200>;
830a05ea40eSJacky Bai			};
831a05ea40eSJacky Bai
832a05ea40eSJacky Bai			usbotg2: usb@32e50000 {
833a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb";
834a05ea40eSJacky Bai				reg = <0x32e50000 0x200>;
835a05ea40eSJacky Bai				interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
836a05ea40eSJacky Bai				clocks = <&clk IMX8MM_CLK_USB1_CTRL_ROOT>;
837a05ea40eSJacky Bai				clock-names = "usb1_ctrl_root_clk";
8388b01840eSLi Jun				assigned-clocks = <&clk IMX8MM_CLK_USB_BUS>;
8398b01840eSLi Jun				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>;
840a05ea40eSJacky Bai				fsl,usbphy = <&usbphynop2>;
841a05ea40eSJacky Bai				fsl,usbmisc = <&usbmisc2 0>;
842a05ea40eSJacky Bai				status = "disabled";
843a05ea40eSJacky Bai			};
844a05ea40eSJacky Bai
845a05ea40eSJacky Bai			usbmisc2: usbmisc@32e50200 {
846a05ea40eSJacky Bai				compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc";
847a05ea40eSJacky Bai				#index-cells = <1>;
848a05ea40eSJacky Bai				reg = <0x32e50200 0x200>;
849a05ea40eSJacky Bai			};
850a05ea40eSJacky Bai
851a05ea40eSJacky Bai		};
852a05ea40eSJacky Bai
853a05ea40eSJacky Bai		dma_apbh: dma-controller@33000000 {
854a05ea40eSJacky Bai			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
855a05ea40eSJacky Bai			reg = <0x33000000 0x2000>;
856a05ea40eSJacky Bai			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
857a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
858a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
859a05ea40eSJacky Bai				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
860a05ea40eSJacky Bai			interrupt-names = "gpmi0", "gpmi1", "gpmi2", "gpmi3";
861a05ea40eSJacky Bai			#dma-cells = <1>;
862a05ea40eSJacky Bai			dma-channels = <4>;
863a05ea40eSJacky Bai			clocks = <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
864a05ea40eSJacky Bai		};
865a05ea40eSJacky Bai
866a05ea40eSJacky Bai		gpmi: nand-controller@33002000{
867a05ea40eSJacky Bai			compatible = "fsl,imx8mm-gpmi-nand", "fsl,imx7d-gpmi-nand";
868a05ea40eSJacky Bai			#address-cells = <1>;
869a05ea40eSJacky Bai			#size-cells = <1>;
870a05ea40eSJacky Bai			reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
871a05ea40eSJacky Bai			reg-names = "gpmi-nand", "bch";
872a05ea40eSJacky Bai			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
873a05ea40eSJacky Bai			interrupt-names = "bch";
874a05ea40eSJacky Bai			clocks = <&clk IMX8MM_CLK_NAND_ROOT>,
875a05ea40eSJacky Bai				 <&clk IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
876a05ea40eSJacky Bai			clock-names = "gpmi_io", "gpmi_bch_apb";
877a05ea40eSJacky Bai			dmas = <&dma_apbh 0>;
878a05ea40eSJacky Bai			dma-names = "rx-tx";
879a05ea40eSJacky Bai			status = "disabled";
880a05ea40eSJacky Bai		};
881b4e3e54aSAnson Huang
882b4e3e54aSAnson Huang		gic: interrupt-controller@38800000 {
883b4e3e54aSAnson Huang			compatible = "arm,gic-v3";
884b4e3e54aSAnson Huang			reg = <0x38800000 0x10000>, /* GIC Dist */
885b4e3e54aSAnson Huang			      <0x38880000 0xc0000>; /* GICR (RD_base + SGI_base) */
886b4e3e54aSAnson Huang			#interrupt-cells = <3>;
887b4e3e54aSAnson Huang			interrupt-controller;
888b4e3e54aSAnson Huang			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
889b4e3e54aSAnson Huang		};
8901efe85c9SLeonard Crestez
8910376f6ecSLeonard Crestez		ddrc: memory-controller@3d400000 {
8920376f6ecSLeonard Crestez			compatible = "fsl,imx8mm-ddrc", "fsl,imx8m-ddrc";
8930376f6ecSLeonard Crestez			reg = <0x3d400000 0x400000>;
8940376f6ecSLeonard Crestez			clock-names = "core", "pll", "alt", "apb";
8950376f6ecSLeonard Crestez			clocks = <&clk IMX8MM_CLK_DRAM_CORE>,
8960376f6ecSLeonard Crestez				 <&clk IMX8MM_DRAM_PLL>,
8970376f6ecSLeonard Crestez				 <&clk IMX8MM_CLK_DRAM_ALT>,
8980376f6ecSLeonard Crestez				 <&clk IMX8MM_CLK_DRAM_APB>;
8990376f6ecSLeonard Crestez		};
9000376f6ecSLeonard Crestez
9011efe85c9SLeonard Crestez		ddr-pmu@3d800000 {
9021efe85c9SLeonard Crestez			compatible = "fsl,imx8mm-ddr-pmu", "fsl,imx8m-ddr-pmu";
9031efe85c9SLeonard Crestez			reg = <0x3d800000 0x400000>;
9041efe85c9SLeonard Crestez			interrupt-parent = <&gic>;
9051efe85c9SLeonard Crestez			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
9061efe85c9SLeonard Crestez		};
907a05ea40eSJacky Bai	};
908a05ea40eSJacky Bai};
909