blob: cec46ce55fa984a6e3676be9862051a7ce7fdd16 [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>,
768 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
769 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
770 <&topckgen CK_TOP_SGM_0_SEL>,
771 <&topckgen CK_TOP_SGM_1_SEL>;
772 clock-names = "xgp1", "xgp2", "xgp3", "fe", "gp2", "gp1",
773 "gp3", "esw", "crypto", "sgmii_tx250m",
774 "sgmii_rx250m", "sgmii2_tx250m", "sgmii2_rx250m",
775 "usxgmii0_sel", "usxgmii1_sel",
776 "sgm0_sel", "sgm1_sel";
777 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
778 <&topckgen CK_TOP_NETSYS_GSW_SEL>,
779 <&topckgen CK_TOP_USXGMII_SBUS_0_SEL>,
780 <&topckgen CK_TOP_USXGMII_SBUS_1_SEL>,
781 <&topckgen CK_TOP_SGM_0_SEL>,
782 <&topckgen CK_TOP_SGM_1_SEL>;
783 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
784 <&topckgen CK_TOP_CB_NET1_D4>,
785 <&topckgen CK_TOP_NET1_D8_D4>,
786 <&topckgen CK_TOP_NET1_D8_D4>,
787 <&topckgen CK_TOP_CB_SGM_325M>,
788 <&topckgen CK_TOP_CB_SGM_325M>;
developer2cdaeb12022-10-04 20:25:05 +0800789 mediatek,ethsys = <&ethsys>;
790 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
791 mediatek,usxgmiisys = <&usxgmiisys0>, <&usxgmiisys1>;
792 mediatek,xfi_pextp = <&xfi_pextp0>, <&xfi_pextp1>;
793 mediatek,xfi_pll = <&xfi_pll>;
794 mediatek,infracfg = <&topmisc>;
795 mediatek,toprgu = <&watchdog>;
796 #reset-cells = <1>;
797 #address-cells = <1>;
798 #size-cells = <0>;
799 status = "disabled";
800 };
801
802 hnat: hnat@15000000 {
803 compatible = "mediatek,mtk-hnat_v5";
804 reg = <0 0x15100000 0 0x80000>;
805 resets = <&ethsys 0>;
806 reset-names = "mtketh";
807 status = "disabled";
808 };
809
810 sgmiisys0: syscon@10060000 {
811 compatible = "mediatek,mt7988-sgmiisys",
812 "mediatek,mt7988-sgmiisys_0",
813 "syscon";
814 reg = <0 0x10060000 0 0x1000>;
815 #clock-cells = <1>;
816 };
817
818 sgmiisys1: syscon@10070000 {
819 compatible = "mediatek,mt7988-sgmiisys",
820 "mediatek,mt7988-sgmiisys_1",
821 "syscon";
822 reg = <0 0x10070000 0 0x1000>;
823 #clock-cells = <1>;
824 };
825
826 usxgmiisys0: usxgmiisys@10080000 {
827 compatible = "mediatek,mt7988-usxgmiisys",
828 "mediatek,mt7988-usxgmiisys_0",
829 "syscon";
830 reg = <0 0x10080000 0 0x1000>;
831 #clock-cells = <1>;
832 };
833
834 usxgmiisys1: usxgmiisys@10081000 {
835 compatible = "mediatek,mt7988-usxgmiisys",
836 "mediatek,mt7988-usxgmiisys_1",
837 "syscon";
838 reg = <0 0x10081000 0 0x1000>;
839 #clock-cells = <1>;
840 };
841
842 xfi_pextp0: xfi_pextp@11f20000 {
843 compatible = "mediatek,mt7988-xfi_pextp",
844 "mediatek,mt7988-xfi_pextp_0",
845 "syscon";
846 reg = <0 0x11f20000 0 0x10000>;
847 #clock-cells = <1>;
848 };
849
850 xfi_pextp1: xfi_pextp@11f30000 {
851 compatible = "mediatek,mt7988-xfi_pextp",
852 "mediatek,mt7988-xfi_pextp_1",
853 "syscon";
854 reg = <0 0x11f30000 0 0x10000>;
855 #clock-cells = <1>;
856 };
857
858 xfi_pll: xfi_pll@11f40000 {
859 compatible = "mediatek,mt7988-xfi_pll", "syscon";
860 reg = <0 0x11f40000 0 0x1000>;
861 #clock-cells = <1>;
862 };
863
864 topmisc: topmisc@11d10000 {
865 compatible = "mediatek,mt7988-topmisc", "syscon",
866 "mediatek,mt7988-power-controller";
867 reg = <0 0x11d10000 0 0x10000>;
868 #clock-cells = <1>;
869 #power-domain-cells = <1>;
870 #address-cells = <1>;
871 #size-cells = <0>;
872 /* power domain of the SoC */
873 tops0@MT7988_POWER_DOMAIN_TOPS0 {
874 reg = <MT7988_POWER_DOMAIN_TOPS0>;
875 #power-domain-cells = <0>;
876 };
877 tops1@MT7988_POWER_DOMAIN_TOPS1 {
878 reg = <MT7988_POWER_DOMAIN_TOPS1>;
879 #power-domain-cells = <0>;
880 };
881 eth2p5@MT7988_POWER_DOMAIN_ETH2P5 {
882 reg = <MT7988_POWER_DOMAIN_ETH2P5>;
883 #power-domain-cells = <0>;
884 };
885 };
886
887 snand: snfi@11001000 {
developer54193ba2022-11-25 18:43:24 +0800888 compatible = "mediatek,mt7988-snand";
developer2cdaeb12022-10-04 20:25:05 +0800889 reg = <0 0x11001000 0 0x1000>, <0 0x11002000 0 0x1000>;
890 reg-names = "nfi", "ecc";
891 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer54193ba2022-11-25 18:43:24 +0800892 clocks = <&infracfg_ao CK_INFRA_SPINFI>,
893 <&infracfg_ao CK_INFRA_NFI>;
894 clock-names = "pad_clk", "nfi_clk";
895 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
896 <&topckgen CK_TOP_NFI1X_SEL>;
897 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>,
898 <&topckgen CK_TOP_CB_M_D8>;
developer2cdaeb12022-10-04 20:25:05 +0800899 #address-cells = <1>;
900 #size-cells = <0>;
901 status = "disabled";
902 };
903
904 wbsys: wbsys@18000000 {
905 compatible = "mediatek,wbsys";
906 reg = <0 0x18000000 0 0x1000000>;
907 linux,pci-domain = <4>;
908 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
909 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
910 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
911 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
912 chip_id = <0x7981>;
913 };
914
915 wed_pcie: wed_pcie@10003000 {
916 compatible = "mediatek,wed_pcie";
917 reg = <0 0x10003000 0 0x10>;
918 };
919
developer4c9c1c12022-11-02 11:30:47 +0800920 infra_bus_prot: infra_bus_prot@1000310c {
921 compatible = "mediatek,infracfg_ao_bus_hang_prot";
922 reg = <0 0x1000310c 0 0x14>;
923 };
924
developer2cdaeb12022-10-04 20:25:05 +0800925 spi0: spi@11007000 {
926 compatible = "mediatek,ipm-spi-quad";
927 reg = <0 0x11007000 0 0x100>;
928 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
929 clocks = <&topckgen CK_TOP_CB_M_D2>,
930 <&topckgen CK_TOP_SPI_SEL>,
931 <&infracfg_ao CK_INFRA_104M_SPI0>,
932 <&infracfg_ao CK_INFRA_66M_SPI0_HCK>;
933 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
934 status = "disabled";
935 };
936
937 spi1: spi@11008000 {
938 compatible = "mediatek,ipm-spi-single";
939 reg = <0 0x11008000 0 0x100>;
940 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
941 clocks = <&topckgen CK_TOP_CB_M_D2>,
942 <&topckgen CK_TOP_SPI_SEL>,
943 <&infracfg_ao CK_INFRA_104M_SPI1>,
944 <&infracfg_ao CK_INFRA_66M_SPI1_HCK>;
945 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
946 status = "disabled";
947 };
948
949 spi2: spi@11009000 {
950 compatible = "mediatek,ipm-spi-quad";
951 reg = <0 0x11009000 0 0x100>;
952 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
953 clocks = <&topckgen CK_TOP_CB_M_D2>,
954 <&topckgen CK_TOP_SPI_SEL>,
955 <&infracfg_ao CK_INFRA_104M_SPI2_BCK>,
956 <&infracfg_ao CK_INFRA_66M_SPI2_HCK>;
957 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
958 status = "disabled";
959 };
960
961 consys: consys@10000000 {
962 compatible = "mediatek,mt7981-consys";
963 reg = <0 0x10000000 0 0x8600000>;
964 memory-region = <&wmcpu_emi>;
965 };
966
967 xhci0: xhci@11190000 {
968 compatible = "mediatek,mt7988-xhci",
969 "mediatek,mtk-xhci";
970 reg = <0 0x11190000 0 0x2e00>,
971 <0 0x11193e00 0 0x0100>;
972 reg-names = "mac", "ippc";
973 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
974 phys = <&xphyu2port0 PHY_TYPE_USB2>,
975 <&xphyu3port0 PHY_TYPE_USB3>;
developerc52bff42022-11-18 15:25:28 +0800976 clocks = <&infracfg_ao CK_INFRA_USB_SYS>,
977 <&infracfg_ao CK_INFRA_USB_XHCI>,
978 <&infracfg_ao CK_INFRA_USB_REF>,
979 <&infracfg_ao CK_INFRA_66M_USB_HCK>,
980 <&infracfg_ao CK_INFRA_133M_USB_HCK>;
developer2cdaeb12022-10-04 20:25:05 +0800981 clock-names = "sys_ck",
982 "xhci_ck",
983 "ref_ck",
984 "mcu_ck",
985 "dma_ck";
986 #address-cells = <2>;
987 #size-cells = <2>;
developer8cdcb262022-10-27 14:36:15 +0800988 mediatek,p0_speed_fixup;
developer2cdaeb12022-10-04 20:25:05 +0800989 status = "okay";
990 };
991
992 usbxphy: usb-phy@11e10000 {
993 compatible = "mediatek,mt7988",
994 "mediatek,xsphy";
995 #address-cells = <2>;
996 #size-cells = <2>;
997 ranges;
998 status = "okay";
999
1000 xphyu2port0: usb-phy@11e10000 {
1001 reg = <0 0x11e10000 0 0x400>;
developerc52bff42022-11-18 15:25:28 +08001002 clocks = <&infracfg_ao CK_INFRA_USB_UTMI>;
developer2cdaeb12022-10-04 20:25:05 +08001003 clock-names = "ref";
1004 #phy-cells = <1>;
1005 status = "okay";
1006 };
1007
1008 xphyu3port0: usb-phy@11e13000 {
1009 reg = <0 0x11e13400 0 0x500>;
developerc52bff42022-11-18 15:25:28 +08001010 clocks = <&infracfg_ao CK_INFRA_USB_PIPE>;
developer2cdaeb12022-10-04 20:25:05 +08001011 clock-names = "ref";
1012 #phy-cells = <1>;
1013 mediatek,syscon-type = <&topmisc 0x218 0>;
1014 status = "okay";
1015 };
1016 };
1017
1018 xhci1: xhci@11200000 {
1019 compatible = "mediatek,mt7988-xhci",
1020 "mediatek,mtk-xhci";
1021 reg = <0 0x11200000 0 0x2e00>,
1022 <0 0x11203e00 0 0x0100>;
1023 reg-names = "mac", "ippc";
1024 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
1025 phys = <&tphyu2port0 PHY_TYPE_USB2>,
1026 <&tphyu3port0 PHY_TYPE_USB3>;
developerc52bff42022-11-18 15:25:28 +08001027 clocks = <&infracfg_ao CK_INFRA_USB_SYS_CK_P1>,
1028 <&infracfg_ao CK_INFRA_USB_XHCI_CK_P1>,
1029 <&infracfg_ao CK_INFRA_USB_CK_P1>,
1030 <&infracfg_ao CK_INFRA_66M_USB_HCK_CK_P1>,
1031 <&infracfg_ao CK_INFRA_133M_USB_HCK_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001032 clock-names = "sys_ck",
1033 "xhci_ck",
1034 "ref_ck",
1035 "mcu_ck",
1036 "dma_ck";
1037 #address-cells = <2>;
1038 #size-cells = <2>;
1039 status = "okay";
1040 };
1041
1042 usbtphy: usb-phy@11c50000 {
1043 compatible = "mediatek,mt7988",
1044 "mediatek,generic-tphy-v2";
1045 #address-cells = <2>;
1046 #size-cells = <2>;
1047 ranges;
1048 status = "okay";
1049
1050 tphyu2port0: usb-phy@11c50000 {
1051 reg = <0 0x11c50000 0 0x700>;
developerc52bff42022-11-18 15:25:28 +08001052 clocks = <&infracfg_ao CK_INFRA_USB_UTMI_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001053 clock-names = "ref";
1054 #phy-cells = <1>;
1055 status = "okay";
1056 };
1057
1058 tphyu3port0: usb-phy@11c50700 {
1059 reg = <0 0x11c50700 0 0x900>;
developerc52bff42022-11-18 15:25:28 +08001060 clocks = <&infracfg_ao CK_INFRA_USB_PIPE_CK_P1>;
developer2cdaeb12022-10-04 20:25:05 +08001061 clock-names = "ref";
1062 #phy-cells = <1>;
developer8cdcb262022-10-27 14:36:15 +08001063 mediatek,usb3-pll-ssc-delta;
1064 mediatek,usb3-pll-ssc-delta1;
developer2cdaeb12022-10-04 20:25:05 +08001065 status = "okay";
1066 };
1067 };
1068
1069 clk40m: oscillator@0 {
1070 compatible = "fixed-clock";
1071 #clock-cells = <0>;
1072 clock-frequency = <40000000>;
1073 clock-output-names = "clkxtal";
1074 };
1075
1076 infracfg_ao: infracfg_ao@10001000 {
1077 compatible = "mediatek,mt7988-infracfg_ao", "syscon";
1078 reg = <0 0x10001000 0 0x1000>;
1079 #clock-cells = <1>;
1080 };
1081
1082 infracfg: infracfg@10209000 {
1083 compatible = "mediatek,mt7988-infracfg", "syscon";
1084 reg = <0 0x10209000 0 0x1000>;
1085 #clock-cells = <1>;
1086 };
1087
1088 topckgen: topckgen@1001B000 {
1089 compatible = "mediatek,mt7988-topckgen", "syscon";
1090 reg = <0 0x1001B000 0 0x1000>;
1091 #clock-cells = <1>;
1092 };
1093
1094 apmixedsys: apmixedsys@1001E000 {
1095 compatible = "mediatek,mt7988-apmixedsys", "syscon";
1096 reg = <0 0x1001E000 0 0x1000>;
1097 #clock-cells = <1>;
1098 };
1099
1100 mcusys: mcusys@100E0000 {
1101 compatible = "mediatek,mt7988-mcusys", "syscon";
1102 reg = <0 0x100E0000 0 0x1000>;
1103 #clock-cells = <1>;
1104 };
1105
1106 clkitg: clkitg {
1107 compatible = "simple-bus";
1108 };
1109
1110 efuse: efuse@11f50000 {
1111 compatible = "mediatek,efuse";
1112 reg = <0 0x11f50000 0 0x1000>;
1113 #address-cells = <1>;
1114 #size-cells = <1>;
1115
1116 lvts_calibration: calib@918 {
1117 reg = <0x918 0x28>;
1118 };
1119 phy_calibration_p0: calib@940 {
1120 reg = <0x940 0x10>;
1121 };
1122 phy_calibration_p1: calib@954 {
1123 reg = <0x954 0x10>;
1124 };
1125 phy_calibration_p2: calib@968 {
1126 reg = <0x968 0x10>;
1127 };
1128 phy_calibration_p3: calib@97c {
1129 reg = <0x97c 0x10>;
1130 };
1131 cpufreq_calibration: calib@278 {
1132 reg = <0x278 0x1>;
1133 };
1134 };
1135};
1136
1137#include "mt7988-clkitg.dtsi"