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