xref: /freebsd/sys/contrib/device-tree/src/arm64/mediatek/mt2712e.dtsi (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
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
22*d5b0e70fSEmmanuel 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
39*d5b0e70fSEmmanuel 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
163c66ec88fSEmmanuel Vadot	clk26m: oscillator@0 {
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
170c66ec88fSEmmanuel Vadot	clk32k: oscillator@1 {
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
177c66ec88fSEmmanuel Vadot	clkfpc: oscillator@2 {
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
184c66ec88fSEmmanuel Vadot	clkaud_ext_i_0: oscillator@3 {
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
191c66ec88fSEmmanuel Vadot	clkaud_ext_i_1: oscillator@4 {
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
198c66ec88fSEmmanuel Vadot	clkaud_ext_i_2: oscillator@5 {
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
205c66ec88fSEmmanuel Vadot	clki2si0_mck_i: oscillator@6 {
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
212c66ec88fSEmmanuel Vadot	clki2si1_mck_i: oscillator@7 {
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
219c66ec88fSEmmanuel Vadot	clki2si2_mck_i: oscillator@8 {
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
226c66ec88fSEmmanuel Vadot	clktdmin_mclk_i: oscillator@9 {
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
269c66ec88fSEmmanuel Vadot	pio: pinctrl@10005000 {
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";
332*d5b0e70fSEmmanuel Vadot		mediatek,larbs = <&larb0>, <&larb1>, <&larb2>,
333*d5b0e70fSEmmanuel Vadot				 <&larb3>, <&larb6>;
334c66ec88fSEmmanuel Vadot		#iommu-cells = <1>;
335c66ec88fSEmmanuel Vadot	};
336c66ec88fSEmmanuel Vadot
337c66ec88fSEmmanuel Vadot	apmixedsys: syscon@10209000 {
338c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-apmixedsys", "syscon";
339c66ec88fSEmmanuel Vadot		reg = <0 0x10209000 0 0x1000>;
340c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
341c66ec88fSEmmanuel Vadot	};
342c66ec88fSEmmanuel Vadot
343c66ec88fSEmmanuel Vadot	iommu1: iommu@1020a000 {
344c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-m4u";
345c66ec88fSEmmanuel Vadot		reg = <0 0x1020a000 0 0x1000>;
346c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_LOW>;
347c66ec88fSEmmanuel Vadot		clocks = <&infracfg CLK_INFRA_M4U>;
348c66ec88fSEmmanuel Vadot		clock-names = "bclk";
349*d5b0e70fSEmmanuel Vadot		mediatek,larbs = <&larb4>, <&larb5>, <&larb7>;
350c66ec88fSEmmanuel Vadot		#iommu-cells = <1>;
351c66ec88fSEmmanuel Vadot	};
352c66ec88fSEmmanuel Vadot
353c66ec88fSEmmanuel Vadot	mcucfg: syscon@10220000 {
354c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mcucfg", "syscon";
355c66ec88fSEmmanuel Vadot		reg = <0 0x10220000 0 0x1000>;
356c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
357c66ec88fSEmmanuel Vadot	};
358c66ec88fSEmmanuel Vadot
359c66ec88fSEmmanuel Vadot	sysirq: interrupt-controller@10220a80 {
360c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-sysirq",
361c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-sysirq";
362c66ec88fSEmmanuel Vadot		interrupt-controller;
363c66ec88fSEmmanuel Vadot		#interrupt-cells = <3>;
364c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
365c66ec88fSEmmanuel Vadot		reg = <0 0x10220a80 0 0x40>;
366c66ec88fSEmmanuel Vadot	};
367c66ec88fSEmmanuel Vadot
368c66ec88fSEmmanuel Vadot	gic: interrupt-controller@10510000 {
369c66ec88fSEmmanuel Vadot		compatible = "arm,gic-400";
370c66ec88fSEmmanuel Vadot		#interrupt-cells = <3>;
371c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
372c66ec88fSEmmanuel Vadot		interrupt-controller;
373c66ec88fSEmmanuel Vadot		reg = <0 0x10510000 0 0x10000>,
374c66ec88fSEmmanuel Vadot		      <0 0x10520000 0 0x20000>,
375c66ec88fSEmmanuel Vadot		      <0 0x10540000 0 0x20000>,
376c66ec88fSEmmanuel Vadot		      <0 0x10560000 0 0x20000>;
377c66ec88fSEmmanuel Vadot		interrupts = <GIC_PPI 9
378c66ec88fSEmmanuel Vadot			 (GIC_CPU_MASK_RAW(0x13) | IRQ_TYPE_LEVEL_HIGH)>;
379c66ec88fSEmmanuel Vadot	};
380c66ec88fSEmmanuel Vadot
381c66ec88fSEmmanuel Vadot	apdma: dma-controller@11000400 {
382c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart-dma",
383c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart-dma";
384c66ec88fSEmmanuel Vadot		reg = <0 0x11000400 0 0x80>,
385c66ec88fSEmmanuel Vadot		      <0 0x11000480 0 0x80>,
386c66ec88fSEmmanuel Vadot		      <0 0x11000500 0 0x80>,
387c66ec88fSEmmanuel Vadot		      <0 0x11000580 0 0x80>,
388c66ec88fSEmmanuel Vadot		      <0 0x11000600 0 0x80>,
389c66ec88fSEmmanuel Vadot		      <0 0x11000680 0 0x80>,
390c66ec88fSEmmanuel Vadot		      <0 0x11000700 0 0x80>,
391c66ec88fSEmmanuel Vadot		      <0 0x11000780 0 0x80>,
392c66ec88fSEmmanuel Vadot		      <0 0x11000800 0 0x80>,
393c66ec88fSEmmanuel Vadot		      <0 0x11000880 0 0x80>,
394c66ec88fSEmmanuel Vadot		      <0 0x11000900 0 0x80>,
395c66ec88fSEmmanuel Vadot		      <0 0x11000980 0 0x80>;
396c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_LOW>,
397c66ec88fSEmmanuel Vadot			     <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,
398c66ec88fSEmmanuel Vadot			     <GIC_SPI 105 IRQ_TYPE_LEVEL_LOW>,
399c66ec88fSEmmanuel Vadot			     <GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>,
400c66ec88fSEmmanuel Vadot			     <GIC_SPI 107 IRQ_TYPE_LEVEL_LOW>,
401c66ec88fSEmmanuel Vadot			     <GIC_SPI 108 IRQ_TYPE_LEVEL_LOW>,
402c66ec88fSEmmanuel Vadot			     <GIC_SPI 109 IRQ_TYPE_LEVEL_LOW>,
403c66ec88fSEmmanuel Vadot			     <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>,
404c66ec88fSEmmanuel Vadot			     <GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>,
405c66ec88fSEmmanuel Vadot			     <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>,
406c66ec88fSEmmanuel Vadot			     <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
407c66ec88fSEmmanuel Vadot			     <GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
408c66ec88fSEmmanuel Vadot		dma-requests = <12>;
409c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_AP_DMA>;
410c66ec88fSEmmanuel Vadot		clock-names = "apdma";
411c66ec88fSEmmanuel Vadot		#dma-cells = <1>;
412c66ec88fSEmmanuel Vadot	};
413c66ec88fSEmmanuel Vadot
414c66ec88fSEmmanuel Vadot	auxadc: adc@11001000 {
415c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-auxadc";
416c66ec88fSEmmanuel Vadot		reg = <0 0x11001000 0 0x1000>;
417c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_AUXADC>;
418c66ec88fSEmmanuel Vadot		clock-names = "main";
419c66ec88fSEmmanuel Vadot		#io-channel-cells = <1>;
420c66ec88fSEmmanuel Vadot		status = "disabled";
421c66ec88fSEmmanuel Vadot	};
422c66ec88fSEmmanuel Vadot
423c66ec88fSEmmanuel Vadot	uart0: serial@11002000 {
424c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
425c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
426c66ec88fSEmmanuel Vadot		reg = <0 0x11002000 0 0x400>;
427c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
428c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
429c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
430c66ec88fSEmmanuel Vadot		dmas = <&apdma 0
431c66ec88fSEmmanuel Vadot			&apdma 1>;
432c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
433c66ec88fSEmmanuel Vadot		status = "disabled";
434c66ec88fSEmmanuel Vadot	};
435c66ec88fSEmmanuel Vadot
436c66ec88fSEmmanuel Vadot	uart1: serial@11003000 {
437c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
438c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
439c66ec88fSEmmanuel Vadot		reg = <0 0x11003000 0 0x400>;
440c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
441c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
442c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
443c66ec88fSEmmanuel Vadot		dmas = <&apdma 2
444c66ec88fSEmmanuel Vadot			&apdma 3>;
445c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
446c66ec88fSEmmanuel Vadot		status = "disabled";
447c66ec88fSEmmanuel Vadot	};
448c66ec88fSEmmanuel Vadot
449c66ec88fSEmmanuel Vadot	uart2: serial@11004000 {
450c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
451c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
452c66ec88fSEmmanuel Vadot		reg = <0 0x11004000 0 0x400>;
453c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
454c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
455c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
456c66ec88fSEmmanuel Vadot		dmas = <&apdma 4
457c66ec88fSEmmanuel Vadot			&apdma 5>;
458c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
459c66ec88fSEmmanuel Vadot		status = "disabled";
460c66ec88fSEmmanuel Vadot	};
461c66ec88fSEmmanuel Vadot
462c66ec88fSEmmanuel Vadot	uart3: serial@11005000 {
463c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
464c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
465c66ec88fSEmmanuel Vadot		reg = <0 0x11005000 0 0x400>;
466c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
467c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
468c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
469c66ec88fSEmmanuel Vadot		dmas = <&apdma 6
470c66ec88fSEmmanuel Vadot			&apdma 7>;
471c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
472c66ec88fSEmmanuel Vadot		status = "disabled";
473c66ec88fSEmmanuel Vadot	};
474c66ec88fSEmmanuel Vadot
475c66ec88fSEmmanuel Vadot	pwm: pwm@11006000 {
476c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-pwm";
477c66ec88fSEmmanuel Vadot		reg = <0 0x11006000 0 0x1000>;
478c66ec88fSEmmanuel Vadot		#pwm-cells = <2>;
479c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
480c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_PWM_SEL>,
481c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM>,
482c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM0>,
483c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM1>,
484c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM2>,
485c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM3>,
486c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM4>,
487c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM5>,
488c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM6>,
489c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PWM7>;
490c66ec88fSEmmanuel Vadot		clock-names = "top",
491c66ec88fSEmmanuel Vadot			      "main",
492c66ec88fSEmmanuel Vadot			      "pwm1",
493c66ec88fSEmmanuel Vadot			      "pwm2",
494c66ec88fSEmmanuel Vadot			      "pwm3",
495c66ec88fSEmmanuel Vadot			      "pwm4",
496c66ec88fSEmmanuel Vadot			      "pwm5",
497c66ec88fSEmmanuel Vadot			      "pwm6",
498c66ec88fSEmmanuel Vadot			      "pwm7",
499c66ec88fSEmmanuel Vadot			      "pwm8";
500c66ec88fSEmmanuel Vadot		status = "disabled";
501c66ec88fSEmmanuel Vadot	};
502c66ec88fSEmmanuel Vadot
503c66ec88fSEmmanuel Vadot	i2c0: i2c@11007000 {
504c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
505c66ec88fSEmmanuel Vadot		reg = <0 0x11007000 0 0x90>,
506c66ec88fSEmmanuel Vadot		      <0 0x11000180 0 0x80>;
507c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
508c66ec88fSEmmanuel Vadot		clock-div = <4>;
509c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C0>,
510c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
511c66ec88fSEmmanuel Vadot		clock-names = "main",
512c66ec88fSEmmanuel Vadot			      "dma";
513c66ec88fSEmmanuel Vadot		#address-cells = <1>;
514c66ec88fSEmmanuel Vadot		#size-cells = <0>;
515c66ec88fSEmmanuel Vadot		status = "disabled";
516c66ec88fSEmmanuel Vadot	};
517c66ec88fSEmmanuel Vadot
518c66ec88fSEmmanuel Vadot	i2c1: i2c@11008000 {
519c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
520c66ec88fSEmmanuel Vadot		reg = <0 0x11008000 0 0x90>,
521c66ec88fSEmmanuel Vadot		      <0 0x11000200 0 0x80>;
522c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
523c66ec88fSEmmanuel Vadot		clock-div = <4>;
524c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C1>,
525c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
526c66ec88fSEmmanuel Vadot		clock-names = "main",
527c66ec88fSEmmanuel Vadot			      "dma";
528c66ec88fSEmmanuel Vadot		#address-cells = <1>;
529c66ec88fSEmmanuel Vadot		#size-cells = <0>;
530c66ec88fSEmmanuel Vadot		status = "disabled";
531c66ec88fSEmmanuel Vadot	};
532c66ec88fSEmmanuel Vadot
533c66ec88fSEmmanuel Vadot	i2c2: i2c@11009000 {
534c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
535c66ec88fSEmmanuel Vadot		reg = <0 0x11009000 0 0x90>,
536c66ec88fSEmmanuel Vadot		      <0 0x11000280 0 0x80>;
537c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
538c66ec88fSEmmanuel Vadot		clock-div = <4>;
539c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C2>,
540c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
541c66ec88fSEmmanuel Vadot		clock-names = "main",
542c66ec88fSEmmanuel Vadot			      "dma";
543c66ec88fSEmmanuel Vadot		#address-cells = <1>;
544c66ec88fSEmmanuel Vadot		#size-cells = <0>;
545c66ec88fSEmmanuel Vadot		status = "disabled";
546c66ec88fSEmmanuel Vadot	};
547c66ec88fSEmmanuel Vadot
548c66ec88fSEmmanuel Vadot	spi0: spi@1100a000 {
549c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
550c66ec88fSEmmanuel Vadot		#address-cells = <1>;
551c66ec88fSEmmanuel Vadot		#size-cells = <0>;
552c66ec88fSEmmanuel Vadot		reg = <0 0x1100a000 0 0x100>;
553c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>;
554c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
555c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
556c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_SPI0>;
557c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
558c66ec88fSEmmanuel Vadot		status = "disabled";
559c66ec88fSEmmanuel Vadot	};
560c66ec88fSEmmanuel Vadot
561c66ec88fSEmmanuel Vadot	nandc: nfi@1100e000 {
562c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-nfc";
563c66ec88fSEmmanuel Vadot		reg = <0 0x1100e000 0 0x1000>;
564c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
565c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_NFI2X_EN>, <&pericfg CLK_PERI_NFI>;
566c66ec88fSEmmanuel Vadot		clock-names = "nfi_clk", "pad_clk";
567c66ec88fSEmmanuel Vadot		ecc-engine = <&bch>;
568c66ec88fSEmmanuel Vadot		#address-cells = <1>;
569c66ec88fSEmmanuel Vadot		#size-cells = <0>;
570c66ec88fSEmmanuel Vadot		status = "disabled";
571c66ec88fSEmmanuel Vadot	};
572c66ec88fSEmmanuel Vadot
573c66ec88fSEmmanuel Vadot	bch: ecc@1100f000 {
574c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-ecc";
575c66ec88fSEmmanuel Vadot		reg = <0 0x1100f000 0 0x1000>;
576c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
577c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_NFI1X_CK_EN>;
578c66ec88fSEmmanuel Vadot		clock-names = "nfiecc_clk";
579c66ec88fSEmmanuel Vadot		status = "disabled";
580c66ec88fSEmmanuel Vadot	};
581c66ec88fSEmmanuel Vadot
582c66ec88fSEmmanuel Vadot	i2c3: i2c@11010000 {
583c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
584c66ec88fSEmmanuel Vadot		reg = <0 0x11010000 0 0x90>,
585c66ec88fSEmmanuel Vadot		      <0 0x11000300 0 0x80>;
586c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>;
587c66ec88fSEmmanuel Vadot		clock-div = <4>;
588c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C3>,
589c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
590c66ec88fSEmmanuel Vadot		clock-names = "main",
591c66ec88fSEmmanuel Vadot			      "dma";
592c66ec88fSEmmanuel Vadot		#address-cells = <1>;
593c66ec88fSEmmanuel Vadot		#size-cells = <0>;
594c66ec88fSEmmanuel Vadot		status = "disabled";
595c66ec88fSEmmanuel Vadot	};
596c66ec88fSEmmanuel Vadot
597c66ec88fSEmmanuel Vadot	i2c4: i2c@11011000 {
598c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
599c66ec88fSEmmanuel Vadot		reg = <0 0x11011000 0 0x90>,
600c66ec88fSEmmanuel Vadot		      <0 0x11000380 0 0x80>;
601c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
602c66ec88fSEmmanuel Vadot		clock-div = <4>;
603c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C4>,
604c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
605c66ec88fSEmmanuel Vadot		clock-names = "main",
606c66ec88fSEmmanuel Vadot			      "dma";
607c66ec88fSEmmanuel Vadot		#address-cells = <1>;
608c66ec88fSEmmanuel Vadot		#size-cells = <0>;
609c66ec88fSEmmanuel Vadot		status = "disabled";
610c66ec88fSEmmanuel Vadot	};
611c66ec88fSEmmanuel Vadot
612c66ec88fSEmmanuel Vadot	i2c5: i2c@11013000 {
613c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-i2c";
614c66ec88fSEmmanuel Vadot		reg = <0 0x11013000 0 0x90>,
615c66ec88fSEmmanuel Vadot		      <0 0x11000100 0 0x80>;
616c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
617c66ec88fSEmmanuel Vadot		clock-div = <4>;
618c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_I2C5>,
619c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_AP_DMA>;
620c66ec88fSEmmanuel Vadot		clock-names = "main",
621c66ec88fSEmmanuel Vadot			      "dma";
622c66ec88fSEmmanuel Vadot		#address-cells = <1>;
623c66ec88fSEmmanuel Vadot		#size-cells = <0>;
624c66ec88fSEmmanuel Vadot		status = "disabled";
625c66ec88fSEmmanuel Vadot	};
626c66ec88fSEmmanuel Vadot
627c66ec88fSEmmanuel Vadot	spi2: spi@11015000 {
628c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
629c66ec88fSEmmanuel Vadot		#address-cells = <1>;
630c66ec88fSEmmanuel Vadot		#size-cells = <0>;
631c66ec88fSEmmanuel Vadot		reg = <0 0x11015000 0 0x100>;
632c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 284 IRQ_TYPE_LEVEL_LOW>;
633c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
634c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
635c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_SPI2>;
636c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
637c66ec88fSEmmanuel Vadot		status = "disabled";
638c66ec88fSEmmanuel Vadot	};
639c66ec88fSEmmanuel Vadot
640c66ec88fSEmmanuel Vadot	spi3: spi@11016000 {
641c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
642c66ec88fSEmmanuel Vadot		#address-cells = <1>;
643c66ec88fSEmmanuel Vadot		#size-cells = <0>;
644c66ec88fSEmmanuel Vadot		reg = <0 0x11016000 0 0x100>;
645c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 285 IRQ_TYPE_LEVEL_LOW>;
646c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
647c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
648c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_SPI3>;
649c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
650c66ec88fSEmmanuel Vadot		status = "disabled";
651c66ec88fSEmmanuel Vadot	};
652c66ec88fSEmmanuel Vadot
653c66ec88fSEmmanuel Vadot	spi4: spi@10012000 {
654c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
655c66ec88fSEmmanuel Vadot		#address-cells = <1>;
656c66ec88fSEmmanuel Vadot		#size-cells = <0>;
657c66ec88fSEmmanuel Vadot		reg = <0 0x10012000 0 0x100>;
658c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_LOW>;
659c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
660c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
661c66ec88fSEmmanuel Vadot			 <&infracfg CLK_INFRA_AO_SPI0>;
662c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
663c66ec88fSEmmanuel Vadot		status = "disabled";
664c66ec88fSEmmanuel Vadot	};
665c66ec88fSEmmanuel Vadot
666c66ec88fSEmmanuel Vadot	spi5: spi@11018000 {
667c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-spi";
668c66ec88fSEmmanuel Vadot		#address-cells = <1>;
669c66ec88fSEmmanuel Vadot		#size-cells = <0>;
670c66ec88fSEmmanuel Vadot		reg = <0 0x11018000 0 0x100>;
671c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_LOW>;
672c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_UNIVPLL2_D4>,
673c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_SPI_SEL>,
674c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_SPI5>;
675c66ec88fSEmmanuel Vadot		clock-names = "parent-clk", "sel-clk", "spi-clk";
676c66ec88fSEmmanuel Vadot		status = "disabled";
677c66ec88fSEmmanuel Vadot	};
678c66ec88fSEmmanuel Vadot
679c66ec88fSEmmanuel Vadot	uart4: serial@11019000 {
680c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-uart",
681c66ec88fSEmmanuel Vadot			     "mediatek,mt6577-uart";
682c66ec88fSEmmanuel Vadot		reg = <0 0x11019000 0 0x400>;
683c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_LOW>;
684c66ec88fSEmmanuel Vadot		clocks = <&baud_clk>, <&sys_clk>;
685c66ec88fSEmmanuel Vadot		clock-names = "baud", "bus";
686c66ec88fSEmmanuel Vadot		dmas = <&apdma 8
687c66ec88fSEmmanuel Vadot			&apdma 9>;
688c66ec88fSEmmanuel Vadot		dma-names = "tx", "rx";
689c66ec88fSEmmanuel Vadot		status = "disabled";
690c66ec88fSEmmanuel Vadot	};
691c66ec88fSEmmanuel Vadot
692c66ec88fSEmmanuel Vadot	stmmac_axi_setup: stmmac-axi-config {
693c66ec88fSEmmanuel Vadot		snps,wr_osr_lmt = <0x7>;
694c66ec88fSEmmanuel Vadot		snps,rd_osr_lmt = <0x7>;
695c66ec88fSEmmanuel Vadot		snps,blen = <0 0 0 0 16 8 4>;
696c66ec88fSEmmanuel Vadot	};
697c66ec88fSEmmanuel Vadot
698c66ec88fSEmmanuel Vadot	mtl_rx_setup: rx-queues-config {
699c66ec88fSEmmanuel Vadot		snps,rx-queues-to-use = <1>;
700c66ec88fSEmmanuel Vadot		snps,rx-sched-sp;
701c66ec88fSEmmanuel Vadot		queue0 {
702c66ec88fSEmmanuel Vadot			snps,dcb-algorithm;
703c66ec88fSEmmanuel Vadot			snps,map-to-dma-channel = <0x0>;
704c66ec88fSEmmanuel Vadot			snps,priority = <0x0>;
705c66ec88fSEmmanuel Vadot		};
706c66ec88fSEmmanuel Vadot	};
707c66ec88fSEmmanuel Vadot
708c66ec88fSEmmanuel Vadot	mtl_tx_setup: tx-queues-config {
709c66ec88fSEmmanuel Vadot		snps,tx-queues-to-use = <3>;
710c66ec88fSEmmanuel Vadot		snps,tx-sched-wrr;
711c66ec88fSEmmanuel Vadot		queue0 {
712c66ec88fSEmmanuel Vadot			snps,weight = <0x10>;
713c66ec88fSEmmanuel Vadot			snps,dcb-algorithm;
714c66ec88fSEmmanuel Vadot			snps,priority = <0x0>;
715c66ec88fSEmmanuel Vadot		};
716c66ec88fSEmmanuel Vadot		queue1 {
717c66ec88fSEmmanuel Vadot			snps,weight = <0x11>;
718c66ec88fSEmmanuel Vadot			snps,dcb-algorithm;
719c66ec88fSEmmanuel Vadot			snps,priority = <0x1>;
720c66ec88fSEmmanuel Vadot		};
721c66ec88fSEmmanuel Vadot		queue2 {
722c66ec88fSEmmanuel Vadot			snps,weight = <0x12>;
723c66ec88fSEmmanuel Vadot			snps,dcb-algorithm;
724c66ec88fSEmmanuel Vadot			snps,priority = <0x2>;
725c66ec88fSEmmanuel Vadot		};
726c66ec88fSEmmanuel Vadot	};
727c66ec88fSEmmanuel Vadot
728c66ec88fSEmmanuel Vadot	eth: ethernet@1101c000 {
729c9ccf3a3SEmmanuel Vadot		compatible = "mediatek,mt2712-gmac", "snps,dwmac-4.20a";
730c66ec88fSEmmanuel Vadot		reg = <0 0x1101c000 0 0x1300>;
731c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 237 IRQ_TYPE_LEVEL_LOW>;
732c66ec88fSEmmanuel Vadot		interrupt-names = "macirq";
733c66ec88fSEmmanuel Vadot		mac-address = [00 55 7b b5 7d f7];
734c66ec88fSEmmanuel Vadot		clock-names = "axi",
735c66ec88fSEmmanuel Vadot			      "apb",
736c66ec88fSEmmanuel Vadot			      "mac_main",
737c9ccf3a3SEmmanuel Vadot			      "ptp_ref",
738c9ccf3a3SEmmanuel Vadot			      "rmii_internal";
739c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_GMAC>,
740c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_GMAC_PCLK>,
741c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_ETHER_125M_SEL>,
742c9ccf3a3SEmmanuel Vadot			 <&topckgen CLK_TOP_ETHER_50M_SEL>,
743c9ccf3a3SEmmanuel Vadot			 <&topckgen CLK_TOP_ETHER_50M_RMII_SEL>;
744c66ec88fSEmmanuel Vadot		assigned-clocks = <&topckgen CLK_TOP_ETHER_125M_SEL>,
745c9ccf3a3SEmmanuel Vadot				  <&topckgen CLK_TOP_ETHER_50M_SEL>,
746c9ccf3a3SEmmanuel Vadot				  <&topckgen CLK_TOP_ETHER_50M_RMII_SEL>;
747c66ec88fSEmmanuel Vadot		assigned-clock-parents = <&topckgen CLK_TOP_ETHERPLL_125M>,
748c9ccf3a3SEmmanuel Vadot					 <&topckgen CLK_TOP_APLL1_D3>,
749c9ccf3a3SEmmanuel Vadot					 <&topckgen CLK_TOP_ETHERPLL_50M>;
750c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_AUDIO>;
751c66ec88fSEmmanuel Vadot		mediatek,pericfg = <&pericfg>;
752c66ec88fSEmmanuel Vadot		snps,axi-config = <&stmmac_axi_setup>;
753c66ec88fSEmmanuel Vadot		snps,mtl-rx-config = <&mtl_rx_setup>;
754c66ec88fSEmmanuel Vadot		snps,mtl-tx-config = <&mtl_tx_setup>;
755c66ec88fSEmmanuel Vadot		snps,txpbl = <1>;
756c66ec88fSEmmanuel Vadot		snps,rxpbl = <1>;
757c66ec88fSEmmanuel Vadot		clk_csr = <0>;
758c66ec88fSEmmanuel Vadot		status = "disabled";
759c66ec88fSEmmanuel Vadot	};
760c66ec88fSEmmanuel Vadot
761c66ec88fSEmmanuel Vadot	mmc0: mmc@11230000 {
762c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mmc";
763c66ec88fSEmmanuel Vadot		reg = <0 0x11230000 0 0x1000>;
764c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
765c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_MSDC30_0>,
766c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC50_0_HCLK_EN>,
767c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC30_0_QTR_EN>,
768c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC50_0_EN>;
769c66ec88fSEmmanuel Vadot		clock-names = "source", "hclk", "bus_clk", "source_cg";
770c66ec88fSEmmanuel Vadot		status = "disabled";
771c66ec88fSEmmanuel Vadot	};
772c66ec88fSEmmanuel Vadot
773c66ec88fSEmmanuel Vadot	mmc1: mmc@11240000 {
774c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mmc";
775c66ec88fSEmmanuel Vadot		reg = <0 0x11240000 0 0x1000>;
776c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
777c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_MSDC30_1>,
778c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_AXI_SEL>,
779c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC30_1_EN>;
780c66ec88fSEmmanuel Vadot		clock-names = "source", "hclk", "source_cg";
781c66ec88fSEmmanuel Vadot		status = "disabled";
782c66ec88fSEmmanuel Vadot	};
783c66ec88fSEmmanuel Vadot
784c66ec88fSEmmanuel Vadot	mmc2: mmc@11250000 {
785c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mmc";
786c66ec88fSEmmanuel Vadot		reg = <0 0x11250000 0 0x1000>;
787c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
788c66ec88fSEmmanuel Vadot		clocks = <&pericfg CLK_PERI_MSDC30_2>,
789c66ec88fSEmmanuel Vadot			 <&topckgen CLK_TOP_AXI_SEL>,
790c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_MSDC30_2_EN>;
791c66ec88fSEmmanuel Vadot		clock-names = "source", "hclk", "source_cg";
792c66ec88fSEmmanuel Vadot		status = "disabled";
793c66ec88fSEmmanuel Vadot	};
794c66ec88fSEmmanuel Vadot
795c66ec88fSEmmanuel Vadot	ssusb: usb@11271000 {
796c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mtu3", "mediatek,mtu3";
797c66ec88fSEmmanuel Vadot		reg = <0 0x11271000 0 0x3000>,
798c66ec88fSEmmanuel Vadot		      <0 0x11280700 0 0x0100>;
799c66ec88fSEmmanuel Vadot		reg-names = "mac", "ippc";
800c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_LOW>;
801c66ec88fSEmmanuel Vadot		phys = <&u2port0 PHY_TYPE_USB2>,
802c66ec88fSEmmanuel Vadot		       <&u2port1 PHY_TYPE_USB2>;
803c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_USB>;
804c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_USB30_SEL>;
805c66ec88fSEmmanuel Vadot		clock-names = "sys_ck";
806c66ec88fSEmmanuel Vadot		mediatek,syscon-wakeup = <&pericfg 0x510 2>;
807c66ec88fSEmmanuel Vadot		#address-cells = <2>;
808c66ec88fSEmmanuel Vadot		#size-cells = <2>;
809c66ec88fSEmmanuel Vadot		ranges;
810c66ec88fSEmmanuel Vadot		status = "disabled";
811c66ec88fSEmmanuel Vadot
8122eb4d8dcSEmmanuel Vadot		usb_host0: usb@11270000 {
813c66ec88fSEmmanuel Vadot			compatible = "mediatek,mt2712-xhci",
814c66ec88fSEmmanuel Vadot				     "mediatek,mtk-xhci";
815c66ec88fSEmmanuel Vadot			reg = <0 0x11270000 0 0x1000>;
816c66ec88fSEmmanuel Vadot			reg-names = "mac";
817c66ec88fSEmmanuel Vadot			interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_LOW>;
818c66ec88fSEmmanuel Vadot			power-domains = <&scpsys MT2712_POWER_DOMAIN_USB>;
819c66ec88fSEmmanuel Vadot			clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
820c66ec88fSEmmanuel Vadot			clock-names = "sys_ck", "ref_ck";
821c66ec88fSEmmanuel Vadot			status = "disabled";
822c66ec88fSEmmanuel Vadot		};
823c66ec88fSEmmanuel Vadot	};
824c66ec88fSEmmanuel Vadot
8252eb4d8dcSEmmanuel Vadot	u3phy0: t-phy@11290000 {
826c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-tphy",
827c66ec88fSEmmanuel Vadot			     "mediatek,generic-tphy-v2";
828c66ec88fSEmmanuel Vadot		#address-cells = <1>;
829c66ec88fSEmmanuel Vadot		#size-cells = <1>;
830c66ec88fSEmmanuel Vadot		ranges = <0 0 0x11290000 0x9000>;
831c66ec88fSEmmanuel Vadot		status = "okay";
832c66ec88fSEmmanuel Vadot
833c66ec88fSEmmanuel Vadot		u2port0: usb-phy@0 {
834c66ec88fSEmmanuel Vadot			reg = <0x0 0x700>;
835c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
836c66ec88fSEmmanuel Vadot			clock-names = "ref";
837c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
838c66ec88fSEmmanuel Vadot			status = "okay";
839c66ec88fSEmmanuel Vadot		};
840c66ec88fSEmmanuel Vadot
841c66ec88fSEmmanuel Vadot		u2port1: usb-phy@8000 {
842c66ec88fSEmmanuel Vadot			reg = <0x8000 0x700>;
843c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
844c66ec88fSEmmanuel Vadot			clock-names = "ref";
845c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
846c66ec88fSEmmanuel Vadot			status = "okay";
847c66ec88fSEmmanuel Vadot		};
848c66ec88fSEmmanuel Vadot
849c66ec88fSEmmanuel Vadot		u3port0: usb-phy@8700 {
850c66ec88fSEmmanuel Vadot			reg = <0x8700 0x900>;
851c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
852c66ec88fSEmmanuel Vadot			clock-names = "ref";
853c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
854c66ec88fSEmmanuel Vadot			status = "okay";
855c66ec88fSEmmanuel Vadot		};
856c66ec88fSEmmanuel Vadot	};
857c66ec88fSEmmanuel Vadot
858c66ec88fSEmmanuel Vadot	ssusb1: usb@112c1000 {
859c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mtu3", "mediatek,mtu3";
860c66ec88fSEmmanuel Vadot		reg = <0 0x112c1000 0 0x3000>,
861c66ec88fSEmmanuel Vadot		      <0 0x112d0700 0 0x0100>;
862c66ec88fSEmmanuel Vadot		reg-names = "mac", "ippc";
863c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_LOW>;
864c66ec88fSEmmanuel Vadot		phys = <&u2port2 PHY_TYPE_USB2>,
865c66ec88fSEmmanuel Vadot		       <&u2port3 PHY_TYPE_USB2>,
866c66ec88fSEmmanuel Vadot		       <&u3port1 PHY_TYPE_USB3>;
867c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_USB2>;
868c66ec88fSEmmanuel Vadot		clocks = <&topckgen CLK_TOP_USB30_SEL>;
869c66ec88fSEmmanuel Vadot		clock-names = "sys_ck";
870c66ec88fSEmmanuel Vadot		mediatek,syscon-wakeup = <&pericfg 0x514 2>;
871c66ec88fSEmmanuel Vadot		#address-cells = <2>;
872c66ec88fSEmmanuel Vadot		#size-cells = <2>;
873c66ec88fSEmmanuel Vadot		ranges;
874c66ec88fSEmmanuel Vadot		status = "disabled";
875c66ec88fSEmmanuel Vadot
8762eb4d8dcSEmmanuel Vadot		usb_host1: usb@112c0000 {
877c66ec88fSEmmanuel Vadot			compatible = "mediatek,mt2712-xhci",
878c66ec88fSEmmanuel Vadot				     "mediatek,mtk-xhci";
879c66ec88fSEmmanuel Vadot			reg = <0 0x112c0000 0 0x1000>;
880c66ec88fSEmmanuel Vadot			reg-names = "mac";
881c66ec88fSEmmanuel Vadot			interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_LOW>;
882c66ec88fSEmmanuel Vadot			power-domains = <&scpsys MT2712_POWER_DOMAIN_USB2>;
883c66ec88fSEmmanuel Vadot			clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
884c66ec88fSEmmanuel Vadot			clock-names = "sys_ck", "ref_ck";
885c66ec88fSEmmanuel Vadot			status = "disabled";
886c66ec88fSEmmanuel Vadot		};
887c66ec88fSEmmanuel Vadot	};
888c66ec88fSEmmanuel Vadot
8892eb4d8dcSEmmanuel Vadot	u3phy1: t-phy@112e0000 {
890c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-tphy",
891c66ec88fSEmmanuel Vadot			     "mediatek,generic-tphy-v2";
892c66ec88fSEmmanuel Vadot		#address-cells = <1>;
893c66ec88fSEmmanuel Vadot		#size-cells = <1>;
894c66ec88fSEmmanuel Vadot		ranges = <0 0 0x112e0000 0x9000>;
895c66ec88fSEmmanuel Vadot		status = "okay";
896c66ec88fSEmmanuel Vadot
897c66ec88fSEmmanuel Vadot		u2port2: usb-phy@0 {
898c66ec88fSEmmanuel Vadot			reg = <0x0 0x700>;
899c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
900c66ec88fSEmmanuel Vadot			clock-names = "ref";
901c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
902c66ec88fSEmmanuel Vadot			status = "okay";
903c66ec88fSEmmanuel Vadot		};
904c66ec88fSEmmanuel Vadot
905c66ec88fSEmmanuel Vadot		u2port3: usb-phy@8000 {
906c66ec88fSEmmanuel Vadot			reg = <0x8000 0x700>;
907c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
908c66ec88fSEmmanuel Vadot			clock-names = "ref";
909c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
910c66ec88fSEmmanuel Vadot			status = "okay";
911c66ec88fSEmmanuel Vadot		};
912c66ec88fSEmmanuel Vadot
913c66ec88fSEmmanuel Vadot		u3port1: usb-phy@8700 {
914c66ec88fSEmmanuel Vadot			reg = <0x8700 0x900>;
915c66ec88fSEmmanuel Vadot			clocks = <&clk26m>;
916c66ec88fSEmmanuel Vadot			clock-names = "ref";
917c66ec88fSEmmanuel Vadot			#phy-cells = <1>;
918c66ec88fSEmmanuel Vadot			status = "okay";
919c66ec88fSEmmanuel Vadot		};
920c66ec88fSEmmanuel Vadot	};
921c66ec88fSEmmanuel Vadot
9228cc087a1SEmmanuel Vadot	pcie1: pcie@112ff000 {
923c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-pcie";
924c66ec88fSEmmanuel Vadot		device_type = "pci";
9258cc087a1SEmmanuel Vadot		reg = <0 0x112ff000 0 0x1000>;
9268cc087a1SEmmanuel Vadot		reg-names = "port1";
9278cc087a1SEmmanuel Vadot		linux,pci-domain = <1>;
928c66ec88fSEmmanuel Vadot		#address-cells = <3>;
929c66ec88fSEmmanuel Vadot		#size-cells = <2>;
9308cc087a1SEmmanuel Vadot		interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
9318cc087a1SEmmanuel Vadot		interrupt-names = "pcie_irq";
9328cc087a1SEmmanuel Vadot		clocks = <&topckgen CLK_TOP_PE2_MAC_P1_SEL>,
933c66ec88fSEmmanuel Vadot			 <&pericfg CLK_PERI_PCIE1>;
9348cc087a1SEmmanuel Vadot		clock-names = "sys_ck1", "ahb_ck1";
9358cc087a1SEmmanuel Vadot		phys = <&u3port1 PHY_TYPE_PCIE>;
9368cc087a1SEmmanuel Vadot		phy-names = "pcie-phy1";
937c66ec88fSEmmanuel Vadot		bus-range = <0x00 0xff>;
9388cc087a1SEmmanuel Vadot		ranges = <0x82000000 0 0x11400000  0x0 0x11400000  0 0x300000>;
939c66ec88fSEmmanuel Vadot		status = "disabled";
940c66ec88fSEmmanuel Vadot
941c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
942c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0 0 0 7>;
943c66ec88fSEmmanuel Vadot		interrupt-map = <0 0 0 1 &pcie_intc1 0>,
944c66ec88fSEmmanuel Vadot				<0 0 0 2 &pcie_intc1 1>,
945c66ec88fSEmmanuel Vadot				<0 0 0 3 &pcie_intc1 2>,
946c66ec88fSEmmanuel Vadot				<0 0 0 4 &pcie_intc1 3>;
947c66ec88fSEmmanuel Vadot		pcie_intc1: interrupt-controller {
948c66ec88fSEmmanuel Vadot			interrupt-controller;
949c66ec88fSEmmanuel Vadot			#address-cells = <0>;
950c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
951c66ec88fSEmmanuel Vadot		};
952c66ec88fSEmmanuel Vadot	};
9538cc087a1SEmmanuel Vadot
9548cc087a1SEmmanuel Vadot	pcie0: pcie@11700000 {
9558cc087a1SEmmanuel Vadot		compatible = "mediatek,mt2712-pcie";
9568cc087a1SEmmanuel Vadot		device_type = "pci";
9578cc087a1SEmmanuel Vadot		reg = <0 0x11700000 0 0x1000>;
9588cc087a1SEmmanuel Vadot		reg-names = "port0";
9598cc087a1SEmmanuel Vadot		linux,pci-domain = <0>;
9608cc087a1SEmmanuel Vadot		#address-cells = <3>;
9618cc087a1SEmmanuel Vadot		#size-cells = <2>;
9628cc087a1SEmmanuel Vadot		interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
9638cc087a1SEmmanuel Vadot		interrupt-names = "pcie_irq";
9648cc087a1SEmmanuel Vadot		clocks = <&topckgen CLK_TOP_PE2_MAC_P0_SEL>,
9658cc087a1SEmmanuel Vadot			 <&pericfg CLK_PERI_PCIE0>;
9668cc087a1SEmmanuel Vadot		clock-names = "sys_ck0", "ahb_ck0";
9678cc087a1SEmmanuel Vadot		phys = <&u3port0 PHY_TYPE_PCIE>;
9688cc087a1SEmmanuel Vadot		phy-names = "pcie-phy0";
9698cc087a1SEmmanuel Vadot		bus-range = <0x00 0xff>;
9708cc087a1SEmmanuel Vadot		ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x10000000>;
9718cc087a1SEmmanuel Vadot		status = "disabled";
9728cc087a1SEmmanuel Vadot
9738cc087a1SEmmanuel Vadot		#interrupt-cells = <1>;
9748cc087a1SEmmanuel Vadot		interrupt-map-mask = <0 0 0 7>;
9758cc087a1SEmmanuel Vadot		interrupt-map = <0 0 0 1 &pcie_intc0 0>,
9768cc087a1SEmmanuel Vadot				<0 0 0 2 &pcie_intc0 1>,
9778cc087a1SEmmanuel Vadot				<0 0 0 3 &pcie_intc0 2>,
9788cc087a1SEmmanuel Vadot				<0 0 0 4 &pcie_intc0 3>;
9798cc087a1SEmmanuel Vadot		pcie_intc0: interrupt-controller {
9808cc087a1SEmmanuel Vadot			interrupt-controller;
9818cc087a1SEmmanuel Vadot			#address-cells = <0>;
9828cc087a1SEmmanuel Vadot			#interrupt-cells = <1>;
9838cc087a1SEmmanuel Vadot		};
984c66ec88fSEmmanuel Vadot	};
985c66ec88fSEmmanuel Vadot
986c66ec88fSEmmanuel Vadot	mfgcfg: syscon@13000000 {
987c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mfgcfg", "syscon";
988c66ec88fSEmmanuel Vadot		reg = <0 0x13000000 0 0x1000>;
989c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
990c66ec88fSEmmanuel Vadot	};
991c66ec88fSEmmanuel Vadot
992c66ec88fSEmmanuel Vadot	mmsys: syscon@14000000 {
993c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-mmsys", "syscon";
994c66ec88fSEmmanuel Vadot		reg = <0 0x14000000 0 0x1000>;
995c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
996c66ec88fSEmmanuel Vadot	};
997c66ec88fSEmmanuel Vadot
998c66ec88fSEmmanuel Vadot	larb0: larb@14021000 {
999c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1000c66ec88fSEmmanuel Vadot		reg = <0 0x14021000 0 0x1000>;
1001c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1002c66ec88fSEmmanuel Vadot		mediatek,larb-id = <0>;
1003c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1004c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_LARB0>,
1005c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_LARB0>;
1006c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1007c66ec88fSEmmanuel Vadot	};
1008c66ec88fSEmmanuel Vadot
1009c66ec88fSEmmanuel Vadot	smi_common0: smi@14022000 {
1010c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-common";
1011c66ec88fSEmmanuel Vadot		reg = <0 0x14022000 0 0x1000>;
1012c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1013c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_COMMON>,
1014c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_COMMON>;
1015c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1016c66ec88fSEmmanuel Vadot	};
1017c66ec88fSEmmanuel Vadot
1018c66ec88fSEmmanuel Vadot	larb4: larb@14027000 {
1019c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1020c66ec88fSEmmanuel Vadot		reg = <0 0x14027000 0 0x1000>;
1021c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common1>;
1022c66ec88fSEmmanuel Vadot		mediatek,larb-id = <4>;
1023c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1024c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_LARB4>,
1025c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_LARB4>;
1026c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1027c66ec88fSEmmanuel Vadot	};
1028c66ec88fSEmmanuel Vadot
1029c66ec88fSEmmanuel Vadot	larb5: larb@14030000 {
1030c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1031c66ec88fSEmmanuel Vadot		reg = <0 0x14030000 0 0x1000>;
1032c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common1>;
1033c66ec88fSEmmanuel Vadot		mediatek,larb-id = <5>;
1034c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1035c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_LARB5>,
1036c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_LARB5>;
1037c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1038c66ec88fSEmmanuel Vadot	};
1039c66ec88fSEmmanuel Vadot
1040c66ec88fSEmmanuel Vadot	smi_common1: smi@14031000 {
1041c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-common";
1042c66ec88fSEmmanuel Vadot		reg = <0 0x14031000 0 0x1000>;
1043c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1044c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_COMMON1>,
1045c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_COMMON1>;
1046c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1047c66ec88fSEmmanuel Vadot	};
1048c66ec88fSEmmanuel Vadot
1049c66ec88fSEmmanuel Vadot	larb7: larb@14032000 {
1050c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1051c66ec88fSEmmanuel Vadot		reg = <0 0x14032000 0 0x1000>;
1052c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common1>;
1053c66ec88fSEmmanuel Vadot		mediatek,larb-id = <7>;
1054c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_MM>;
1055c66ec88fSEmmanuel Vadot		clocks = <&mmsys CLK_MM_SMI_LARB7>,
1056c66ec88fSEmmanuel Vadot			 <&mmsys CLK_MM_SMI_LARB7>;
1057c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1058c66ec88fSEmmanuel Vadot	};
1059c66ec88fSEmmanuel Vadot
1060c66ec88fSEmmanuel Vadot	imgsys: syscon@15000000 {
1061c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-imgsys", "syscon";
1062c66ec88fSEmmanuel Vadot		reg = <0 0x15000000 0 0x1000>;
1063c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1064c66ec88fSEmmanuel Vadot	};
1065c66ec88fSEmmanuel Vadot
1066c66ec88fSEmmanuel Vadot	larb2: larb@15001000 {
1067c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1068c66ec88fSEmmanuel Vadot		reg = <0 0x15001000 0 0x1000>;
1069c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1070c66ec88fSEmmanuel Vadot		mediatek,larb-id = <2>;
1071c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_ISP>;
1072c66ec88fSEmmanuel Vadot		clocks = <&imgsys CLK_IMG_SMI_LARB2>,
1073c66ec88fSEmmanuel Vadot			 <&imgsys CLK_IMG_SMI_LARB2>;
1074c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1075c66ec88fSEmmanuel Vadot	};
1076c66ec88fSEmmanuel Vadot
1077c66ec88fSEmmanuel Vadot	bdpsys: syscon@15010000 {
1078c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-bdpsys", "syscon";
1079c66ec88fSEmmanuel Vadot		reg = <0 0x15010000 0 0x1000>;
1080c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1081c66ec88fSEmmanuel Vadot	};
1082c66ec88fSEmmanuel Vadot
1083c66ec88fSEmmanuel Vadot	vdecsys: syscon@16000000 {
1084c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-vdecsys", "syscon";
1085c66ec88fSEmmanuel Vadot		reg = <0 0x16000000 0 0x1000>;
1086c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1087c66ec88fSEmmanuel Vadot	};
1088c66ec88fSEmmanuel Vadot
1089c66ec88fSEmmanuel Vadot	larb1: larb@16010000 {
1090c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1091c66ec88fSEmmanuel Vadot		reg = <0 0x16010000 0 0x1000>;
1092c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1093c66ec88fSEmmanuel Vadot		mediatek,larb-id = <1>;
1094c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_VDEC>;
1095c66ec88fSEmmanuel Vadot		clocks = <&vdecsys CLK_VDEC_CKEN>,
1096c66ec88fSEmmanuel Vadot			 <&vdecsys CLK_VDEC_LARB1_CKEN>;
1097c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1098c66ec88fSEmmanuel Vadot	};
1099c66ec88fSEmmanuel Vadot
1100c66ec88fSEmmanuel Vadot	vencsys: syscon@18000000 {
1101c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-vencsys", "syscon";
1102c66ec88fSEmmanuel Vadot		reg = <0 0x18000000 0 0x1000>;
1103c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1104c66ec88fSEmmanuel Vadot	};
1105c66ec88fSEmmanuel Vadot
1106c66ec88fSEmmanuel Vadot	larb3: larb@18001000 {
1107c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1108c66ec88fSEmmanuel Vadot		reg = <0 0x18001000 0 0x1000>;
1109c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1110c66ec88fSEmmanuel Vadot		mediatek,larb-id = <3>;
1111c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_VENC>;
1112c66ec88fSEmmanuel Vadot		clocks = <&vencsys CLK_VENC_SMI_COMMON_CON>,
1113c66ec88fSEmmanuel Vadot			 <&vencsys CLK_VENC_VENC>;
1114c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1115c66ec88fSEmmanuel Vadot	};
1116c66ec88fSEmmanuel Vadot
1117c66ec88fSEmmanuel Vadot	larb6: larb@18002000 {
1118c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-smi-larb";
1119c66ec88fSEmmanuel Vadot		reg = <0 0x18002000 0 0x1000>;
1120c66ec88fSEmmanuel Vadot		mediatek,smi = <&smi_common0>;
1121c66ec88fSEmmanuel Vadot		mediatek,larb-id = <6>;
1122c66ec88fSEmmanuel Vadot		power-domains = <&scpsys MT2712_POWER_DOMAIN_VENC>;
1123c66ec88fSEmmanuel Vadot		clocks = <&vencsys CLK_VENC_SMI_COMMON_CON>,
1124c66ec88fSEmmanuel Vadot			 <&vencsys CLK_VENC_VENC>;
1125c66ec88fSEmmanuel Vadot		clock-names = "apb", "smi";
1126c66ec88fSEmmanuel Vadot	};
1127c66ec88fSEmmanuel Vadot
1128c66ec88fSEmmanuel Vadot	jpgdecsys: syscon@19000000 {
1129c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt2712-jpgdecsys", "syscon";
1130c66ec88fSEmmanuel Vadot		reg = <0 0x19000000 0 0x1000>;
1131c66ec88fSEmmanuel Vadot		#clock-cells = <1>;
1132c66ec88fSEmmanuel Vadot	};
1133c66ec88fSEmmanuel Vadot};
1134c66ec88fSEmmanuel Vadot
1135