blob: 46f070888fce27659150a8da5206d554a6d0e53e [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 };
developerde8a1062023-01-31 17:00:33 +0800585
586 slot0: pcie@0,0 {
587 reg = <0x0000 0 0 0 0>;
588 };
developer2cdaeb12022-10-04 20:25:05 +0800589 };
590
591 pcie1: pcie@11310000 {
592 compatible = "mediatek,mt7988-pcie",
593 "mediatek,mt7986-pcie";
594 device_type = "pci";
595 #address-cells = <3>;
596 #size-cells = <2>;
597 reg = <0 0x11310000 0 0x2000>;
598 reg-names = "pcie-mac";
599 linux,pci-domain = <1>;
600 interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
601 bus-range = <0x00 0xff>;
602 ranges = <0x81000000 0x00 0x38000000 0x00
603 0x38000000 0x00 0x00200000>,
604 <0x82000000 0x00 0x38200000 0x00
605 0x38200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800606 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P1>,
developer2cdaeb12022-10-04 20:25:05 +0800607 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P1>,
developerca2082b2022-11-01 11:23:49 +0800608 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P1>,
609 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P1>;
610 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
611 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800612
613 #interrupt-cells = <1>;
614 interrupt-map-mask = <0 0 0 0x7>;
615 interrupt-map = <0 0 0 1 &pcie_intc1 0>,
616 <0 0 0 2 &pcie_intc1 1>,
617 <0 0 0 3 &pcie_intc1 2>,
618 <0 0 0 4 &pcie_intc1 3>;
619 pcie_intc1: interrupt-controller {
620 #address-cells = <0>;
621 #interrupt-cells = <1>;
622 interrupt-controller;
623 };
624 };
625
626 pcie2: pcie@11280000 {
627 compatible = "mediatek,mt7988-pcie",
628 "mediatek,mt7986-pcie";
629 device_type = "pci";
630 #address-cells = <3>;
631 #size-cells = <2>;
632 reg = <0 0x11280000 0 0x2000>;
633 reg-names = "pcie-mac";
634 linux,pci-domain = <3>;
635 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
636 bus-range = <0x00 0xff>;
637 ranges = <0x81000000 0x00 0x20000000 0x00
638 0x20000000 0x00 0x00200000>,
639 <0x82000000 0x00 0x20200000 0x00
640 0x20200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800641 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P2>,
developer2cdaeb12022-10-04 20:25:05 +0800642 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P2>,
developer2cdaeb12022-10-04 20:25:05 +0800643 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P2>,
developerca2082b2022-11-01 11:23:49 +0800644 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P2>;
645 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
646 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800647
648 phys = <&xphyu3port0 PHY_TYPE_PCIE>;
649 phy-names = "pcie-phy";
650
651 #interrupt-cells = <1>;
652 interrupt-map-mask = <0 0 0 0x7>;
653 interrupt-map = <0 0 0 1 &pcie_intc2 0>,
654 <0 0 0 2 &pcie_intc2 1>,
655 <0 0 0 3 &pcie_intc2 2>,
656 <0 0 0 4 &pcie_intc2 3>;
657 pcie_intc2: interrupt-controller {
658 #address-cells = <0>;
659 #interrupt-cells = <1>;
660 interrupt-controller;
661 };
662 };
663
664 pcie3: pcie@11290000 {
665 compatible = "mediatek,mt7988-pcie",
666 "mediatek,mt7986-pcie";
667 device_type = "pci";
668 #address-cells = <3>;
669 #size-cells = <2>;
670 reg = <0 0x11290000 0 0x2000>;
671 reg-names = "pcie-mac";
672 linux,pci-domain = <2>;
673 interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
674 bus-range = <0x00 0xff>;
675 ranges = <0x81000000 0x00 0x28000000 0x00
676 0x28000000 0x00 0x00200000>,
677 <0x82000000 0x00 0x28200000 0x00
678 0x28200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800679 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P3>,
developer2cdaeb12022-10-04 20:25:05 +0800680 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P3>,
developerca2082b2022-11-01 11:23:49 +0800681 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P3>,
682 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P3>;
683 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
684 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800685
686 #interrupt-cells = <1>;
687 interrupt-map-mask = <0 0 0 0x7>;
688 interrupt-map = <0 0 0 1 &pcie_intc3 0>,
689 <0 0 0 2 &pcie_intc3 1>,
690 <0 0 0 3 &pcie_intc3 2>,
691 <0 0 0 4 &pcie_intc3 3>;
692 pcie_intc3: interrupt-controller {
693 #address-cells = <0>;
694 #interrupt-cells = <1>;
695 interrupt-controller;
696 };
697 };
698
699 pio: pinctrl@1001f000 {
700 compatible = "mediatek,mt7988-pinctrl";
701 reg = <0 0x1001f000 0 0x1000>,
702 <0 0x11c10000 0 0x1000>,
703 <0 0x11d00000 0 0x1000>,
704 <0 0x11d20000 0 0x1000>,
705 <0 0x11e00000 0 0x1000>,
706 <0 0x11f00000 0 0x1000>,
707 <0 0x1000b000 0 0x1000>;
708 reg-names = "gpio_base", "iocfg_tr_base", "iocfg_br_base",
709 "iocfg_rb_base", "iocfg_lb_base", "iocfg_tl_base",
710 "eint";
711 gpio-controller;
712 #gpio-cells = <2>;
713 gpio-ranges = <&pio 0 0 83>;
714 interrupt-controller;
developera9e41142022-11-01 09:46:14 +0800715 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developer2cdaeb12022-10-04 20:25:05 +0800716 interrupt-parent = <&gic>;
717 #interrupt-cells = <2>;
718 };
719
720 ethsys: syscon@15000000 {
721 #address-cells = <1>;
722 #size-cells = <1>;
723 compatible = "mediatek,mt7988-ethsys",
724 "syscon";
725 reg = <0 0x15000000 0 0x1000>;
726 #clock-cells = <1>;
727 #reset-cells = <1>;
728
729 ethsysrst: reset-controller {
730 compatible = "ti,syscon-reset";
731 #reset-cells = <1>;
732 ti,reset-bits =
733 <0x34 4 0x34 4 0x34 4
734 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
735 };
736 };
737
738 ethwarp: syscon@15031000 {
739 compatible = "mediatek,mt7988-ethwarp", "syscon";
740 reg = <0 0x15031000 0 0x1000>;
741 #clock-cells = <1>;
742 };
743
744 switch0: switch0@15020000 {
745 #address-cells = <1>;
746 #size-cells = <1>;
747 compatible = "mediatek,mt7988-switch", "syscon";
748 reg = <0 0x15020000 0 0x8000>;
749 };
750
751 eth: ethernet@15100000 {
752 compatible = "mediatek,mt7988-eth";
753 reg = <0 0x15100000 0 0x80000>,
754 <0 0x15400000 0 0x380000>;
755 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
756 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
757 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
758 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer1bbcf512022-11-18 16:09:33 +0800759 clocks = <&ethsys CK_ETHDMA_XGP1_EN>,
760 <&ethsys CK_ETHDMA_XGP2_EN>,
761 <&ethsys CK_ETHDMA_XGP3_EN>,
762 <&ethsys CK_ETHDMA_FE_EN>,
763 <&ethsys CK_ETHDMA_GP2_EN>,
764 <&ethsys CK_ETHDMA_GP1_EN>,
765 <&ethsys CK_ETHDMA_GP3_EN>,
766 <&ethsys CK_ETHDMA_ESW_EN>,
767 <&ethsys CK_ETHDMA_CRYPT0_EN>,
768 <&sgmiisys0 CK_SGM0_TX_EN>,
769 <&sgmiisys0 CK_SGM0_RX_EN>,
770 <&sgmiisys1 CK_SGM1_TX_EN>,
771 <&sgmiisys1 CK_SGM1_RX_EN>,
developer5cfc67a2022-12-29 19:06:51 +0800772 <&ethwarp CK_ETHWARP_WOCPU2_EN>,
773 <&ethwarp CK_ETHWARP_WOCPU1_EN>,
774 <&ethwarp CK_ETHWARP_WOCPU0_EN>,
developer1bbcf512022-11-18 16:09:33 +0800775 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
776 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
777 <&topckgen CK_TOP_SGM_0_SEL>,
developer5cfc67a2022-12-29 19:06:51 +0800778 <&topckgen CK_TOP_SGM_1_SEL>,
779 <&topckgen CK_TOP_XFI_PHY_0_XTAL_SEL>,
780 <&topckgen CK_TOP_XFI_PHY_1_XTAL_SEL>,
781 <&topckgen CK_TOP_ETH_GMII_SEL>,
782 <&topckgen CK_TOP_ETH_REFCK_50M_SEL>,
783 <&topckgen CK_TOP_ETH_SYS_200M_SEL>,
784 <&topckgen CK_TOP_ETH_SYS_SEL>,
785 <&topckgen CK_TOP_ETH_XGMII_SEL>,
786 <&topckgen CK_TOP_ETH_MII_SEL>,
787 <&topckgen CK_TOP_NETSYS_SEL>,
788 <&topckgen CK_TOP_NETSYS_500M_SEL>,
789 <&topckgen CK_TOP_NETSYS_PAO_2X_SEL>,
790 <&topckgen CK_TOP_NETSYS_SYNC_250M_SEL>,
791 <&topckgen CK_TOP_NETSYS_PPEFB_250M_SEL>,
792 <&topckgen CK_TOP_NETSYS_WARP_SEL>;
developer1bbcf512022-11-18 16:09:33 +0800793 clock-names = "xgp1", "xgp2", "xgp3", "fe", "gp2", "gp1",
794 "gp3", "esw", "crypto", "sgmii_tx250m",
795 "sgmii_rx250m", "sgmii2_tx250m", "sgmii2_rx250m",
developer5cfc67a2022-12-29 19:06:51 +0800796 "ethwarp_wocpu2", "ethwarp_wocpu1",
797 "ethwarp_wocpu0", "top_usxgmii0_sel",
798 "top_usxgmii1_sel", "top_sgm0_sel",
799 "top_sgm1_sel", "top_xfi_phy0_xtal_sel",
800 "top_xfi_phy1_xtal_sel", "top_eth_gmii_sel",
801 "top_eth_refck_50m_sel", "top_eth_sys_200m_sel",
802 "top_eth_sys_sel", "top_eth_xgmii_sel",
803 "top_eth_mii_sel", "top_netsys_sel",
804 "top_netsys_500m_sel", "top_netsys_pao_2x_sel",
805 "top_netsys_sync_250m_sel",
806 "top_netsys_ppefb_250m_sel",
807 "top_netsys_warp_sel";
developer1bbcf512022-11-18 16:09:33 +0800808 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
809 <&topckgen CK_TOP_NETSYS_GSW_SEL>,
810 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
811 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
812 <&topckgen CK_TOP_SGM_0_SEL>,
813 <&topckgen CK_TOP_SGM_1_SEL>;
814 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
815 <&topckgen CK_TOP_CB_NET1_D4>,
816 <&topckgen CK_TOP_NET1_D8_D4>,
817 <&topckgen CK_TOP_NET1_D8_D4>,
818 <&topckgen CK_TOP_CB_SGM_325M>,
819 <&topckgen CK_TOP_CB_SGM_325M>;
developer2cdaeb12022-10-04 20:25:05 +0800820 mediatek,ethsys = <&ethsys>;
821 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
822 mediatek,usxgmiisys = <&usxgmiisys0>, <&usxgmiisys1>;
823 mediatek,xfi_pextp = <&xfi_pextp0>, <&xfi_pextp1>;
824 mediatek,xfi_pll = <&xfi_pll>;
825 mediatek,infracfg = <&topmisc>;
826 mediatek,toprgu = <&watchdog>;
827 #reset-cells = <1>;
828 #address-cells = <1>;
829 #size-cells = <0>;
830 status = "disabled";
831 };
832
833 hnat: hnat@15000000 {
834 compatible = "mediatek,mtk-hnat_v5";
835 reg = <0 0x15100000 0 0x80000>;
836 resets = <&ethsys 0>;
837 reset-names = "mtketh";
838 status = "disabled";
839 };
840
841 sgmiisys0: syscon@10060000 {
842 compatible = "mediatek,mt7988-sgmiisys",
843 "mediatek,mt7988-sgmiisys_0",
844 "syscon";
845 reg = <0 0x10060000 0 0x1000>;
846 #clock-cells = <1>;
847 };
848
849 sgmiisys1: syscon@10070000 {
850 compatible = "mediatek,mt7988-sgmiisys",
851 "mediatek,mt7988-sgmiisys_1",
852 "syscon";
853 reg = <0 0x10070000 0 0x1000>;
854 #clock-cells = <1>;
855 };
856
857 usxgmiisys0: usxgmiisys@10080000 {
858 compatible = "mediatek,mt7988-usxgmiisys",
859 "mediatek,mt7988-usxgmiisys_0",
860 "syscon";
861 reg = <0 0x10080000 0 0x1000>;
862 #clock-cells = <1>;
863 };
864
865 usxgmiisys1: usxgmiisys@10081000 {
866 compatible = "mediatek,mt7988-usxgmiisys",
867 "mediatek,mt7988-usxgmiisys_1",
868 "syscon";
869 reg = <0 0x10081000 0 0x1000>;
870 #clock-cells = <1>;
871 };
872
873 xfi_pextp0: xfi_pextp@11f20000 {
874 compatible = "mediatek,mt7988-xfi_pextp",
875 "mediatek,mt7988-xfi_pextp_0",
876 "syscon";
877 reg = <0 0x11f20000 0 0x10000>;
878 #clock-cells = <1>;
879 };
880
881 xfi_pextp1: xfi_pextp@11f30000 {
882 compatible = "mediatek,mt7988-xfi_pextp",
883 "mediatek,mt7988-xfi_pextp_1",
884 "syscon";
885 reg = <0 0x11f30000 0 0x10000>;
886 #clock-cells = <1>;
887 };
888
889 xfi_pll: xfi_pll@11f40000 {
890 compatible = "mediatek,mt7988-xfi_pll", "syscon";
891 reg = <0 0x11f40000 0 0x1000>;
892 #clock-cells = <1>;
893 };
894
895 topmisc: topmisc@11d10000 {
896 compatible = "mediatek,mt7988-topmisc", "syscon",
897 "mediatek,mt7988-power-controller";
898 reg = <0 0x11d10000 0 0x10000>;
899 #clock-cells = <1>;
900 #power-domain-cells = <1>;
901 #address-cells = <1>;
902 #size-cells = <0>;
903 /* power domain of the SoC */
904 tops0@MT7988_POWER_DOMAIN_TOPS0 {
905 reg = <MT7988_POWER_DOMAIN_TOPS0>;
906 #power-domain-cells = <0>;
907 };
908 tops1@MT7988_POWER_DOMAIN_TOPS1 {
909 reg = <MT7988_POWER_DOMAIN_TOPS1>;
910 #power-domain-cells = <0>;
911 };
912 eth2p5@MT7988_POWER_DOMAIN_ETH2P5 {
913 reg = <MT7988_POWER_DOMAIN_ETH2P5>;
914 #power-domain-cells = <0>;
915 };
916 };
917
918 snand: snfi@11001000 {
developer54193ba2022-11-25 18:43:24 +0800919 compatible = "mediatek,mt7988-snand";
developer2cdaeb12022-10-04 20:25:05 +0800920 reg = <0 0x11001000 0 0x1000>, <0 0x11002000 0 0x1000>;
921 reg-names = "nfi", "ecc";
922 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer54193ba2022-11-25 18:43:24 +0800923 clocks = <&infracfg_ao CK_INFRA_SPINFI>,
924 <&infracfg_ao CK_INFRA_NFI>;
925 clock-names = "pad_clk", "nfi_clk";
926 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
927 <&topckgen CK_TOP_NFI1X_SEL>;
928 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>,
929 <&topckgen CK_TOP_CB_M_D8>;
developer2cdaeb12022-10-04 20:25:05 +0800930 #address-cells = <1>;
931 #size-cells = <0>;
932 status = "disabled";
933 };
934
935 wbsys: wbsys@18000000 {
936 compatible = "mediatek,wbsys";
937 reg = <0 0x18000000 0 0x1000000>;
938 linux,pci-domain = <4>;
939 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
940 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
941 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
942 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
943 chip_id = <0x7981>;
944 };
945
946 wed_pcie: wed_pcie@10003000 {
947 compatible = "mediatek,wed_pcie";
948 reg = <0 0x10003000 0 0x10>;
949 };
950
developer4c9c1c12022-11-02 11:30:47 +0800951 infra_bus_prot: infra_bus_prot@1000310c {
952 compatible = "mediatek,infracfg_ao_bus_hang_prot";
953 reg = <0 0x1000310c 0 0x14>;
954 };
955
developer2cdaeb12022-10-04 20:25:05 +0800956 spi0: spi@11007000 {
957 compatible = "mediatek,ipm-spi-quad";
958 reg = <0 0x11007000 0 0x100>;
959 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
960 clocks = <&topckgen CK_TOP_CB_M_D2>,
961 <&topckgen CK_TOP_SPI_SEL>,
962 <&infracfg_ao CK_INFRA_104M_SPI0>,
963 <&infracfg_ao CK_INFRA_66M_SPI0_HCK>;
964 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
965 status = "disabled";
966 };
967
968 spi1: spi@11008000 {
969 compatible = "mediatek,ipm-spi-single";
970 reg = <0 0x11008000 0 0x100>;
971 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
972 clocks = <&topckgen CK_TOP_CB_M_D2>,
973 <&topckgen CK_TOP_SPI_SEL>,
974 <&infracfg_ao CK_INFRA_104M_SPI1>,
975 <&infracfg_ao CK_INFRA_66M_SPI1_HCK>;
976 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
977 status = "disabled";
978 };
979
980 spi2: spi@11009000 {
981 compatible = "mediatek,ipm-spi-quad";
982 reg = <0 0x11009000 0 0x100>;
983 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
984 clocks = <&topckgen CK_TOP_CB_M_D2>,
985 <&topckgen CK_TOP_SPI_SEL>,
986 <&infracfg_ao CK_INFRA_104M_SPI2_BCK>,
987 <&infracfg_ao CK_INFRA_66M_SPI2_HCK>;
988 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
989 status = "disabled";
990 };
991
992 consys: consys@10000000 {
993 compatible = "mediatek,mt7981-consys";
994 reg = <0 0x10000000 0 0x8600000>;
995 memory-region = <&wmcpu_emi>;
996 };
997
998 xhci0: xhci@11190000 {
999 compatible = "mediatek,mt7988-xhci",
1000 "mediatek,mtk-xhci";
1001 reg = <0 0x11190000 0 0x2e00>,
1002 <0 0x11193e00 0 0x0100>;
1003 reg-names = "mac", "ippc";
1004 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
1005 phys = <&xphyu2port0 PHY_TYPE_USB2>,
1006 <&xphyu3port0 PHY_TYPE_USB3>;
developerc52bff42022-11-18 15:25:28 +08001007 clocks = <&infracfg_ao CK_INFRA_USB_SYS>,
1008 <&infracfg_ao CK_INFRA_USB_XHCI>,
1009 <&infracfg_ao CK_INFRA_USB_REF>,
1010 <&infracfg_ao CK_INFRA_66M_USB_HCK>,
1011 <&infracfg_ao CK_INFRA_133M_USB_HCK>;
developer2cdaeb12022-10-04 20:25:05 +08001012 clock-names = "sys_ck",
1013 "xhci_ck",
1014 "ref_ck",
1015 "mcu_ck",
1016 "dma_ck";
1017 #address-cells = <2>;
1018 #size-cells = <2>;
developer8cdcb262022-10-27 14:36:15 +08001019 mediatek,p0_speed_fixup;
developer2cdaeb12022-10-04 20:25:05 +08001020 status = "okay";
1021 };
1022
1023 usbxphy: usb-phy@11e10000 {
1024 compatible = "mediatek,mt7988",
1025 "mediatek,xsphy";
1026 #address-cells = <2>;
1027 #size-cells = <2>;
1028 ranges;
1029 status = "okay";
1030
1031 xphyu2port0: usb-phy@11e10000 {
1032 reg = <0 0x11e10000 0 0x400>;
developerc52bff42022-11-18 15:25:28 +08001033 clocks = <&infracfg_ao CK_INFRA_USB_UTMI>;
developer2cdaeb12022-10-04 20:25:05 +08001034 clock-names = "ref";
1035 #phy-cells = <1>;
1036 status = "okay";
1037 };
1038
1039 xphyu3port0: usb-phy@11e13000 {
1040 reg = <0 0x11e13400 0 0x500>;
developerc52bff42022-11-18 15:25:28 +08001041 clocks = <&infracfg_ao CK_INFRA_USB_PIPE>;
developer2cdaeb12022-10-04 20:25:05 +08001042 clock-names = "ref";
1043 #phy-cells = <1>;
1044 mediatek,syscon-type = <&topmisc 0x218 0>;
1045 status = "okay";
1046 };
1047 };
1048
1049 xhci1: xhci@11200000 {
1050 compatible = "mediatek,mt7988-xhci",
1051 "mediatek,mtk-xhci";
1052 reg = <0 0x11200000 0 0x2e00>,
1053 <0 0x11203e00 0 0x0100>;
1054 reg-names = "mac", "ippc";
1055 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
1056 phys = <&tphyu2port0 PHY_TYPE_USB2>,
1057 <&tphyu3port0 PHY_TYPE_USB3>;
developerc52bff42022-11-18 15:25:28 +08001058 clocks = <&infracfg_ao CK_INFRA_USB_SYS_CK_P1>,
1059 <&infracfg_ao CK_INFRA_USB_XHCI_CK_P1>,
1060 <&infracfg_ao CK_INFRA_USB_CK_P1>,
1061 <&infracfg_ao CK_INFRA_66M_USB_HCK_CK_P1>,
1062 <&infracfg_ao CK_INFRA_133M_USB_HCK_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001063 clock-names = "sys_ck",
1064 "xhci_ck",
1065 "ref_ck",
1066 "mcu_ck",
1067 "dma_ck";
1068 #address-cells = <2>;
1069 #size-cells = <2>;
1070 status = "okay";
1071 };
1072
1073 usbtphy: usb-phy@11c50000 {
1074 compatible = "mediatek,mt7988",
1075 "mediatek,generic-tphy-v2";
1076 #address-cells = <2>;
1077 #size-cells = <2>;
1078 ranges;
1079 status = "okay";
1080
1081 tphyu2port0: usb-phy@11c50000 {
1082 reg = <0 0x11c50000 0 0x700>;
developerc52bff42022-11-18 15:25:28 +08001083 clocks = <&infracfg_ao CK_INFRA_USB_UTMI_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001084 clock-names = "ref";
1085 #phy-cells = <1>;
1086 status = "okay";
1087 };
1088
1089 tphyu3port0: usb-phy@11c50700 {
1090 reg = <0 0x11c50700 0 0x900>;
developerc52bff42022-11-18 15:25:28 +08001091 clocks = <&infracfg_ao CK_INFRA_USB_PIPE_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001092 clock-names = "ref";
1093 #phy-cells = <1>;
developer8cdcb262022-10-27 14:36:15 +08001094 mediatek,usb3-pll-ssc-delta;
1095 mediatek,usb3-pll-ssc-delta1;
developer2cdaeb12022-10-04 20:25:05 +08001096 status = "okay";
1097 };
1098 };
1099
1100 clk40m: oscillator@0 {
1101 compatible = "fixed-clock";
1102 #clock-cells = <0>;
1103 clock-frequency = <40000000>;
1104 clock-output-names = "clkxtal";
1105 };
1106
1107 infracfg_ao: infracfg_ao@10001000 {
1108 compatible = "mediatek,mt7988-infracfg_ao", "syscon";
1109 reg = <0 0x10001000 0 0x1000>;
1110 #clock-cells = <1>;
1111 };
1112
1113 infracfg: infracfg@10209000 {
1114 compatible = "mediatek,mt7988-infracfg", "syscon";
1115 reg = <0 0x10209000 0 0x1000>;
1116 #clock-cells = <1>;
1117 };
1118
1119 topckgen: topckgen@1001B000 {
1120 compatible = "mediatek,mt7988-topckgen", "syscon";
1121 reg = <0 0x1001B000 0 0x1000>;
1122 #clock-cells = <1>;
1123 };
1124
1125 apmixedsys: apmixedsys@1001E000 {
1126 compatible = "mediatek,mt7988-apmixedsys", "syscon";
1127 reg = <0 0x1001E000 0 0x1000>;
1128 #clock-cells = <1>;
1129 };
1130
1131 mcusys: mcusys@100E0000 {
1132 compatible = "mediatek,mt7988-mcusys", "syscon";
1133 reg = <0 0x100E0000 0 0x1000>;
1134 #clock-cells = <1>;
1135 };
1136
1137 clkitg: clkitg {
1138 compatible = "simple-bus";
1139 };
1140
1141 efuse: efuse@11f50000 {
1142 compatible = "mediatek,efuse";
1143 reg = <0 0x11f50000 0 0x1000>;
1144 #address-cells = <1>;
1145 #size-cells = <1>;
1146
1147 lvts_calibration: calib@918 {
1148 reg = <0x918 0x28>;
1149 };
1150 phy_calibration_p0: calib@940 {
1151 reg = <0x940 0x10>;
1152 };
1153 phy_calibration_p1: calib@954 {
1154 reg = <0x954 0x10>;
1155 };
1156 phy_calibration_p2: calib@968 {
1157 reg = <0x968 0x10>;
1158 };
1159 phy_calibration_p3: calib@97c {
1160 reg = <0x97c 0x10>;
1161 };
1162 cpufreq_calibration: calib@278 {
1163 reg = <0x278 0x1>;
1164 };
1165 };
1166};
1167
1168#include "mt7988-clkitg.dtsi"