xref: /freebsd/sys/contrib/device-tree/src/arm64/mediatek/mt2712e.dtsi (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1c66ec88fSEmmanuel Vadot/*
2c66ec88fSEmmanuel Vadot * Copyright (c) 2017 MediaTek Inc.
3c66ec88fSEmmanuel Vadot * Author: YT Shen <yt.shen@mediatek.com>
4c66ec88fSEmmanuel Vadot *
5c66ec88fSEmmanuel Vadot * SPDX-License-Identifier: (GPL-2.0 OR MIT)
6c66ec88fSEmmanuel Vadot */
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadot#include <dt-bindings/clock/mt2712-clk.h>
9c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
10c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
11c66ec88fSEmmanuel Vadot#include <dt-bindings/memory/mt2712-larb-port.h>
12c66ec88fSEmmanuel Vadot#include <dt-bindings/phy/phy.h>
13c66ec88fSEmmanuel Vadot#include <dt-bindings/power/mt2712-power.h>
14c66ec88fSEmmanuel Vadot#include "mt2712-pinfunc.h"
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot/ {
17c66ec88fSEmmanuel Vadot	compatible = "mediatek,mt2712";
18c66ec88fSEmmanuel Vadot	interrupt-parent = <&sysirq>;
19c66ec88fSEmmanuel Vadot	#address-cells = <2>;
20c66ec88fSEmmanuel Vadot	#size-cells = <2>;
21c66ec88fSEmmanuel Vadot
22d5b0e70fSEmmanuel Vadot	cluster0_opp: opp-table-0 {
23c66ec88fSEmmanuel Vadot		compatible = "operating-points-v2";
24c66ec88fSEmmanuel Vadot		opp-shared;
25c66ec88fSEmmanuel Vadot		opp00 {
26c66ec88fSEmmanuel Vadot			opp-hz = /bits/ 64 <598000000>;
27c66ec88fSEmmanuel Vadot			opp-microvolt = <1000000>;
28c66ec88fSEmmanuel Vadot		};
29c66ec88fSEmmanuel Vadot		opp01 {
30c66ec88fSEmmanuel Vadot			opp-hz = /bits/ 64 <702000000>;
31c66ec88fSEmmanuel Vadot			opp-microvolt = <1000000>;
32c66ec88fSEmmanuel Vadot		};
33c66ec88fSEmmanuel Vadot		opp02 {
34c66ec88fSEmmanuel Vadot			opp-hz = /bits/ 64 <793000000>;
35c66ec88fSEmmanuel Vadot			opp-microvolt = <1000000>;
36c66ec88fSEmmanuel Vadot		};
37c66ec88fSEmmanuel Vadot	};
38c66ec88fSEmmanuel Vadot
39d5b0e70fSEmmanuel Vadot	cluster1_opp: opp-table-1 {
40c66ec88fSEmmanuel Vadot		compatible = "operating-points-v2";
41c66ec88fSEmmanuel Vadot		opp-shared;
42c66ec88fSEmmanuel Vadot		opp00 {
43c66ec88fSEmmanuel Vadot			opp-hz = /bits/ 64 <598000000>;
44c66ec88fSEmmanuel Vadot			opp-microvolt = <1000000>;
45c66ec88fSEmmanuel Vadot		};
46c66ec88fSEmmanuel Vadot		opp01 {
47c66ec88fSEmmanuel Vadot			opp-hz = /bits/ 64 <702000000>;
48c66ec88fSEmmanuel Vadot			opp-microvolt = <1000000>;
49c66ec88fSEmmanuel Vadot		};
50c66ec88fSEmmanuel Vadot		opp02 {
51c66ec88fSEmmanuel Vadot			opp-hz = /bits/ 64 <793000000>;
52c66ec88fSEmmanuel Vadot			opp-microvolt = <1000000>;
53c66ec88fSEmmanuel Vadot		};
54c66ec88fSEmmanuel Vadot		opp03 {
55c66ec88fSEmmanuel Vadot			opp-hz = /bits/ 64 <897000000>;
56c66ec88fSEmmanuel Vadot			opp-microvolt = <1000000>;
57c66ec88fSEmmanuel Vadot		};
58c66ec88fSEmmanuel Vadot		opp04 {
59c66ec88fSEmmanuel Vadot			opp-hz = /bits/ 64 <1001000000>;
60c66ec88fSEmmanuel Vadot			opp-microvolt = <1000000>;
61c66ec88fSEmmanuel Vadot		};
62c66ec88fSEmmanuel Vadot	};
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadot	cpus {
65c66ec88fSEmmanuel Vadot		#address-cells = <1>;
66c66ec88fSEmmanuel Vadot		#size-cells = <0>;
67c66ec88fSEmmanuel Vadot
68c66ec88fSEmmanuel Vadot		cpu-map {
69c66ec88fSEmmanuel Vadot			cluster0 {
70c66ec88fSEmmanuel Vadot				core0 {
71c66ec88fSEmmanuel Vadot					cpu = <&cpu0>;
72c66ec88fSEmmanuel Vadot				};
73c66ec88fSEmmanuel Vadot				core1 {
74c66ec88fSEmmanuel Vadot					cpu = <&cpu1>;
75c66ec88fSEmmanuel Vadot				};
76c66ec88fSEmmanuel Vadot			};
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel Vadot			cluster1 {
79c66ec88fSEmmanuel Vadot				core0 {
80c66ec88fSEmmanuel Vadot					cpu = <&cpu2>;
81c66ec88fSEmmanuel Vadot				};
82c66ec88fSEmmanuel Vadot			};
83c66ec88fSEmmanuel Vadot		};
84c66ec88fSEmmanuel Vadot
85c66ec88fSEmmanuel Vadot		cpu0: cpu@0 {
86c66ec88fSEmmanuel Vadot			device_type = "cpu";
87c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a35";
88c66ec88fSEmmanuel Vadot			reg = <0x000>;
89c66ec88fSEmmanuel Vadot			clocks = <&mcucfg CLK_MCU_MP0_SEL>,
90c66ec88fSEmmanuel Vadot				<&topckgen CLK_TOP_F_MP0_PLL1>;
91c66ec88fSEmmanuel Vadot			clock-names = "cpu", "intermediate";
92c66ec88fSEmmanuel Vadot			proc-supply = <&cpus_fixed_vproc0>;
93c66ec88fSEmmanuel Vadot			operating-points-v2 = <&cluster0_opp>;
94c66ec88fSEmmanuel Vadot			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
95c66ec88fSEmmanuel Vadot		};
96c66ec88fSEmmanuel Vadot
97c66ec88fSEmmanuel Vadot		cpu1: cpu@1 {
98c66ec88fSEmmanuel Vadot			device_type = "cpu";
99c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a35";
100c66ec88fSEmmanuel Vadot			reg = <0x001>;
101c66ec88fSEmmanuel Vadot			enable-method = "psci";
102c66ec88fSEmmanuel Vadot			clocks = <&mcucfg CLK_MCU_MP0_SEL>,
103c66ec88fSEmmanuel Vadot				<&topckgen CLK_TOP_F_MP0_PLL1>;
104c66ec88fSEmmanuel Vadot			clock-names = "cpu", "intermediate";
105c66ec88fSEmmanuel Vadot			proc-supply = <&cpus_fixed_vproc0>;
106c66ec88fSEmmanuel Vadot			operating-points-v2 = <&cluster0_opp>;
107c66ec88fSEmmanuel Vadot			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
108c66ec88fSEmmanuel Vadot		};
109c66ec88fSEmmanuel Vadot
110c66ec88fSEmmanuel Vadot		cpu2: cpu@200 {
111c66ec88fSEmmanuel Vadot			device_type = "cpu";
112c66ec88fSEmmanuel Vadot			compatible = "arm,cortex-a72";
113c66ec88fSEmmanuel Vadot			reg = <0x200>;
114c66ec88fSEmmanuel Vadot			enable-method = "psci";
115c66ec88fSEmmanuel Vadot			clocks = <&mcucfg CLK_MCU_MP2_SEL>,
116c66ec88fSEmmanuel Vadot				<&topckgen CLK_TOP_F_BIG_PLL1>;
117c66ec88fSEmmanuel Vadot			clock-names = "cpu", "intermediate";
118c66ec88fSEmmanuel Vadot			proc-supply = <&cpus_fixed_vproc1>;
119c66ec88fSEmmanuel Vadot			operating-points-v2 = <&cluster1_opp>;
120c66ec88fSEmmanuel Vadot			cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
121c66ec88fSEmmanuel Vadot		};
122c66ec88fSEmmanuel Vadot
123c66ec88fSEmmanuel Vadot		idle-states {
124c66ec88fSEmmanuel Vadot			entry-method = "psci";
125c66ec88fSEmmanuel Vadot
126c66ec88fSEmmanuel Vadot			CPU_SLEEP_0: cpu-sleep-0 {
127c66ec88fSEmmanuel Vadot				compatible = "arm,idle-state";
128c66ec88fSEmmanuel Vadot				local-timer-stop;
129c66ec88fSEmmanuel Vadot				entry-latency-us = <100>;
130c66ec88fSEmmanuel Vadot				exit-latency-us = <80>;
131c66ec88fSEmmanuel Vadot				min-residency-us = <2000>;
132c66ec88fSEmmanuel Vadot				arm,psci-suspend-param = <0x0010000>;
133c66ec88fSEmmanuel Vadot			};
134c66ec88fSEmmanuel Vadot
135c66ec88fSEmmanuel Vadot			CLUSTER_SLEEP_0: cluster-sleep-0 {
136c66ec88fSEmmanuel Vadot				compatible = "arm,idle-state";
137c66ec88fSEmmanuel Vadot				local-timer-stop;
138c66ec88fSEmmanuel Vadot				entry-latency-us = <350>;
139c66ec88fSEmmanuel Vadot				exit-latency-us = <80>;
140c66ec88fSEmmanuel Vadot				min-residency-us = <3000>;
141c66ec88fSEmmanuel Vadot				arm,psci-suspend-param = <0x1010000>;
142c66ec88fSEmmanuel Vadot			};
143c66ec88fSEmmanuel Vadot		};
144c66ec88fSEmmanuel Vadot	};
145c66ec88fSEmmanuel Vadot
146c66ec88fSEmmanuel Vadot	psci {
147c66ec88fSEmmanuel Vadot		compatible = "arm,psci-0.2";
148c66ec88fSEmmanuel Vadot		method = "smc";
149c66ec88fSEmmanuel Vadot	};
150c66ec88fSEmmanuel Vadot
151c66ec88fSEmmanuel Vadot	baud_clk: dummy26m {
152c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
153c66ec88fSEmmanuel Vadot		clock-frequency = <26000000>;
154c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
155c66ec88fSEmmanuel Vadot	};
156c66ec88fSEmmanuel Vadot
157c66ec88fSEmmanuel Vadot	sys_clk: dummyclk {
158c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
159c66ec88fSEmmanuel Vadot		clock-frequency = <26000000>;
160c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
161c66ec88fSEmmanuel Vadot	};
162c66ec88fSEmmanuel Vadot
163*8bab661aSEmmanuel Vadot	clk26m: oscillator-26m {
164c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
165c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
166c66ec88fSEmmanuel Vadot		clock-frequency = <26000000>;
167c66ec88fSEmmanuel Vadot		clock-output-names = "clk26m";
168c66ec88fSEmmanuel Vadot	};
169c66ec88fSEmmanuel Vadot
170*8bab661aSEmmanuel Vadot	clk32k: oscillator-32k {
171c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
172c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
173c66ec88fSEmmanuel Vadot		clock-frequency = <32768>;
174c66ec88fSEmmanuel Vadot		clock-output-names = "clk32k";
175c66ec88fSEmmanuel Vadot	};
176c66ec88fSEmmanuel Vadot
177*8bab661aSEmmanuel Vadot	clkfpc: oscillator-50m {
178c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
179c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
180c66ec88fSEmmanuel Vadot		clock-frequency = <50000000>;
181c66ec88fSEmmanuel Vadot		clock-output-names = "clkfpc";
182c66ec88fSEmmanuel Vadot	};
183c66ec88fSEmmanuel Vadot
184*8bab661aSEmmanuel Vadot	clkaud_ext_i_0: oscillator-aud0 {
185c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
186c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
187c66ec88fSEmmanuel Vadot		clock-frequency = <6500000>;
188c66ec88fSEmmanuel Vadot		clock-output-names = "clkaud_ext_i_0";
189c66ec88fSEmmanuel Vadot	};
190c66ec88fSEmmanuel Vadot
191*8bab661aSEmmanuel Vadot	clkaud_ext_i_1: oscillator-aud1 {
192c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
193c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
194c66ec88fSEmmanuel Vadot		clock-frequency = <196608000>;
195c66ec88fSEmmanuel Vadot		clock-output-names = "clkaud_ext_i_1";
196c66ec88fSEmmanuel Vadot	};
197c66ec88fSEmmanuel Vadot
198*8bab661aSEmmanuel Vadot	clkaud_ext_i_2: oscillator-aud2 {
199c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
200c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
201c66ec88fSEmmanuel Vadot		clock-frequency = <180633600>;
202c66ec88fSEmmanuel Vadot		clock-output-names = "clkaud_ext_i_2";
203c66ec88fSEmmanuel Vadot	};
204c66ec88fSEmmanuel Vadot
205*8bab661aSEmmanuel Vadot	clki2si0_mck_i: oscillator-i2s0 {
206c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
207c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
208c66ec88fSEmmanuel Vadot		clock-frequency = <30000000>;
209c66ec88fSEmmanuel Vadot		clock-output-names = "clki2si0_mck_i";
210c66ec88fSEmmanuel Vadot	};
211c66ec88fSEmmanuel Vadot
212*8bab661aSEmmanuel Vadot	clki2si1_mck_i: oscillator-i2s1 {
213c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
214c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
215c66ec88fSEmmanuel Vadot		clock-frequency = <30000000>;
216c66ec88fSEmmanuel Vadot		clock-output-names = "clki2si1_mck_i";
217c66ec88fSEmmanuel Vadot	};
218c66ec88fSEmmanuel Vadot
219*8bab661aSEmmanuel Vadot	clki2si2_mck_i: oscillator-i2s2 {
220c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
221c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
222c66ec88fSEmmanuel Vadot		clock-frequency = <30000000>;
223c66ec88fSEmmanuel Vadot		clock-output-names = "clki2si2_mck_i";
224c66ec88fSEmmanuel Vadot	};
225c66ec88fSEmmanuel Vadot
226*8bab661aSEmmanuel Vadot	clktdmin_mclk_i: oscillator-mclk {
227c66ec88fSEmmanuel Vadot		compatible = "fixed-clock";
228c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
229c66ec88fSEmmanuel Vadot		clock-frequency = <30000000>;
230c66ec88fSEmmanuel Vadot		clock-output-names = "clktdmin_mclk_i";
231c66ec88fSEmmanuel Vadot	};
232c66ec88fSEmmanuel Vadot
233c66ec88fSEmmanuel Vadot	timer {
234c66ec88fSEmmanuel Vadot		compatible = "arm,armv8-timer";
235c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
236c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 13
237c66ec88fSEmmanuel Vadot			      (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_LOW)>,
238c66ec88fSEmmanuel Vadot			     <GIC_PPI 14
239c66ec88fSEmmanuel Vadot			      (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_LOW)>,
240c66ec88fSEmmanuel Vadot			     <GIC_PPI 11
241c66ec88fSEmmanuel Vadot			      (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_LOW)>,
242c66ec88fSEmmanuel Vadot			     <GIC_PPI 10
243c66ec88fSEmmanuel Vadot			      (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_LOW)>;
244c66ec88fSEmmanuel Vadot	};
245c66ec88fSEmmanuel Vadot
246c66ec88fSEmmanuel Vadot	topckgen: syscon@10000000 {
247c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-topckgen", "syscon";
248c66ec88fSEmmanuel Vadot		reg = <0 0x10000000 0 0x1000>;
249c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
250c66ec88fSEmmanuel Vadot	};
251c66ec88fSEmmanuel Vadot
252c66ec88fSEmmanuel Vadot	infracfg: syscon@10001000 {
253c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-infracfg", "syscon";
254c66ec88fSEmmanuel Vadot		reg = <0 0x10001000 0 0x1000>;
255c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
256c66ec88fSEmmanuel Vadot	};
257c66ec88fSEmmanuel Vadot
258c66ec88fSEmmanuel Vadot	pericfg: syscon@10003000 {
259c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-pericfg", "syscon";
260c66ec88fSEmmanuel Vadot		reg = <0 0x10003000 0 0x1000>;
261c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
262c66ec88fSEmmanuel Vadot	};
263c66ec88fSEmmanuel Vadot
264c66ec88fSEmmanuel Vadot	syscfg_pctl_a: syscfg_pctl_a@10005000 {
265c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-pctl-a-syscfg", "syscon";
266c66ec88fSEmmanuel Vadot		reg = <0 0x10005000 0 0x1000>;
267c66ec88fSEmmanuel Vadot	};
268c66ec88fSEmmanuel Vadot
269*8bab661aSEmmanuel Vadot	pio: pinctrl@1000b000 {
270c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-pinctrl";
271c66ec88fSEmmanuel Vadot		reg = <0 0x1000b000 0 0x1000>;
272c66ec88fSEmmanuel Vadot		mediatek,pctl-regmap = <&syscfg_pctl_a>;
273c66ec88fSEmmanuel Vadot		pins-are-numbered;
274c66ec88fSEmmanuel Vadot		gpio-controller;
275c66ec88fSEmmanuel Vadot		#gpio-cells = <2>;
276c66ec88fSEmmanuel Vadot		interrupt-controller;
277c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
278c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
279c66ec88fSEmmanuel Vadot	};
280c66ec88fSEmmanuel Vadot
281c66ec88fSEmmanuel Vadot	scpsys: power-controller@10006000 {
282c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-scpsys", "syscon";
283c66ec88fSEmmanuel Vadot		#power-domain-cells = <1>;
284c66ec88fSEmmanuel Vadot		reg = <0 0x10006000 0 0x1000>;
285c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_MM_SEL>,
286c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_MFG_SEL>,
287c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_VENC_SEL>,
288c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_JPGDEC_SEL>,
289c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_A1SYS_HP_SEL>,
290c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_VDEC_SEL>;
291c66ec88fSEmmanuel Vadot		clock-names = "mm", "mfg", "venc",
292c66ec88fSEmmanuel Vadot			"jpgdec", "audio", "vdec";
293c66ec88fSEmmanuel Vadot		infracfg = <&infracfg>;
294c66ec88fSEmmanuel Vadot	};
295c66ec88fSEmmanuel Vadot
296c66ec88fSEmmanuel Vadot	uart5: serial@1000f000 {
297c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
298c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
299c66ec88fSEmmanuel Vadot		reg = <0 0x1000f000 0 0x400>;
300c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
301c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
302c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
303c66ec88fSEmmanuel Vadot		dmas = <&apdma 10
304c66ec88fSEmmanuel Vadot			&apdma 11>;
305c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
306c66ec88fSEmmanuel Vadot		status = "disabled";
307c66ec88fSEmmanuel Vadot	};
308c66ec88fSEmmanuel Vadot
309c66ec88fSEmmanuel Vadot	rtc: rtc@10011000 {
310c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-rtc";
311c66ec88fSEmmanuel Vadot		reg = <0 0x10011000 0 0x1000>;
312c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_LOW>;
313c66ec88fSEmmanuel Vadot	};
314c66ec88fSEmmanuel Vadot
315c66ec88fSEmmanuel Vadot	spis1: spi@10013000 {
316c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi-slave";
317c66ec88fSEmmanuel Vadot		reg = <0 0x10013000 0 0x100>;
318c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 283 IRQ_TYPE_LEVEL_LOW>;
319c66ec88fSEmmanuel Vadot		clocks = <&infracfg CLK_INFRA_AO_SPI1>;
320c66ec88fSEmmanuel Vadot		clock-names = "spi";
321c66ec88fSEmmanuel Vadot		assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>;
322c66ec88fSEmmanuel Vadot		assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>;
323c66ec88fSEmmanuel Vadot		status = "disabled";
324c66ec88fSEmmanuel Vadot	};
325c66ec88fSEmmanuel Vadot
326c66ec88fSEmmanuel Vadot	iommu0: iommu@10205000 {
327c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-m4u";
328c66ec88fSEmmanuel Vadot		reg = <0 0x10205000 0 0x1000>;
329c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_LOW>;
330c66ec88fSEmmanuel Vadot		clocks = <&infracfg CLK_INFRA_M4U>;
331c66ec88fSEmmanuel Vadot		clock-names = "bclk";
332b97ee269SEmmanuel Vadot		mediatek,infracfg = <&infracfg>;
333d5b0e70fSEmmanuel Vadot		mediatek,larbs = <&larb0>, <&larb1>, <&larb2>,
334d5b0e70fSEmmanuel Vadot				 <&larb3>, <&larb6>;
335c66ec88fSEmmanuel Vadot		#iommu-cells = <1>;
336c66ec88fSEmmanuel Vadot	};
337c66ec88fSEmmanuel Vadot
338c66ec88fSEmmanuel Vadot	apmixedsys: syscon@10209000 {
339c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-apmixedsys", "syscon";
340c66ec88fSEmmanuel Vadot		reg = <0 0x10209000 0 0x1000>;
341c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
342c66ec88fSEmmanuel Vadot	};
343c66ec88fSEmmanuel Vadot
344c66ec88fSEmmanuel Vadot	iommu1: iommu@1020a000 {
345c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-m4u";
346c66ec88fSEmmanuel Vadot		reg = <0 0x1020a000 0 0x1000>;
347c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_LOW>;
348c66ec88fSEmmanuel Vadot		clocks = <&infracfg CLK_INFRA_M4U>;
349c66ec88fSEmmanuel Vadot		clock-names = "bclk";
350b97ee269SEmmanuel Vadot		mediatek,infracfg = <&infracfg>;
351d5b0e70fSEmmanuel Vadot		mediatek,larbs = <&larb4>, <&larb5>, <&larb7>;
352c66ec88fSEmmanuel Vadot		#iommu-cells = <1>;
353c66ec88fSEmmanuel Vadot	};
354c66ec88fSEmmanuel Vadot
355c66ec88fSEmmanuel Vadot	mcucfg: syscon@10220000 {
356c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mcucfg", "syscon";
357c66ec88fSEmmanuel Vadot		reg = <0 0x10220000 0 0x1000>;
358c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
359c66ec88fSEmmanuel Vadot	};
360c66ec88fSEmmanuel Vadot
361c66ec88fSEmmanuel Vadot	sysirq: interrupt-controller@10220a80 {
362c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-sysirq",
363c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-sysirq";
364c66ec88fSEmmanuel Vadot		interrupt-controller;
365c66ec88fSEmmanuel Vadot		#interrupt-cells = <3>;
366c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
367c66ec88fSEmmanuel Vadot		reg = <0 0x10220a80 0 0x40>;
368c66ec88fSEmmanuel Vadot	};
369c66ec88fSEmmanuel Vadot
370c66ec88fSEmmanuel Vadot	gic: interrupt-controller@10510000 {
371c66ec88fSEmmanuel Vadot		compatible = "arm,gic-400";
372c66ec88fSEmmanuel Vadot		#interrupt-cells = <3>;
373c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
374c66ec88fSEmmanuel Vadot		interrupt-controller;
375c66ec88fSEmmanuel Vadot		reg = <0 0x10510000 0 0x10000>,
376c66ec88fSEmmanuel Vadot		      <0 0x10520000 0 0x20000>,
377c66ec88fSEmmanuel Vadot		      <0 0x10540000 0 0x20000>,
378c66ec88fSEmmanuel Vadot		      <0 0x10560000 0 0x20000>;
379c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 9
380c66ec88fSEmmanuel Vadot			 (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_HIGH)>;
381c66ec88fSEmmanuel Vadot	};
382c66ec88fSEmmanuel Vadot
383c66ec88fSEmmanuel Vadot	apdma: dma-controller@11000400 {
384c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart-dma",
385c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart-dma";
386c66ec88fSEmmanuel Vadot		reg = <0 0x11000400 0 0x80>,
387c66ec88fSEmmanuel Vadot		      <0 0x11000480 0 0x80>,
388c66ec88fSEmmanuel Vadot		      <0 0x11000500 0 0x80>,
389c66ec88fSEmmanuel Vadot		      <0 0x11000580 0 0x80>,
390c66ec88fSEmmanuel Vadot		      <0 0x11000600 0 0x80>,
391c66ec88fSEmmanuel Vadot		      <0 0x11000680 0 0x80>,
392c66ec88fSEmmanuel Vadot		      <0 0x11000700 0 0x80>,
393c66ec88fSEmmanuel Vadot		      <0 0x11000780 0 0x80>,
394c66ec88fSEmmanuel Vadot		      <0 0x11000800 0 0x80>,
395c66ec88fSEmmanuel Vadot		      <0 0x11000880 0 0x80>,
396c66ec88fSEmmanuel Vadot		      <0 0x11000900 0 0x80>,
397c66ec88fSEmmanuel Vadot		      <0 0x11000980 0 0x80>;
398c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_LOW>,
399c66ec88fSEmmanuel Vadot			     <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,
400c66ec88fSEmmanuel Vadot			     <GIC_SPI 105 IRQ_TYPE_LEVEL_LOW>,
401c66ec88fSEmmanuel Vadot			     <GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>,
402c66ec88fSEmmanuel Vadot			     <GIC_SPI 107 IRQ_TYPE_LEVEL_LOW>,
403c66ec88fSEmmanuel Vadot			     <GIC_SPI 108 IRQ_TYPE_LEVEL_LOW>,
404c66ec88fSEmmanuel Vadot			     <GIC_SPI 109 IRQ_TYPE_LEVEL_LOW>,
405c66ec88fSEmmanuel Vadot			     <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>,
406c66ec88fSEmmanuel Vadot			     <GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>,
407c66ec88fSEmmanuel Vadot			     <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>,
408c66ec88fSEmmanuel Vadot			     <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
409c66ec88fSEmmanuel Vadot			     <GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
410c66ec88fSEmmanuel Vadot		dma-requests = <12>;
411c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_AP_DMA>;
412c66ec88fSEmmanuel Vadot		clock-names = "apdma";
413c66ec88fSEmmanuel Vadot		#dma-cells = <1>;
414c66ec88fSEmmanuel Vadot	};
415c66ec88fSEmmanuel Vadot
416c66ec88fSEmmanuel Vadot	auxadc: adc@11001000 {
417c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-auxadc";
418c66ec88fSEmmanuel Vadot		reg = <0 0x11001000 0 0x1000>;
419c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_AUXADC>;
420c66ec88fSEmmanuel Vadot		clock-names = "main";
421c66ec88fSEmmanuel Vadot		#io-channel-cells = <1>;
422c66ec88fSEmmanuel Vadot		status = "disabled";
423c66ec88fSEmmanuel Vadot	};
424c66ec88fSEmmanuel Vadot
425c66ec88fSEmmanuel Vadot	uart0: serial@11002000 {
426c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
427c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
428c66ec88fSEmmanuel Vadot		reg = <0 0x11002000 0 0x400>;
429c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
430c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
431c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
432c66ec88fSEmmanuel Vadot		dmas = <&apdma 0
433c66ec88fSEmmanuel Vadot			&apdma 1>;
434c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
435c66ec88fSEmmanuel Vadot		status = "disabled";
436c66ec88fSEmmanuel Vadot	};
437c66ec88fSEmmanuel Vadot
438c66ec88fSEmmanuel Vadot	uart1: serial@11003000 {
439c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
440c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
441c66ec88fSEmmanuel Vadot		reg = <0 0x11003000 0 0x400>;
442c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
443c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
444c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
445c66ec88fSEmmanuel Vadot		dmas = <&apdma 2
446c66ec88fSEmmanuel Vadot			&apdma 3>;
447c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
448c66ec88fSEmmanuel Vadot		status = "disabled";
449c66ec88fSEmmanuel Vadot	};
450c66ec88fSEmmanuel Vadot
451c66ec88fSEmmanuel Vadot	uart2: serial@11004000 {
452c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
453c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
454c66ec88fSEmmanuel Vadot		reg = <0 0x11004000 0 0x400>;
455c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
456c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
457c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
458c66ec88fSEmmanuel Vadot		dmas = <&apdma 4
459c66ec88fSEmmanuel Vadot			&apdma 5>;
460c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
461c66ec88fSEmmanuel Vadot		status = "disabled";
462c66ec88fSEmmanuel Vadot	};
463c66ec88fSEmmanuel Vadot
464c66ec88fSEmmanuel Vadot	uart3: serial@11005000 {
465c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
466c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
467c66ec88fSEmmanuel Vadot		reg = <0 0x11005000 0 0x400>;
468c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
469c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
470c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
471c66ec88fSEmmanuel Vadot		dmas = <&apdma 6
472c66ec88fSEmmanuel Vadot			&apdma 7>;
473c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
474c66ec88fSEmmanuel Vadot		status = "disabled";
475c66ec88fSEmmanuel Vadot	};
476c66ec88fSEmmanuel Vadot
477c66ec88fSEmmanuel Vadot	pwm: pwm@11006000 {
478c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-pwm";
479c66ec88fSEmmanuel Vadot		reg = <0 0x11006000 0 0x1000>;
480c66ec88fSEmmanuel Vadot		#pwm-cells = <2>;
481c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
482c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_PWM_SEL>,
483c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM>,
484c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM0>,
485c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM1>,
486c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM2>,
487c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM3>,
488c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM4>,
489c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM5>,
490c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM6>,
491c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM7>;
492c66ec88fSEmmanuel Vadot		clock-names = "top",
493c66ec88fSEmmanuel Vadot			      "main",
494c66ec88fSEmmanuel Vadot			      "pwm1",
495c66ec88fSEmmanuel Vadot			      "pwm2",
496c66ec88fSEmmanuel Vadot			      "pwm3",
497c66ec88fSEmmanuel Vadot			      "pwm4",
498c66ec88fSEmmanuel Vadot			      "pwm5",
499c66ec88fSEmmanuel Vadot			      "pwm6",
500c66ec88fSEmmanuel Vadot			      "pwm7",
501c66ec88fSEmmanuel Vadot			      "pwm8";
502c66ec88fSEmmanuel Vadot		status = "disabled";
503c66ec88fSEmmanuel Vadot	};
504c66ec88fSEmmanuel Vadot
505c66ec88fSEmmanuel Vadot	i2c0: i2c@11007000 {
506c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
507c66ec88fSEmmanuel Vadot		reg = <0 0x11007000 0 0x90>,
508c66ec88fSEmmanuel Vadot		      <0 0x11000180 0 0x80>;
509c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
510c66ec88fSEmmanuel Vadot		clock-div = <4>;
511c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C0>,
512c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
513c66ec88fSEmmanuel Vadot		clock-names = "main",
514c66ec88fSEmmanuel Vadot			      "dma";
515c66ec88fSEmmanuel Vadot		#address-cells = <1>;
516c66ec88fSEmmanuel Vadot		#size-cells = <0>;
517c66ec88fSEmmanuel Vadot		status = "disabled";
518c66ec88fSEmmanuel Vadot	};
519c66ec88fSEmmanuel Vadot
520c66ec88fSEmmanuel Vadot	i2c1: i2c@11008000 {
521c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
522c66ec88fSEmmanuel Vadot		reg = <0 0x11008000 0 0x90>,
523c66ec88fSEmmanuel Vadot		      <0 0x11000200 0 0x80>;
524c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
525c66ec88fSEmmanuel Vadot		clock-div = <4>;
526c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C1>,
527c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
528c66ec88fSEmmanuel Vadot		clock-names = "main",
529c66ec88fSEmmanuel Vadot			      "dma";
530c66ec88fSEmmanuel Vadot		#address-cells = <1>;
531c66ec88fSEmmanuel Vadot		#size-cells = <0>;
532c66ec88fSEmmanuel Vadot		status = "disabled";
533c66ec88fSEmmanuel Vadot	};
534c66ec88fSEmmanuel Vadot
535c66ec88fSEmmanuel Vadot	i2c2: i2c@11009000 {
536c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
537c66ec88fSEmmanuel Vadot		reg = <0 0x11009000 0 0x90>,
538c66ec88fSEmmanuel Vadot		      <0 0x11000280 0 0x80>;
539c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
540c66ec88fSEmmanuel Vadot		clock-div = <4>;
541c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C2>,
542c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
543c66ec88fSEmmanuel Vadot		clock-names = "main",
544c66ec88fSEmmanuel Vadot			      "dma";
545c66ec88fSEmmanuel Vadot		#address-cells = <1>;
546c66ec88fSEmmanuel Vadot		#size-cells = <0>;
547c66ec88fSEmmanuel Vadot		status = "disabled";
548c66ec88fSEmmanuel Vadot	};
549c66ec88fSEmmanuel Vadot
550c66ec88fSEmmanuel Vadot	spi0: spi@1100a000 {
551c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
552c66ec88fSEmmanuel Vadot		#address-cells = <1>;
553c66ec88fSEmmanuel Vadot		#size-cells = <0>;
554c66ec88fSEmmanuel Vadot		reg = <0 0x1100a000 0 0x100>;
555c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>;
556c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
557c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
558c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_SPI0>;
559c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
560c66ec88fSEmmanuel Vadot		status = "disabled";
561c66ec88fSEmmanuel Vadot	};
562c66ec88fSEmmanuel Vadot
563c66ec88fSEmmanuel Vadot	nandc: nfi@1100e000 {
564c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-nfc";
565c66ec88fSEmmanuel Vadot		reg = <0 0x1100e000 0 0x1000>;
566c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
567c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_NFI2X_EN>, <&pericfg CLK_PERI_NFI>;
568c66ec88fSEmmanuel Vadot		clock-names = "nfi_clk", "pad_clk";
569c66ec88fSEmmanuel Vadot		ecc-engine = <&bch>;
570c66ec88fSEmmanuel Vadot		#address-cells = <1>;
571c66ec88fSEmmanuel Vadot		#size-cells = <0>;
572c66ec88fSEmmanuel Vadot		status = "disabled";
573c66ec88fSEmmanuel Vadot	};
574c66ec88fSEmmanuel Vadot
575c66ec88fSEmmanuel Vadot	bch: ecc@1100f000 {
576c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-ecc";
577c66ec88fSEmmanuel Vadot		reg = <0 0x1100f000 0 0x1000>;
578c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
579c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_NFI1X_CK_EN>;
580c66ec88fSEmmanuel Vadot		clock-names = "nfiecc_clk";
581c66ec88fSEmmanuel Vadot		status = "disabled";
582c66ec88fSEmmanuel Vadot	};
583c66ec88fSEmmanuel Vadot
584c66ec88fSEmmanuel Vadot	i2c3: i2c@11010000 {
585c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
586c66ec88fSEmmanuel Vadot		reg = <0 0x11010000 0 0x90>,
587c66ec88fSEmmanuel Vadot		      <0 0x11000300 0 0x80>;
588c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>;
589c66ec88fSEmmanuel Vadot		clock-div = <4>;
590c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C3>,
591c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
592c66ec88fSEmmanuel Vadot		clock-names = "main",
593c66ec88fSEmmanuel Vadot			      "dma";
594c66ec88fSEmmanuel Vadot		#address-cells = <1>;
595c66ec88fSEmmanuel Vadot		#size-cells = <0>;
596c66ec88fSEmmanuel Vadot		status = "disabled";
597c66ec88fSEmmanuel Vadot	};
598c66ec88fSEmmanuel Vadot
599c66ec88fSEmmanuel Vadot	i2c4: i2c@11011000 {
600c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
601c66ec88fSEmmanuel Vadot		reg = <0 0x11011000 0 0x90>,
602c66ec88fSEmmanuel Vadot		      <0 0x11000380 0 0x80>;
603c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
604c66ec88fSEmmanuel Vadot		clock-div = <4>;
605c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C4>,
606c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
607c66ec88fSEmmanuel Vadot		clock-names = "main",
608c66ec88fSEmmanuel Vadot			      "dma";
609c66ec88fSEmmanuel Vadot		#address-cells = <1>;
610c66ec88fSEmmanuel Vadot		#size-cells = <0>;
611c66ec88fSEmmanuel Vadot		status = "disabled";
612c66ec88fSEmmanuel Vadot	};
613c66ec88fSEmmanuel Vadot
614c66ec88fSEmmanuel Vadot	i2c5: i2c@11013000 {
615c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
616c66ec88fSEmmanuel Vadot		reg = <0 0x11013000 0 0x90>,
617c66ec88fSEmmanuel Vadot		      <0 0x11000100 0 0x80>;
618c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
619c66ec88fSEmmanuel Vadot		clock-div = <4>;
620c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C5>,
621c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
622c66ec88fSEmmanuel Vadot		clock-names = "main",
623c66ec88fSEmmanuel Vadot			      "dma";
624c66ec88fSEmmanuel Vadot		#address-cells = <1>;
625c66ec88fSEmmanuel Vadot		#size-cells = <0>;
626c66ec88fSEmmanuel Vadot		status = "disabled";
627c66ec88fSEmmanuel Vadot	};
628c66ec88fSEmmanuel Vadot
629c66ec88fSEmmanuel Vadot	spi2: spi@11015000 {
630c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
631c66ec88fSEmmanuel Vadot		#address-cells = <1>;
632c66ec88fSEmmanuel Vadot		#size-cells = <0>;
633c66ec88fSEmmanuel Vadot		reg = <0 0x11015000 0 0x100>;
634c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 284 IRQ_TYPE_LEVEL_LOW>;
635c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
636c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
637c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_SPI2>;
638c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
639c66ec88fSEmmanuel Vadot		status = "disabled";
640c66ec88fSEmmanuel Vadot	};
641c66ec88fSEmmanuel Vadot
642c66ec88fSEmmanuel Vadot	spi3: spi@11016000 {
643c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
644c66ec88fSEmmanuel Vadot		#address-cells = <1>;
645c66ec88fSEmmanuel Vadot		#size-cells = <0>;
646c66ec88fSEmmanuel Vadot		reg = <0 0x11016000 0 0x100>;
647c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 285 IRQ_TYPE_LEVEL_LOW>;
648c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
649c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
650c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_SPI3>;
651c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
652c66ec88fSEmmanuel Vadot		status = "disabled";
653c66ec88fSEmmanuel Vadot	};
654c66ec88fSEmmanuel Vadot
655c66ec88fSEmmanuel Vadot	spi4: spi@10012000 {
656c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
657c66ec88fSEmmanuel Vadot		#address-cells = <1>;
658c66ec88fSEmmanuel Vadot		#size-cells = <0>;
659c66ec88fSEmmanuel Vadot		reg = <0 0x10012000 0 0x100>;
660c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_LOW>;
661c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
662c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
663c66ec88fSEmmanuel Vadot			 <&infracfg CLK_INFRA_AO_SPI0>;
664c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
665c66ec88fSEmmanuel Vadot		status = "disabled";
666c66ec88fSEmmanuel Vadot	};
667c66ec88fSEmmanuel Vadot
668c66ec88fSEmmanuel Vadot	spi5: spi@11018000 {
669c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
670c66ec88fSEmmanuel Vadot		#address-cells = <1>;
671c66ec88fSEmmanuel Vadot		#size-cells = <0>;
672c66ec88fSEmmanuel Vadot		reg = <0 0x11018000 0 0x100>;
673c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_LOW>;
674c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
675c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
676c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_SPI5>;
677c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
678c66ec88fSEmmanuel Vadot		status = "disabled";
679c66ec88fSEmmanuel Vadot	};
680c66ec88fSEmmanuel Vadot
681c66ec88fSEmmanuel Vadot	uart4: serial@11019000 {
682c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
683c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
684c66ec88fSEmmanuel Vadot		reg = <0 0x11019000 0 0x400>;
685c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_LOW>;
686c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
687c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
688c66ec88fSEmmanuel Vadot		dmas = <&apdma 8
689c66ec88fSEmmanuel Vadot			&apdma 9>;
690c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
691c66ec88fSEmmanuel Vadot		status = "disabled";
692c66ec88fSEmmanuel Vadot	};
693c66ec88fSEmmanuel Vadot
694c66ec88fSEmmanuel Vadot	stmmac_axi_setup: stmmac-axi-config {
695c66ec88fSEmmanuel Vadot		snps,wr_osr_lmt = <0x7>;
696c66ec88fSEmmanuel Vadot		snps,rd_osr_lmt = <0x7>;
697c66ec88fSEmmanuel Vadot		snps,blen = <0 0 0 0 16 8 4>;
698c66ec88fSEmmanuel Vadot	};
699c66ec88fSEmmanuel Vadot
700c66ec88fSEmmanuel Vadot	mtl_rx_setup: rx-queues-config {
701c66ec88fSEmmanuel Vadot		snps,rx-queues-to-use = <1>;
702c66ec88fSEmmanuel Vadot		snps,rx-sched-sp;
703c66ec88fSEmmanuel Vadot		queue0 {
704c66ec88fSEmmanuel Vadot			snps,dcb-algorithm;
705c66ec88fSEmmanuel Vadot			snps,map-to-dma-channel = <0x0>;
706c66ec88fSEmmanuel Vadot			snps,priority = <0x0>;
707c66ec88fSEmmanuel Vadot		};
708c66ec88fSEmmanuel Vadot	};
709c66ec88fSEmmanuel Vadot
710c66ec88fSEmmanuel Vadot	mtl_tx_setup: tx-queues-config {
711c66ec88fSEmmanuel Vadot		snps,tx-queues-to-use = <3>;
712c66ec88fSEmmanuel Vadot		snps,tx-sched-wrr;
713c66ec88fSEmmanuel Vadot		queue0 {
714c66ec88fSEmmanuel Vadot			snps,weight = <0x10>;
715c66ec88fSEmmanuel Vadot			snps,dcb-algorithm;
716c66ec88fSEmmanuel Vadot			snps,priority = <0x0>;
717c66ec88fSEmmanuel Vadot		};
718c66ec88fSEmmanuel Vadot		queue1 {
719c66ec88fSEmmanuel Vadot			snps,weight = <0x11>;
720c66ec88fSEmmanuel Vadot			snps,dcb-algorithm;
721c66ec88fSEmmanuel Vadot			snps,priority = <0x1>;
722c66ec88fSEmmanuel Vadot		};
723c66ec88fSEmmanuel Vadot		queue2 {
724c66ec88fSEmmanuel Vadot			snps,weight = <0x12>;
725c66ec88fSEmmanuel Vadot			snps,dcb-algorithm;
726c66ec88fSEmmanuel Vadot			snps,priority = <0x2>;
727c66ec88fSEmmanuel Vadot		};
728c66ec88fSEmmanuel Vadot	};
729c66ec88fSEmmanuel Vadot
730c66ec88fSEmmanuel Vadot	eth: ethernet@1101c000 {
731c9ccf3a3SEmmanuel Vadot		compatible = "mediatek,mt2712-gmac", "snps,dwmac-4.20a";
732c66ec88fSEmmanuel Vadot		reg = <0 0x1101c000 0 0x1300>;
733c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 237 IRQ_TYPE_LEVEL_LOW>;
734c66ec88fSEmmanuel Vadot		interrupt-names = "macirq";
735c66ec88fSEmmanuel Vadot		mac-address = [00 55 7b b5 7d f7];
736c66ec88fSEmmanuel Vadot		clock-names = "axi",
737c66ec88fSEmmanuel Vadot			      "apb",
738c66ec88fSEmmanuel Vadot			      "mac_main",
739c9ccf3a3SEmmanuel Vadot			      "ptp_ref",
740c9ccf3a3SEmmanuel Vadot			      "rmii_internal";
741c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_GMAC>,
742c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_GMAC_PCLK>,
743c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_ETHER_125M_SEL>,
744c9ccf3a3SEmmanuel Vadot			 <&topckgen CLK_TOP_ETHER_50M_SEL>,
745c9ccf3a3SEmmanuel Vadot			 <&topckgen CLK_TOP_ETHER_50M_RMII_SEL>;
746c66ec88fSEmmanuel Vadot		assigned-clocks = <&topckgen CLK_TOP_ETHER_125M_SEL>,
747c9ccf3a3SEmmanuel Vadot				  <&topckgen CLK_TOP_ETHER_50M_SEL>,
748c9ccf3a3SEmmanuel Vadot				  <&topckgen CLK_TOP_ETHER_50M_RMII_SEL>;
749c66ec88fSEmmanuel Vadot		assigned-clock-parents = <&topckgen CLK_TOP_ETHERPLL_125M>,
750c9ccf3a3SEmmanuel Vadot					 <&topckgen CLK_TOP_APLL1_D3>,
751c9ccf3a3SEmmanuel Vadot					 <&topckgen CLK_TOP_ETHERPLL_50M>;
752c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_AUDIO>;
753c66ec88fSEmmanuel Vadot		mediatek,pericfg = <&pericfg>;
754c66ec88fSEmmanuel Vadot		snps,axi-config = <&stmmac_axi_setup>;
755c66ec88fSEmmanuel Vadot		snps,mtl-rx-config = <&mtl_rx_setup>;
756c66ec88fSEmmanuel Vadot		snps,mtl-tx-config = <&mtl_tx_setup>;
757c66ec88fSEmmanuel Vadot		snps,txpbl = <1>;
758c66ec88fSEmmanuel Vadot		snps,rxpbl = <1>;
7597ef62cebSEmmanuel Vadot		snps,clk-csr = <0>;
760c66ec88fSEmmanuel Vadot		status = "disabled";
761c66ec88fSEmmanuel Vadot	};
762c66ec88fSEmmanuel Vadot
763c66ec88fSEmmanuel Vadot	mmc0: mmc@11230000 {
764c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mmc";
765c66ec88fSEmmanuel Vadot		reg = <0 0x11230000 0 0x1000>;
766c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
767c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_MSDC30_0>,
768c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC50_0_HCLK_EN>,
769*8bab661aSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC50_0_EN>,
770*8bab661aSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC30_0_QTR_EN>;
771*8bab661aSEmmanuel Vadot		clock-names = "source", "hclk", "source_cg", "bus_clk";
772c66ec88fSEmmanuel Vadot		status = "disabled";
773c66ec88fSEmmanuel Vadot	};
774c66ec88fSEmmanuel Vadot
775c66ec88fSEmmanuel Vadot	mmc1: mmc@11240000 {
776c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mmc";
777c66ec88fSEmmanuel Vadot		reg = <0 0x11240000 0 0x1000>;
778c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
779c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_MSDC30_1>,
780c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_AXI_SEL>,
781c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC30_1_EN>;
782c66ec88fSEmmanuel Vadot		clock-names = "source", "hclk", "source_cg";
783c66ec88fSEmmanuel Vadot		status = "disabled";
784c66ec88fSEmmanuel Vadot	};
785c66ec88fSEmmanuel Vadot
786c66ec88fSEmmanuel Vadot	mmc2: mmc@11250000 {
787c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mmc";
788c66ec88fSEmmanuel Vadot		reg = <0 0x11250000 0 0x1000>;
789c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
790c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_MSDC30_2>,
791c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_AXI_SEL>,
792c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC30_2_EN>;
793c66ec88fSEmmanuel Vadot		clock-names = "source", "hclk", "source_cg";
794c66ec88fSEmmanuel Vadot		status = "disabled";
795c66ec88fSEmmanuel Vadot	};
796c66ec88fSEmmanuel Vadot
797c66ec88fSEmmanuel Vadot	ssusb: usb@11271000 {
798c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mtu3", "mediatek,mtu3";
799c66ec88fSEmmanuel Vadot		reg = <0 0x11271000 0 0x3000>,
800c66ec88fSEmmanuel Vadot		      <0 0x11280700 0 0x0100>;
801c66ec88fSEmmanuel Vadot		reg-names = "mac", "ippc";
802c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_LOW>;
803c66ec88fSEmmanuel Vadot		phys = <&u2port0 PHY_TYPE_USB2>,
804c66ec88fSEmmanuel Vadot		       <&u2port1 PHY_TYPE_USB2>;
805c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_USB>;
806c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_USB30_SEL>;
807c66ec88fSEmmanuel Vadot		clock-names = "sys_ck";
808c66ec88fSEmmanuel Vadot		mediatek,syscon-wakeup = <&pericfg 0x510 2>;
809c66ec88fSEmmanuel Vadot		#address-cells = <2>;
810c66ec88fSEmmanuel Vadot		#size-cells = <2>;
811c66ec88fSEmmanuel Vadot		ranges;
812c66ec88fSEmmanuel Vadot		status = "disabled";
813c66ec88fSEmmanuel Vadot
8142eb4d8dcSEmmanuel Vadot		usb_host0: usb@11270000 {
815c66ec88fSEmmanuel Vadot			compatible = "mediatek,mt2712-xhci",
816c66ec88fSEmmanuel Vadot				     "mediatek,mtk-xhci";
817c66ec88fSEmmanuel Vadot			reg = <0 0x11270000 0 0x1000>;
818c66ec88fSEmmanuel Vadot			reg-names = "mac";
819c66ec88fSEmmanuel Vadot			interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_LOW>;
820c66ec88fSEmmanuel Vadot			power-domains = <&scpsys MT2712_POWER_DOMAIN_USB>;
821c66ec88fSEmmanuel Vadot			clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
822c66ec88fSEmmanuel Vadot			clock-names = "sys_ck", "ref_ck";
823c66ec88fSEmmanuel Vadot			status = "disabled";
824c66ec88fSEmmanuel Vadot		};
825c66ec88fSEmmanuel Vadot	};
826c66ec88fSEmmanuel Vadot
8272eb4d8dcSEmmanuel Vadot	u3phy0: t-phy@11290000 {
828c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-tphy",
829c66ec88fSEmmanuel Vadot			     "mediatek,generic-tphy-v2";
830c66ec88fSEmmanuel Vadot		#address-cells = <1>;
831c66ec88fSEmmanuel Vadot		#size-cells = <1>;
832c66ec88fSEmmanuel Vadot		ranges = <0 0 0x11290000 0x9000>;
833c66ec88fSEmmanuel Vadot		status = "okay";
834c66ec88fSEmmanuel Vadot
835c66ec88fSEmmanuel Vadot		u2port0: usb-phy@0 {
836c66ec88fSEmmanuel Vadot			reg = <0x0 0x700>;
837c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
838c66ec88fSEmmanuel Vadot			clock-names = "ref";
839c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
840c66ec88fSEmmanuel Vadot			status = "okay";
841c66ec88fSEmmanuel Vadot		};
842c66ec88fSEmmanuel Vadot
843c66ec88fSEmmanuel Vadot		u2port1: usb-phy@8000 {
844c66ec88fSEmmanuel Vadot			reg = <0x8000 0x700>;
845c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
846c66ec88fSEmmanuel Vadot			clock-names = "ref";
847c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
848c66ec88fSEmmanuel Vadot			status = "okay";
849c66ec88fSEmmanuel Vadot		};
850c66ec88fSEmmanuel Vadot
851c66ec88fSEmmanuel Vadot		u3port0: usb-phy@8700 {
852c66ec88fSEmmanuel Vadot			reg = <0x8700 0x900>;
853c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
854c66ec88fSEmmanuel Vadot			clock-names = "ref";
855c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
856c66ec88fSEmmanuel Vadot			status = "okay";
857c66ec88fSEmmanuel Vadot		};
858c66ec88fSEmmanuel Vadot	};
859c66ec88fSEmmanuel Vadot
860c66ec88fSEmmanuel Vadot	ssusb1: usb@112c1000 {
861c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mtu3", "mediatek,mtu3";
862c66ec88fSEmmanuel Vadot		reg = <0 0x112c1000 0 0x3000>,
863c66ec88fSEmmanuel Vadot		      <0 0x112d0700 0 0x0100>;
864c66ec88fSEmmanuel Vadot		reg-names = "mac", "ippc";
865c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_LOW>;
866c66ec88fSEmmanuel Vadot		phys = <&u2port2 PHY_TYPE_USB2>,
867c66ec88fSEmmanuel Vadot		       <&u2port3 PHY_TYPE_USB2>,
868c66ec88fSEmmanuel Vadot		       <&u3port1 PHY_TYPE_USB3>;
869c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_USB2>;
870c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_USB30_SEL>;
871c66ec88fSEmmanuel Vadot		clock-names = "sys_ck";
872c66ec88fSEmmanuel Vadot		mediatek,syscon-wakeup = <&pericfg 0x514 2>;
873c66ec88fSEmmanuel Vadot		#address-cells = <2>;
874c66ec88fSEmmanuel Vadot		#size-cells = <2>;
875c66ec88fSEmmanuel Vadot		ranges;
876c66ec88fSEmmanuel Vadot		status = "disabled";
877c66ec88fSEmmanuel Vadot
8782eb4d8dcSEmmanuel Vadot		usb_host1: usb@112c0000 {
879c66ec88fSEmmanuel Vadot			compatible = "mediatek,mt2712-xhci",
880c66ec88fSEmmanuel Vadot				     "mediatek,mtk-xhci";
881c66ec88fSEmmanuel Vadot			reg = <0 0x112c0000 0 0x1000>;
882c66ec88fSEmmanuel Vadot			reg-names = "mac";
883c66ec88fSEmmanuel Vadot			interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_LOW>;
884c66ec88fSEmmanuel Vadot			power-domains = <&scpsys MT2712_POWER_DOMAIN_USB2>;
885c66ec88fSEmmanuel Vadot			clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
886c66ec88fSEmmanuel Vadot			clock-names = "sys_ck", "ref_ck";
887c66ec88fSEmmanuel Vadot			status = "disabled";
888c66ec88fSEmmanuel Vadot		};
889c66ec88fSEmmanuel Vadot	};
890c66ec88fSEmmanuel Vadot
8912eb4d8dcSEmmanuel Vadot	u3phy1: t-phy@112e0000 {
892c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-tphy",
893c66ec88fSEmmanuel Vadot			     "mediatek,generic-tphy-v2";
894c66ec88fSEmmanuel Vadot		#address-cells = <1>;
895c66ec88fSEmmanuel Vadot		#size-cells = <1>;
896c66ec88fSEmmanuel Vadot		ranges = <0 0 0x112e0000 0x9000>;
897c66ec88fSEmmanuel Vadot		status = "okay";
898c66ec88fSEmmanuel Vadot
899c66ec88fSEmmanuel Vadot		u2port2: usb-phy@0 {
900c66ec88fSEmmanuel Vadot			reg = <0x0 0x700>;
901c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
902c66ec88fSEmmanuel Vadot			clock-names = "ref";
903c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
904c66ec88fSEmmanuel Vadot			status = "okay";
905c66ec88fSEmmanuel Vadot		};
906c66ec88fSEmmanuel Vadot
907c66ec88fSEmmanuel Vadot		u2port3: usb-phy@8000 {
908c66ec88fSEmmanuel Vadot			reg = <0x8000 0x700>;
909c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
910c66ec88fSEmmanuel Vadot			clock-names = "ref";
911c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
912c66ec88fSEmmanuel Vadot			status = "okay";
913c66ec88fSEmmanuel Vadot		};
914c66ec88fSEmmanuel Vadot
915c66ec88fSEmmanuel Vadot		u3port1: usb-phy@8700 {
916c66ec88fSEmmanuel Vadot			reg = <0x8700 0x900>;
917c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
918c66ec88fSEmmanuel Vadot			clock-names = "ref";
919c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
920c66ec88fSEmmanuel Vadot			status = "okay";
921c66ec88fSEmmanuel Vadot		};
922c66ec88fSEmmanuel Vadot	};
923c66ec88fSEmmanuel Vadot
9248cc087a1SEmmanuel Vadot	pcie1: pcie@112ff000 {
925c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-pcie";
926c66ec88fSEmmanuel Vadot		device_type = "pci";
9278cc087a1SEmmanuel Vadot		reg = <0 0x112ff000 0 0x1000>;
9288cc087a1SEmmanuel Vadot		reg-names = "port1";
9298cc087a1SEmmanuel Vadot		linux,pci-domain = <1>;
930c66ec88fSEmmanuel Vadot		#address-cells = <3>;
931c66ec88fSEmmanuel Vadot		#size-cells = <2>;
9328cc087a1SEmmanuel Vadot		interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
9338cc087a1SEmmanuel Vadot		interrupt-names = "pcie_irq";
9348cc087a1SEmmanuel Vadot		clocks = <&topckgen CLK_TOP_PE2_MAC_P1_SEL>,
935c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PCIE1>;
9368cc087a1SEmmanuel Vadot		clock-names = "sys_ck1", "ahb_ck1";
9378cc087a1SEmmanuel Vadot		phys = <&u3port1 PHY_TYPE_PCIE>;
9388cc087a1SEmmanuel Vadot		phy-names = "pcie-phy1";
939c66ec88fSEmmanuel Vadot		bus-range = <0x00 0xff>;
9408cc087a1SEmmanuel Vadot		ranges = <0x82000000 0 0x11400000  0x0 0x11400000  0 0x300000>;
941c66ec88fSEmmanuel Vadot		status = "disabled";
942c66ec88fSEmmanuel Vadot
943c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
944c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0 0 0 7>;
945c66ec88fSEmmanuel Vadot		interrupt-map = <0 0 0 1 &pcie_intc1 0>,
946c66ec88fSEmmanuel Vadot				<0 0 0 2 &pcie_intc1 1>,
947c66ec88fSEmmanuel Vadot				<0 0 0 3 &pcie_intc1 2>,
948c66ec88fSEmmanuel Vadot				<0 0 0 4 &pcie_intc1 3>;
949c66ec88fSEmmanuel Vadot		pcie_intc1: interrupt-controller {
950c66ec88fSEmmanuel Vadot			interrupt-controller;
951c66ec88fSEmmanuel Vadot			#address-cells = <0>;
952c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
953c66ec88fSEmmanuel Vadot		};
954c66ec88fSEmmanuel Vadot	};
9558cc087a1SEmmanuel Vadot
9568cc087a1SEmmanuel Vadot	pcie0: pcie@11700000 {
9578cc087a1SEmmanuel Vadot		compatible = "mediatek,mt2712-pcie";
9588cc087a1SEmmanuel Vadot		device_type = "pci";
9598cc087a1SEmmanuel Vadot		reg = <0 0x11700000 0 0x1000>;
9608cc087a1SEmmanuel Vadot		reg-names = "port0";
9618cc087a1SEmmanuel Vadot		linux,pci-domain = <0>;
9628cc087a1SEmmanuel Vadot		#address-cells = <3>;
9638cc087a1SEmmanuel Vadot		#size-cells = <2>;
9648cc087a1SEmmanuel Vadot		interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
9658cc087a1SEmmanuel Vadot		interrupt-names = "pcie_irq";
9668cc087a1SEmmanuel Vadot		clocks = <&topckgen CLK_TOP_PE2_MAC_P0_SEL>,
9678cc087a1SEmmanuel Vadot			 <&pericfg CLK_PERI_PCIE0>;
9688cc087a1SEmmanuel Vadot		clock-names = "sys_ck0", "ahb_ck0";
9698cc087a1SEmmanuel Vadot		phys = <&u3port0 PHY_TYPE_PCIE>;
9708cc087a1SEmmanuel Vadot		phy-names = "pcie-phy0";
9718cc087a1SEmmanuel Vadot		bus-range = <0x00 0xff>;
9728cc087a1SEmmanuel Vadot		ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x10000000>;
9738cc087a1SEmmanuel Vadot		status = "disabled";
9748cc087a1SEmmanuel Vadot
9758cc087a1SEmmanuel Vadot		#interrupt-cells = <1>;
9768cc087a1SEmmanuel Vadot		interrupt-map-mask = <0 0 0 7>;
9778cc087a1SEmmanuel Vadot		interrupt-map = <0 0 0 1 &pcie_intc0 0>,
9788cc087a1SEmmanuel Vadot				<0 0 0 2 &pcie_intc0 1>,
9798cc087a1SEmmanuel Vadot				<0 0 0 3 &pcie_intc0 2>,
9808cc087a1SEmmanuel Vadot				<0 0 0 4 &pcie_intc0 3>;
9818cc087a1SEmmanuel Vadot		pcie_intc0: interrupt-controller {
9828cc087a1SEmmanuel Vadot			interrupt-controller;
9838cc087a1SEmmanuel Vadot			#address-cells = <0>;
9848cc087a1SEmmanuel Vadot			#interrupt-cells = <1>;
9858cc087a1SEmmanuel Vadot		};
986c66ec88fSEmmanuel Vadot	};
987c66ec88fSEmmanuel Vadot
988c66ec88fSEmmanuel Vadot	mfgcfg: syscon@13000000 {
989c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mfgcfg", "syscon";
990c66ec88fSEmmanuel Vadot		reg = <0 0x13000000 0 0x1000>;
991c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
992c66ec88fSEmmanuel Vadot	};
993c66ec88fSEmmanuel Vadot
994c66ec88fSEmmanuel Vadot	mmsys: syscon@14000000 {
995c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mmsys", "syscon";
996c66ec88fSEmmanuel Vadot		reg = <0 0x14000000 0 0x1000>;
997c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
998c66ec88fSEmmanuel Vadot	};
999c66ec88fSEmmanuel Vadot
1000c66ec88fSEmmanuel Vadot	larb0: larb@14021000 {
1001c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1002c66ec88fSEmmanuel Vadot		reg = <0 0x14021000 0 0x1000>;
1003c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1004c66ec88fSEmmanuel Vadot		mediatek,larb-id = <0>;
1005c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1006c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_LARB0>,
1007c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_LARB0>;
1008c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1009c66ec88fSEmmanuel Vadot	};
1010c66ec88fSEmmanuel Vadot
1011c66ec88fSEmmanuel Vadot	smi_common0: smi@14022000 {
1012c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-common";
1013c66ec88fSEmmanuel Vadot		reg = <0 0x14022000 0 0x1000>;
1014c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1015c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_COMMON>,
1016c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_COMMON>;
1017c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1018c66ec88fSEmmanuel Vadot	};
1019c66ec88fSEmmanuel Vadot
1020c66ec88fSEmmanuel Vadot	larb4: larb@14027000 {
1021c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1022c66ec88fSEmmanuel Vadot		reg = <0 0x14027000 0 0x1000>;
1023c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common1>;
1024c66ec88fSEmmanuel Vadot		mediatek,larb-id = <4>;
1025c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1026c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_LARB4>,
1027c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_LARB4>;
1028c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1029c66ec88fSEmmanuel Vadot	};
1030c66ec88fSEmmanuel Vadot
1031c66ec88fSEmmanuel Vadot	larb5: larb@14030000 {
1032c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1033c66ec88fSEmmanuel Vadot		reg = <0 0x14030000 0 0x1000>;
1034c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common1>;
1035c66ec88fSEmmanuel Vadot		mediatek,larb-id = <5>;
1036c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1037c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_LARB5>,
1038c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_LARB5>;
1039c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1040c66ec88fSEmmanuel Vadot	};
1041c66ec88fSEmmanuel Vadot
1042c66ec88fSEmmanuel Vadot	smi_common1: smi@14031000 {
1043c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-common";
1044c66ec88fSEmmanuel Vadot		reg = <0 0x14031000 0 0x1000>;
1045c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1046c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_COMMON1>,
1047c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_COMMON1>;
1048c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1049c66ec88fSEmmanuel Vadot	};
1050c66ec88fSEmmanuel Vadot
1051c66ec88fSEmmanuel Vadot	larb7: larb@14032000 {
1052c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1053c66ec88fSEmmanuel Vadot		reg = <0 0x14032000 0 0x1000>;
1054c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common1>;
1055c66ec88fSEmmanuel Vadot		mediatek,larb-id = <7>;
1056c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1057c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_LARB7>,
1058c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_LARB7>;
1059c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1060c66ec88fSEmmanuel Vadot	};
1061c66ec88fSEmmanuel Vadot
1062c66ec88fSEmmanuel Vadot	imgsys: syscon@15000000 {
1063c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-imgsys", "syscon";
1064c66ec88fSEmmanuel Vadot		reg = <0 0x15000000 0 0x1000>;
1065c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1066c66ec88fSEmmanuel Vadot	};
1067c66ec88fSEmmanuel Vadot
1068c66ec88fSEmmanuel Vadot	larb2: larb@15001000 {
1069c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1070c66ec88fSEmmanuel Vadot		reg = <0 0x15001000 0 0x1000>;
1071c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1072c66ec88fSEmmanuel Vadot		mediatek,larb-id = <2>;
1073c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_ISP>;
1074c66ec88fSEmmanuel Vadot		clocks = <&imgsys CLK_IMG_SMI_LARB2>,
1075c66ec88fSEmmanuel Vadot			 <&imgsys CLK_IMG_SMI_LARB2>;
1076c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1077c66ec88fSEmmanuel Vadot	};
1078c66ec88fSEmmanuel Vadot
1079c66ec88fSEmmanuel Vadot	bdpsys: syscon@15010000 {
1080c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-bdpsys", "syscon";
1081c66ec88fSEmmanuel Vadot		reg = <0 0x15010000 0 0x1000>;
1082c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1083c66ec88fSEmmanuel Vadot	};
1084c66ec88fSEmmanuel Vadot
1085c66ec88fSEmmanuel Vadot	vdecsys: syscon@16000000 {
1086c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-vdecsys", "syscon";
1087c66ec88fSEmmanuel Vadot		reg = <0 0x16000000 0 0x1000>;
1088c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1089c66ec88fSEmmanuel Vadot	};
1090c66ec88fSEmmanuel Vadot
1091c66ec88fSEmmanuel Vadot	larb1: larb@16010000 {
1092c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1093c66ec88fSEmmanuel Vadot		reg = <0 0x16010000 0 0x1000>;
1094c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1095c66ec88fSEmmanuel Vadot		mediatek,larb-id = <1>;
1096c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_VDEC>;
1097c66ec88fSEmmanuel Vadot		clocks = <&vdecsys CLK_VDEC_CKEN>,
1098c66ec88fSEmmanuel Vadot			 <&vdecsys CLK_VDEC_LARB1_CKEN>;
1099c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1100c66ec88fSEmmanuel Vadot	};
1101c66ec88fSEmmanuel Vadot
1102c66ec88fSEmmanuel Vadot	vencsys: syscon@18000000 {
1103c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-vencsys", "syscon";
1104c66ec88fSEmmanuel Vadot		reg = <0 0x18000000 0 0x1000>;
1105c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1106c66ec88fSEmmanuel Vadot	};
1107c66ec88fSEmmanuel Vadot
1108c66ec88fSEmmanuel Vadot	larb3: larb@18001000 {
1109c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1110c66ec88fSEmmanuel Vadot		reg = <0 0x18001000 0 0x1000>;
1111c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1112c66ec88fSEmmanuel Vadot		mediatek,larb-id = <3>;
1113c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_VENC>;
1114c66ec88fSEmmanuel Vadot		clocks = <&vencsys CLK_VENC_SMI_COMMON_CON>,
1115c66ec88fSEmmanuel Vadot			 <&vencsys CLK_VENC_VENC>;
1116c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1117c66ec88fSEmmanuel Vadot	};
1118c66ec88fSEmmanuel Vadot
1119c66ec88fSEmmanuel Vadot	larb6: larb@18002000 {
1120c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1121c66ec88fSEmmanuel Vadot		reg = <0 0x18002000 0 0x1000>;
1122c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1123c66ec88fSEmmanuel Vadot		mediatek,larb-id = <6>;
1124c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_VENC>;
1125c66ec88fSEmmanuel Vadot		clocks = <&vencsys CLK_VENC_SMI_COMMON_CON>,
1126c66ec88fSEmmanuel Vadot			 <&vencsys CLK_VENC_VENC>;
1127c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1128c66ec88fSEmmanuel Vadot	};
1129c66ec88fSEmmanuel Vadot
1130c66ec88fSEmmanuel Vadot	jpgdecsys: syscon@19000000 {
1131c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-jpgdecsys", "syscon";
1132c66ec88fSEmmanuel Vadot		reg = <0 0x19000000 0 0x1000>;
1133c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1134c66ec88fSEmmanuel Vadot	};
1135c66ec88fSEmmanuel Vadot};
1136c66ec88fSEmmanuel Vadot
1137