blob: 3dd999f9567a7b95600d6a96d97ecd337f1143a9 [file] [log] [blame]
developer2cdaeb12022-10-04 20:25:05 +08001// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright (C) 2021 MediaTek Inc.
4 * Author: Sam.Shih <sam.shih@mediatek.com>
5 */
6
7#include <dt-bindings/interrupt-controller/irq.h>
8#include <dt-bindings/interrupt-controller/arm-gic.h>
9#include <dt-bindings/phy/phy.h>
10#include <dt-bindings/reset/ti-syscon.h>
11#include <dt-bindings/clock/mt7988-clk.h>
12#include <dt-bindings/pinctrl/mt65xx.h>
13#include <dt-bindings/thermal/thermal.h>
14#include <dt-bindings/regulator/richtek,rt5190a-regulator.h>
15#include <dt-bindings/power/mt7988-power.h>
16
17/ {
18 compatible = "mediatek,mt7988-rfb";
19 interrupt-parent = <&gic>;
20 #address-cells = <2>;
21 #size-cells = <2>;
22 cpus {
23 #address-cells = <1>;
24 #size-cells = <0>;
25 cpu@0 {
26 device_type = "cpu";
27 compatible = "arm,cortex-a73";
28 enable-method = "psci";
29 reg = <0x0>;
30 clocks = <&mcusys CK_MCU_ARM_DIV_SEL>,
31 <&topckgen CK_TOP_CB_NET1_D4>,
32 <&apmixedsys CK_APMIXED_ARM_B>,
33 <&mcusys CK_MCU_BUS_DIV_SEL>,
34 <&apmixedsys CK_APMIXED_CCIPLL2_B>;
35 clock-names = "cpu", "intermediate", "armpll", "cci",
36 "ccipll";
37 operating-points-v2 = <&cluster0_opp>;
38 nvmem-cells = <&cpufreq_calibration>;
39 nvmem-cell-names = "calibration-data";
40 };
41
42 cpu@1 {
43 device_type = "cpu";
44 compatible = "arm,cortex-a73";
45 enable-method = "psci";
46 reg = <0x1>;
47 clocks = <&mcusys CK_MCU_ARM_DIV_SEL>,
48 <&topckgen CK_TOP_CB_NET1_D4>,
49 <&apmixedsys CK_APMIXED_ARM_B>,
50 <&mcusys CK_MCU_BUS_DIV_SEL>,
51 <&apmixedsys CK_APMIXED_CCIPLL2_B>;
52 clock-names = "cpu", "intermediate", "armpll", "cci",
53 "ccipll";
54 operating-points-v2 = <&cluster0_opp>;
55 nvmem-cells = <&cpufreq_calibration>;
56 nvmem-cell-names = "calibration-data";
57 };
58
59 cpu@2 {
60 device_type = "cpu";
61 compatible = "arm,cortex-a73";
62 enable-method = "psci";
63 reg = <0x2>;
64 clocks = <&mcusys CK_MCU_ARM_DIV_SEL>,
65 <&topckgen CK_TOP_CB_NET1_D4>,
66 <&apmixedsys CK_APMIXED_ARM_B>,
67 <&mcusys CK_MCU_BUS_DIV_SEL>,
68 <&apmixedsys CK_APMIXED_CCIPLL2_B>;
69 clock-names = "cpu", "intermediate", "armpll", "cci",
70 "ccipll";
71 operating-points-v2 = <&cluster0_opp>;
72 nvmem-cells = <&cpufreq_calibration>;
73 nvmem-cell-names = "calibration-data";
74 };
75
76 cpu@3 {
77 device_type = "cpu";
78 compatible = "arm,cortex-a73";
79 enable-method = "psci";
80 reg = <0x3>;
81 clocks = <&mcusys CK_MCU_ARM_DIV_SEL>,
82 <&topckgen CK_TOP_CB_NET1_D4>,
83 <&apmixedsys CK_APMIXED_ARM_B>,
84 <&mcusys CK_MCU_BUS_DIV_SEL>,
85 <&apmixedsys CK_APMIXED_CCIPLL2_B>;
86 clock-names = "cpu", "intermediate", "armpll", "cci",
87 "ccipll";
88 operating-points-v2 = <&cluster0_opp>;
89 nvmem-cells = <&cpufreq_calibration>;
90 nvmem-cell-names = "calibration-data";
91 };
92
93 cluster0_opp: opp_table0 {
94 compatible = "operating-points-v2";
95 opp-shared;
96 opp00 {
97 opp-hz = /bits/ 64 <800000000>;
98 opp-microvolt = <850000>;
99 };
100 opp01 {
101 opp-hz = /bits/ 64 <1100000000>;
102 opp-microvolt = <850000>;
103 };
104 opp02 {
105 opp-hz = /bits/ 64 <1500000000>;
106 opp-microvolt = <850000>;
107 };
108 opp03 {
109 opp-hz = /bits/ 64 <1800000000>;
110 opp-microvolt = <900000>;
111 };
112 };
113 };
114
developerb6555332022-11-30 15:52:42 +0800115 pmu {
116 compatible = "arm,cortex-a73-pmu";
117 interrupt-parent = <&gic>;
118 interrupt = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW>;
119 };
120
developer2cdaeb12022-10-04 20:25:05 +0800121 thermal-zones {
122 cpu_thermal: cpu-thermal {
123 polling-delay-passive = <1000>;
124 polling-delay = <1000>;
125 thermal-sensors = <&lvts 0>;
126 trips {
127 cpu_trip_crit: crit {
128 temperature = <125000>;
129 hysteresis = <2000>;
130 type = "critical";
131 };
132
133 cpu_trip_hot: hot {
134 temperature = <120000>;
135 hysteresis = <2000>;
136 type = "hot";
137 };
138
139 cpu_trip_active_high: active-high {
140 temperature = <115000>;
141 hysteresis = <2000>;
142 type = "active";
143 };
144
145 cpu_trip_active_low: active-low {
146 temperature = <85000>;
147 hysteresis = <2000>;
148 type = "active";
149 };
150
151 cpu_trip_passive: passive {
152 temperature = <40000>;
153 hysteresis = <2000>;
154 type = "passive";
155 };
156 };
157
158 cooling-maps {
159 cpu-active-high {
160 /* active: set fan to cooling level 2 */
161 cooling-device = <&fan 2 2>;
162 trip = <&cpu_trip_active_high>;
163 };
164
165 cpu-active-low {
166 /* active: set fan to cooling level 1 */
167 cooling-device = <&fan 1 1>;
168 trip = <&cpu_trip_active_low>;
169 };
170
171 cpu-passive {
172 /* passive: set fan to cooling level 0 */
173 cooling-device = <&fan 0 0>;
174 trip = <&cpu_trip_passive>;
175 };
176 };
177
178 };
179 };
180
181 mmc0: mmc@11230000 {
182 compatible = "mediatek,mt7986-mmc";
183 reg = <0 0x11230000 0 0x1000>,
184 <0 0x11D60000 0 0x1000>;
185 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
186 clocks = <&infracfg_ao CK_INFRA_MSDC400>,
187 <&infracfg_ao CK_INFRA_MSDC2_HCK>,
188 <&infracfg_ao CK_INFRA_133M_MSDC_0_HCK>,
189 <&infracfg_ao CK_INFRA_66M_MSDC_0_HCK>;
190 clock-names = "source", "hclk", "ahb_cg", "axi_cg";
191 status = "disabled";
192 };
193
194 wed: wed@15010000 {
195 compatible = "mediatek,wed";
196 wed_num = <3>;
197 /* add this property for wed get the pci slot number. */
198 pci_slot_map = <0>, <1>, <2>;
199 reg = <0 0x15010000 0 0x2000>,
200 <0 0x15012000 0 0x2000>,
201 <0 0x15014000 0 0x2000>;
202 interrupt-parent = <&gic>;
203 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
204 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>,
205 <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>;
206 };
207
208 wed2: wed2@15012000 {
209 compatible = "mediatek,wed2";
210 wed_num = <3>;
211 /* add this property for wed get the pci slot number. */
212 reg = <0 0x15010000 0 0x2000>,
213 <0 0x15012000 0 0x2000>,
214 <0 0x15014000 0 0x2000>;
215 interrupt-parent = <&gic>;
216 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
217 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>,
218 <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>;
219 };
220
221 wed3: wed3@15014000 {
222 compatible = "mediatek,wed3";
223 wed_num = <3>;
224 /* add this property for wed get the pci slot number. */
225 reg = <0 0x15010000 0 0x2000>,
226 <0 0x15012000 0 0x2000>,
227 <0 0x15014000 0 0x2000>;
228 interrupt-parent = <&gic>;
229 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
230 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>,
231 <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>;
232 };
233
234 wdma: wdma@15104800 {
235 compatible = "mediatek,wed-wdma";
236 reg = <0 0x15104800 0 0x400>,
237 <0 0x15104c00 0 0x400>,
238 <0 0x15105000 0 0x400>;
239 };
240
241 ap2woccif: ap2woccif@151A5000 {
242 compatible = "mediatek,ap2woccif";
243 reg = <0 0x151A5000 0 0x1000>,
244 <0 0x152A5000 0 0x1000>,
245 <0 0x153A5000 0 0x1000>;
246 interrupt-parent = <&gic>;
247 interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
248 <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>,
249 <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
250 };
251
252 wocpu0_ilm: wocpu0_ilm@151E0000 {
253 compatible = "mediatek,wocpu0_ilm";
254 reg = <0 0x151E0000 0 0x8000>;
255 };
256
257 wocpu1_ilm: wocpu1_ilm@152E0000 {
258 compatible = "mediatek,wocpu1_ilm";
259 reg = <0 0x152E0000 0 0x8000>;
260 };
261
262 wocpu2_ilm: wocpu2_ilm@153E0000 {
263 compatible = "mediatek,wocpu2_ilm";
264 reg = <0 0x153E0000 0 0x8000>;
265 };
266
267 wocpu_dlm: wocpu_dlm@151E8000 {
268 compatible = "mediatek,wocpu_dlm";
269 reg = <0 0x151E8000 0 0x2000>,
270 <0 0x152E8000 0 0x2000>,
271 <0 0x153E8000 0 0x2000>;
272
273 resets = <&ethsysrst 0>;
274 reset-names = "wocpu_rst";
275 };
276
277 cpu_boot: wocpu_boot@15194000 {
278 compatible = "mediatek,wocpu_boot";
279 reg = <0 0x15194000 0 0x1000>,
280 <0 0x15294000 0 0x1000>,
281 <0 0x15394000 0 0x1000>;
282 };
283
284 reserved-memory {
285 #address-cells = <2>;
286 #size-cells = <2>;
287 ranges;
288
289 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
290 secmon_reserved: secmon@43000000 {
291 reg = <0 0x43000000 0 0x30000>;
292 no-map;
293 };
294
295 wmcpu_emi: wmcpu-reserved@47CC0000 {
296 compatible = "mediatek,wmcpu-reserved";
297 no-map;
298 reg = <0 0x47CC0000 0 0x00100000>;
299 };
300
301 wocpu0_emi: wocpu0_emi@4F600000 {
302 compatible = "mediatek,wocpu0_emi";
303 no-map;
304 reg = <0 0x4F600000 0 0x40000>;
305 shared = <0>;
306 };
307
308 wocpu1_emi: wocpu1_emi@4F640000 {
309 compatible = "mediatek,wocpu1_emi";
310 no-map;
311 reg = <0 0x4F640000 0 0x40000>;
312 shared = <0>;
313 };
314
315 wocpu2_emi: wocpu2_emi@4F680000 {
316 compatible = "mediatek,wocpu2_emi";
317 no-map;
318 reg = <0 0x4F680000 0 0x40000>;
319 shared = <0>;
320 };
321
322 wocpu_data: wocpu_data@4F700000 {
323 compatible = "mediatek,wocpu_data";
324 no-map;
325 reg = <0 0x4F700000 0 0x800000>;
326 shared = <1>;
327 };
328 };
329
330 psci {
331 compatible = "arm,psci-0.2";
332 method = "smc";
333 };
334
335 system_clk: dummy_system_clk {
336 compatible = "fixed-clock";
337 clock-frequency = <40000000>;
338 #clock-cells = <0>;
339 };
340
developer2cdaeb12022-10-04 20:25:05 +0800341 timer {
342 compatible = "arm,armv8-timer";
343 interrupt-parent = <&gic>;
344 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
345 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
346 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
347 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
348
349 };
350
developer2cdaeb12022-10-04 20:25:05 +0800351 watchdog: watchdog@1001c000 {
352 compatible = "mediatek,mt7622-wdt",
353 "mediatek,mt6589-wdt",
354 "syscon";
355 reg = <0 0x1001c000 0 0x1000>;
356 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
357 #reset-cells = <1>;
358 };
359
360 phyfw: phy-firmware@f000000 {
361 compatible = "mediatek,2p5gphy-fw";
362 reg = <0 0x0f000000 0 0x8000>,
363 <0 0x0f100000 0 0x20000>,
364 <0 0x0f0f0000 0 0x200>;
365 };
366
developer23021292022-10-21 19:10:10 +0800367 boottrap: boottrap@1001f6f0 {
368 compatible = "mediatek,boottrap";
369 reg = <0 0x1001f6f0 0 0x20>;
370 };
371
developer2cdaeb12022-10-04 20:25:05 +0800372 gic: interrupt-controller@c000000 {
373 compatible = "arm,gic-v3";
374 #interrupt-cells = <3>;
375 interrupt-parent = <&gic>;
376 interrupt-controller;
377 reg = <0 0x0c000000 0 0x40000>, /* GICD */
378 <0 0x0c080000 0 0x200000>; /* GICR */
379
380 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
381 };
382
383 trng: trng@1020f000 {
384 compatible = "mediatek,mt7988-rng";
385 };
386
387 uart0: serial@11000000 {
388 compatible = "mediatek,mt7986-uart",
389 "mediatek,mt6577-uart";
390 reg = <0 0x11000000 0 0x100>;
391 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
developer23b1e822022-11-30 13:39:54 +0800392 clocks = <&infracfg_ao CK_INFRA_52M_UART0_CK>;
393 clock-names = "bus";
394 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
395 <&infracfg_ao CK_INFRA_MUX_UART0_SEL>;
396 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
397 <&infracfg CK_INFRA_UART_O0>;
developer2cdaeb12022-10-04 20:25:05 +0800398 status = "disabled";
399 };
400
401 uart1: serial@11000100 {
402 compatible = "mediatek,mt7986-uart",
403 "mediatek,mt6577-uart";
404 reg = <0 0x11000100 0 0x100>;
405 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
developer23b1e822022-11-30 13:39:54 +0800406 clocks = <&infracfg_ao CK_INFRA_52M_UART1_CK>;
407 clock-names = "bus";
408 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
409 <&infracfg_ao CK_INFRA_MUX_UART1_SEL>;
410 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
411 <&infracfg CK_INFRA_UART_O1>;
developer2cdaeb12022-10-04 20:25:05 +0800412 status = "disabled";
413 };
414
415 uart2: serial@11000200 {
416 compatible = "mediatek,mt7986-uart",
417 "mediatek,mt6577-uart";
418 reg = <0 0x11000200 0 0x100>;
419 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
developer23b1e822022-11-30 13:39:54 +0800420 clocks = <&infracfg_ao CK_INFRA_52M_UART2_CK>;
421 clock-names = "bus";
422 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
423 <&infracfg_ao CK_INFRA_MUX_UART2_SEL>;
424 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
425 <&infracfg CK_INFRA_UART_O2>;
developer2cdaeb12022-10-04 20:25:05 +0800426 status = "disabled";
427 };
428
429 i2c0: i2c@11003000 {
430 compatible = "mediatek,mt7988-i2c",
431 "mediatek,mt7981-i2c";
432 reg = <0 0x11003000 0 0x1000>,
433 <0 0x10217080 0 0x80>;
434 interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
435 clock-div = <1>;
developer1fca7052022-12-23 17:57:35 +0800436 clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
437 <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
developer2cdaeb12022-10-04 20:25:05 +0800438 clock-names = "main", "dma";
439 #address-cells = <1>;
440 #size-cells = <0>;
441 status = "disabled";
442 };
443
444 i2c1: i2c@11004000 {
445 compatible = "mediatek,mt7988-i2c",
446 "mediatek,mt7981-i2c";
447 reg = <0 0x11004000 0 0x1000>,
448 <0 0x10217100 0 0x80>;
449 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
450 clock-div = <1>;
developer1fca7052022-12-23 17:57:35 +0800451 clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
452 <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
developer2cdaeb12022-10-04 20:25:05 +0800453 clock-names = "main", "dma";
454 #address-cells = <1>;
455 #size-cells = <0>;
456 status = "disabled";
457 };
458
459 i2c2: i2c@11005000 {
460 compatible = "mediatek,mt7988-i2c",
461 "mediatek,mt7981-i2c";
462 reg = <0 0x11005000 0 0x1000>,
463 <0 0x10217180 0 0x80>;
464 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
465 clock-div = <1>;
developer1fca7052022-12-23 17:57:35 +0800466 clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
467 <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
developer2cdaeb12022-10-04 20:25:05 +0800468 clock-names = "main", "dma";
469 #address-cells = <1>;
470 #size-cells = <0>;
471 status = "disabled";
472 };
473
474 pwm: pwm@10048000 {
475 compatible = "mediatek,mt7988-pwm";
476 reg = <0 0x10048000 0 0x1000>;
477 #pwm-cells = <2>;
developer1ad6fe42022-11-02 11:33:26 +0800478 clocks = <&infracfg_ao CK_INFRA_66M_PWM_BCK>,
479 <&infracfg_ao CK_INFRA_66M_PWM_HCK>,
480 <&infracfg_ao CK_INFRA_66M_PWM_CK1>,
481 <&infracfg_ao CK_INFRA_66M_PWM_CK2>,
482 <&infracfg_ao CK_INFRA_66M_PWM_CK3>,
483 <&infracfg_ao CK_INFRA_66M_PWM_CK4>,
484 <&infracfg_ao CK_INFRA_66M_PWM_CK5>,
485 <&infracfg_ao CK_INFRA_66M_PWM_CK6>,
486 <&infracfg_ao CK_INFRA_66M_PWM_CK7>,
487 <&infracfg_ao CK_INFRA_66M_PWM_CK8>;
developer2cdaeb12022-10-04 20:25:05 +0800488 clock-names = "top", "main", "pwm1", "pwm2", "pwm3",
489 "pwm4","pwm5","pwm6","pwm7","pwm8";
490 status = "disabled";
491 };
492
493 fan: pwm-fan {
494 compatible = "pwm-fan";
495 /* cooling level (0, 1, 2) : (0% duty, 50% duty, 100% duty) */
496 cooling-levels = <0 128 255>;
497 #cooling-cells = <2>;
498 #thermal-sensor-cells = <1>;
499 status = "disabled";
500 };
501
502 lvts: lvts@1100a000 {
503 compatible = "mediatek,mt7988-lvts";
504 #thermal-sensor-cells = <1>;
505 reg = <0 0x1100a000 0 0x1000>;
developer1bbcf512022-11-18 16:09:33 +0800506 clocks = <&infracfg_ao CK_INFRA_26M_THERM_SYSTEM>;
developer2cdaeb12022-10-04 20:25:05 +0800507 clock-names = "lvts_clk";
508 nvmem-cells = <&lvts_calibration>;
509 nvmem-cell-names = "e_data1";
510 };
511
512 crypto: crypto@15600000 {
513 compatible = "inside-secure,safexcel-eip197b";
514 reg = <0 0x15600000 0 0x180000>;
515 interrupts = <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
516 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
517 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>,
518 <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
519 interrupt-names = "ring0", "ring1", "ring2", "ring3";
520 status = "okay";
521 };
522
developer3594afb2022-10-25 13:22:53 +0800523 afe: audio-controller@11210000 {
524 compatible = "mediatek,mt79xx-audio";
525 reg = <0 0x11210000 0 0x9000>;
526 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
527 clocks = <&infracfg_ao CK_INFRA_66M_AUD_SLV_BCK>,
528 <&infracfg_ao CK_INFRA_AUD_26M>,
529 <&infracfg_ao CK_INFRA_AUD_L>,
530 <&infracfg_ao CK_INFRA_AUD_AUD>,
531 <&infracfg_ao CK_INFRA_AUD_EG2>,
532 <&topckgen CK_TOP_AUD_SEL>,
533 <&topckgen CK_TOP_AUD_I2S_M>;
534 clock-names = "aud_bus_ck",
535 "aud_26m_ck",
536 "aud_l_ck",
537 "aud_aud_ck",
538 "aud_eg2_ck",
539 "aud_sel",
540 "aud_i2s_m";
541 assigned-clocks = <&topckgen CK_TOP_AUD_SEL>,
542 <&topckgen CK_TOP_A1SYS_SEL>,
543 <&topckgen CK_TOP_AUD_L_SEL>,
544 <&topckgen CK_TOP_A_TUNER_SEL>;
545 assigned-clock-parents = <&topckgen CK_TOP_CB_APLL2_196M>,
546 <&topckgen CK_TOP_CB_APLL2_D4>,
547 <&topckgen CK_TOP_CB_APLL2_196M>,
548 <&topckgen CK_TOP_CB_APLL2_D4>;
549 status = "disabled";
550 };
551
developer2cdaeb12022-10-04 20:25:05 +0800552 pcie0: pcie@11300000 {
553 compatible = "mediatek,mt7988-pcie",
554 "mediatek,mt7986-pcie";
555 device_type = "pci";
556 #address-cells = <3>;
557 #size-cells = <2>;
558 reg = <0 0x11300000 0 0x2000>;
559 reg-names = "pcie-mac";
560 linux,pci-domain = <0>;
561 interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
562 bus-range = <0x00 0xff>;
563 ranges = <0x81000000 0x00 0x30000000 0x00
564 0x30000000 0x00 0x00200000>,
565 <0x82000000 0x00 0x30200000 0x00
566 0x30200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800567 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P0>,
developer2cdaeb12022-10-04 20:25:05 +0800568 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P0>,
developerca2082b2022-11-01 11:23:49 +0800569 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P0>,
570 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P0>;
571 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
572 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800573
574 #interrupt-cells = <1>;
575 interrupt-map-mask = <0 0 0 0x7>;
576 interrupt-map = <0 0 0 1 &pcie_intc0 0>,
577 <0 0 0 2 &pcie_intc0 1>,
578 <0 0 0 3 &pcie_intc0 2>,
579 <0 0 0 4 &pcie_intc0 3>;
580 pcie_intc0: interrupt-controller {
581 #address-cells = <0>;
582 #interrupt-cells = <1>;
583 interrupt-controller;
584 };
585 };
586
587 pcie1: pcie@11310000 {
588 compatible = "mediatek,mt7988-pcie",
589 "mediatek,mt7986-pcie";
590 device_type = "pci";
591 #address-cells = <3>;
592 #size-cells = <2>;
593 reg = <0 0x11310000 0 0x2000>;
594 reg-names = "pcie-mac";
595 linux,pci-domain = <1>;
596 interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
597 bus-range = <0x00 0xff>;
598 ranges = <0x81000000 0x00 0x38000000 0x00
599 0x38000000 0x00 0x00200000>,
600 <0x82000000 0x00 0x38200000 0x00
601 0x38200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800602 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P1>,
developer2cdaeb12022-10-04 20:25:05 +0800603 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P1>,
developerca2082b2022-11-01 11:23:49 +0800604 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P1>,
605 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P1>;
606 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
607 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800608
609 #interrupt-cells = <1>;
610 interrupt-map-mask = <0 0 0 0x7>;
611 interrupt-map = <0 0 0 1 &pcie_intc1 0>,
612 <0 0 0 2 &pcie_intc1 1>,
613 <0 0 0 3 &pcie_intc1 2>,
614 <0 0 0 4 &pcie_intc1 3>;
615 pcie_intc1: interrupt-controller {
616 #address-cells = <0>;
617 #interrupt-cells = <1>;
618 interrupt-controller;
619 };
620 };
621
622 pcie2: pcie@11280000 {
623 compatible = "mediatek,mt7988-pcie",
624 "mediatek,mt7986-pcie";
625 device_type = "pci";
626 #address-cells = <3>;
627 #size-cells = <2>;
628 reg = <0 0x11280000 0 0x2000>;
629 reg-names = "pcie-mac";
630 linux,pci-domain = <3>;
631 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
632 bus-range = <0x00 0xff>;
633 ranges = <0x81000000 0x00 0x20000000 0x00
634 0x20000000 0x00 0x00200000>,
635 <0x82000000 0x00 0x20200000 0x00
636 0x20200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800637 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P2>,
developer2cdaeb12022-10-04 20:25:05 +0800638 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P2>,
developer2cdaeb12022-10-04 20:25:05 +0800639 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P2>,
developerca2082b2022-11-01 11:23:49 +0800640 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P2>;
641 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
642 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800643
644 phys = <&xphyu3port0 PHY_TYPE_PCIE>;
645 phy-names = "pcie-phy";
646
647 #interrupt-cells = <1>;
648 interrupt-map-mask = <0 0 0 0x7>;
649 interrupt-map = <0 0 0 1 &pcie_intc2 0>,
650 <0 0 0 2 &pcie_intc2 1>,
651 <0 0 0 3 &pcie_intc2 2>,
652 <0 0 0 4 &pcie_intc2 3>;
653 pcie_intc2: interrupt-controller {
654 #address-cells = <0>;
655 #interrupt-cells = <1>;
656 interrupt-controller;
657 };
658 };
659
660 pcie3: pcie@11290000 {
661 compatible = "mediatek,mt7988-pcie",
662 "mediatek,mt7986-pcie";
663 device_type = "pci";
664 #address-cells = <3>;
665 #size-cells = <2>;
666 reg = <0 0x11290000 0 0x2000>;
667 reg-names = "pcie-mac";
668 linux,pci-domain = <2>;
669 interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
670 bus-range = <0x00 0xff>;
671 ranges = <0x81000000 0x00 0x28000000 0x00
672 0x28000000 0x00 0x00200000>,
673 <0x82000000 0x00 0x28200000 0x00
674 0x28200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800675 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P3>,
developer2cdaeb12022-10-04 20:25:05 +0800676 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P3>,
developerca2082b2022-11-01 11:23:49 +0800677 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P3>,
678 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P3>;
679 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
680 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800681
682 #interrupt-cells = <1>;
683 interrupt-map-mask = <0 0 0 0x7>;
684 interrupt-map = <0 0 0 1 &pcie_intc3 0>,
685 <0 0 0 2 &pcie_intc3 1>,
686 <0 0 0 3 &pcie_intc3 2>,
687 <0 0 0 4 &pcie_intc3 3>;
688 pcie_intc3: interrupt-controller {
689 #address-cells = <0>;
690 #interrupt-cells = <1>;
691 interrupt-controller;
692 };
693 };
694
695 pio: pinctrl@1001f000 {
696 compatible = "mediatek,mt7988-pinctrl";
697 reg = <0 0x1001f000 0 0x1000>,
698 <0 0x11c10000 0 0x1000>,
699 <0 0x11d00000 0 0x1000>,
700 <0 0x11d20000 0 0x1000>,
701 <0 0x11e00000 0 0x1000>,
702 <0 0x11f00000 0 0x1000>,
703 <0 0x1000b000 0 0x1000>;
704 reg-names = "gpio_base", "iocfg_tr_base", "iocfg_br_base",
705 "iocfg_rb_base", "iocfg_lb_base", "iocfg_tl_base",
706 "eint";
707 gpio-controller;
708 #gpio-cells = <2>;
709 gpio-ranges = <&pio 0 0 83>;
710 interrupt-controller;
developera9e41142022-11-01 09:46:14 +0800711 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developer2cdaeb12022-10-04 20:25:05 +0800712 interrupt-parent = <&gic>;
713 #interrupt-cells = <2>;
714 };
715
716 ethsys: syscon@15000000 {
717 #address-cells = <1>;
718 #size-cells = <1>;
719 compatible = "mediatek,mt7988-ethsys",
720 "syscon";
721 reg = <0 0x15000000 0 0x1000>;
722 #clock-cells = <1>;
723 #reset-cells = <1>;
724
725 ethsysrst: reset-controller {
726 compatible = "ti,syscon-reset";
727 #reset-cells = <1>;
728 ti,reset-bits =
729 <0x34 4 0x34 4 0x34 4
730 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
731 };
732 };
733
734 ethwarp: syscon@15031000 {
735 compatible = "mediatek,mt7988-ethwarp", "syscon";
736 reg = <0 0x15031000 0 0x1000>;
737 #clock-cells = <1>;
738 };
739
740 switch0: switch0@15020000 {
741 #address-cells = <1>;
742 #size-cells = <1>;
743 compatible = "mediatek,mt7988-switch", "syscon";
744 reg = <0 0x15020000 0 0x8000>;
745 };
746
747 eth: ethernet@15100000 {
748 compatible = "mediatek,mt7988-eth";
749 reg = <0 0x15100000 0 0x80000>,
750 <0 0x15400000 0 0x380000>;
751 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
752 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
753 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
754 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer1bbcf512022-11-18 16:09:33 +0800755 clocks = <&ethsys CK_ETHDMA_XGP1_EN>,
756 <&ethsys CK_ETHDMA_XGP2_EN>,
757 <&ethsys CK_ETHDMA_XGP3_EN>,
758 <&ethsys CK_ETHDMA_FE_EN>,
759 <&ethsys CK_ETHDMA_GP2_EN>,
760 <&ethsys CK_ETHDMA_GP1_EN>,
761 <&ethsys CK_ETHDMA_GP3_EN>,
762 <&ethsys CK_ETHDMA_ESW_EN>,
763 <&ethsys CK_ETHDMA_CRYPT0_EN>,
764 <&sgmiisys0 CK_SGM0_TX_EN>,
765 <&sgmiisys0 CK_SGM0_RX_EN>,
766 <&sgmiisys1 CK_SGM1_TX_EN>,
767 <&sgmiisys1 CK_SGM1_RX_EN>,
developer5cfc67a2022-12-29 19:06:51 +0800768 <&ethwarp CK_ETHWARP_WOCPU2_EN>,
769 <&ethwarp CK_ETHWARP_WOCPU1_EN>,
770 <&ethwarp CK_ETHWARP_WOCPU0_EN>,
developer1bbcf512022-11-18 16:09:33 +0800771 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
772 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
773 <&topckgen CK_TOP_SGM_0_SEL>,
developer5cfc67a2022-12-29 19:06:51 +0800774 <&topckgen CK_TOP_SGM_1_SEL>,
775 <&topckgen CK_TOP_XFI_PHY_0_XTAL_SEL>,
776 <&topckgen CK_TOP_XFI_PHY_1_XTAL_SEL>,
777 <&topckgen CK_TOP_ETH_GMII_SEL>,
778 <&topckgen CK_TOP_ETH_REFCK_50M_SEL>,
779 <&topckgen CK_TOP_ETH_SYS_200M_SEL>,
780 <&topckgen CK_TOP_ETH_SYS_SEL>,
781 <&topckgen CK_TOP_ETH_XGMII_SEL>,
782 <&topckgen CK_TOP_ETH_MII_SEL>,
783 <&topckgen CK_TOP_NETSYS_SEL>,
784 <&topckgen CK_TOP_NETSYS_500M_SEL>,
785 <&topckgen CK_TOP_NETSYS_PAO_2X_SEL>,
786 <&topckgen CK_TOP_NETSYS_SYNC_250M_SEL>,
787 <&topckgen CK_TOP_NETSYS_PPEFB_250M_SEL>,
788 <&topckgen CK_TOP_NETSYS_WARP_SEL>;
developer1bbcf512022-11-18 16:09:33 +0800789 clock-names = "xgp1", "xgp2", "xgp3", "fe", "gp2", "gp1",
790 "gp3", "esw", "crypto", "sgmii_tx250m",
791 "sgmii_rx250m", "sgmii2_tx250m", "sgmii2_rx250m",
developer5cfc67a2022-12-29 19:06:51 +0800792 "ethwarp_wocpu2", "ethwarp_wocpu1",
793 "ethwarp_wocpu0", "top_usxgmii0_sel",
794 "top_usxgmii1_sel", "top_sgm0_sel",
795 "top_sgm1_sel", "top_xfi_phy0_xtal_sel",
796 "top_xfi_phy1_xtal_sel", "top_eth_gmii_sel",
797 "top_eth_refck_50m_sel", "top_eth_sys_200m_sel",
798 "top_eth_sys_sel", "top_eth_xgmii_sel",
799 "top_eth_mii_sel", "top_netsys_sel",
800 "top_netsys_500m_sel", "top_netsys_pao_2x_sel",
801 "top_netsys_sync_250m_sel",
802 "top_netsys_ppefb_250m_sel",
803 "top_netsys_warp_sel";
developer1bbcf512022-11-18 16:09:33 +0800804 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
805 <&topckgen CK_TOP_NETSYS_GSW_SEL>,
806 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
807 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
808 <&topckgen CK_TOP_SGM_0_SEL>,
809 <&topckgen CK_TOP_SGM_1_SEL>;
810 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
811 <&topckgen CK_TOP_CB_NET1_D4>,
812 <&topckgen CK_TOP_NET1_D8_D4>,
813 <&topckgen CK_TOP_NET1_D8_D4>,
814 <&topckgen CK_TOP_CB_SGM_325M>,
815 <&topckgen CK_TOP_CB_SGM_325M>;
developer2cdaeb12022-10-04 20:25:05 +0800816 mediatek,ethsys = <&ethsys>;
817 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
818 mediatek,usxgmiisys = <&usxgmiisys0>, <&usxgmiisys1>;
819 mediatek,xfi_pextp = <&xfi_pextp0>, <&xfi_pextp1>;
820 mediatek,xfi_pll = <&xfi_pll>;
821 mediatek,infracfg = <&topmisc>;
822 mediatek,toprgu = <&watchdog>;
823 #reset-cells = <1>;
824 #address-cells = <1>;
825 #size-cells = <0>;
826 status = "disabled";
827 };
828
829 hnat: hnat@15000000 {
830 compatible = "mediatek,mtk-hnat_v5";
831 reg = <0 0x15100000 0 0x80000>;
832 resets = <&ethsys 0>;
833 reset-names = "mtketh";
834 status = "disabled";
835 };
836
837 sgmiisys0: syscon@10060000 {
838 compatible = "mediatek,mt7988-sgmiisys",
839 "mediatek,mt7988-sgmiisys_0",
840 "syscon";
841 reg = <0 0x10060000 0 0x1000>;
842 #clock-cells = <1>;
843 };
844
845 sgmiisys1: syscon@10070000 {
846 compatible = "mediatek,mt7988-sgmiisys",
847 "mediatek,mt7988-sgmiisys_1",
848 "syscon";
849 reg = <0 0x10070000 0 0x1000>;
850 #clock-cells = <1>;
851 };
852
853 usxgmiisys0: usxgmiisys@10080000 {
854 compatible = "mediatek,mt7988-usxgmiisys",
855 "mediatek,mt7988-usxgmiisys_0",
856 "syscon";
857 reg = <0 0x10080000 0 0x1000>;
858 #clock-cells = <1>;
859 };
860
861 usxgmiisys1: usxgmiisys@10081000 {
862 compatible = "mediatek,mt7988-usxgmiisys",
863 "mediatek,mt7988-usxgmiisys_1",
864 "syscon";
865 reg = <0 0x10081000 0 0x1000>;
866 #clock-cells = <1>;
867 };
868
869 xfi_pextp0: xfi_pextp@11f20000 {
870 compatible = "mediatek,mt7988-xfi_pextp",
871 "mediatek,mt7988-xfi_pextp_0",
872 "syscon";
873 reg = <0 0x11f20000 0 0x10000>;
874 #clock-cells = <1>;
875 };
876
877 xfi_pextp1: xfi_pextp@11f30000 {
878 compatible = "mediatek,mt7988-xfi_pextp",
879 "mediatek,mt7988-xfi_pextp_1",
880 "syscon";
881 reg = <0 0x11f30000 0 0x10000>;
882 #clock-cells = <1>;
883 };
884
885 xfi_pll: xfi_pll@11f40000 {
886 compatible = "mediatek,mt7988-xfi_pll", "syscon";
887 reg = <0 0x11f40000 0 0x1000>;
888 #clock-cells = <1>;
889 };
890
891 topmisc: topmisc@11d10000 {
892 compatible = "mediatek,mt7988-topmisc", "syscon",
893 "mediatek,mt7988-power-controller";
894 reg = <0 0x11d10000 0 0x10000>;
895 #clock-cells = <1>;
896 #power-domain-cells = <1>;
897 #address-cells = <1>;
898 #size-cells = <0>;
899 /* power domain of the SoC */
900 tops0@MT7988_POWER_DOMAIN_TOPS0 {
901 reg = <MT7988_POWER_DOMAIN_TOPS0>;
902 #power-domain-cells = <0>;
903 };
904 tops1@MT7988_POWER_DOMAIN_TOPS1 {
905 reg = <MT7988_POWER_DOMAIN_TOPS1>;
906 #power-domain-cells = <0>;
907 };
908 eth2p5@MT7988_POWER_DOMAIN_ETH2P5 {
909 reg = <MT7988_POWER_DOMAIN_ETH2P5>;
910 #power-domain-cells = <0>;
911 };
912 };
913
914 snand: snfi@11001000 {
developer54193ba2022-11-25 18:43:24 +0800915 compatible = "mediatek,mt7988-snand";
developer2cdaeb12022-10-04 20:25:05 +0800916 reg = <0 0x11001000 0 0x1000>, <0 0x11002000 0 0x1000>;
917 reg-names = "nfi", "ecc";
918 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer54193ba2022-11-25 18:43:24 +0800919 clocks = <&infracfg_ao CK_INFRA_SPINFI>,
920 <&infracfg_ao CK_INFRA_NFI>;
921 clock-names = "pad_clk", "nfi_clk";
922 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
923 <&topckgen CK_TOP_NFI1X_SEL>;
924 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>,
925 <&topckgen CK_TOP_CB_M_D8>;
developer2cdaeb12022-10-04 20:25:05 +0800926 #address-cells = <1>;
927 #size-cells = <0>;
928 status = "disabled";
929 };
930
931 wbsys: wbsys@18000000 {
932 compatible = "mediatek,wbsys";
933 reg = <0 0x18000000 0 0x1000000>;
934 linux,pci-domain = <4>;
935 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
936 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
937 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
938 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
939 chip_id = <0x7981>;
940 };
941
942 wed_pcie: wed_pcie@10003000 {
943 compatible = "mediatek,wed_pcie";
944 reg = <0 0x10003000 0 0x10>;
945 };
946
developer4c9c1c12022-11-02 11:30:47 +0800947 infra_bus_prot: infra_bus_prot@1000310c {
948 compatible = "mediatek,infracfg_ao_bus_hang_prot";
949 reg = <0 0x1000310c 0 0x14>;
950 };
951
developer2cdaeb12022-10-04 20:25:05 +0800952 spi0: spi@11007000 {
953 compatible = "mediatek,ipm-spi-quad";
954 reg = <0 0x11007000 0 0x100>;
955 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
956 clocks = <&topckgen CK_TOP_CB_M_D2>,
957 <&topckgen CK_TOP_SPI_SEL>,
958 <&infracfg_ao CK_INFRA_104M_SPI0>,
959 <&infracfg_ao CK_INFRA_66M_SPI0_HCK>;
960 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
961 status = "disabled";
962 };
963
964 spi1: spi@11008000 {
965 compatible = "mediatek,ipm-spi-single";
966 reg = <0 0x11008000 0 0x100>;
967 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
968 clocks = <&topckgen CK_TOP_CB_M_D2>,
969 <&topckgen CK_TOP_SPI_SEL>,
970 <&infracfg_ao CK_INFRA_104M_SPI1>,
971 <&infracfg_ao CK_INFRA_66M_SPI1_HCK>;
972 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
973 status = "disabled";
974 };
975
976 spi2: spi@11009000 {
977 compatible = "mediatek,ipm-spi-quad";
978 reg = <0 0x11009000 0 0x100>;
979 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
980 clocks = <&topckgen CK_TOP_CB_M_D2>,
981 <&topckgen CK_TOP_SPI_SEL>,
982 <&infracfg_ao CK_INFRA_104M_SPI2_BCK>,
983 <&infracfg_ao CK_INFRA_66M_SPI2_HCK>;
984 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
985 status = "disabled";
986 };
987
988 consys: consys@10000000 {
989 compatible = "mediatek,mt7981-consys";
990 reg = <0 0x10000000 0 0x8600000>;
991 memory-region = <&wmcpu_emi>;
992 };
993
994 xhci0: xhci@11190000 {
995 compatible = "mediatek,mt7988-xhci",
996 "mediatek,mtk-xhci";
997 reg = <0 0x11190000 0 0x2e00>,
998 <0 0x11193e00 0 0x0100>;
999 reg-names = "mac", "ippc";
1000 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
1001 phys = <&xphyu2port0 PHY_TYPE_USB2>,
1002 <&xphyu3port0 PHY_TYPE_USB3>;
developerc52bff42022-11-18 15:25:28 +08001003 clocks = <&infracfg_ao CK_INFRA_USB_SYS>,
1004 <&infracfg_ao CK_INFRA_USB_XHCI>,
1005 <&infracfg_ao CK_INFRA_USB_REF>,
1006 <&infracfg_ao CK_INFRA_66M_USB_HCK>,
1007 <&infracfg_ao CK_INFRA_133M_USB_HCK>;
developer2cdaeb12022-10-04 20:25:05 +08001008 clock-names = "sys_ck",
1009 "xhci_ck",
1010 "ref_ck",
1011 "mcu_ck",
1012 "dma_ck";
1013 #address-cells = <2>;
1014 #size-cells = <2>;
developer8cdcb262022-10-27 14:36:15 +08001015 mediatek,p0_speed_fixup;
developer2cdaeb12022-10-04 20:25:05 +08001016 status = "okay";
1017 };
1018
1019 usbxphy: usb-phy@11e10000 {
1020 compatible = "mediatek,mt7988",
1021 "mediatek,xsphy";
1022 #address-cells = <2>;
1023 #size-cells = <2>;
1024 ranges;
1025 status = "okay";
1026
1027 xphyu2port0: usb-phy@11e10000 {
1028 reg = <0 0x11e10000 0 0x400>;
developerc52bff42022-11-18 15:25:28 +08001029 clocks = <&infracfg_ao CK_INFRA_USB_UTMI>;
developer2cdaeb12022-10-04 20:25:05 +08001030 clock-names = "ref";
1031 #phy-cells = <1>;
1032 status = "okay";
1033 };
1034
1035 xphyu3port0: usb-phy@11e13000 {
1036 reg = <0 0x11e13400 0 0x500>;
developerc52bff42022-11-18 15:25:28 +08001037 clocks = <&infracfg_ao CK_INFRA_USB_PIPE>;
developer2cdaeb12022-10-04 20:25:05 +08001038 clock-names = "ref";
1039 #phy-cells = <1>;
1040 mediatek,syscon-type = <&topmisc 0x218 0>;
1041 status = "okay";
1042 };
1043 };
1044
1045 xhci1: xhci@11200000 {
1046 compatible = "mediatek,mt7988-xhci",
1047 "mediatek,mtk-xhci";
1048 reg = <0 0x11200000 0 0x2e00>,
1049 <0 0x11203e00 0 0x0100>;
1050 reg-names = "mac", "ippc";
1051 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
1052 phys = <&tphyu2port0 PHY_TYPE_USB2>,
1053 <&tphyu3port0 PHY_TYPE_USB3>;
developerc52bff42022-11-18 15:25:28 +08001054 clocks = <&infracfg_ao CK_INFRA_USB_SYS_CK_P1>,
1055 <&infracfg_ao CK_INFRA_USB_XHCI_CK_P1>,
1056 <&infracfg_ao CK_INFRA_USB_CK_P1>,
1057 <&infracfg_ao CK_INFRA_66M_USB_HCK_CK_P1>,
1058 <&infracfg_ao CK_INFRA_133M_USB_HCK_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001059 clock-names = "sys_ck",
1060 "xhci_ck",
1061 "ref_ck",
1062 "mcu_ck",
1063 "dma_ck";
1064 #address-cells = <2>;
1065 #size-cells = <2>;
1066 status = "okay";
1067 };
1068
1069 usbtphy: usb-phy@11c50000 {
1070 compatible = "mediatek,mt7988",
1071 "mediatek,generic-tphy-v2";
1072 #address-cells = <2>;
1073 #size-cells = <2>;
1074 ranges;
1075 status = "okay";
1076
1077 tphyu2port0: usb-phy@11c50000 {
1078 reg = <0 0x11c50000 0 0x700>;
developerc52bff42022-11-18 15:25:28 +08001079 clocks = <&infracfg_ao CK_INFRA_USB_UTMI_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001080 clock-names = "ref";
1081 #phy-cells = <1>;
1082 status = "okay";
1083 };
1084
1085 tphyu3port0: usb-phy@11c50700 {
1086 reg = <0 0x11c50700 0 0x900>;
developerc52bff42022-11-18 15:25:28 +08001087 clocks = <&infracfg_ao CK_INFRA_USB_PIPE_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001088 clock-names = "ref";
1089 #phy-cells = <1>;
developer8cdcb262022-10-27 14:36:15 +08001090 mediatek,usb3-pll-ssc-delta;
1091 mediatek,usb3-pll-ssc-delta1;
developer2cdaeb12022-10-04 20:25:05 +08001092 status = "okay";
1093 };
1094 };
1095
1096 clk40m: oscillator@0 {
1097 compatible = "fixed-clock";
1098 #clock-cells = <0>;
1099 clock-frequency = <40000000>;
1100 clock-output-names = "clkxtal";
1101 };
1102
1103 infracfg_ao: infracfg_ao@10001000 {
1104 compatible = "mediatek,mt7988-infracfg_ao", "syscon";
1105 reg = <0 0x10001000 0 0x1000>;
1106 #clock-cells = <1>;
1107 };
1108
1109 infracfg: infracfg@10209000 {
1110 compatible = "mediatek,mt7988-infracfg", "syscon";
1111 reg = <0 0x10209000 0 0x1000>;
1112 #clock-cells = <1>;
1113 };
1114
1115 topckgen: topckgen@1001B000 {
1116 compatible = "mediatek,mt7988-topckgen", "syscon";
1117 reg = <0 0x1001B000 0 0x1000>;
1118 #clock-cells = <1>;
1119 };
1120
1121 apmixedsys: apmixedsys@1001E000 {
1122 compatible = "mediatek,mt7988-apmixedsys", "syscon";
1123 reg = <0 0x1001E000 0 0x1000>;
1124 #clock-cells = <1>;
1125 };
1126
1127 mcusys: mcusys@100E0000 {
1128 compatible = "mediatek,mt7988-mcusys", "syscon";
1129 reg = <0 0x100E0000 0 0x1000>;
1130 #clock-cells = <1>;
1131 };
1132
1133 clkitg: clkitg {
1134 compatible = "simple-bus";
1135 };
1136
1137 efuse: efuse@11f50000 {
1138 compatible = "mediatek,efuse";
1139 reg = <0 0x11f50000 0 0x1000>;
1140 #address-cells = <1>;
1141 #size-cells = <1>;
1142
1143 lvts_calibration: calib@918 {
1144 reg = <0x918 0x28>;
1145 };
1146 phy_calibration_p0: calib@940 {
1147 reg = <0x940 0x10>;
1148 };
1149 phy_calibration_p1: calib@954 {
1150 reg = <0x954 0x10>;
1151 };
1152 phy_calibration_p2: calib@968 {
1153 reg = <0x968 0x10>;
1154 };
1155 phy_calibration_p3: calib@97c {
1156 reg = <0x97c 0x10>;
1157 };
1158 cpufreq_calibration: calib@278 {
1159 reg = <0x278 0x1>;
1160 };
1161 };
1162};
1163
1164#include "mt7988-clkitg.dtsi"