blob: 94fcba21fec5b611b89b0e226d47cb872fdc4c6d [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
developer739ffc62023-03-01 20:42:18 +0800289 ramoops: ramoops@42ff0000{
290 compatible = "ramoops";
291 reg = <0x0 0x42ff0000 0x0 0x10000>;
292 record-size = <0x2000>;
293 console-size = <0x2000>;
294 pmsg-size = <0x2000>;
295 };
296
developer2cdaeb12022-10-04 20:25:05 +0800297 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
298 secmon_reserved: secmon@43000000 {
299 reg = <0 0x43000000 0 0x30000>;
300 no-map;
301 };
302
303 wmcpu_emi: wmcpu-reserved@47CC0000 {
304 compatible = "mediatek,wmcpu-reserved";
305 no-map;
306 reg = <0 0x47CC0000 0 0x00100000>;
307 };
308
309 wocpu0_emi: wocpu0_emi@4F600000 {
310 compatible = "mediatek,wocpu0_emi";
311 no-map;
312 reg = <0 0x4F600000 0 0x40000>;
313 shared = <0>;
314 };
315
316 wocpu1_emi: wocpu1_emi@4F640000 {
317 compatible = "mediatek,wocpu1_emi";
318 no-map;
319 reg = <0 0x4F640000 0 0x40000>;
320 shared = <0>;
321 };
322
323 wocpu2_emi: wocpu2_emi@4F680000 {
324 compatible = "mediatek,wocpu2_emi";
325 no-map;
326 reg = <0 0x4F680000 0 0x40000>;
327 shared = <0>;
328 };
329
330 wocpu_data: wocpu_data@4F700000 {
331 compatible = "mediatek,wocpu_data";
332 no-map;
333 reg = <0 0x4F700000 0 0x800000>;
334 shared = <1>;
335 };
336 };
337
338 psci {
339 compatible = "arm,psci-0.2";
340 method = "smc";
341 };
342
343 system_clk: dummy_system_clk {
344 compatible = "fixed-clock";
345 clock-frequency = <40000000>;
346 #clock-cells = <0>;
347 };
348
developer2cdaeb12022-10-04 20:25:05 +0800349 timer {
350 compatible = "arm,armv8-timer";
351 interrupt-parent = <&gic>;
352 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
353 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
354 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
355 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
356
357 };
358
developer2cdaeb12022-10-04 20:25:05 +0800359 watchdog: watchdog@1001c000 {
360 compatible = "mediatek,mt7622-wdt",
361 "mediatek,mt6589-wdt",
362 "syscon";
363 reg = <0 0x1001c000 0 0x1000>;
364 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
365 #reset-cells = <1>;
366 };
367
368 phyfw: phy-firmware@f000000 {
369 compatible = "mediatek,2p5gphy-fw";
370 reg = <0 0x0f000000 0 0x8000>,
371 <0 0x0f100000 0 0x20000>,
372 <0 0x0f0f0000 0 0x200>;
373 };
374
developer23021292022-10-21 19:10:10 +0800375 boottrap: boottrap@1001f6f0 {
376 compatible = "mediatek,boottrap";
377 reg = <0 0x1001f6f0 0 0x20>;
378 };
379
developer2cdaeb12022-10-04 20:25:05 +0800380 gic: interrupt-controller@c000000 {
381 compatible = "arm,gic-v3";
382 #interrupt-cells = <3>;
383 interrupt-parent = <&gic>;
384 interrupt-controller;
385 reg = <0 0x0c000000 0 0x40000>, /* GICD */
386 <0 0x0c080000 0 0x200000>; /* GICR */
387
388 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
389 };
390
391 trng: trng@1020f000 {
392 compatible = "mediatek,mt7988-rng";
393 };
394
395 uart0: serial@11000000 {
396 compatible = "mediatek,mt7986-uart",
397 "mediatek,mt6577-uart";
398 reg = <0 0x11000000 0 0x100>;
399 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
developer23b1e822022-11-30 13:39:54 +0800400 clocks = <&infracfg_ao CK_INFRA_52M_UART0_CK>;
401 clock-names = "bus";
402 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
403 <&infracfg_ao CK_INFRA_MUX_UART0_SEL>;
404 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
405 <&infracfg CK_INFRA_UART_O0>;
developer2cdaeb12022-10-04 20:25:05 +0800406 status = "disabled";
407 };
408
409 uart1: serial@11000100 {
410 compatible = "mediatek,mt7986-uart",
411 "mediatek,mt6577-uart";
412 reg = <0 0x11000100 0 0x100>;
413 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
developer23b1e822022-11-30 13:39:54 +0800414 clocks = <&infracfg_ao CK_INFRA_52M_UART1_CK>;
415 clock-names = "bus";
416 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
417 <&infracfg_ao CK_INFRA_MUX_UART1_SEL>;
418 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
419 <&infracfg CK_INFRA_UART_O1>;
developer2cdaeb12022-10-04 20:25:05 +0800420 status = "disabled";
421 };
422
423 uart2: serial@11000200 {
424 compatible = "mediatek,mt7986-uart",
425 "mediatek,mt6577-uart";
426 reg = <0 0x11000200 0 0x100>;
427 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
developer23b1e822022-11-30 13:39:54 +0800428 clocks = <&infracfg_ao CK_INFRA_52M_UART2_CK>;
429 clock-names = "bus";
430 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
431 <&infracfg_ao CK_INFRA_MUX_UART2_SEL>;
432 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
433 <&infracfg CK_INFRA_UART_O2>;
developer2cdaeb12022-10-04 20:25:05 +0800434 status = "disabled";
435 };
436
437 i2c0: i2c@11003000 {
438 compatible = "mediatek,mt7988-i2c",
439 "mediatek,mt7981-i2c";
440 reg = <0 0x11003000 0 0x1000>,
441 <0 0x10217080 0 0x80>;
442 interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
443 clock-div = <1>;
developer1fca7052022-12-23 17:57:35 +0800444 clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
445 <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
developer2cdaeb12022-10-04 20:25:05 +0800446 clock-names = "main", "dma";
447 #address-cells = <1>;
448 #size-cells = <0>;
449 status = "disabled";
450 };
451
452 i2c1: i2c@11004000 {
453 compatible = "mediatek,mt7988-i2c",
454 "mediatek,mt7981-i2c";
455 reg = <0 0x11004000 0 0x1000>,
456 <0 0x10217100 0 0x80>;
457 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
458 clock-div = <1>;
developer1fca7052022-12-23 17:57:35 +0800459 clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
460 <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
developer2cdaeb12022-10-04 20:25:05 +0800461 clock-names = "main", "dma";
462 #address-cells = <1>;
463 #size-cells = <0>;
464 status = "disabled";
465 };
466
467 i2c2: i2c@11005000 {
468 compatible = "mediatek,mt7988-i2c",
469 "mediatek,mt7981-i2c";
470 reg = <0 0x11005000 0 0x1000>,
471 <0 0x10217180 0 0x80>;
472 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
473 clock-div = <1>;
developer1fca7052022-12-23 17:57:35 +0800474 clocks = <&infracfg_ao CK_INFRA_I2C_BCK>,
475 <&infracfg_ao CK_INFRA_66M_AP_DMA_BCK>;
developer2cdaeb12022-10-04 20:25:05 +0800476 clock-names = "main", "dma";
477 #address-cells = <1>;
478 #size-cells = <0>;
479 status = "disabled";
480 };
481
482 pwm: pwm@10048000 {
483 compatible = "mediatek,mt7988-pwm";
484 reg = <0 0x10048000 0 0x1000>;
485 #pwm-cells = <2>;
developer1ad6fe42022-11-02 11:33:26 +0800486 clocks = <&infracfg_ao CK_INFRA_66M_PWM_BCK>,
487 <&infracfg_ao CK_INFRA_66M_PWM_HCK>,
488 <&infracfg_ao CK_INFRA_66M_PWM_CK1>,
489 <&infracfg_ao CK_INFRA_66M_PWM_CK2>,
490 <&infracfg_ao CK_INFRA_66M_PWM_CK3>,
491 <&infracfg_ao CK_INFRA_66M_PWM_CK4>,
492 <&infracfg_ao CK_INFRA_66M_PWM_CK5>,
493 <&infracfg_ao CK_INFRA_66M_PWM_CK6>,
494 <&infracfg_ao CK_INFRA_66M_PWM_CK7>,
495 <&infracfg_ao CK_INFRA_66M_PWM_CK8>;
developer2cdaeb12022-10-04 20:25:05 +0800496 clock-names = "top", "main", "pwm1", "pwm2", "pwm3",
497 "pwm4","pwm5","pwm6","pwm7","pwm8";
498 status = "disabled";
499 };
500
501 fan: pwm-fan {
502 compatible = "pwm-fan";
503 /* cooling level (0, 1, 2) : (0% duty, 50% duty, 100% duty) */
504 cooling-levels = <0 128 255>;
505 #cooling-cells = <2>;
506 #thermal-sensor-cells = <1>;
507 status = "disabled";
508 };
509
510 lvts: lvts@1100a000 {
511 compatible = "mediatek,mt7988-lvts";
512 #thermal-sensor-cells = <1>;
513 reg = <0 0x1100a000 0 0x1000>;
developer1bbcf512022-11-18 16:09:33 +0800514 clocks = <&infracfg_ao CK_INFRA_26M_THERM_SYSTEM>;
developer2cdaeb12022-10-04 20:25:05 +0800515 clock-names = "lvts_clk";
516 nvmem-cells = <&lvts_calibration>;
517 nvmem-cell-names = "e_data1";
518 };
519
520 crypto: crypto@15600000 {
521 compatible = "inside-secure,safexcel-eip197b";
522 reg = <0 0x15600000 0 0x180000>;
523 interrupts = <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
524 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
525 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>,
526 <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
527 interrupt-names = "ring0", "ring1", "ring2", "ring3";
528 status = "okay";
529 };
530
developer3594afb2022-10-25 13:22:53 +0800531 afe: audio-controller@11210000 {
532 compatible = "mediatek,mt79xx-audio";
533 reg = <0 0x11210000 0 0x9000>;
534 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
535 clocks = <&infracfg_ao CK_INFRA_66M_AUD_SLV_BCK>,
536 <&infracfg_ao CK_INFRA_AUD_26M>,
537 <&infracfg_ao CK_INFRA_AUD_L>,
538 <&infracfg_ao CK_INFRA_AUD_AUD>,
539 <&infracfg_ao CK_INFRA_AUD_EG2>,
540 <&topckgen CK_TOP_AUD_SEL>,
541 <&topckgen CK_TOP_AUD_I2S_M>;
542 clock-names = "aud_bus_ck",
543 "aud_26m_ck",
544 "aud_l_ck",
545 "aud_aud_ck",
546 "aud_eg2_ck",
547 "aud_sel",
548 "aud_i2s_m";
549 assigned-clocks = <&topckgen CK_TOP_AUD_SEL>,
550 <&topckgen CK_TOP_A1SYS_SEL>,
551 <&topckgen CK_TOP_AUD_L_SEL>,
552 <&topckgen CK_TOP_A_TUNER_SEL>;
553 assigned-clock-parents = <&topckgen CK_TOP_CB_APLL2_196M>,
554 <&topckgen CK_TOP_CB_APLL2_D4>,
555 <&topckgen CK_TOP_CB_APLL2_196M>,
556 <&topckgen CK_TOP_CB_APLL2_D4>;
557 status = "disabled";
558 };
559
developer2cdaeb12022-10-04 20:25:05 +0800560 pcie0: pcie@11300000 {
561 compatible = "mediatek,mt7988-pcie",
562 "mediatek,mt7986-pcie";
563 device_type = "pci";
564 #address-cells = <3>;
565 #size-cells = <2>;
566 reg = <0 0x11300000 0 0x2000>;
567 reg-names = "pcie-mac";
568 linux,pci-domain = <0>;
569 interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
570 bus-range = <0x00 0xff>;
571 ranges = <0x81000000 0x00 0x30000000 0x00
572 0x30000000 0x00 0x00200000>,
573 <0x82000000 0x00 0x30200000 0x00
574 0x30200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800575 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P0>,
developer2cdaeb12022-10-04 20:25:05 +0800576 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P0>,
developerca2082b2022-11-01 11:23:49 +0800577 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P0>,
578 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P0>;
579 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
580 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800581
582 #interrupt-cells = <1>;
583 interrupt-map-mask = <0 0 0 0x7>;
584 interrupt-map = <0 0 0 1 &pcie_intc0 0>,
585 <0 0 0 2 &pcie_intc0 1>,
586 <0 0 0 3 &pcie_intc0 2>,
587 <0 0 0 4 &pcie_intc0 3>;
588 pcie_intc0: interrupt-controller {
589 #address-cells = <0>;
590 #interrupt-cells = <1>;
591 interrupt-controller;
592 };
developerde8a1062023-01-31 17:00:33 +0800593
594 slot0: pcie@0,0 {
595 reg = <0x0000 0 0 0 0>;
596 };
developer2cdaeb12022-10-04 20:25:05 +0800597 };
598
599 pcie1: pcie@11310000 {
600 compatible = "mediatek,mt7988-pcie",
601 "mediatek,mt7986-pcie";
602 device_type = "pci";
603 #address-cells = <3>;
604 #size-cells = <2>;
605 reg = <0 0x11310000 0 0x2000>;
606 reg-names = "pcie-mac";
607 linux,pci-domain = <1>;
608 interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
609 bus-range = <0x00 0xff>;
610 ranges = <0x81000000 0x00 0x38000000 0x00
611 0x38000000 0x00 0x00200000>,
612 <0x82000000 0x00 0x38200000 0x00
613 0x38200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800614 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P1>,
developer2cdaeb12022-10-04 20:25:05 +0800615 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P1>,
developerca2082b2022-11-01 11:23:49 +0800616 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P1>,
617 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P1>;
618 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
619 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800620
621 #interrupt-cells = <1>;
622 interrupt-map-mask = <0 0 0 0x7>;
623 interrupt-map = <0 0 0 1 &pcie_intc1 0>,
624 <0 0 0 2 &pcie_intc1 1>,
625 <0 0 0 3 &pcie_intc1 2>,
626 <0 0 0 4 &pcie_intc1 3>;
627 pcie_intc1: interrupt-controller {
628 #address-cells = <0>;
629 #interrupt-cells = <1>;
630 interrupt-controller;
631 };
632 };
633
634 pcie2: pcie@11280000 {
635 compatible = "mediatek,mt7988-pcie",
636 "mediatek,mt7986-pcie";
637 device_type = "pci";
638 #address-cells = <3>;
639 #size-cells = <2>;
640 reg = <0 0x11280000 0 0x2000>;
641 reg-names = "pcie-mac";
642 linux,pci-domain = <3>;
643 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
644 bus-range = <0x00 0xff>;
645 ranges = <0x81000000 0x00 0x20000000 0x00
646 0x20000000 0x00 0x00200000>,
647 <0x82000000 0x00 0x20200000 0x00
648 0x20200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800649 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P2>,
developer2cdaeb12022-10-04 20:25:05 +0800650 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P2>,
developer2cdaeb12022-10-04 20:25:05 +0800651 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P2>,
developerca2082b2022-11-01 11:23:49 +0800652 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P2>;
653 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
654 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800655
656 phys = <&xphyu3port0 PHY_TYPE_PCIE>;
657 phy-names = "pcie-phy";
658
659 #interrupt-cells = <1>;
660 interrupt-map-mask = <0 0 0 0x7>;
661 interrupt-map = <0 0 0 1 &pcie_intc2 0>,
662 <0 0 0 2 &pcie_intc2 1>,
663 <0 0 0 3 &pcie_intc2 2>,
664 <0 0 0 4 &pcie_intc2 3>;
665 pcie_intc2: interrupt-controller {
666 #address-cells = <0>;
667 #interrupt-cells = <1>;
668 interrupt-controller;
669 };
670 };
671
672 pcie3: pcie@11290000 {
673 compatible = "mediatek,mt7988-pcie",
674 "mediatek,mt7986-pcie";
675 device_type = "pci";
676 #address-cells = <3>;
677 #size-cells = <2>;
678 reg = <0 0x11290000 0 0x2000>;
679 reg-names = "pcie-mac";
680 linux,pci-domain = <2>;
681 interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
682 bus-range = <0x00 0xff>;
683 ranges = <0x81000000 0x00 0x28000000 0x00
684 0x28000000 0x00 0x00200000>,
685 <0x82000000 0x00 0x28200000 0x00
686 0x28200000 0x00 0x07e00000>;
developerca2082b2022-11-01 11:23:49 +0800687 clocks = <&infracfg_ao CK_INFRA_PCIE_PIPE_P3>,
developer2cdaeb12022-10-04 20:25:05 +0800688 <&infracfg_ao CK_INFRA_PCIE_GFMUX_TL_P3>,
developerca2082b2022-11-01 11:23:49 +0800689 <&infracfg_ao CK_INFRA_PCIE_PERI_26M_CK_P3>,
690 <&infracfg_ao CK_INFRA_133M_PCIE_CK_P3>;
691 clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
692 status = "disabled";
developer2cdaeb12022-10-04 20:25:05 +0800693
694 #interrupt-cells = <1>;
695 interrupt-map-mask = <0 0 0 0x7>;
696 interrupt-map = <0 0 0 1 &pcie_intc3 0>,
697 <0 0 0 2 &pcie_intc3 1>,
698 <0 0 0 3 &pcie_intc3 2>,
699 <0 0 0 4 &pcie_intc3 3>;
700 pcie_intc3: interrupt-controller {
701 #address-cells = <0>;
702 #interrupt-cells = <1>;
703 interrupt-controller;
704 };
705 };
706
707 pio: pinctrl@1001f000 {
708 compatible = "mediatek,mt7988-pinctrl";
709 reg = <0 0x1001f000 0 0x1000>,
710 <0 0x11c10000 0 0x1000>,
711 <0 0x11d00000 0 0x1000>,
712 <0 0x11d20000 0 0x1000>,
713 <0 0x11e00000 0 0x1000>,
714 <0 0x11f00000 0 0x1000>,
715 <0 0x1000b000 0 0x1000>;
716 reg-names = "gpio_base", "iocfg_tr_base", "iocfg_br_base",
717 "iocfg_rb_base", "iocfg_lb_base", "iocfg_tl_base",
718 "eint";
719 gpio-controller;
720 #gpio-cells = <2>;
721 gpio-ranges = <&pio 0 0 83>;
722 interrupt-controller;
developera9e41142022-11-01 09:46:14 +0800723 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developer2cdaeb12022-10-04 20:25:05 +0800724 interrupt-parent = <&gic>;
725 #interrupt-cells = <2>;
726 };
727
728 ethsys: syscon@15000000 {
729 #address-cells = <1>;
730 #size-cells = <1>;
731 compatible = "mediatek,mt7988-ethsys",
732 "syscon";
733 reg = <0 0x15000000 0 0x1000>;
734 #clock-cells = <1>;
735 #reset-cells = <1>;
736
737 ethsysrst: reset-controller {
738 compatible = "ti,syscon-reset";
739 #reset-cells = <1>;
740 ti,reset-bits =
741 <0x34 4 0x34 4 0x34 4
742 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
743 };
744 };
745
746 ethwarp: syscon@15031000 {
747 compatible = "mediatek,mt7988-ethwarp", "syscon";
748 reg = <0 0x15031000 0 0x1000>;
749 #clock-cells = <1>;
750 };
751
752 switch0: switch0@15020000 {
753 #address-cells = <1>;
754 #size-cells = <1>;
755 compatible = "mediatek,mt7988-switch", "syscon";
756 reg = <0 0x15020000 0 0x8000>;
757 };
758
759 eth: ethernet@15100000 {
760 compatible = "mediatek,mt7988-eth";
761 reg = <0 0x15100000 0 0x80000>,
762 <0 0x15400000 0 0x380000>;
763 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
764 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
765 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
766 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer1bbcf512022-11-18 16:09:33 +0800767 clocks = <&ethsys CK_ETHDMA_XGP1_EN>,
768 <&ethsys CK_ETHDMA_XGP2_EN>,
769 <&ethsys CK_ETHDMA_XGP3_EN>,
770 <&ethsys CK_ETHDMA_FE_EN>,
771 <&ethsys CK_ETHDMA_GP2_EN>,
772 <&ethsys CK_ETHDMA_GP1_EN>,
773 <&ethsys CK_ETHDMA_GP3_EN>,
774 <&ethsys CK_ETHDMA_ESW_EN>,
775 <&ethsys CK_ETHDMA_CRYPT0_EN>,
776 <&sgmiisys0 CK_SGM0_TX_EN>,
777 <&sgmiisys0 CK_SGM0_RX_EN>,
778 <&sgmiisys1 CK_SGM1_TX_EN>,
779 <&sgmiisys1 CK_SGM1_RX_EN>,
developer5cfc67a2022-12-29 19:06:51 +0800780 <&ethwarp CK_ETHWARP_WOCPU2_EN>,
781 <&ethwarp CK_ETHWARP_WOCPU1_EN>,
782 <&ethwarp CK_ETHWARP_WOCPU0_EN>,
developer1bbcf512022-11-18 16:09:33 +0800783 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
784 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
785 <&topckgen CK_TOP_SGM_0_SEL>,
developer5cfc67a2022-12-29 19:06:51 +0800786 <&topckgen CK_TOP_SGM_1_SEL>,
787 <&topckgen CK_TOP_XFI_PHY_0_XTAL_SEL>,
788 <&topckgen CK_TOP_XFI_PHY_1_XTAL_SEL>,
789 <&topckgen CK_TOP_ETH_GMII_SEL>,
790 <&topckgen CK_TOP_ETH_REFCK_50M_SEL>,
791 <&topckgen CK_TOP_ETH_SYS_200M_SEL>,
792 <&topckgen CK_TOP_ETH_SYS_SEL>,
793 <&topckgen CK_TOP_ETH_XGMII_SEL>,
794 <&topckgen CK_TOP_ETH_MII_SEL>,
795 <&topckgen CK_TOP_NETSYS_SEL>,
796 <&topckgen CK_TOP_NETSYS_500M_SEL>,
797 <&topckgen CK_TOP_NETSYS_PAO_2X_SEL>,
798 <&topckgen CK_TOP_NETSYS_SYNC_250M_SEL>,
799 <&topckgen CK_TOP_NETSYS_PPEFB_250M_SEL>,
800 <&topckgen CK_TOP_NETSYS_WARP_SEL>;
developer1bbcf512022-11-18 16:09:33 +0800801 clock-names = "xgp1", "xgp2", "xgp3", "fe", "gp2", "gp1",
802 "gp3", "esw", "crypto", "sgmii_tx250m",
803 "sgmii_rx250m", "sgmii2_tx250m", "sgmii2_rx250m",
developer5cfc67a2022-12-29 19:06:51 +0800804 "ethwarp_wocpu2", "ethwarp_wocpu1",
805 "ethwarp_wocpu0", "top_usxgmii0_sel",
806 "top_usxgmii1_sel", "top_sgm0_sel",
807 "top_sgm1_sel", "top_xfi_phy0_xtal_sel",
808 "top_xfi_phy1_xtal_sel", "top_eth_gmii_sel",
809 "top_eth_refck_50m_sel", "top_eth_sys_200m_sel",
810 "top_eth_sys_sel", "top_eth_xgmii_sel",
811 "top_eth_mii_sel", "top_netsys_sel",
812 "top_netsys_500m_sel", "top_netsys_pao_2x_sel",
813 "top_netsys_sync_250m_sel",
814 "top_netsys_ppefb_250m_sel",
815 "top_netsys_warp_sel";
developer1bbcf512022-11-18 16:09:33 +0800816 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
817 <&topckgen CK_TOP_NETSYS_GSW_SEL>,
818 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
819 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
820 <&topckgen CK_TOP_SGM_0_SEL>,
821 <&topckgen CK_TOP_SGM_1_SEL>;
822 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
823 <&topckgen CK_TOP_CB_NET1_D4>,
824 <&topckgen CK_TOP_NET1_D8_D4>,
825 <&topckgen CK_TOP_NET1_D8_D4>,
826 <&topckgen CK_TOP_CB_SGM_325M>,
827 <&topckgen CK_TOP_CB_SGM_325M>;
developer2cdaeb12022-10-04 20:25:05 +0800828 mediatek,ethsys = <&ethsys>;
829 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
830 mediatek,usxgmiisys = <&usxgmiisys0>, <&usxgmiisys1>;
831 mediatek,xfi_pextp = <&xfi_pextp0>, <&xfi_pextp1>;
832 mediatek,xfi_pll = <&xfi_pll>;
833 mediatek,infracfg = <&topmisc>;
834 mediatek,toprgu = <&watchdog>;
835 #reset-cells = <1>;
836 #address-cells = <1>;
837 #size-cells = <0>;
838 status = "disabled";
839 };
840
841 hnat: hnat@15000000 {
842 compatible = "mediatek,mtk-hnat_v5";
843 reg = <0 0x15100000 0 0x80000>;
844 resets = <&ethsys 0>;
845 reset-names = "mtketh";
846 status = "disabled";
847 };
848
849 sgmiisys0: syscon@10060000 {
850 compatible = "mediatek,mt7988-sgmiisys",
851 "mediatek,mt7988-sgmiisys_0",
852 "syscon";
853 reg = <0 0x10060000 0 0x1000>;
854 #clock-cells = <1>;
855 };
856
857 sgmiisys1: syscon@10070000 {
858 compatible = "mediatek,mt7988-sgmiisys",
859 "mediatek,mt7988-sgmiisys_1",
860 "syscon";
861 reg = <0 0x10070000 0 0x1000>;
862 #clock-cells = <1>;
863 };
864
865 usxgmiisys0: usxgmiisys@10080000 {
866 compatible = "mediatek,mt7988-usxgmiisys",
867 "mediatek,mt7988-usxgmiisys_0",
868 "syscon";
869 reg = <0 0x10080000 0 0x1000>;
870 #clock-cells = <1>;
871 };
872
873 usxgmiisys1: usxgmiisys@10081000 {
874 compatible = "mediatek,mt7988-usxgmiisys",
875 "mediatek,mt7988-usxgmiisys_1",
876 "syscon";
877 reg = <0 0x10081000 0 0x1000>;
878 #clock-cells = <1>;
879 };
880
881 xfi_pextp0: xfi_pextp@11f20000 {
882 compatible = "mediatek,mt7988-xfi_pextp",
883 "mediatek,mt7988-xfi_pextp_0",
884 "syscon";
885 reg = <0 0x11f20000 0 0x10000>;
886 #clock-cells = <1>;
887 };
888
889 xfi_pextp1: xfi_pextp@11f30000 {
890 compatible = "mediatek,mt7988-xfi_pextp",
891 "mediatek,mt7988-xfi_pextp_1",
892 "syscon";
893 reg = <0 0x11f30000 0 0x10000>;
894 #clock-cells = <1>;
895 };
896
897 xfi_pll: xfi_pll@11f40000 {
898 compatible = "mediatek,mt7988-xfi_pll", "syscon";
899 reg = <0 0x11f40000 0 0x1000>;
900 #clock-cells = <1>;
901 };
902
903 topmisc: topmisc@11d10000 {
904 compatible = "mediatek,mt7988-topmisc", "syscon",
905 "mediatek,mt7988-power-controller";
906 reg = <0 0x11d10000 0 0x10000>;
907 #clock-cells = <1>;
908 #power-domain-cells = <1>;
909 #address-cells = <1>;
910 #size-cells = <0>;
911 /* power domain of the SoC */
912 tops0@MT7988_POWER_DOMAIN_TOPS0 {
913 reg = <MT7988_POWER_DOMAIN_TOPS0>;
914 #power-domain-cells = <0>;
915 };
916 tops1@MT7988_POWER_DOMAIN_TOPS1 {
917 reg = <MT7988_POWER_DOMAIN_TOPS1>;
918 #power-domain-cells = <0>;
919 };
920 eth2p5@MT7988_POWER_DOMAIN_ETH2P5 {
921 reg = <MT7988_POWER_DOMAIN_ETH2P5>;
922 #power-domain-cells = <0>;
923 };
924 };
925
926 snand: snfi@11001000 {
developer54193ba2022-11-25 18:43:24 +0800927 compatible = "mediatek,mt7988-snand";
developer2cdaeb12022-10-04 20:25:05 +0800928 reg = <0 0x11001000 0 0x1000>, <0 0x11002000 0 0x1000>;
929 reg-names = "nfi", "ecc";
930 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer54193ba2022-11-25 18:43:24 +0800931 clocks = <&infracfg_ao CK_INFRA_SPINFI>,
932 <&infracfg_ao CK_INFRA_NFI>;
933 clock-names = "pad_clk", "nfi_clk";
934 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
935 <&topckgen CK_TOP_NFI1X_SEL>;
936 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>,
937 <&topckgen CK_TOP_CB_M_D8>;
developer2cdaeb12022-10-04 20:25:05 +0800938 #address-cells = <1>;
939 #size-cells = <0>;
940 status = "disabled";
941 };
942
943 wbsys: wbsys@18000000 {
944 compatible = "mediatek,wbsys";
945 reg = <0 0x18000000 0 0x1000000>;
946 linux,pci-domain = <4>;
947 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
948 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
949 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
950 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
951 chip_id = <0x7981>;
952 };
953
954 wed_pcie: wed_pcie@10003000 {
955 compatible = "mediatek,wed_pcie";
956 reg = <0 0x10003000 0 0x10>;
957 };
958
developer4c9c1c12022-11-02 11:30:47 +0800959 infra_bus_prot: infra_bus_prot@1000310c {
960 compatible = "mediatek,infracfg_ao_bus_hang_prot";
961 reg = <0 0x1000310c 0 0x14>;
962 };
963
developer2cdaeb12022-10-04 20:25:05 +0800964 spi0: spi@11007000 {
965 compatible = "mediatek,ipm-spi-quad";
966 reg = <0 0x11007000 0 0x100>;
967 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
968 clocks = <&topckgen CK_TOP_CB_M_D2>,
969 <&topckgen CK_TOP_SPI_SEL>,
970 <&infracfg_ao CK_INFRA_104M_SPI0>,
971 <&infracfg_ao CK_INFRA_66M_SPI0_HCK>;
972 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
973 status = "disabled";
974 };
975
976 spi1: spi@11008000 {
977 compatible = "mediatek,ipm-spi-single";
978 reg = <0 0x11008000 0 0x100>;
979 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
980 clocks = <&topckgen CK_TOP_CB_M_D2>,
981 <&topckgen CK_TOP_SPI_SEL>,
982 <&infracfg_ao CK_INFRA_104M_SPI1>,
983 <&infracfg_ao CK_INFRA_66M_SPI1_HCK>;
984 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
985 status = "disabled";
986 };
987
988 spi2: spi@11009000 {
989 compatible = "mediatek,ipm-spi-quad";
990 reg = <0 0x11009000 0 0x100>;
991 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
992 clocks = <&topckgen CK_TOP_CB_M_D2>,
993 <&topckgen CK_TOP_SPI_SEL>,
994 <&infracfg_ao CK_INFRA_104M_SPI2_BCK>,
995 <&infracfg_ao CK_INFRA_66M_SPI2_HCK>;
996 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
997 status = "disabled";
998 };
999
1000 consys: consys@10000000 {
1001 compatible = "mediatek,mt7981-consys";
1002 reg = <0 0x10000000 0 0x8600000>;
1003 memory-region = <&wmcpu_emi>;
1004 };
1005
1006 xhci0: xhci@11190000 {
1007 compatible = "mediatek,mt7988-xhci",
1008 "mediatek,mtk-xhci";
1009 reg = <0 0x11190000 0 0x2e00>,
1010 <0 0x11193e00 0 0x0100>;
1011 reg-names = "mac", "ippc";
1012 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
1013 phys = <&xphyu2port0 PHY_TYPE_USB2>,
1014 <&xphyu3port0 PHY_TYPE_USB3>;
developerc52bff42022-11-18 15:25:28 +08001015 clocks = <&infracfg_ao CK_INFRA_USB_SYS>,
1016 <&infracfg_ao CK_INFRA_USB_XHCI>,
1017 <&infracfg_ao CK_INFRA_USB_REF>,
1018 <&infracfg_ao CK_INFRA_66M_USB_HCK>,
1019 <&infracfg_ao CK_INFRA_133M_USB_HCK>;
developer2cdaeb12022-10-04 20:25:05 +08001020 clock-names = "sys_ck",
1021 "xhci_ck",
1022 "ref_ck",
1023 "mcu_ck",
1024 "dma_ck";
1025 #address-cells = <2>;
1026 #size-cells = <2>;
developer8cdcb262022-10-27 14:36:15 +08001027 mediatek,p0_speed_fixup;
developer2cdaeb12022-10-04 20:25:05 +08001028 status = "okay";
1029 };
1030
1031 usbxphy: usb-phy@11e10000 {
1032 compatible = "mediatek,mt7988",
1033 "mediatek,xsphy";
1034 #address-cells = <2>;
1035 #size-cells = <2>;
1036 ranges;
1037 status = "okay";
1038
1039 xphyu2port0: usb-phy@11e10000 {
1040 reg = <0 0x11e10000 0 0x400>;
developerc52bff42022-11-18 15:25:28 +08001041 clocks = <&infracfg_ao CK_INFRA_USB_UTMI>;
developer2cdaeb12022-10-04 20:25:05 +08001042 clock-names = "ref";
1043 #phy-cells = <1>;
1044 status = "okay";
1045 };
1046
1047 xphyu3port0: usb-phy@11e13000 {
1048 reg = <0 0x11e13400 0 0x500>;
developerc52bff42022-11-18 15:25:28 +08001049 clocks = <&infracfg_ao CK_INFRA_USB_PIPE>;
developer2cdaeb12022-10-04 20:25:05 +08001050 clock-names = "ref";
1051 #phy-cells = <1>;
1052 mediatek,syscon-type = <&topmisc 0x218 0>;
1053 status = "okay";
1054 };
1055 };
1056
1057 xhci1: xhci@11200000 {
1058 compatible = "mediatek,mt7988-xhci",
1059 "mediatek,mtk-xhci";
1060 reg = <0 0x11200000 0 0x2e00>,
1061 <0 0x11203e00 0 0x0100>;
1062 reg-names = "mac", "ippc";
1063 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
1064 phys = <&tphyu2port0 PHY_TYPE_USB2>,
1065 <&tphyu3port0 PHY_TYPE_USB3>;
developerc52bff42022-11-18 15:25:28 +08001066 clocks = <&infracfg_ao CK_INFRA_USB_SYS_CK_P1>,
1067 <&infracfg_ao CK_INFRA_USB_XHCI_CK_P1>,
1068 <&infracfg_ao CK_INFRA_USB_CK_P1>,
1069 <&infracfg_ao CK_INFRA_66M_USB_HCK_CK_P1>,
1070 <&infracfg_ao CK_INFRA_133M_USB_HCK_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001071 clock-names = "sys_ck",
1072 "xhci_ck",
1073 "ref_ck",
1074 "mcu_ck",
1075 "dma_ck";
1076 #address-cells = <2>;
1077 #size-cells = <2>;
1078 status = "okay";
1079 };
1080
1081 usbtphy: usb-phy@11c50000 {
1082 compatible = "mediatek,mt7988",
1083 "mediatek,generic-tphy-v2";
1084 #address-cells = <2>;
1085 #size-cells = <2>;
1086 ranges;
1087 status = "okay";
1088
1089 tphyu2port0: usb-phy@11c50000 {
1090 reg = <0 0x11c50000 0 0x700>;
developerc52bff42022-11-18 15:25:28 +08001091 clocks = <&infracfg_ao CK_INFRA_USB_UTMI_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001092 clock-names = "ref";
1093 #phy-cells = <1>;
1094 status = "okay";
1095 };
1096
1097 tphyu3port0: usb-phy@11c50700 {
1098 reg = <0 0x11c50700 0 0x900>;
developerc52bff42022-11-18 15:25:28 +08001099 clocks = <&infracfg_ao CK_INFRA_USB_PIPE_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001100 clock-names = "ref";
1101 #phy-cells = <1>;
developer8cdcb262022-10-27 14:36:15 +08001102 mediatek,usb3-pll-ssc-delta;
1103 mediatek,usb3-pll-ssc-delta1;
developer2cdaeb12022-10-04 20:25:05 +08001104 status = "okay";
1105 };
1106 };
1107
1108 clk40m: oscillator@0 {
1109 compatible = "fixed-clock";
1110 #clock-cells = <0>;
1111 clock-frequency = <40000000>;
1112 clock-output-names = "clkxtal";
1113 };
1114
1115 infracfg_ao: infracfg_ao@10001000 {
1116 compatible = "mediatek,mt7988-infracfg_ao", "syscon";
1117 reg = <0 0x10001000 0 0x1000>;
1118 #clock-cells = <1>;
1119 };
1120
1121 infracfg: infracfg@10209000 {
1122 compatible = "mediatek,mt7988-infracfg", "syscon";
1123 reg = <0 0x10209000 0 0x1000>;
1124 #clock-cells = <1>;
1125 };
1126
1127 topckgen: topckgen@1001B000 {
1128 compatible = "mediatek,mt7988-topckgen", "syscon";
1129 reg = <0 0x1001B000 0 0x1000>;
1130 #clock-cells = <1>;
1131 };
1132
1133 apmixedsys: apmixedsys@1001E000 {
1134 compatible = "mediatek,mt7988-apmixedsys", "syscon";
1135 reg = <0 0x1001E000 0 0x1000>;
1136 #clock-cells = <1>;
1137 };
1138
1139 mcusys: mcusys@100E0000 {
1140 compatible = "mediatek,mt7988-mcusys", "syscon";
1141 reg = <0 0x100E0000 0 0x1000>;
1142 #clock-cells = <1>;
1143 };
1144
1145 clkitg: clkitg {
1146 compatible = "simple-bus";
1147 };
1148
1149 efuse: efuse@11f50000 {
1150 compatible = "mediatek,efuse";
1151 reg = <0 0x11f50000 0 0x1000>;
1152 #address-cells = <1>;
1153 #size-cells = <1>;
1154
1155 lvts_calibration: calib@918 {
1156 reg = <0x918 0x28>;
1157 };
1158 phy_calibration_p0: calib@940 {
1159 reg = <0x940 0x10>;
1160 };
1161 phy_calibration_p1: calib@954 {
1162 reg = <0x954 0x10>;
1163 };
1164 phy_calibration_p2: calib@968 {
1165 reg = <0x968 0x10>;
1166 };
1167 phy_calibration_p3: calib@97c {
1168 reg = <0x97c 0x10>;
1169 };
1170 cpufreq_calibration: calib@278 {
1171 reg = <0x278 0x1>;
1172 };
1173 };
1174};
1175
1176#include "mt7988-clkitg.dtsi"