xref: /openbmc/linux/arch/arm64/boot/dts/mediatek/mt7622.dtsi (revision 9cc7f0de9e676abdabb5992ea63daf928ec02022)
1c4629c34SSean Wang/*
2c4629c34SSean Wang * Copyright (c) 2017 MediaTek Inc.
3c4629c34SSean Wang * Author: Ming Huang <ming.huang@mediatek.com>
4c4629c34SSean Wang *	   Sean Wang <sean.wang@mediatek.com>
5c4629c34SSean Wang *
6c4629c34SSean Wang * SPDX-License-Identifier: (GPL-2.0 OR MIT)
7c4629c34SSean Wang */
8c4629c34SSean Wang
9c4629c34SSean Wang#include <dt-bindings/interrupt-controller/irq.h>
10c4629c34SSean Wang#include <dt-bindings/interrupt-controller/arm-gic.h>
11d7167881SSean Wang#include <dt-bindings/clock/mt7622-clk.h>
12a39251eeSRyder Lee#include <dt-bindings/phy/phy.h>
13925bd27fSSean Wang#include <dt-bindings/power/mt7622-power.h>
14d7167881SSean Wang#include <dt-bindings/reset/mt7622-reset.h>
15ae457b76SSean Wang#include <dt-bindings/thermal/thermal.h>
16c4629c34SSean Wang
17c4629c34SSean Wang/ {
18c4629c34SSean Wang	compatible = "mediatek,mt7622";
19c4629c34SSean Wang	interrupt-parent = <&sysirq>;
20c4629c34SSean Wang	#address-cells = <2>;
21c4629c34SSean Wang	#size-cells = <2>;
22c4629c34SSean Wang
23a5a80f78SSean Wang	cpu_opp_table: opp-table {
24a5a80f78SSean Wang		compatible = "operating-points-v2";
25a5a80f78SSean Wang		opp-shared;
26a5a80f78SSean Wang		opp-300000000 {
27a5a80f78SSean Wang			opp-hz = /bits/ 64 <30000000>;
28a5a80f78SSean Wang			opp-microvolt = <950000>;
29a5a80f78SSean Wang		};
30a5a80f78SSean Wang
31a5a80f78SSean Wang		opp-437500000 {
32a5a80f78SSean Wang			opp-hz = /bits/ 64 <437500000>;
33a5a80f78SSean Wang			opp-microvolt = <1000000>;
34a5a80f78SSean Wang		};
35a5a80f78SSean Wang
36a5a80f78SSean Wang		opp-600000000 {
37a5a80f78SSean Wang			opp-hz = /bits/ 64 <600000000>;
38a5a80f78SSean Wang			opp-microvolt = <1050000>;
39a5a80f78SSean Wang		};
40a5a80f78SSean Wang
41a5a80f78SSean Wang		opp-812500000 {
42a5a80f78SSean Wang			opp-hz = /bits/ 64 <812500000>;
43a5a80f78SSean Wang			opp-microvolt = <1100000>;
44a5a80f78SSean Wang		};
45a5a80f78SSean Wang
46a5a80f78SSean Wang		opp-1025000000 {
47a5a80f78SSean Wang			opp-hz = /bits/ 64 <1025000000>;
48a5a80f78SSean Wang			opp-microvolt = <1150000>;
49a5a80f78SSean Wang		};
50a5a80f78SSean Wang
51a5a80f78SSean Wang		opp-1137500000 {
52a5a80f78SSean Wang			opp-hz = /bits/ 64 <1137500000>;
53a5a80f78SSean Wang			opp-microvolt = <1200000>;
54a5a80f78SSean Wang		};
55a5a80f78SSean Wang
56a5a80f78SSean Wang		opp-1262500000 {
57a5a80f78SSean Wang			opp-hz = /bits/ 64 <1262500000>;
58a5a80f78SSean Wang			opp-microvolt = <1250000>;
59a5a80f78SSean Wang		};
60a5a80f78SSean Wang
61a5a80f78SSean Wang		opp-1350000000 {
62a5a80f78SSean Wang			opp-hz = /bits/ 64 <1350000000>;
63a5a80f78SSean Wang			opp-microvolt = <1310000>;
64a5a80f78SSean Wang		};
65a5a80f78SSean Wang	};
66a5a80f78SSean Wang
67c4629c34SSean Wang	cpus {
68c4629c34SSean Wang		#address-cells = <2>;
69c4629c34SSean Wang		#size-cells = <0>;
70c4629c34SSean Wang
71c4629c34SSean Wang		cpu0: cpu@0 {
72c4629c34SSean Wang			device_type = "cpu";
73c4629c34SSean Wang			compatible = "arm,cortex-a53", "arm,armv8";
74c4629c34SSean Wang			reg = <0x0 0x0>;
75a5a80f78SSean Wang			clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
76a5a80f78SSean Wang				 <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
77a5a80f78SSean Wang			clock-names = "cpu", "intermediate";
78a5a80f78SSean Wang			operating-points-v2 = <&cpu_opp_table>;
79ae457b76SSean Wang			#cooling-cells = <2>;
80c4629c34SSean Wang			enable-method = "psci";
81c4629c34SSean Wang			clock-frequency = <1300000000>;
82*9cc7f0deSRyder Lee			cci-control-port = <&cci_control2>;
83c4629c34SSean Wang		};
84c4629c34SSean Wang
85c4629c34SSean Wang		cpu1: cpu@1 {
86c4629c34SSean Wang			device_type = "cpu";
87c4629c34SSean Wang			compatible = "arm,cortex-a53", "arm,armv8";
88c4629c34SSean Wang			reg = <0x0 0x1>;
89a5a80f78SSean Wang			clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
90a5a80f78SSean Wang				 <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
91a5a80f78SSean Wang			clock-names = "cpu", "intermediate";
92a5a80f78SSean Wang			operating-points-v2 = <&cpu_opp_table>;
93a06e5c05SViresh Kumar			#cooling-cells = <2>;
94c4629c34SSean Wang			enable-method = "psci";
95c4629c34SSean Wang			clock-frequency = <1300000000>;
96*9cc7f0deSRyder Lee			cci-control-port = <&cci_control2>;
97c4629c34SSean Wang		};
98c4629c34SSean Wang	};
99c4629c34SSean Wang
100d7167881SSean Wang	pwrap_clk: dummy40m {
101d7167881SSean Wang		compatible = "fixed-clock";
102d7167881SSean Wang		clock-frequency = <40000000>;
103d7167881SSean Wang		#clock-cells = <0>;
104d7167881SSean Wang	};
105d7167881SSean Wang
106d7167881SSean Wang	clk25m: oscillator {
107d7167881SSean Wang		compatible = "fixed-clock";
108d7167881SSean Wang		#clock-cells = <0>;
109d7167881SSean Wang		clock-frequency = <25000000>;
110d7167881SSean Wang		clock-output-names = "clkxtal";
111d7167881SSean Wang	};
112d7167881SSean Wang
113c4629c34SSean Wang	psci {
114c4629c34SSean Wang		compatible  = "arm,psci-0.2";
115c4629c34SSean Wang		method      = "smc";
116c4629c34SSean Wang	};
117c4629c34SSean Wang
118*9cc7f0deSRyder Lee	pmu {
119*9cc7f0deSRyder Lee		compatible = "arm,cortex-a53-pmu";
120*9cc7f0deSRyder Lee		interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_LOW>,
121*9cc7f0deSRyder Lee			     <GIC_SPI 9 IRQ_TYPE_LEVEL_LOW>;
122*9cc7f0deSRyder Lee		interrupt-affinity = <&cpu0>, <&cpu1>;
123*9cc7f0deSRyder Lee	};
124*9cc7f0deSRyder Lee
125c4629c34SSean Wang	reserved-memory {
126c4629c34SSean Wang		#address-cells = <2>;
127c4629c34SSean Wang		#size-cells = <2>;
128c4629c34SSean Wang		ranges;
129c4629c34SSean Wang
130c4629c34SSean Wang		/* 192 KiB reserved for ARM Trusted Firmware (BL31) */
131c4629c34SSean Wang		secmon_reserved: secmon@43000000 {
132c4629c34SSean Wang			reg = <0 0x43000000 0 0x30000>;
133c4629c34SSean Wang			no-map;
134c4629c34SSean Wang		};
135c4629c34SSean Wang	};
136c4629c34SSean Wang
137ae457b76SSean Wang	thermal-zones {
138ae457b76SSean Wang		cpu_thermal: cpu-thermal {
139ae457b76SSean Wang			polling-delay-passive = <1000>;
140ae457b76SSean Wang			polling-delay = <1000>;
141ae457b76SSean Wang
142ae457b76SSean Wang			thermal-sensors = <&thermal 0>;
143ae457b76SSean Wang
144ae457b76SSean Wang			trips {
145ae457b76SSean Wang				cpu_passive: cpu-passive {
146ae457b76SSean Wang					temperature = <47000>;
147ae457b76SSean Wang					hysteresis = <2000>;
148ae457b76SSean Wang					type = "passive";
149ae457b76SSean Wang				};
150ae457b76SSean Wang
151ae457b76SSean Wang				cpu_active: cpu-active {
152ae457b76SSean Wang					temperature = <67000>;
153ae457b76SSean Wang					hysteresis = <2000>;
154ae457b76SSean Wang					type = "active";
155ae457b76SSean Wang				};
156ae457b76SSean Wang
157ae457b76SSean Wang				cpu_hot: cpu-hot {
158ae457b76SSean Wang					temperature = <87000>;
159ae457b76SSean Wang					hysteresis = <2000>;
160ae457b76SSean Wang					type = "hot";
161ae457b76SSean Wang				};
162ae457b76SSean Wang
163ae457b76SSean Wang				cpu-crit {
164ae457b76SSean Wang					temperature = <107000>;
165ae457b76SSean Wang					hysteresis = <2000>;
166ae457b76SSean Wang					type = "critical";
167ae457b76SSean Wang				};
168ae457b76SSean Wang			};
169ae457b76SSean Wang
170ae457b76SSean Wang			cooling-maps {
171ae457b76SSean Wang				map0 {
172ae457b76SSean Wang					trip = <&cpu_passive>;
173ae457b76SSean Wang					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
174ae457b76SSean Wang				};
175ae457b76SSean Wang
176ae457b76SSean Wang				map1 {
177ae457b76SSean Wang					trip = <&cpu_active>;
178ae457b76SSean Wang					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
179ae457b76SSean Wang				};
180ae457b76SSean Wang
181ae457b76SSean Wang				map2 {
182ae457b76SSean Wang					trip = <&cpu_hot>;
183ae457b76SSean Wang					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
184ae457b76SSean Wang				};
185ae457b76SSean Wang			};
186ae457b76SSean Wang		};
187ae457b76SSean Wang	};
188ae457b76SSean Wang
189c4629c34SSean Wang	timer {
190c4629c34SSean Wang		compatible = "arm,armv8-timer";
191c4629c34SSean Wang		interrupt-parent = <&gic>;
192c4629c34SSean Wang		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
193c4629c34SSean Wang			      IRQ_TYPE_LEVEL_HIGH)>,
194c4629c34SSean Wang			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
195c4629c34SSean Wang			      IRQ_TYPE_LEVEL_HIGH)>,
196c4629c34SSean Wang			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) |
197c4629c34SSean Wang			      IRQ_TYPE_LEVEL_HIGH)>,
198c4629c34SSean Wang			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
199c4629c34SSean Wang			      IRQ_TYPE_LEVEL_HIGH)>;
200c4629c34SSean Wang	};
201c4629c34SSean Wang
202d7167881SSean Wang	infracfg: infracfg@10000000 {
203d7167881SSean Wang		compatible = "mediatek,mt7622-infracfg",
204d7167881SSean Wang			     "syscon";
205d7167881SSean Wang		reg = <0 0x10000000 0 0x1000>;
206d7167881SSean Wang		#clock-cells = <1>;
207d7167881SSean Wang		#reset-cells = <1>;
208d7167881SSean Wang	};
209d7167881SSean Wang
210c4ff2adeSSean Wang	pwrap: pwrap@10001000 {
211c4ff2adeSSean Wang		compatible = "mediatek,mt7622-pwrap";
212c4ff2adeSSean Wang		reg = <0 0x10001000 0 0x250>;
213c4ff2adeSSean Wang		reg-names = "pwrap";
214c4ff2adeSSean Wang		clocks = <&infracfg CLK_INFRA_PMIC_PD>, <&pwrap_clk>;
215c4ff2adeSSean Wang		clock-names = "spi", "wrap";
216c4ff2adeSSean Wang		resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>;
217c4ff2adeSSean Wang		reset-names = "pwrap";
218c4ff2adeSSean Wang		interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
219c4ff2adeSSean Wang		status = "disabled";
220c4ff2adeSSean Wang	};
221c4ff2adeSSean Wang
222d7167881SSean Wang	pericfg: pericfg@10002000 {
223d7167881SSean Wang		compatible = "mediatek,mt7622-pericfg",
224d7167881SSean Wang			     "syscon";
225d7167881SSean Wang		reg = <0 0x10002000 0 0x1000>;
226d7167881SSean Wang		#clock-cells = <1>;
227d7167881SSean Wang		#reset-cells = <1>;
228d7167881SSean Wang	};
229d7167881SSean Wang
230*9cc7f0deSRyder Lee	timer: timer@10004000 {
231*9cc7f0deSRyder Lee		compatible = "mediatek,mt7622-timer",
232*9cc7f0deSRyder Lee			     "mediatek,mt6577-timer";
233*9cc7f0deSRyder Lee		reg = <0 0x10004000 0 0x80>;
234*9cc7f0deSRyder Lee		interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_LOW>;
235*9cc7f0deSRyder Lee		clocks = <&infracfg CLK_INFRA_APXGPT_PD>,
236*9cc7f0deSRyder Lee			 <&topckgen CLK_TOP_RTC>;
237*9cc7f0deSRyder Lee		clock-names = "system-clk", "rtc-clk";
238*9cc7f0deSRyder Lee	};
239*9cc7f0deSRyder Lee
240925bd27fSSean Wang	scpsys: scpsys@10006000 {
241925bd27fSSean Wang		compatible = "mediatek,mt7622-scpsys",
242925bd27fSSean Wang			     "syscon";
243925bd27fSSean Wang		#power-domain-cells = <1>;
244925bd27fSSean Wang		reg = <0 0x10006000 0 0x1000>;
245925bd27fSSean Wang		interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>,
246925bd27fSSean Wang			     <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>,
247925bd27fSSean Wang			     <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>,
248925bd27fSSean Wang			     <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>;
249925bd27fSSean Wang		infracfg = <&infracfg>;
250925bd27fSSean Wang		clocks = <&topckgen CLK_TOP_HIF_SEL>;
251925bd27fSSean Wang		clock-names = "hif_sel";
252925bd27fSSean Wang	};
253925bd27fSSean Wang
254ae457b76SSean Wang	cir: cir@10009000 {
255ae457b76SSean Wang		compatible = "mediatek,mt7622-cir";
256ae457b76SSean Wang		reg = <0 0x10009000 0 0x1000>;
257ae457b76SSean Wang		interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>;
258ae457b76SSean Wang		clocks = <&infracfg CLK_INFRA_IRRX_PD>,
259ae457b76SSean Wang			 <&topckgen CLK_TOP_AXI_SEL>;
260ae457b76SSean Wang		clock-names = "clk", "bus";
261ae457b76SSean Wang		status = "disabled";
262ae457b76SSean Wang	};
263ae457b76SSean Wang
264c4629c34SSean Wang	sysirq: interrupt-controller@10200620 {
265c4629c34SSean Wang		compatible = "mediatek,mt7622-sysirq",
266c4629c34SSean Wang			     "mediatek,mt6577-sysirq";
267c4629c34SSean Wang		interrupt-controller;
268c4629c34SSean Wang		#interrupt-cells = <3>;
269c4629c34SSean Wang		interrupt-parent = <&gic>;
270c4629c34SSean Wang		reg = <0 0x10200620 0 0x20>;
271c4629c34SSean Wang	};
272c4629c34SSean Wang
273ae457b76SSean Wang	efuse: efuse@10206000 {
274ae457b76SSean Wang		compatible = "mediatek,mt7622-efuse",
275ae457b76SSean Wang			     "mediatek,efuse";
276ae457b76SSean Wang		reg = <0 0x10206000 0 0x1000>;
277ae457b76SSean Wang		#address-cells = <1>;
278ae457b76SSean Wang		#size-cells = <1>;
279ae457b76SSean Wang
280ae457b76SSean Wang		thermal_calibration: calib@198 {
281ae457b76SSean Wang			reg = <0x198 0xc>;
282ae457b76SSean Wang		};
283ae457b76SSean Wang	};
284ae457b76SSean Wang
285d7167881SSean Wang	apmixedsys: apmixedsys@10209000 {
286d7167881SSean Wang		compatible = "mediatek,mt7622-apmixedsys",
287d7167881SSean Wang			     "syscon";
288d7167881SSean Wang		reg = <0 0x10209000 0 0x1000>;
289d7167881SSean Wang		#clock-cells = <1>;
290d7167881SSean Wang	};
291d7167881SSean Wang
292d7167881SSean Wang	topckgen: topckgen@10210000 {
293d7167881SSean Wang		compatible = "mediatek,mt7622-topckgen",
294d7167881SSean Wang			     "syscon";
295d7167881SSean Wang		reg = <0 0x10210000 0 0x1000>;
296d7167881SSean Wang		#clock-cells = <1>;
297d7167881SSean Wang	};
298d7167881SSean Wang
299ae457b76SSean Wang	rng: rng@1020f000 {
300ae457b76SSean Wang		compatible = "mediatek,mt7622-rng",
301ae457b76SSean Wang			     "mediatek,mt7623-rng";
302ae457b76SSean Wang		reg = <0 0x1020f000 0 0x1000>;
303ae457b76SSean Wang		clocks = <&infracfg CLK_INFRA_TRNG>;
304ae457b76SSean Wang		clock-names = "rng";
305ae457b76SSean Wang	};
306ae457b76SSean Wang
3073725ba3fSSean Wang	pio: pinctrl@10211000 {
3083725ba3fSSean Wang		compatible = "mediatek,mt7622-pinctrl";
30934093104SSean Wang		reg = <0 0x10211000 0 0x1000>,
31034093104SSean Wang		      <0 0x10005000 0 0x1000>;
31134093104SSean Wang		reg-names = "base", "eint";
3123725ba3fSSean Wang		gpio-controller;
3133725ba3fSSean Wang		#gpio-cells = <2>;
314aa54a84fSSean Wang		gpio-ranges = <&pio 0 0 103>;
31534093104SSean Wang		interrupt-controller;
31634093104SSean Wang		interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
31734093104SSean Wang		interrupt-parent = <&gic>;
31834093104SSean Wang		#interrupt-cells = <2>;
3193725ba3fSSean Wang	};
3203725ba3fSSean Wang
321ae457b76SSean Wang	watchdog: watchdog@10212000 {
322ae457b76SSean Wang		compatible = "mediatek,mt7622-wdt",
323ae457b76SSean Wang			     "mediatek,mt6589-wdt";
324ae457b76SSean Wang		reg = <0 0x10212000 0 0x800>;
325ae457b76SSean Wang	};
326ae457b76SSean Wang
327ae457b76SSean Wang	rtc: rtc@10212800 {
328ae457b76SSean Wang		compatible = "mediatek,mt7622-rtc",
329ae457b76SSean Wang			     "mediatek,soc-rtc";
330ae457b76SSean Wang		reg = <0 0x10212800 0 0x200>;
331ae457b76SSean Wang		interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
332ae457b76SSean Wang		clocks = <&topckgen CLK_TOP_RTC>;
333ae457b76SSean Wang		clock-names = "rtc";
334ae457b76SSean Wang	};
335ae457b76SSean Wang
336c4629c34SSean Wang	gic: interrupt-controller@10300000 {
337c4629c34SSean Wang		compatible = "arm,gic-400";
338c4629c34SSean Wang		interrupt-controller;
339c4629c34SSean Wang		#interrupt-cells = <3>;
340c4629c34SSean Wang		interrupt-parent = <&gic>;
341c4629c34SSean Wang		reg = <0 0x10310000 0 0x1000>,
342c4629c34SSean Wang		      <0 0x10320000 0 0x1000>,
343c4629c34SSean Wang		      <0 0x10340000 0 0x2000>,
344c4629c34SSean Wang		      <0 0x10360000 0 0x2000>;
345c4629c34SSean Wang	};
346c4629c34SSean Wang
347*9cc7f0deSRyder Lee	cci: cci@10390000 {
348*9cc7f0deSRyder Lee		compatible = "arm,cci-400";
349*9cc7f0deSRyder Lee		#address-cells = <1>;
350*9cc7f0deSRyder Lee		#size-cells = <1>;
351*9cc7f0deSRyder Lee		reg = <0 0x10390000 0 0x1000>;
352*9cc7f0deSRyder Lee		ranges = <0 0 0x10390000 0x10000>;
353*9cc7f0deSRyder Lee
354*9cc7f0deSRyder Lee		cci_control0: slave-if@1000 {
355*9cc7f0deSRyder Lee			compatible = "arm,cci-400-ctrl-if";
356*9cc7f0deSRyder Lee			interface-type = "ace-lite";
357*9cc7f0deSRyder Lee			reg = <0x1000 0x1000>;
358*9cc7f0deSRyder Lee		};
359*9cc7f0deSRyder Lee
360*9cc7f0deSRyder Lee		cci_control1: slave-if@4000 {
361*9cc7f0deSRyder Lee			compatible = "arm,cci-400-ctrl-if";
362*9cc7f0deSRyder Lee			interface-type = "ace";
363*9cc7f0deSRyder Lee			reg = <0x4000 0x1000>;
364*9cc7f0deSRyder Lee		};
365*9cc7f0deSRyder Lee
366*9cc7f0deSRyder Lee		cci_control2: slave-if@5000 {
367*9cc7f0deSRyder Lee			compatible = "arm,cci-400-ctrl-if";
368*9cc7f0deSRyder Lee			interface-type = "ace";
369*9cc7f0deSRyder Lee			reg = <0x5000 0x1000>;
370*9cc7f0deSRyder Lee		};
371*9cc7f0deSRyder Lee
372*9cc7f0deSRyder Lee		pmu@9000 {
373*9cc7f0deSRyder Lee			compatible = "arm,cci-400-pmu,r1";
374*9cc7f0deSRyder Lee			reg = <0x9000 0x5000>;
375*9cc7f0deSRyder Lee			interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
376*9cc7f0deSRyder Lee				     <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
377*9cc7f0deSRyder Lee				     <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
378*9cc7f0deSRyder Lee				     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
379*9cc7f0deSRyder Lee				     <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
380*9cc7f0deSRyder Lee		};
381*9cc7f0deSRyder Lee	};
382*9cc7f0deSRyder Lee
383ae457b76SSean Wang	auxadc: adc@11001000 {
384ae457b76SSean Wang		compatible = "mediatek,mt7622-auxadc";
385ae457b76SSean Wang		reg = <0 0x11001000 0 0x1000>;
386ae457b76SSean Wang		clocks = <&pericfg CLK_PERI_AUXADC_PD>;
387ae457b76SSean Wang		clock-names = "main";
388ae457b76SSean Wang		#io-channel-cells = <1>;
389ae457b76SSean Wang	};
390ae457b76SSean Wang
391c4629c34SSean Wang	uart0: serial@11002000 {
392c4629c34SSean Wang		compatible = "mediatek,mt7622-uart",
393c4629c34SSean Wang			     "mediatek,mt6577-uart";
394c4629c34SSean Wang		reg = <0 0x11002000 0 0x400>;
395c4629c34SSean Wang		interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
39613f36c32SSean Wang		clocks = <&topckgen CLK_TOP_UART_SEL>,
3972b519747SRyder Lee			 <&pericfg CLK_PERI_UART0_PD>;
398c4629c34SSean Wang		clock-names = "baud", "bus";
399c4629c34SSean Wang		status = "disabled";
400c4629c34SSean Wang	};
401d7167881SSean Wang
402ae457b76SSean Wang	uart1: serial@11003000 {
403ae457b76SSean Wang		compatible = "mediatek,mt7622-uart",
404ae457b76SSean Wang			     "mediatek,mt6577-uart";
405ae457b76SSean Wang		reg = <0 0x11003000 0 0x400>;
406ae457b76SSean Wang		interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
407ae457b76SSean Wang		clocks = <&topckgen CLK_TOP_UART_SEL>,
408ae457b76SSean Wang			 <&pericfg CLK_PERI_UART1_PD>;
409ae457b76SSean Wang		clock-names = "baud", "bus";
410ae457b76SSean Wang		status = "disabled";
411ae457b76SSean Wang	};
412ae457b76SSean Wang
413ae457b76SSean Wang	uart2: serial@11004000 {
414ae457b76SSean Wang		compatible = "mediatek,mt7622-uart",
415ae457b76SSean Wang			     "mediatek,mt6577-uart";
416ae457b76SSean Wang		reg = <0 0x11004000 0 0x400>;
417ae457b76SSean Wang		interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
418ae457b76SSean Wang		clocks = <&topckgen CLK_TOP_UART_SEL>,
419ae457b76SSean Wang			 <&pericfg CLK_PERI_UART2_PD>;
420ae457b76SSean Wang		clock-names = "baud", "bus";
421ae457b76SSean Wang		status = "disabled";
422ae457b76SSean Wang	};
423ae457b76SSean Wang
424ae457b76SSean Wang	uart3: serial@11005000 {
425ae457b76SSean Wang		compatible = "mediatek,mt7622-uart",
426ae457b76SSean Wang			     "mediatek,mt6577-uart";
427ae457b76SSean Wang		reg = <0 0x11005000 0 0x400>;
428ae457b76SSean Wang		interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
429ae457b76SSean Wang		clocks = <&topckgen CLK_TOP_UART_SEL>,
430ae457b76SSean Wang			 <&pericfg CLK_PERI_UART3_PD>;
431ae457b76SSean Wang		clock-names = "baud", "bus";
432ae457b76SSean Wang		status = "disabled";
433ae457b76SSean Wang	};
434ae457b76SSean Wang
435ae457b76SSean Wang	pwm: pwm@11006000 {
436ae457b76SSean Wang		compatible = "mediatek,mt7622-pwm";
437ae457b76SSean Wang		reg = <0 0x11006000 0 0x1000>;
438ae457b76SSean Wang		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
439ae457b76SSean Wang		clocks = <&topckgen CLK_TOP_PWM_SEL>,
440ae457b76SSean Wang			 <&pericfg CLK_PERI_PWM_PD>,
441ae457b76SSean Wang			 <&pericfg CLK_PERI_PWM1_PD>,
442ae457b76SSean Wang			 <&pericfg CLK_PERI_PWM2_PD>,
443ae457b76SSean Wang			 <&pericfg CLK_PERI_PWM3_PD>,
444ae457b76SSean Wang			 <&pericfg CLK_PERI_PWM4_PD>,
445ae457b76SSean Wang			 <&pericfg CLK_PERI_PWM5_PD>,
446ae457b76SSean Wang			 <&pericfg CLK_PERI_PWM6_PD>;
447ae457b76SSean Wang		clock-names = "top", "main", "pwm1", "pwm2", "pwm3", "pwm4",
448ae457b76SSean Wang			      "pwm5", "pwm6";
449ae457b76SSean Wang		status = "disabled";
450ae457b76SSean Wang	};
451ae457b76SSean Wang
452ae457b76SSean Wang	i2c0: i2c@11007000 {
453ae457b76SSean Wang		compatible = "mediatek,mt7622-i2c";
454ae457b76SSean Wang		reg = <0 0x11007000 0 0x90>,
455ae457b76SSean Wang		      <0 0x11000100 0 0x80>;
456ae457b76SSean Wang		interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
457ae457b76SSean Wang		clock-div = <16>;
458ae457b76SSean Wang		clocks = <&pericfg CLK_PERI_I2C0_PD>,
459ae457b76SSean Wang			 <&pericfg CLK_PERI_AP_DMA_PD>;
460ae457b76SSean Wang		clock-names = "main", "dma";
461ae457b76SSean Wang		#address-cells = <1>;
462ae457b76SSean Wang		#size-cells = <0>;
463ae457b76SSean Wang		status = "disabled";
464ae457b76SSean Wang	};
465ae457b76SSean Wang
466ae457b76SSean Wang	i2c1: i2c@11008000 {
467ae457b76SSean Wang		compatible = "mediatek,mt7622-i2c";
468ae457b76SSean Wang		reg = <0 0x11008000 0 0x90>,
469ae457b76SSean Wang		      <0 0x11000180 0 0x80>;
470ae457b76SSean Wang		interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
471ae457b76SSean Wang		clock-div = <16>;
472ae457b76SSean Wang		clocks = <&pericfg CLK_PERI_I2C1_PD>,
473ae457b76SSean Wang			 <&pericfg CLK_PERI_AP_DMA_PD>;
474ae457b76SSean Wang		clock-names = "main", "dma";
475ae457b76SSean Wang		#address-cells = <1>;
476ae457b76SSean Wang		#size-cells = <0>;
477ae457b76SSean Wang		status = "disabled";
478ae457b76SSean Wang	};
479ae457b76SSean Wang
480ae457b76SSean Wang	i2c2: i2c@11009000 {
481ae457b76SSean Wang		compatible = "mediatek,mt7622-i2c";
482ae457b76SSean Wang		reg = <0 0x11009000 0 0x90>,
483ae457b76SSean Wang		      <0 0x11000200 0 0x80>;
484ae457b76SSean Wang		interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
485ae457b76SSean Wang		clock-div = <16>;
486ae457b76SSean Wang		clocks = <&pericfg CLK_PERI_I2C2_PD>,
487ae457b76SSean Wang			 <&pericfg CLK_PERI_AP_DMA_PD>;
488ae457b76SSean Wang		clock-names = "main", "dma";
489ae457b76SSean Wang		#address-cells = <1>;
490ae457b76SSean Wang		#size-cells = <0>;
491ae457b76SSean Wang		status = "disabled";
492ae457b76SSean Wang	};
493ae457b76SSean Wang
494ae457b76SSean Wang	spi0: spi@1100a000 {
495ae457b76SSean Wang		compatible = "mediatek,mt7622-spi";
496ae457b76SSean Wang		reg = <0 0x1100a000 0 0x100>;
497ae457b76SSean Wang		interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>;
498ae457b76SSean Wang		clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
499ae457b76SSean Wang			 <&topckgen CLK_TOP_SPI0_SEL>,
500ae457b76SSean Wang			 <&pericfg CLK_PERI_SPI0_PD>;
501ae457b76SSean Wang		clock-names = "parent-clk", "sel-clk", "spi-clk";
502ae457b76SSean Wang		#address-cells = <1>;
503ae457b76SSean Wang		#size-cells = <0>;
504ae457b76SSean Wang		status = "disabled";
505ae457b76SSean Wang	};
506ae457b76SSean Wang
507ae457b76SSean Wang	thermal: thermal@1100b000 {
508ae457b76SSean Wang		#thermal-sensor-cells = <1>;
509ae457b76SSean Wang		compatible = "mediatek,mt7622-thermal";
510ae457b76SSean Wang		reg = <0 0x1100b000 0 0x1000>;
511ae457b76SSean Wang		interrupts = <0 78 IRQ_TYPE_LEVEL_LOW>;
512ae457b76SSean Wang		clocks = <&pericfg CLK_PERI_THERM_PD>,
513ae457b76SSean Wang			 <&pericfg CLK_PERI_AUXADC_PD>;
514ae457b76SSean Wang		clock-names = "therm", "auxadc";
515ae457b76SSean Wang		resets = <&pericfg MT7622_PERI_THERM_SW_RST>;
516ae457b76SSean Wang		reset-names = "therm";
517ae457b76SSean Wang		mediatek,auxadc = <&auxadc>;
518ae457b76SSean Wang		mediatek,apmixedsys = <&apmixedsys>;
519ae457b76SSean Wang		nvmem-cells = <&thermal_calibration>;
520ae457b76SSean Wang		nvmem-cell-names = "calibration-data";
521ae457b76SSean Wang	};
522ae457b76SSean Wang
523ae457b76SSean Wang	btif: serial@1100c000 {
524ae457b76SSean Wang		compatible = "mediatek,mt7622-btif",
525ae457b76SSean Wang			     "mediatek,mtk-btif";
526ae457b76SSean Wang		reg = <0 0x1100c000 0 0x1000>;
527ae457b76SSean Wang		interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
528ae457b76SSean Wang		clocks = <&pericfg CLK_PERI_BTIF_PD>;
529ae457b76SSean Wang		clock-names = "main";
530ae457b76SSean Wang		reg-shift = <2>;
531ae457b76SSean Wang		reg-io-width = <4>;
532ae457b76SSean Wang		status = "disabled";
533ae457b76SSean Wang	};
534ae457b76SSean Wang
53523beb1adSSean Wang	nandc: nfi@1100d000 {
53623beb1adSSean Wang		compatible = "mediatek,mt7622-nfc";
53723beb1adSSean Wang		reg = <0 0x1100D000 0 0x1000>;
53823beb1adSSean Wang		interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
53923beb1adSSean Wang		clocks = <&pericfg CLK_PERI_NFI_PD>,
54023beb1adSSean Wang			 <&pericfg CLK_PERI_SNFI_PD>;
54123beb1adSSean Wang		clock-names = "nfi_clk", "pad_clk";
54223beb1adSSean Wang		ecc-engine = <&bch>;
54323beb1adSSean Wang		#address-cells = <1>;
54423beb1adSSean Wang		#size-cells = <0>;
54523beb1adSSean Wang		status = "disabled";
54623beb1adSSean Wang	};
54723beb1adSSean Wang
54823beb1adSSean Wang	bch: ecc@1100e000 {
54923beb1adSSean Wang		compatible = "mediatek,mt7622-ecc";
55023beb1adSSean Wang		reg = <0 0x1100e000 0 0x1000>;
55123beb1adSSean Wang		interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
55223beb1adSSean Wang		clocks = <&pericfg CLK_PERI_NFIECC_PD>;
55323beb1adSSean Wang		clock-names = "nfiecc_clk";
55423beb1adSSean Wang		status = "disabled";
55523beb1adSSean Wang	};
55623beb1adSSean Wang
55723beb1adSSean Wang	nor_flash: spi@11014000 {
55823beb1adSSean Wang		compatible = "mediatek,mt7622-nor",
55923beb1adSSean Wang			     "mediatek,mt8173-nor";
56023beb1adSSean Wang		reg = <0 0x11014000 0 0xe0>;
56123beb1adSSean Wang		clocks = <&pericfg CLK_PERI_FLASH_PD>,
56223beb1adSSean Wang			 <&topckgen CLK_TOP_FLASH_SEL>;
56323beb1adSSean Wang		clock-names = "spi", "sf";
56423beb1adSSean Wang		#address-cells = <1>;
56523beb1adSSean Wang		#size-cells = <0>;
56623beb1adSSean Wang		status = "disabled";
56723beb1adSSean Wang	};
56823beb1adSSean Wang
569ae457b76SSean Wang	spi1: spi@11016000 {
570ae457b76SSean Wang		compatible = "mediatek,mt7622-spi";
571ae457b76SSean Wang		reg = <0 0x11016000 0 0x100>;
572ae457b76SSean Wang		interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_LOW>;
573ae457b76SSean Wang		clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
574ae457b76SSean Wang			 <&topckgen CLK_TOP_SPI1_SEL>,
575ae457b76SSean Wang			 <&pericfg CLK_PERI_SPI1_PD>;
576ae457b76SSean Wang		clock-names = "parent-clk", "sel-clk", "spi-clk";
577ae457b76SSean Wang		#address-cells = <1>;
578ae457b76SSean Wang		#size-cells = <0>;
579ae457b76SSean Wang		status = "disabled";
580ae457b76SSean Wang	};
581ae457b76SSean Wang
582ae457b76SSean Wang	uart4: serial@11019000 {
583ae457b76SSean Wang		compatible = "mediatek,mt7622-uart",
584ae457b76SSean Wang			     "mediatek,mt6577-uart";
585ae457b76SSean Wang		reg = <0 0x11019000 0 0x400>;
586ae457b76SSean Wang		interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_LOW>;
587ae457b76SSean Wang		clocks = <&topckgen CLK_TOP_UART_SEL>,
588ae457b76SSean Wang			 <&pericfg CLK_PERI_UART4_PD>;
589ae457b76SSean Wang		clock-names = "baud", "bus";
590ae457b76SSean Wang		status = "disabled";
591ae457b76SSean Wang	};
592ae457b76SSean Wang
593f1e0d0d8SRyder Lee	audsys: clock-controller@11220000 {
594f1e0d0d8SRyder Lee		compatible = "mediatek,mt7622-audsys", "syscon";
595f1e0d0d8SRyder Lee		reg = <0 0x11220000 0 0x2000>;
596f1e0d0d8SRyder Lee		#clock-cells = <1>;
597f1e0d0d8SRyder Lee
598f1e0d0d8SRyder Lee		afe: audio-controller {
599f1e0d0d8SRyder Lee			compatible = "mediatek,mt7622-audio";
600f1e0d0d8SRyder Lee			interrupts =  <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>,
601f1e0d0d8SRyder Lee				      <GIC_SPI 145 IRQ_TYPE_LEVEL_LOW>;
602f1e0d0d8SRyder Lee			interrupt-names	= "afe", "asys";
603f1e0d0d8SRyder Lee
604f1e0d0d8SRyder Lee			clocks = <&infracfg CLK_INFRA_AUDIO_PD>,
605f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_AUD1_SEL>,
606f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_AUD2_SEL>,
607f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_A1SYS_HP_DIV_PD>,
608f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_A2SYS_HP_DIV_PD>,
609f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S0_MCK_SEL>,
610f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S1_MCK_SEL>,
611f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S2_MCK_SEL>,
612f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S3_MCK_SEL>,
613f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S0_MCK_DIV>,
614f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S1_MCK_DIV>,
615f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S2_MCK_DIV>,
616f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S3_MCK_DIV>,
617f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S0_MCK_DIV_PD>,
618f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S1_MCK_DIV_PD>,
619f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S2_MCK_DIV_PD>,
620f1e0d0d8SRyder Lee				 <&topckgen CLK_TOP_I2S3_MCK_DIV_PD>,
621f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_I2SO1>,
622f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_I2SO2>,
623f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_I2SO3>,
624f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_I2SO4>,
625f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_I2SIN1>,
626f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_I2SIN2>,
627f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_I2SIN3>,
628f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_I2SIN4>,
629f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_ASRCO1>,
630f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_ASRCO2>,
631f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_ASRCO3>,
632f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_ASRCO4>,
633f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_AFE>,
634f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_AFE_CONN>,
635f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_A1SYS>,
636f1e0d0d8SRyder Lee				 <&audsys CLK_AUDIO_A2SYS>;
637f1e0d0d8SRyder Lee
638f1e0d0d8SRyder Lee			clock-names = "infra_sys_audio_clk",
639f1e0d0d8SRyder Lee				      "top_audio_mux1_sel",
640f1e0d0d8SRyder Lee				      "top_audio_mux2_sel",
641f1e0d0d8SRyder Lee				      "top_audio_a1sys_hp",
642f1e0d0d8SRyder Lee				      "top_audio_a2sys_hp",
643f1e0d0d8SRyder Lee				      "i2s0_src_sel",
644f1e0d0d8SRyder Lee				      "i2s1_src_sel",
645f1e0d0d8SRyder Lee				      "i2s2_src_sel",
646f1e0d0d8SRyder Lee				      "i2s3_src_sel",
647f1e0d0d8SRyder Lee				      "i2s0_src_div",
648f1e0d0d8SRyder Lee				      "i2s1_src_div",
649f1e0d0d8SRyder Lee				      "i2s2_src_div",
650f1e0d0d8SRyder Lee				      "i2s3_src_div",
651f1e0d0d8SRyder Lee				      "i2s0_mclk_en",
652f1e0d0d8SRyder Lee				      "i2s1_mclk_en",
653f1e0d0d8SRyder Lee				      "i2s2_mclk_en",
654f1e0d0d8SRyder Lee				      "i2s3_mclk_en",
655f1e0d0d8SRyder Lee				      "i2so0_hop_ck",
656f1e0d0d8SRyder Lee				      "i2so1_hop_ck",
657f1e0d0d8SRyder Lee				      "i2so2_hop_ck",
658f1e0d0d8SRyder Lee				      "i2so3_hop_ck",
659f1e0d0d8SRyder Lee				      "i2si0_hop_ck",
660f1e0d0d8SRyder Lee				      "i2si1_hop_ck",
661f1e0d0d8SRyder Lee				      "i2si2_hop_ck",
662f1e0d0d8SRyder Lee				      "i2si3_hop_ck",
663f1e0d0d8SRyder Lee				      "asrc0_out_ck",
664f1e0d0d8SRyder Lee				      "asrc1_out_ck",
665f1e0d0d8SRyder Lee				      "asrc2_out_ck",
666f1e0d0d8SRyder Lee				      "asrc3_out_ck",
667f1e0d0d8SRyder Lee				      "audio_afe_pd",
668f1e0d0d8SRyder Lee				      "audio_afe_conn_pd",
669f1e0d0d8SRyder Lee				      "audio_a1sys_pd",
670f1e0d0d8SRyder Lee				      "audio_a2sys_pd";
671f1e0d0d8SRyder Lee
672f1e0d0d8SRyder Lee			assigned-clocks = <&topckgen CLK_TOP_A1SYS_HP_SEL>,
673f1e0d0d8SRyder Lee					  <&topckgen CLK_TOP_A2SYS_HP_SEL>,
674f1e0d0d8SRyder Lee					  <&topckgen CLK_TOP_A1SYS_HP_DIV>,
675f1e0d0d8SRyder Lee					  <&topckgen CLK_TOP_A2SYS_HP_DIV>;
676f1e0d0d8SRyder Lee			assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL>,
677f1e0d0d8SRyder Lee						 <&topckgen CLK_TOP_AUD2PLL>;
678f1e0d0d8SRyder Lee			assigned-clock-rates = <0>, <0>, <49152000>, <45158400>;
679f1e0d0d8SRyder Lee		};
680f1e0d0d8SRyder Lee	};
681f1e0d0d8SRyder Lee
6822c002a30SSean Wang	mmc0: mmc@11230000 {
6832c002a30SSean Wang		compatible = "mediatek,mt7622-mmc";
6842c002a30SSean Wang		reg = <0 0x11230000 0 0x1000>;
6852c002a30SSean Wang		interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
6862c002a30SSean Wang		clocks = <&pericfg CLK_PERI_MSDC30_0_PD>,
6872c002a30SSean Wang			 <&topckgen CLK_TOP_MSDC50_0_SEL>;
6882c002a30SSean Wang		clock-names = "source", "hclk";
6892c002a30SSean Wang		status = "disabled";
6902c002a30SSean Wang	};
6912c002a30SSean Wang
6922c002a30SSean Wang	mmc1: mmc@11240000 {
6932c002a30SSean Wang		compatible = "mediatek,mt7622-mmc";
6942c002a30SSean Wang		reg = <0 0x11240000 0 0x1000>;
6952c002a30SSean Wang		interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
6962c002a30SSean Wang		clocks = <&pericfg CLK_PERI_MSDC30_1_PD>,
6972c002a30SSean Wang			 <&topckgen CLK_TOP_AXI_SEL>;
6982c002a30SSean Wang		clock-names = "source", "hclk";
6992c002a30SSean Wang		status = "disabled";
7002c002a30SSean Wang	};
7012c002a30SSean Wang
702d7167881SSean Wang	ssusbsys: ssusbsys@1a000000 {
703d7167881SSean Wang		compatible = "mediatek,mt7622-ssusbsys",
704d7167881SSean Wang			     "syscon";
705d7167881SSean Wang		reg = <0 0x1a000000 0 0x1000>;
706d7167881SSean Wang		#clock-cells = <1>;
707d7167881SSean Wang		#reset-cells = <1>;
708d7167881SSean Wang	};
709d7167881SSean Wang
7100f12d5b3SChunfeng Yun	ssusb: usb@1a0c0000 {
7110f12d5b3SChunfeng Yun		compatible = "mediatek,mt7622-xhci",
7120f12d5b3SChunfeng Yun			     "mediatek,mtk-xhci";
7130f12d5b3SChunfeng Yun		reg = <0 0x1a0c0000 0 0x01000>,
7140f12d5b3SChunfeng Yun		      <0 0x1a0c4700 0 0x0100>;
7150f12d5b3SChunfeng Yun		reg-names = "mac", "ippc";
7160f12d5b3SChunfeng Yun		interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_LOW>;
7170f12d5b3SChunfeng Yun		power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF1>;
7180f12d5b3SChunfeng Yun		clocks = <&ssusbsys CLK_SSUSB_SYS_EN>,
7190f12d5b3SChunfeng Yun			 <&ssusbsys CLK_SSUSB_REF_EN>,
7200f12d5b3SChunfeng Yun			 <&ssusbsys CLK_SSUSB_MCU_EN>,
7210f12d5b3SChunfeng Yun			 <&ssusbsys CLK_SSUSB_DMA_EN>;
7220f12d5b3SChunfeng Yun		clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck";
7230f12d5b3SChunfeng Yun		phys = <&u2port0 PHY_TYPE_USB2>,
7240f12d5b3SChunfeng Yun		       <&u3port0 PHY_TYPE_USB3>,
7250f12d5b3SChunfeng Yun		       <&u2port1 PHY_TYPE_USB2>;
7260f12d5b3SChunfeng Yun
7270f12d5b3SChunfeng Yun		status = "disabled";
7280f12d5b3SChunfeng Yun	};
7290f12d5b3SChunfeng Yun
7300f12d5b3SChunfeng Yun	u3phy: usb-phy@1a0c4000 {
7310f12d5b3SChunfeng Yun		compatible = "mediatek,mt7622-u3phy",
7320f12d5b3SChunfeng Yun			     "mediatek,generic-tphy-v1";
7330f12d5b3SChunfeng Yun		reg = <0 0x1a0c4000 0 0x700>;
7340f12d5b3SChunfeng Yun		#address-cells = <2>;
7350f12d5b3SChunfeng Yun		#size-cells = <2>;
7360f12d5b3SChunfeng Yun		ranges;
7370f12d5b3SChunfeng Yun		status = "disabled";
7380f12d5b3SChunfeng Yun
7390f12d5b3SChunfeng Yun		u2port0: usb-phy@1a0c4800 {
7400f12d5b3SChunfeng Yun			reg = <0 0x1a0c4800 0 0x0100>;
7410f12d5b3SChunfeng Yun			#phy-cells = <1>;
7420f12d5b3SChunfeng Yun			clocks = <&ssusbsys CLK_SSUSB_U2_PHY_EN>;
7430f12d5b3SChunfeng Yun			clock-names = "ref";
7440f12d5b3SChunfeng Yun		};
7450f12d5b3SChunfeng Yun
7460f12d5b3SChunfeng Yun		u3port0: usb-phy@1a0c4900 {
7470f12d5b3SChunfeng Yun			reg = <0 0x1a0c4900 0 0x0700>;
7480f12d5b3SChunfeng Yun			#phy-cells = <1>;
7490f12d5b3SChunfeng Yun			clocks = <&clk25m>;
7500f12d5b3SChunfeng Yun			clock-names = "ref";
7510f12d5b3SChunfeng Yun		};
7520f12d5b3SChunfeng Yun
7530f12d5b3SChunfeng Yun		u2port1: usb-phy@1a0c5000 {
7540f12d5b3SChunfeng Yun			reg = <0 0x1a0c5000 0 0x0100>;
7550f12d5b3SChunfeng Yun			#phy-cells = <1>;
7560f12d5b3SChunfeng Yun			clocks = <&ssusbsys CLK_SSUSB_U2_PHY_1P_EN>;
7570f12d5b3SChunfeng Yun			clock-names = "ref";
7580f12d5b3SChunfeng Yun		};
7590f12d5b3SChunfeng Yun	};
7600f12d5b3SChunfeng Yun
761d7167881SSean Wang	pciesys: pciesys@1a100800 {
762d7167881SSean Wang		compatible = "mediatek,mt7622-pciesys",
763d7167881SSean Wang			     "syscon";
764d7167881SSean Wang		reg = <0 0x1a100800 0 0x1000>;
765d7167881SSean Wang		#clock-cells = <1>;
766d7167881SSean Wang		#reset-cells = <1>;
767d7167881SSean Wang	};
768d7167881SSean Wang
76926907b53SRyder Lee	pcie: pcie@1a140000 {
77026907b53SRyder Lee		compatible = "mediatek,mt7622-pcie";
77126907b53SRyder Lee		device_type = "pci";
77226907b53SRyder Lee		reg = <0 0x1a140000 0 0x1000>,
77326907b53SRyder Lee		      <0 0x1a143000 0 0x1000>,
77426907b53SRyder Lee		      <0 0x1a145000 0 0x1000>;
77526907b53SRyder Lee		reg-names = "subsys", "port0", "port1";
77626907b53SRyder Lee		#address-cells = <3>;
77726907b53SRyder Lee		#size-cells = <2>;
77826907b53SRyder Lee		interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_LOW>,
77926907b53SRyder Lee			     <GIC_SPI 229 IRQ_TYPE_LEVEL_LOW>;
78026907b53SRyder Lee		clocks = <&pciesys CLK_PCIE_P0_MAC_EN>,
78126907b53SRyder Lee			 <&pciesys CLK_PCIE_P1_MAC_EN>,
78226907b53SRyder Lee			 <&pciesys CLK_PCIE_P0_AHB_EN>,
78326907b53SRyder Lee			 <&pciesys CLK_PCIE_P0_AHB_EN>,
78426907b53SRyder Lee			 <&pciesys CLK_PCIE_P0_AUX_EN>,
78526907b53SRyder Lee			 <&pciesys CLK_PCIE_P1_AUX_EN>,
78626907b53SRyder Lee			 <&pciesys CLK_PCIE_P0_AXI_EN>,
78726907b53SRyder Lee			 <&pciesys CLK_PCIE_P1_AXI_EN>,
78826907b53SRyder Lee			 <&pciesys CLK_PCIE_P0_OBFF_EN>,
78926907b53SRyder Lee			 <&pciesys CLK_PCIE_P1_OBFF_EN>,
79026907b53SRyder Lee			 <&pciesys CLK_PCIE_P0_PIPE_EN>,
79126907b53SRyder Lee			 <&pciesys CLK_PCIE_P1_PIPE_EN>;
79226907b53SRyder Lee		clock-names = "sys_ck0", "sys_ck1", "ahb_ck0", "ahb_ck1",
79326907b53SRyder Lee			      "aux_ck0", "aux_ck1", "axi_ck0", "axi_ck1",
79426907b53SRyder Lee			      "obff_ck0", "obff_ck1", "pipe_ck0", "pipe_ck1";
79526907b53SRyder Lee		power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
79626907b53SRyder Lee		bus-range = <0x00 0xff>;
79726907b53SRyder Lee		ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x10000000>;
79826907b53SRyder Lee		status = "disabled";
79926907b53SRyder Lee
80026907b53SRyder Lee		pcie0: pcie@0,0 {
80126907b53SRyder Lee			reg = <0x0000 0 0 0 0>;
80226907b53SRyder Lee			#address-cells = <3>;
80326907b53SRyder Lee			#size-cells = <2>;
80426907b53SRyder Lee			#interrupt-cells = <1>;
80526907b53SRyder Lee			ranges;
80626907b53SRyder Lee			status = "disabled";
80726907b53SRyder Lee
80826907b53SRyder Lee			num-lanes = <1>;
80926907b53SRyder Lee			interrupt-map-mask = <0 0 0 7>;
81026907b53SRyder Lee			interrupt-map = <0 0 0 1 &pcie_intc0 0>,
81126907b53SRyder Lee					<0 0 0 2 &pcie_intc0 1>,
81226907b53SRyder Lee					<0 0 0 3 &pcie_intc0 2>,
81326907b53SRyder Lee					<0 0 0 4 &pcie_intc0 3>;
81426907b53SRyder Lee			pcie_intc0: interrupt-controller {
81526907b53SRyder Lee				interrupt-controller;
81626907b53SRyder Lee				#address-cells = <0>;
81726907b53SRyder Lee				#interrupt-cells = <1>;
81826907b53SRyder Lee			};
81926907b53SRyder Lee		};
82026907b53SRyder Lee
82126907b53SRyder Lee		pcie1: pcie@1,0 {
82226907b53SRyder Lee			reg = <0x0800 0 0 0 0>;
82326907b53SRyder Lee			#address-cells = <3>;
82426907b53SRyder Lee			#size-cells = <2>;
82526907b53SRyder Lee			#interrupt-cells = <1>;
82626907b53SRyder Lee			ranges;
82726907b53SRyder Lee			status = "disabled";
82826907b53SRyder Lee
82926907b53SRyder Lee			num-lanes = <1>;
83026907b53SRyder Lee			interrupt-map-mask = <0 0 0 7>;
83126907b53SRyder Lee			interrupt-map = <0 0 0 1 &pcie_intc1 0>,
83226907b53SRyder Lee					<0 0 0 2 &pcie_intc1 1>,
83326907b53SRyder Lee					<0 0 0 3 &pcie_intc1 2>,
83426907b53SRyder Lee					<0 0 0 4 &pcie_intc1 3>;
83526907b53SRyder Lee			pcie_intc1: interrupt-controller {
83626907b53SRyder Lee				interrupt-controller;
83726907b53SRyder Lee				#address-cells = <0>;
83826907b53SRyder Lee				#interrupt-cells = <1>;
83926907b53SRyder Lee			};
84026907b53SRyder Lee		};
84126907b53SRyder Lee	};
84226907b53SRyder Lee
843a39251eeSRyder Lee	sata: sata@1a200000 {
844a39251eeSRyder Lee		compatible = "mediatek,mt7622-ahci",
845a39251eeSRyder Lee			     "mediatek,mtk-ahci";
846a39251eeSRyder Lee		reg = <0 0x1a200000 0 0x1100>;
847a39251eeSRyder Lee		interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
848a39251eeSRyder Lee		interrupt-names = "hostc";
849a39251eeSRyder Lee		clocks = <&pciesys CLK_SATA_AHB_EN>,
850a39251eeSRyder Lee			 <&pciesys CLK_SATA_AXI_EN>,
851a39251eeSRyder Lee			 <&pciesys CLK_SATA_ASIC_EN>,
852a39251eeSRyder Lee			 <&pciesys CLK_SATA_RBC_EN>,
853a39251eeSRyder Lee			 <&pciesys CLK_SATA_PM_EN>;
854a39251eeSRyder Lee		clock-names = "ahb", "axi", "asic", "rbc", "pm";
855a39251eeSRyder Lee		phys = <&sata_port PHY_TYPE_SATA>;
856a39251eeSRyder Lee		phy-names = "sata-phy";
857a39251eeSRyder Lee		ports-implemented = <0x1>;
858a39251eeSRyder Lee		power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
859a39251eeSRyder Lee		resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
860a39251eeSRyder Lee			 <&pciesys MT7622_SATA_PHY_SW_RST>,
861a39251eeSRyder Lee			 <&pciesys MT7622_SATA_PHY_REG_RST>;
862a39251eeSRyder Lee		reset-names = "axi", "sw", "reg";
863a39251eeSRyder Lee		mediatek,phy-mode = <&pciesys>;
864a39251eeSRyder Lee		status = "disabled";
865a39251eeSRyder Lee	};
866a39251eeSRyder Lee
867a39251eeSRyder Lee	sata_phy: sata-phy@1a243000 {
868a39251eeSRyder Lee		compatible = "mediatek,generic-tphy-v1";
869a39251eeSRyder Lee		#address-cells = <2>;
870a39251eeSRyder Lee		#size-cells = <2>;
871a39251eeSRyder Lee		ranges;
872a39251eeSRyder Lee		status = "disabled";
873a39251eeSRyder Lee
874a39251eeSRyder Lee		sata_port: sata-phy@1a243000 {
875a39251eeSRyder Lee			reg = <0 0x1a243000 0 0x0100>;
876a39251eeSRyder Lee			clocks = <&topckgen CLK_TOP_ETH_500M>;
877a39251eeSRyder Lee			clock-names = "ref";
878a39251eeSRyder Lee			#phy-cells = <1>;
879a39251eeSRyder Lee		};
880a39251eeSRyder Lee	};
881a39251eeSRyder Lee
882d7167881SSean Wang	ethsys: syscon@1b000000 {
883d7167881SSean Wang		compatible = "mediatek,mt7622-ethsys",
884d7167881SSean Wang			     "syscon";
885d7167881SSean Wang		reg = <0 0x1b000000 0 0x1000>;
886d7167881SSean Wang		#clock-cells = <1>;
887d7167881SSean Wang		#reset-cells = <1>;
888d7167881SSean Wang	};
889d7167881SSean Wang
89018928e33SSean Wang	hsdma: dma-controller@1b007000 {
89118928e33SSean Wang		compatible = "mediatek,mt7622-hsdma";
89218928e33SSean Wang		reg = <0 0x1b007000 0 0x1000>;
89318928e33SSean Wang		interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_LOW>;
89418928e33SSean Wang		clocks = <&ethsys CLK_ETH_HSDMA_EN>;
89518928e33SSean Wang		clock-names = "hsdma";
89618928e33SSean Wang		power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
89718928e33SSean Wang		#dma-cells = <1>;
89818928e33SSean Wang	};
89918928e33SSean Wang
9005f599b3aSSean Wang	eth: ethernet@1b100000 {
9015f599b3aSSean Wang		compatible = "mediatek,mt7622-eth",
9025f599b3aSSean Wang			     "mediatek,mt2701-eth",
9035f599b3aSSean Wang			     "syscon";
9045f599b3aSSean Wang		reg = <0 0x1b100000 0 0x20000>;
9055f599b3aSSean Wang		interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>,
9065f599b3aSSean Wang			     <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>,
9075f599b3aSSean Wang			     <GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>;
9085f599b3aSSean Wang		clocks = <&topckgen CLK_TOP_ETH_SEL>,
9095f599b3aSSean Wang			 <&ethsys CLK_ETH_ESW_EN>,
9105f599b3aSSean Wang			 <&ethsys CLK_ETH_GP0_EN>,
9115f599b3aSSean Wang			 <&ethsys CLK_ETH_GP1_EN>,
9125f599b3aSSean Wang			 <&ethsys CLK_ETH_GP2_EN>,
9135f599b3aSSean Wang			 <&sgmiisys CLK_SGMII_TX250M_EN>,
9145f599b3aSSean Wang			 <&sgmiisys CLK_SGMII_RX250M_EN>,
9155f599b3aSSean Wang			 <&sgmiisys CLK_SGMII_CDR_REF>,
9165f599b3aSSean Wang			 <&sgmiisys CLK_SGMII_CDR_FB>,
9175f599b3aSSean Wang			 <&topckgen CLK_TOP_SGMIIPLL>,
9185f599b3aSSean Wang			 <&apmixedsys CLK_APMIXED_ETH2PLL>;
9195f599b3aSSean Wang		clock-names = "ethif", "esw", "gp0", "gp1", "gp2",
9205f599b3aSSean Wang			      "sgmii_tx250m", "sgmii_rx250m",
9215f599b3aSSean Wang			      "sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck",
9225f599b3aSSean Wang			      "eth2pll";
9235f599b3aSSean Wang		power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
9245f599b3aSSean Wang		mediatek,ethsys = <&ethsys>;
9255f599b3aSSean Wang		mediatek,sgmiisys = <&sgmiisys>;
9265f599b3aSSean Wang		#address-cells = <1>;
9275f599b3aSSean Wang		#size-cells = <0>;
9285f599b3aSSean Wang		status = "disabled";
9295f599b3aSSean Wang	};
9305f599b3aSSean Wang
931d7167881SSean Wang	sgmiisys: sgmiisys@1b128000 {
932d7167881SSean Wang		compatible = "mediatek,mt7622-sgmiisys",
933d7167881SSean Wang			     "syscon";
934d7167881SSean Wang		reg = <0 0x1b128000 0 0x1000>;
935d7167881SSean Wang		#clock-cells = <1>;
936d7167881SSean Wang	};
937c4629c34SSean Wang};
938