blob: 8deebd552badffc34d24f1ac6def6dd4e336aaac [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001/*
2 * Copyright (c) 2020 MediaTek Inc.
3 * Author: Sam.Shih <sam.shih@mediatek.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#include <dt-bindings/interrupt-controller/irq.h>
16#include <dt-bindings/interrupt-controller/arm-gic.h>
17#include <dt-bindings/phy/phy.h>
18#include <dt-bindings/reset/ti-syscon.h>
developer2df324b2021-06-24 10:21:45 +080019#include <dt-bindings/clock/mt7986-clk.h>
developer3e9ad9d2021-07-01 16:42:25 +080020#include <dt-bindings/thermal/thermal.h>
developer2df324b2021-06-24 10:21:45 +080021
developerfd40db22021-04-29 10:08:25 +080022/ {
23 compatible = "mediatek,mt7986b-rfb";
24 interrupt-parent = <&gic>;
25 #address-cells = <2>;
26 #size-cells = <2>;
27 cpus {
28 #address-cells = <1>;
29 #size-cells = <0>;
developer3e9ad9d2021-07-01 16:42:25 +080030 cpu0: cpu@0 {
developerfd40db22021-04-29 10:08:25 +080031 device_type = "cpu";
32 compatible = "arm,cortex-a53";
33 enable-method = "psci";
34 reg = <0x0>;
developer3e9ad9d2021-07-01 16:42:25 +080035 #cooling-cells = <2>;
developerfd40db22021-04-29 10:08:25 +080036 };
37
developer3e9ad9d2021-07-01 16:42:25 +080038 cpu1: cpu@1 {
developerfd40db22021-04-29 10:08:25 +080039 device_type = "cpu";
40 compatible = "arm,cortex-a53";
41 enable-method = "psci";
42 reg = <0x1>;
developer3e9ad9d2021-07-01 16:42:25 +080043 #cooling-cells = <2>;
developerfd40db22021-04-29 10:08:25 +080044 };
45
developer3e9ad9d2021-07-01 16:42:25 +080046 cpu2: cpu@2 {
developerfd40db22021-04-29 10:08:25 +080047 device_type = "cpu";
48 compatible = "arm,cortex-a53";
49 enable-method = "psci";
50 reg = <0x2>;
developer3e9ad9d2021-07-01 16:42:25 +080051 #cooling-cells = <2>;
developerfd40db22021-04-29 10:08:25 +080052 };
53
developer3e9ad9d2021-07-01 16:42:25 +080054 cpu3: cpu@3 {
developerfd40db22021-04-29 10:08:25 +080055 device_type = "cpu";
56 enable-method = "psci";
57 compatible = "arm,cortex-a53";
58 reg = <0x3>;
developer3e9ad9d2021-07-01 16:42:25 +080059 #cooling-cells = <2>;
developerfd40db22021-04-29 10:08:25 +080060 };
61 };
62
63 wed: wed@15010000 {
64 compatible = "mediatek,wed";
65 wed_num = <2>;
66 /* add this property for wed get the pci slot number. */
67 pci_slot_map = <0>, <1>;
68 reg = <0 0x15010000 0 0x1000>,
69 <0 0x15011000 0 0x1000>;
70 interrupt-parent = <&gic>;
71 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
72 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
73 };
74
75 wed2: wed2@15011000 {
76 compatible = "mediatek,wed2";
77 wed_num = <2>;
78 reg = <0 0x15010000 0 0x1000>,
79 <0 0x15011000 0 0x1000>;
80 interrupt-parent = <&gic>;
81 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
82 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
83 };
84
85 wdma: wdma@15104800 {
86 compatible = "mediatek,wed-wdma";
87 reg = <0 0x15104800 0 0x400>,
88 <0 0x15104c00 0 0x400>;
89 };
90
91 ap2woccif: ap2woccif@151A5000 {
92 compatible = "mediatek,ap2woccif";
93 reg = <0 0x151A5000 0 0x1000>,
94 <0 0x151AD000 0 0x1000>;
95 interrupt-parent = <&gic>;
96 interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
97 <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
98 };
99
100 wocpu0_ilm: wocpu0_ilm@151E0000 {
101 compatible = "mediatek,wocpu0_ilm";
102 reg = <0 0x151E0000 0 0x8000>;
103 };
104
105 wocpu1_ilm: wocpu1_ilm@151F0000 {
106 compatible = "mediatek,wocpu1_ilm";
107 reg = <0 0x151F0000 0 0x8000>;
108 };
109
110 wocpu_dlm: wocpu_dlm@151E8000 {
111 compatible = "mediatek,wocpu_dlm";
112 reg = <0 0x151E8000 0 0x2000>,
113 <0 0x151F8000 0 0x2000>;
114
115 resets = <&ethsysrst 0>;
116 reset-names = "wocpu_rst";
117 };
118
119 cpu_boot: wocpu_boot@15194000 {
120 compatible = "mediatek,wocpu_boot";
121 reg = <0 0x15194000 0 0x1000>;
122 };
123
124 reserved-memory {
125 #address-cells = <2>;
126 #size-cells = <2>;
127 ranges;
128
129 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
130 secmon_reserved: secmon@43000000 {
131 reg = <0 0x43000000 0 0x30000>;
132 no-map;
133 };
134
135 wmcpu_emi: wmcpu-reserved@4FC00000 {
136 compatible = "mediatek,wmcpu-reserved";
137 no-map;
138 reg = <0 0x4FC00000 0 0x00100000>;
139 };
140
141 wocpu0_emi: wocpu0_emi@4FD00000 {
142 compatible = "mediatek,wocpu0_emi";
143 no-map;
144 reg = <0 0x4FD00000 0 0x40000>;
145 shared = <0>;
146 };
147
148 wocpu1_emi: wocpu1_emi@4FD80000 {
149 compatible = "mediatek,wocpu1_emi";
150 no-map;
151 reg = <0 0x4FD40000 0 0x40000>;
152 shared = <0>;
153 };
154
155 wocpu_data: wocpu_data@4FE00000 {
156 compatible = "mediatek,wocpu_data";
157 no-map;
158 reg = <0 0x4FD80000 0 0x200000>;
159 shared = <1>;
160 };
161 };
162
163 psci {
164 compatible = "arm,psci-0.2";
165 method = "smc";
166 };
167
developer2df324b2021-06-24 10:21:45 +0800168 clk40m: oscillator@0 {
developerfd40db22021-04-29 10:08:25 +0800169 compatible = "fixed-clock";
developerfd40db22021-04-29 10:08:25 +0800170 #clock-cells = <0>;
developerfd40db22021-04-29 10:08:25 +0800171 clock-frequency = <40000000>;
developer2df324b2021-06-24 10:21:45 +0800172 clock-output-names = "clkxtal";
developerfd40db22021-04-29 10:08:25 +0800173 };
174
developer2df324b2021-06-24 10:21:45 +0800175 system_clk: dummy_system_clk {
developerfd40db22021-04-29 10:08:25 +0800176 compatible = "fixed-clock";
177 clock-frequency = <40000000>;
178 #clock-cells = <0>;
179 };
180
developerfd40db22021-04-29 10:08:25 +0800181 timer {
182 compatible = "arm,armv8-timer";
183 interrupt-parent = <&gic>;
developerf39022a2021-05-06 13:31:52 +0800184 clock-frequency = <13000000>;
developerfd40db22021-04-29 10:08:25 +0800185 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
186 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
187 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
188 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
developer2df324b2021-06-24 10:21:45 +0800189 };
190
191 infracfg_ao: infracfg_ao@10001000 {
192 compatible = "mediatek,mt7986-infracfg_ao", "syscon";
193 reg = <0 0x10001000 0 0x68>;
194 #clock-cells = <1>;
195 };
196
197 infracfg: infracfg@10001040 {
198 compatible = "mediatek,mt7986-infracfg", "syscon";
199 reg = <0 0x1000106c 0 0x1000>;
200 #clock-cells = <1>;
201 };
developerfd40db22021-04-29 10:08:25 +0800202
developer2df324b2021-06-24 10:21:45 +0800203 topckgen: topckgen@1001B000 {
204 compatible = "mediatek,mt7986-topckgen", "syscon";
205 reg = <0 0x1001B000 0 0x1000>;
206 #clock-cells = <1>;
207 };
208
209 apmixedsys: apmixedsys@1001E000 {
210 compatible = "mediatek,mt7986-apmixedsys", "syscon";
211 reg = <0 0x1001E000 0 0x1000>;
212 #clock-cells = <1>;
developerfd40db22021-04-29 10:08:25 +0800213 };
214
215 watchdog: watchdog@1001c000 {
216 compatible = "mediatek,mt7622-wdt",
217 "mediatek,mt6589-wdt";
218 reg = <0 0x1001c000 0 0x1000>;
219 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
220 #reset-cells = <1>;
221 };
222
223 gic: interrupt-controller@c000000 {
224 compatible = "arm,gic-v3";
225 #interrupt-cells = <3>;
226 interrupt-parent = <&gic>;
227 interrupt-controller;
228 reg = <0 0x0c000000 0 0x40000>, /* GICD */
229 <0 0x0c080000 0 0x200000>; /* GICR */
230
231 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
232 };
233
developer2df324b2021-06-24 10:21:45 +0800234 pwm: pwm@10048000 {
235 compatible = "mediatek,mt7986-pwm";
236 reg = <0 0x10048000 0 0x1000>;
237 #clock-cells = <1>;
238 #pwm-cells = <2>;
239 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
240 clocks = <&infracfg CK_INFRA_PWM>,
241 <&infracfg_ao CK_INFRA_PWM_BSEL>,
242 <&infracfg_ao CK_INFRA_PWM1_CK>,
243 <&infracfg_ao CK_INFRA_PWM2_CK>;
244 assigned-clocks = <&topckgen CK_TOP_PWM_SEL>,
245 <&infracfg_ao CK_INFRA_PWM_BSEL>,
246 <&infracfg_ao CK_INFRA_PWM1_SEL>,
247 <&infracfg_ao CK_INFRA_PWM2_SEL>;
248 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D4>,
249 <&infracfg CK_INFRA_PWM>,
250 <&infracfg CK_INFRA_PWM>,
251 <&infracfg CK_INFRA_PWM>;
252 clock-names = "top", "main", "pwm1", "pwm2";
253 status = "disabled";
254 };
255
developerfd40db22021-04-29 10:08:25 +0800256 uart0: serial@11002000 {
257 compatible = "mediatek,mt7986-uart",
258 "mediatek,mt6577-uart";
259 reg = <0 0x11002000 0 0x400>;
260 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800261 clocks = <&infracfg_ao CK_INFRA_UART0_CK>;
262 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
263 <&infracfg_ao CK_INFRA_UART0_SEL>;
264 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
265 <&infracfg CK_INFRA_UART>;
developerfd40db22021-04-29 10:08:25 +0800266 status = "disabled";
267 };
268
269 uart1: serial@11003000 {
270 compatible = "mediatek,mt7986-uart",
271 "mediatek,mt6577-uart";
272 reg = <0 0x11003000 0 0x400>;
273 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800274 clocks = <&infracfg_ao CK_INFRA_UART1_CK>;
275 assigned-clocks = <&infracfg_ao CK_INFRA_UART1_SEL>;
276 assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>;
developerfd40db22021-04-29 10:08:25 +0800277 status = "disabled";
278 };
279
280 uart2: serial@11004000 {
281 compatible = "mediatek,mt7986-uart",
282 "mediatek,mt6577-uart";
283 reg = <0 0x11004000 0 0x400>;
284 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800285 clocks = <&infracfg_ao CK_INFRA_UART2_CK>;
286 assigned-clocks = <&infracfg_ao CK_INFRA_UART2_SEL>;
287 assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>;
developerfd40db22021-04-29 10:08:25 +0800288 status = "disabled";
289 };
290
developer2df324b2021-06-24 10:21:45 +0800291 i2c0: i2c@11008000 {
292 compatible = "mediatek,mt7986-i2c";
293 reg = <0 0x11008000 0 0x90>,
294 <0 0x10217080 0 0x80>;
295 interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
296 clock-div = <16>;
297 clocks = <&infracfg_ao CK_INFRA_I2CO_CK>,
298 <&infracfg_ao CK_INFRA_AP_DMA_CK>;
299 clock-names = "main", "dma";
300 #address-cells = <1>;
301 #size-cells = <0>;
302 status = "disabled";
303 };
developerfd40db22021-04-29 10:08:25 +0800304
developer3e9ad9d2021-07-01 16:42:25 +0800305 thermal-zones {
306 cpu_thermal: cpu-thermal {
307 polling-delay-passive = <1000>;
308 polling-delay = <1000>;
309 thermal-sensors = <&thermal 0>;
310
311 trips {
312 cpu_passive: cpu-passive {
313 temperature = <47000>;
314 hysteresis = <2000>;
315 type = "passive";
316 };
317
318 cpu_active: cpu-active {
319 temperature = <67000>;
320 hysteresis = <2000>;
321 type = "active";
322 };
323
324 cpu_hot: cpu-hot {
325 temperature = <87000>;
326 hysteresis = <2000>;
327 type = "hot";
328 };
329
330 cpu-crit {
331 temperature = <107000>;
332 hysteresis = <2000>;
333 type = "critical";
334 };
335 };
336
337 cooling-maps {
338 map0 {
339 trip = <&cpu_passive>;
340 cooling-device = <&cpu0
341 THERMAL_NO_LIMIT
342 THERMAL_NO_LIMIT>,
343 <&cpu1
344 THERMAL_NO_LIMIT
345 THERMAL_NO_LIMIT>,
346 <&cpu2
347 THERMAL_NO_LIMIT
348 THERMAL_NO_LIMIT>,
349 <&cpu3
350 THERMAL_NO_LIMIT
351 THERMAL_NO_LIMIT>;
352 };
353
354 map1 {
355 trip = <&cpu_active>;
356 cooling-device = <&cpu0
357 THERMAL_NO_LIMIT
358 THERMAL_NO_LIMIT>,
359 <&cpu1
360 THERMAL_NO_LIMIT
361 THERMAL_NO_LIMIT>,
362 <&cpu2
363 THERMAL_NO_LIMIT
364 THERMAL_NO_LIMIT>,
365 <&cpu3
366 THERMAL_NO_LIMIT
367 THERMAL_NO_LIMIT>;
368 };
369
370 map2 {
371 trip = <&cpu_hot>;
372 cooling-device = <&cpu0
373 THERMAL_NO_LIMIT
374 THERMAL_NO_LIMIT>,
375 <&cpu1
376 THERMAL_NO_LIMIT
377 THERMAL_NO_LIMIT>,
378 <&cpu2
379 THERMAL_NO_LIMIT
380 THERMAL_NO_LIMIT>,
381 <&cpu3
382 THERMAL_NO_LIMIT
383 THERMAL_NO_LIMIT>;
384 };
385 };
386 };
387 };
388
389 thermal: thermal@1100c800 {
390 #thermal-sensor-cells = <1>;
391 compatible = "mediatek,mt7986-thermal";
392 reg = <0 0x1100c800 0 0x1000>;
393 interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
394 clocks = <&infracfg_ao CK_INFRA_THERM_CK>,
395 <&infracfg_ao CK_INFRA_ADC_26M_CK>;
396 clock-names = "therm", "auxadc";
397 mediatek,auxadc = <&auxadc>;
398 mediatek,apmixedsys = <&apmixedsys>;
399 nvmem-cells = <&thermal_calibration>;
400 nvmem-cell-names = "calibration-data";
401 };
402
developer3e916422021-05-27 16:40:29 +0800403 crypto: crypto@10320000 {
404 compatible = "inside-secure,safexcel-eip97";
405 reg = <0 0x10320000 0 0x40000>;
406 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
407 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
408 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
409 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
410 interrupt-names = "ring0", "ring1", "ring2", "ring3";
411 };
412
developerfd40db22021-04-29 10:08:25 +0800413 pio: pinctrl@1001f000 {
414 compatible = "mediatek,mt7986-pinctrl";
415 reg = <0 0x1001f000 0 0x1000>,
416 <0 0x11c30000 0 0x1000>,
417 <0 0x11c40000 0 0x1000>,
418 <0 0x11e20000 0 0x1000>,
419 <0 0x11e30000 0 0x1000>,
420 <0 0x11f00000 0 0x1000>,
421 <0 0x11f10000 0 0x1000>,
422 <0 0x1000b000 0 0x1000>;
423 reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base",
424 "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base",
425 "iocfg_tl_base", "eint";
426 gpio-controller;
427 #gpio-cells = <2>;
428 gpio-ranges = <&pio 0 0 100>;
429 interrupt-controller;
developera7f8fa42021-06-07 16:46:34 +0800430 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developerfd40db22021-04-29 10:08:25 +0800431 interrupt-parent = <&gic>;
432 #interrupt-cells = <2>;
433 };
434
435 ethsys: syscon@15000000 {
436 #address-cells = <1>;
437 #size-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800438 compatible = "mediatek,mt7986-ethsys_ck",
developerfd40db22021-04-29 10:08:25 +0800439 "syscon";
440 reg = <0 0x15000000 0 0x1000>;
441 #clock-cells = <1>;
442 #reset-cells = <1>;
443
444 ethsysrst: reset-controller {
445 compatible = "ti,syscon-reset";
446 #reset-cells = <1>;
447 ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
448 };
449 };
450
451 eth: ethernet@15100000 {
452 compatible = "mediatek,mt7986-eth";
453 reg = <0 0x15100000 0 0x80000>;
454 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
455 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
456 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
457 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800458 clocks = <&ethsys CK_ETH_FE_EN>,
459 <&ethsys CK_ETH_GP2_EN>,
460 <&ethsys CK_ETH_GP1_EN>,
461 <&ethsys CK_ETH_WOCPU1_EN>,
462 <&ethsys CK_ETH_WOCPU0_EN>,
developer77bbf432021-06-28 18:39:08 +0800463 <&sgmiisys0 CK_SGM0_TX_EN>,
464 <&sgmiisys0 CK_SGM0_RX_EN>,
465 <&sgmiisys0 CK_SGM0_CK0_EN>,
466 <&sgmiisys0 CK_SGM0_CDR_CK0_EN>,
467 <&sgmiisys1 CK_SGM1_TX_EN>,
468 <&sgmiisys1 CK_SGM1_RX_EN>,
469 <&sgmiisys1 CK_SGM1_CK1_EN>,
470 <&sgmiisys1 CK_SGM1_CDR_CK1_EN>;
developerfd40db22021-04-29 10:08:25 +0800471 clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
472 "sgmii_tx250m", "sgmii_rx250m",
473 "sgmii_cdr_ref", "sgmii_cdr_fb",
474 "sgmii2_tx250m", "sgmii2_rx250m",
475 "sgmii2_cdr_ref", "sgmii2_cdr_fb";
developer2df324b2021-06-24 10:21:45 +0800476 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
477 <&topckgen CK_TOP_SGM_325M_SEL>;
478 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
479 <&topckgen CK_TOP_CB_SGM_325M>;
developerfd40db22021-04-29 10:08:25 +0800480 mediatek,ethsys = <&ethsys>;
481 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
482 #reset-cells = <1>;
483 #address-cells = <1>;
484 #size-cells = <0>;
485 status = "disabled";
486 };
487
488 hnat: hnat@15000000 {
489 compatible = "mediatek,mtk-hnat_v4";
490 reg = <0 0x15100000 0 0x80000>;
491 resets = <&ethsys 0>;
492 reset-names = "mtketh";
493 status = "disabled";
494 };
495
496 sgmiisys0: syscon@10060000 {
developer2df324b2021-06-24 10:21:45 +0800497 compatible = "mediatek,mt7986-sgmiisys",
498 "mediatek,mt7986-sgmiisys_0",
499 "syscon";
developerfd40db22021-04-29 10:08:25 +0800500 reg = <0 0x10060000 0 0x1000>;
501 #clock-cells = <1>;
502 };
503
504 sgmiisys1: syscon@10070000 {
developer2df324b2021-06-24 10:21:45 +0800505 compatible = "mediatek,mt7986-sgmiisys",
506 "mediatek,mt7986-sgmiisys_1",
507 "syscon";
developerfd40db22021-04-29 10:08:25 +0800508 reg = <0 0x10070000 0 0x1000>;
509 #clock-cells = <1>;
510 };
511
512 snand: snfi@11005000 {
513 compatible = "mediatek,mt7986-snand";
514 reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>;
515 reg-names = "nfi", "ecc";
516 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800517 clocks = <&topckgen CK_TOP_SPINFI_SEL>,
518 <&infracfg_ao CK_INFRA_SPINFI1_CK>,
519 <&topckgen CK_TOP_NFI1X_SEL>;
developerfd40db22021-04-29 10:08:25 +0800520 clock-names = "nfi_clk", "pad_clk", "ecc_clk";
developer2df324b2021-06-24 10:21:45 +0800521 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
522 <&topckgen CK_TOP_NFI1X_SEL>;
523 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M_D2>,
524 <&topckgen CK_TOP_CB_CKSQ_40M>;
developerfd40db22021-04-29 10:08:25 +0800525 #address-cells = <1>;
526 #size-cells = <0>;
527 status = "disabled";
528 };
529
530 wbsys: wbsys@18000000 {
531 compatible = "mediatek,wbsys";
532 reg = <0 0x18000000 0 0x1000000>;
533 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
534 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
535 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
536 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
537 chip_id = <0x7986>;
538 };
539
540 wed_pcie: wed_pcie@10003000 {
541 compatible = "mediatek,wed_pcie";
542 reg = <0 0x10003000 0 0x10>;
543 };
544
545 spi0: spi@1100a000 {
546 compatible = "mediatek,ipm-spi";
547 reg = <0 0x1100a000 0 0x100>;
548 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800549 clocks = <&topckgen CK_TOP_CB_M_D2>,
550 <&infracfg_ao CK_INFRA_SPI0_CK>,
551 <&topckgen CK_TOP_SPI_SEL>;
developerfd40db22021-04-29 10:08:25 +0800552 clock-names = "parent-clk", "sel-clk", "spi-clk";
553 status = "disabled";
554 };
555
556 spi1: spi@1100b000 {
557 compatible = "mediatek,ipm-spi";
558 reg = <0 0x1100b000 0 0x100>;
559 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800560 clocks = <&topckgen CK_TOP_CB_M_D2>,
561 <&infracfg_ao CK_INFRA_SPI1_CK>,
562 <&topckgen CK_TOP_SPIM_MST_SEL>;
developerfd40db22021-04-29 10:08:25 +0800563 clock-names = "parent-clk", "sel-clk", "spi-clk";
564 status = "disabled";
565 };
566
developeree2df732021-05-21 15:19:42 +0800567 auxadc: adc@1100d000 {
568 compatible = "mediatek,mt7986-auxadc",
569 "mediatek,mt7622-auxadc";
570 reg = <0 0x1100d000 0 0x1000>;
developer2df324b2021-06-24 10:21:45 +0800571 clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>;
developeree2df732021-05-21 15:19:42 +0800572 clock-names = "main";
573 #io-channel-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800574 status = "disabled";
developeree2df732021-05-21 15:19:42 +0800575 };
576
developerfd40db22021-04-29 10:08:25 +0800577 consys: consys@10000000 {
578 compatible = "mediatek,mt7986-consys";
579 reg = <0 0x10000000 0 0x8600000>;
580 memory-region = <&wmcpu_emi>;
581 };
582
583 xhci: xhci@11200000 {
584 compatible = "mediatek,mt7986-xhci",
585 "mediatek,mtk-xhci";
586 reg = <0 0x11200000 0 0x2e00>,
587 <0 0x11203e00 0 0x0100>;
588 reg-names = "mac", "ippc";
589 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
590 phys = <&u2port0 PHY_TYPE_USB2>,
591 <&u3port0 PHY_TYPE_USB3>,
592 <&u2port1 PHY_TYPE_USB2>;
593 clocks = <&system_clk>,
594 <&system_clk>,
595 <&system_clk>,
596 <&system_clk>,
597 <&system_clk>;
598 clock-names = "sys_ck",
599 "xhci_ck",
600 "ref_ck",
601 "mcu_ck",
602 "dma_ck";
603 #address-cells = <2>;
604 #size-cells = <2>;
605 status = "okay";
606 };
607
608 usbtphy: usb-phy@11e10000 {
609 compatible = "mediatek,mt7986",
610 "mediatek,generic-tphy-v2";
611 #address-cells = <2>;
612 #size-cells = <2>;
613 ranges;
614 status = "okay";
615
616 u2port0: usb-phy@11e10000 {
617 reg = <0 0x11e10000 0 0x700>;
618 clocks = <&system_clk>;
619 clock-names = "ref";
620 #phy-cells = <1>;
621 status = "okay";
622 };
623
624 u3port0: usb-phy@11e10700 {
625 reg = <0 0x11e10700 0 0x900>;
626 clocks = <&system_clk>;
627 clock-names = "ref";
628 #phy-cells = <1>;
629 status = "okay";
630 };
631
632 u2port1: usb-phy@11e11000 {
633 reg = <0 0x11e11000 0 0x700>;
634 clocks = <&system_clk>;
635 clock-names = "ref";
636 #phy-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800637 status = "disabled";
developerfd40db22021-04-29 10:08:25 +0800638 };
639 };
developer2df324b2021-06-24 10:21:45 +0800640
641 clkitg: clkitg {
642 compatible = "simple-bus";
643 };
developerfbbf02b2021-06-25 09:30:28 +0800644
645 trng: trng@1020f000 {
646 compatible = "mediatek,mt7986-rng",
647 "mediatek,mt7623-rng";
648 reg = <0 0x1020f000 0 0x100>;
649 clocks = <&infracfg_ao CK_INFRA_TRNG_CK>;
650 clock-names = "rng";
651 };
developer86ee1e12021-06-30 11:18:53 +0800652
653 ice: ice_debug {
654 compatible = "mediatek,mt8512-ice_debug",
655 "mediatek,mt2701-ice_debug";
656 clocks = <&infracfg_ao CK_INFRA_DBG_CK>;
657 clock-names = "ice_dbg";
658 };
developer3e9ad9d2021-07-01 16:42:25 +0800659
660 efuse: efuse@11d00000 {
661 compatible = "mediatek,mt7986-efuse",
662 "mediatek,efuse";
663 reg = <0 0x11d00000 0 0x1000>;
664 #address-cells = <1>;
665 #size-cells = <1>;
666
667 thermal_calibration: calib@274 {
668 reg = <0x274 0xc>;
669 };
670 };
developerfd40db22021-04-29 10:08:25 +0800671};
developer2df324b2021-06-24 10:21:45 +0800672
673#include "mt7986-clkitg.dtsi"