blob: 64149a3d0bff61afbe5b04349e334bcd4a962d49 [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>
developer7f4cdcd2021-08-03 19:29:43 +080021#include <dt-bindings/pinctrl/mt65xx.h>
developer2df324b2021-06-24 10:21:45 +080022
developerfd40db22021-04-29 10:08:25 +080023/ {
24 compatible = "mediatek,mt7986b-rfb";
25 interrupt-parent = <&gic>;
26 #address-cells = <2>;
27 #size-cells = <2>;
28 cpus {
29 #address-cells = <1>;
30 #size-cells = <0>;
developer3e9ad9d2021-07-01 16:42:25 +080031 cpu0: cpu@0 {
developerfd40db22021-04-29 10:08:25 +080032 device_type = "cpu";
33 compatible = "arm,cortex-a53";
34 enable-method = "psci";
35 reg = <0x0>;
developer3e9ad9d2021-07-01 16:42:25 +080036 #cooling-cells = <2>;
developerfd40db22021-04-29 10:08:25 +080037 };
38
developer3e9ad9d2021-07-01 16:42:25 +080039 cpu1: cpu@1 {
developerfd40db22021-04-29 10:08:25 +080040 device_type = "cpu";
41 compatible = "arm,cortex-a53";
42 enable-method = "psci";
43 reg = <0x1>;
developer3e9ad9d2021-07-01 16:42:25 +080044 #cooling-cells = <2>;
developerfd40db22021-04-29 10:08:25 +080045 };
46
developer3e9ad9d2021-07-01 16:42:25 +080047 cpu2: cpu@2 {
developerfd40db22021-04-29 10:08:25 +080048 device_type = "cpu";
49 compatible = "arm,cortex-a53";
50 enable-method = "psci";
51 reg = <0x2>;
developer3e9ad9d2021-07-01 16:42:25 +080052 #cooling-cells = <2>;
developerfd40db22021-04-29 10:08:25 +080053 };
54
developer3e9ad9d2021-07-01 16:42:25 +080055 cpu3: cpu@3 {
developerfd40db22021-04-29 10:08:25 +080056 device_type = "cpu";
57 enable-method = "psci";
58 compatible = "arm,cortex-a53";
59 reg = <0x3>;
developer3e9ad9d2021-07-01 16:42:25 +080060 #cooling-cells = <2>;
developerfd40db22021-04-29 10:08:25 +080061 };
62 };
63
64 wed: wed@15010000 {
65 compatible = "mediatek,wed";
66 wed_num = <2>;
67 /* add this property for wed get the pci slot number. */
68 pci_slot_map = <0>, <1>;
69 reg = <0 0x15010000 0 0x1000>,
70 <0 0x15011000 0 0x1000>;
71 interrupt-parent = <&gic>;
72 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
73 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
74 };
75
76 wed2: wed2@15011000 {
77 compatible = "mediatek,wed2";
78 wed_num = <2>;
79 reg = <0 0x15010000 0 0x1000>,
80 <0 0x15011000 0 0x1000>;
81 interrupt-parent = <&gic>;
82 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
83 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
84 };
85
86 wdma: wdma@15104800 {
87 compatible = "mediatek,wed-wdma";
88 reg = <0 0x15104800 0 0x400>,
89 <0 0x15104c00 0 0x400>;
90 };
91
92 ap2woccif: ap2woccif@151A5000 {
93 compatible = "mediatek,ap2woccif";
94 reg = <0 0x151A5000 0 0x1000>,
95 <0 0x151AD000 0 0x1000>;
96 interrupt-parent = <&gic>;
97 interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
98 <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
99 };
100
101 wocpu0_ilm: wocpu0_ilm@151E0000 {
102 compatible = "mediatek,wocpu0_ilm";
103 reg = <0 0x151E0000 0 0x8000>;
104 };
105
106 wocpu1_ilm: wocpu1_ilm@151F0000 {
107 compatible = "mediatek,wocpu1_ilm";
108 reg = <0 0x151F0000 0 0x8000>;
109 };
110
111 wocpu_dlm: wocpu_dlm@151E8000 {
112 compatible = "mediatek,wocpu_dlm";
113 reg = <0 0x151E8000 0 0x2000>,
114 <0 0x151F8000 0 0x2000>;
115
116 resets = <&ethsysrst 0>;
117 reset-names = "wocpu_rst";
118 };
119
120 cpu_boot: wocpu_boot@15194000 {
121 compatible = "mediatek,wocpu_boot";
122 reg = <0 0x15194000 0 0x1000>;
123 };
124
125 reserved-memory {
126 #address-cells = <2>;
127 #size-cells = <2>;
128 ranges;
129
130 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
131 secmon_reserved: secmon@43000000 {
132 reg = <0 0x43000000 0 0x30000>;
133 no-map;
134 };
135
136 wmcpu_emi: wmcpu-reserved@4FC00000 {
137 compatible = "mediatek,wmcpu-reserved";
138 no-map;
139 reg = <0 0x4FC00000 0 0x00100000>;
140 };
141
142 wocpu0_emi: wocpu0_emi@4FD00000 {
143 compatible = "mediatek,wocpu0_emi";
144 no-map;
145 reg = <0 0x4FD00000 0 0x40000>;
146 shared = <0>;
147 };
148
149 wocpu1_emi: wocpu1_emi@4FD80000 {
150 compatible = "mediatek,wocpu1_emi";
151 no-map;
152 reg = <0 0x4FD40000 0 0x40000>;
153 shared = <0>;
154 };
155
156 wocpu_data: wocpu_data@4FE00000 {
157 compatible = "mediatek,wocpu_data";
158 no-map;
developer8be272e2021-07-29 13:15:07 +0800159 reg = <0 0x4FD80000 0 0x240000>;
developerfd40db22021-04-29 10:08:25 +0800160 shared = <1>;
161 };
162 };
163
164 psci {
165 compatible = "arm,psci-0.2";
166 method = "smc";
167 };
168
developer2df324b2021-06-24 10:21:45 +0800169 clk40m: oscillator@0 {
developerfd40db22021-04-29 10:08:25 +0800170 compatible = "fixed-clock";
developerfd40db22021-04-29 10:08:25 +0800171 #clock-cells = <0>;
developerfd40db22021-04-29 10:08:25 +0800172 clock-frequency = <40000000>;
developer2df324b2021-06-24 10:21:45 +0800173 clock-output-names = "clkxtal";
developerfd40db22021-04-29 10:08:25 +0800174 };
175
developer2df324b2021-06-24 10:21:45 +0800176 system_clk: dummy_system_clk {
developerfd40db22021-04-29 10:08:25 +0800177 compatible = "fixed-clock";
178 clock-frequency = <40000000>;
179 #clock-cells = <0>;
180 };
181
developerfd40db22021-04-29 10:08:25 +0800182 timer {
183 compatible = "arm,armv8-timer";
184 interrupt-parent = <&gic>;
developerf39022a2021-05-06 13:31:52 +0800185 clock-frequency = <13000000>;
developerfd40db22021-04-29 10:08:25 +0800186 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
187 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
188 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
189 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
developer2df324b2021-06-24 10:21:45 +0800190 };
191
192 infracfg_ao: infracfg_ao@10001000 {
193 compatible = "mediatek,mt7986-infracfg_ao", "syscon";
194 reg = <0 0x10001000 0 0x68>;
195 #clock-cells = <1>;
196 };
197
198 infracfg: infracfg@10001040 {
199 compatible = "mediatek,mt7986-infracfg", "syscon";
200 reg = <0 0x1000106c 0 0x1000>;
201 #clock-cells = <1>;
202 };
developerfd40db22021-04-29 10:08:25 +0800203
developer2df324b2021-06-24 10:21:45 +0800204 topckgen: topckgen@1001B000 {
205 compatible = "mediatek,mt7986-topckgen", "syscon";
206 reg = <0 0x1001B000 0 0x1000>;
207 #clock-cells = <1>;
208 };
209
210 apmixedsys: apmixedsys@1001E000 {
211 compatible = "mediatek,mt7986-apmixedsys", "syscon";
212 reg = <0 0x1001E000 0 0x1000>;
213 #clock-cells = <1>;
developerfd40db22021-04-29 10:08:25 +0800214 };
215
216 watchdog: watchdog@1001c000 {
217 compatible = "mediatek,mt7622-wdt",
218 "mediatek,mt6589-wdt";
219 reg = <0 0x1001c000 0 0x1000>;
220 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
221 #reset-cells = <1>;
222 };
223
224 gic: interrupt-controller@c000000 {
225 compatible = "arm,gic-v3";
226 #interrupt-cells = <3>;
227 interrupt-parent = <&gic>;
228 interrupt-controller;
229 reg = <0 0x0c000000 0 0x40000>, /* GICD */
230 <0 0x0c080000 0 0x200000>; /* GICR */
231
232 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
233 };
234
developer2df324b2021-06-24 10:21:45 +0800235 pwm: pwm@10048000 {
236 compatible = "mediatek,mt7986-pwm";
237 reg = <0 0x10048000 0 0x1000>;
238 #clock-cells = <1>;
239 #pwm-cells = <2>;
240 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
241 clocks = <&infracfg CK_INFRA_PWM>,
242 <&infracfg_ao CK_INFRA_PWM_BSEL>,
243 <&infracfg_ao CK_INFRA_PWM1_CK>,
244 <&infracfg_ao CK_INFRA_PWM2_CK>;
245 assigned-clocks = <&topckgen CK_TOP_PWM_SEL>,
246 <&infracfg_ao CK_INFRA_PWM_BSEL>,
247 <&infracfg_ao CK_INFRA_PWM1_SEL>,
248 <&infracfg_ao CK_INFRA_PWM2_SEL>;
249 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D4>,
250 <&infracfg CK_INFRA_PWM>,
251 <&infracfg CK_INFRA_PWM>,
252 <&infracfg CK_INFRA_PWM>;
253 clock-names = "top", "main", "pwm1", "pwm2";
254 status = "disabled";
255 };
256
developerfd40db22021-04-29 10:08:25 +0800257 uart0: serial@11002000 {
258 compatible = "mediatek,mt7986-uart",
259 "mediatek,mt6577-uart";
260 reg = <0 0x11002000 0 0x400>;
261 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800262 clocks = <&infracfg_ao CK_INFRA_UART0_CK>;
263 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
264 <&infracfg_ao CK_INFRA_UART0_SEL>;
265 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
266 <&infracfg CK_INFRA_UART>;
developerfd40db22021-04-29 10:08:25 +0800267 status = "disabled";
268 };
269
270 uart1: serial@11003000 {
271 compatible = "mediatek,mt7986-uart",
272 "mediatek,mt6577-uart";
273 reg = <0 0x11003000 0 0x400>;
274 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800275 clocks = <&infracfg_ao CK_INFRA_UART1_CK>;
276 assigned-clocks = <&infracfg_ao CK_INFRA_UART1_SEL>;
277 assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>;
developerfd40db22021-04-29 10:08:25 +0800278 status = "disabled";
279 };
280
281 uart2: serial@11004000 {
282 compatible = "mediatek,mt7986-uart",
283 "mediatek,mt6577-uart";
284 reg = <0 0x11004000 0 0x400>;
285 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800286 clocks = <&infracfg_ao CK_INFRA_UART2_CK>;
287 assigned-clocks = <&infracfg_ao CK_INFRA_UART2_SEL>;
288 assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>;
developerfd40db22021-04-29 10:08:25 +0800289 status = "disabled";
290 };
291
developer2df324b2021-06-24 10:21:45 +0800292 i2c0: i2c@11008000 {
293 compatible = "mediatek,mt7986-i2c";
294 reg = <0 0x11008000 0 0x90>,
295 <0 0x10217080 0 0x80>;
296 interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
297 clock-div = <16>;
298 clocks = <&infracfg_ao CK_INFRA_I2CO_CK>,
299 <&infracfg_ao CK_INFRA_AP_DMA_CK>;
300 clock-names = "main", "dma";
301 #address-cells = <1>;
302 #size-cells = <0>;
303 status = "disabled";
304 };
developerfd40db22021-04-29 10:08:25 +0800305
developer3e9ad9d2021-07-01 16:42:25 +0800306 thermal-zones {
307 cpu_thermal: cpu-thermal {
308 polling-delay-passive = <1000>;
309 polling-delay = <1000>;
310 thermal-sensors = <&thermal 0>;
311
312 trips {
313 cpu_passive: cpu-passive {
314 temperature = <47000>;
315 hysteresis = <2000>;
316 type = "passive";
317 };
318
319 cpu_active: cpu-active {
320 temperature = <67000>;
321 hysteresis = <2000>;
322 type = "active";
323 };
324
325 cpu_hot: cpu-hot {
326 temperature = <87000>;
327 hysteresis = <2000>;
328 type = "hot";
329 };
330
331 cpu-crit {
332 temperature = <107000>;
333 hysteresis = <2000>;
334 type = "critical";
335 };
336 };
337
338 cooling-maps {
339 map0 {
340 trip = <&cpu_passive>;
341 cooling-device = <&cpu0
342 THERMAL_NO_LIMIT
343 THERMAL_NO_LIMIT>,
344 <&cpu1
345 THERMAL_NO_LIMIT
346 THERMAL_NO_LIMIT>,
347 <&cpu2
348 THERMAL_NO_LIMIT
349 THERMAL_NO_LIMIT>,
350 <&cpu3
351 THERMAL_NO_LIMIT
352 THERMAL_NO_LIMIT>;
353 };
354
355 map1 {
356 trip = <&cpu_active>;
357 cooling-device = <&cpu0
358 THERMAL_NO_LIMIT
359 THERMAL_NO_LIMIT>,
360 <&cpu1
361 THERMAL_NO_LIMIT
362 THERMAL_NO_LIMIT>,
363 <&cpu2
364 THERMAL_NO_LIMIT
365 THERMAL_NO_LIMIT>,
366 <&cpu3
367 THERMAL_NO_LIMIT
368 THERMAL_NO_LIMIT>;
369 };
370
371 map2 {
372 trip = <&cpu_hot>;
373 cooling-device = <&cpu0
374 THERMAL_NO_LIMIT
375 THERMAL_NO_LIMIT>,
376 <&cpu1
377 THERMAL_NO_LIMIT
378 THERMAL_NO_LIMIT>,
379 <&cpu2
380 THERMAL_NO_LIMIT
381 THERMAL_NO_LIMIT>,
382 <&cpu3
383 THERMAL_NO_LIMIT
384 THERMAL_NO_LIMIT>;
385 };
386 };
387 };
388 };
389
390 thermal: thermal@1100c800 {
391 #thermal-sensor-cells = <1>;
392 compatible = "mediatek,mt7986-thermal";
developer4173d3c2021-08-12 11:21:49 +0800393 reg = <0 0x1100c800 0 0x800>;
developer3e9ad9d2021-07-01 16:42:25 +0800394 interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
395 clocks = <&infracfg_ao CK_INFRA_THERM_CK>,
396 <&infracfg_ao CK_INFRA_ADC_26M_CK>;
397 clock-names = "therm", "auxadc";
398 mediatek,auxadc = <&auxadc>;
399 mediatek,apmixedsys = <&apmixedsys>;
400 nvmem-cells = <&thermal_calibration>;
401 nvmem-cell-names = "calibration-data";
402 };
403
developer3e916422021-05-27 16:40:29 +0800404 crypto: crypto@10320000 {
405 compatible = "inside-secure,safexcel-eip97";
406 reg = <0 0x10320000 0 0x40000>;
407 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
408 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
409 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
410 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
411 interrupt-names = "ring0", "ring1", "ring2", "ring3";
developere1993bd2021-07-06 13:48:40 +0800412 clocks = <&infracfg_ao CK_INFRA_EIP97_CK>;
413 clock-names = "infra_eip97_ck";
414 assigned-clocks = <&topckgen CK_TOP_EIP_B_SEL>;
415 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>;
developer3e916422021-05-27 16:40:29 +0800416 };
417
developerfd40db22021-04-29 10:08:25 +0800418 pio: pinctrl@1001f000 {
419 compatible = "mediatek,mt7986-pinctrl";
420 reg = <0 0x1001f000 0 0x1000>,
421 <0 0x11c30000 0 0x1000>,
422 <0 0x11c40000 0 0x1000>,
423 <0 0x11e20000 0 0x1000>,
424 <0 0x11e30000 0 0x1000>,
425 <0 0x11f00000 0 0x1000>,
426 <0 0x11f10000 0 0x1000>,
427 <0 0x1000b000 0 0x1000>;
428 reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base",
429 "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base",
430 "iocfg_tl_base", "eint";
431 gpio-controller;
432 #gpio-cells = <2>;
433 gpio-ranges = <&pio 0 0 100>;
434 interrupt-controller;
developera7f8fa42021-06-07 16:46:34 +0800435 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developerfd40db22021-04-29 10:08:25 +0800436 interrupt-parent = <&gic>;
437 #interrupt-cells = <2>;
438 };
439
440 ethsys: syscon@15000000 {
441 #address-cells = <1>;
442 #size-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800443 compatible = "mediatek,mt7986-ethsys_ck",
developerfd40db22021-04-29 10:08:25 +0800444 "syscon";
445 reg = <0 0x15000000 0 0x1000>;
446 #clock-cells = <1>;
447 #reset-cells = <1>;
448
449 ethsysrst: reset-controller {
450 compatible = "ti,syscon-reset";
451 #reset-cells = <1>;
452 ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
453 };
454 };
455
456 eth: ethernet@15100000 {
457 compatible = "mediatek,mt7986-eth";
458 reg = <0 0x15100000 0 0x80000>;
459 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
460 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
461 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
462 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800463 clocks = <&ethsys CK_ETH_FE_EN>,
464 <&ethsys CK_ETH_GP2_EN>,
465 <&ethsys CK_ETH_GP1_EN>,
466 <&ethsys CK_ETH_WOCPU1_EN>,
467 <&ethsys CK_ETH_WOCPU0_EN>,
developer77bbf432021-06-28 18:39:08 +0800468 <&sgmiisys0 CK_SGM0_TX_EN>,
469 <&sgmiisys0 CK_SGM0_RX_EN>,
470 <&sgmiisys0 CK_SGM0_CK0_EN>,
471 <&sgmiisys0 CK_SGM0_CDR_CK0_EN>,
472 <&sgmiisys1 CK_SGM1_TX_EN>,
473 <&sgmiisys1 CK_SGM1_RX_EN>,
474 <&sgmiisys1 CK_SGM1_CK1_EN>,
475 <&sgmiisys1 CK_SGM1_CDR_CK1_EN>;
developerfd40db22021-04-29 10:08:25 +0800476 clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
477 "sgmii_tx250m", "sgmii_rx250m",
478 "sgmii_cdr_ref", "sgmii_cdr_fb",
479 "sgmii2_tx250m", "sgmii2_rx250m",
480 "sgmii2_cdr_ref", "sgmii2_cdr_fb";
developer2df324b2021-06-24 10:21:45 +0800481 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
482 <&topckgen CK_TOP_SGM_325M_SEL>;
483 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
484 <&topckgen CK_TOP_CB_SGM_325M>;
developerfd40db22021-04-29 10:08:25 +0800485 mediatek,ethsys = <&ethsys>;
486 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
487 #reset-cells = <1>;
488 #address-cells = <1>;
489 #size-cells = <0>;
490 status = "disabled";
491 };
492
493 hnat: hnat@15000000 {
494 compatible = "mediatek,mtk-hnat_v4";
495 reg = <0 0x15100000 0 0x80000>;
496 resets = <&ethsys 0>;
497 reset-names = "mtketh";
498 status = "disabled";
499 };
500
501 sgmiisys0: syscon@10060000 {
developer2df324b2021-06-24 10:21:45 +0800502 compatible = "mediatek,mt7986-sgmiisys",
503 "mediatek,mt7986-sgmiisys_0",
504 "syscon";
developerfd40db22021-04-29 10:08:25 +0800505 reg = <0 0x10060000 0 0x1000>;
506 #clock-cells = <1>;
507 };
508
509 sgmiisys1: syscon@10070000 {
developer2df324b2021-06-24 10:21:45 +0800510 compatible = "mediatek,mt7986-sgmiisys",
511 "mediatek,mt7986-sgmiisys_1",
512 "syscon";
developerfd40db22021-04-29 10:08:25 +0800513 reg = <0 0x10070000 0 0x1000>;
514 #clock-cells = <1>;
515 };
516
517 snand: snfi@11005000 {
518 compatible = "mediatek,mt7986-snand";
519 reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>;
520 reg-names = "nfi", "ecc";
521 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer248c10b2021-07-14 16:11:19 +0800522 clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>,
523 <&infracfg_ao CK_INFRA_NFI1_CK>,
524 <&infracfg_ao CK_INFRA_NFI_HCK_CK>;
525 clock-names = "pad_clk", "nfi_clk", "nfi_hclk";
developer2df324b2021-06-24 10:21:45 +0800526 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
527 <&topckgen CK_TOP_NFI1X_SEL>;
developere5562612021-08-05 15:50:40 +0800528 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>,
529 <&topckgen CK_TOP_CB_M_D8>;
developerfd40db22021-04-29 10:08:25 +0800530 #address-cells = <1>;
531 #size-cells = <0>;
532 status = "disabled";
533 };
534
535 wbsys: wbsys@18000000 {
536 compatible = "mediatek,wbsys";
537 reg = <0 0x18000000 0 0x1000000>;
538 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
539 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
540 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
541 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
542 chip_id = <0x7986>;
543 };
544
545 wed_pcie: wed_pcie@10003000 {
546 compatible = "mediatek,wed_pcie";
547 reg = <0 0x10003000 0 0x10>;
548 };
549
550 spi0: spi@1100a000 {
developer44700a22021-07-13 19:06:49 +0800551 compatible = "mediatek,ipm-spi-quad";
developerfd40db22021-04-29 10:08:25 +0800552 reg = <0 0x1100a000 0 0x100>;
553 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800554 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800555 <&topckgen CK_TOP_SPI_SEL>,
developer2df324b2021-06-24 10:21:45 +0800556 <&infracfg_ao CK_INFRA_SPI0_CK>,
developer44700a22021-07-13 19:06:49 +0800557 <&infracfg_ao CK_INFRA_SPI0_HCK_CK>;
558 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800559 status = "disabled";
560 };
561
562 spi1: spi@1100b000 {
developer44700a22021-07-13 19:06:49 +0800563 compatible = "mediatek,ipm-spi-single";
developerfd40db22021-04-29 10:08:25 +0800564 reg = <0 0x1100b000 0 0x100>;
565 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800566 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800567 <&topckgen CK_TOP_SPIM_MST_SEL>,
developer2df324b2021-06-24 10:21:45 +0800568 <&infracfg_ao CK_INFRA_SPI1_CK>,
developer44700a22021-07-13 19:06:49 +0800569 <&infracfg_ao CK_INFRA_SPI1_HCK_CK>;
570 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800571 status = "disabled";
572 };
573
developeree2df732021-05-21 15:19:42 +0800574 auxadc: adc@1100d000 {
575 compatible = "mediatek,mt7986-auxadc",
576 "mediatek,mt7622-auxadc";
577 reg = <0 0x1100d000 0 0x1000>;
developer2df324b2021-06-24 10:21:45 +0800578 clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>;
developeree2df732021-05-21 15:19:42 +0800579 clock-names = "main";
580 #io-channel-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800581 status = "disabled";
developeree2df732021-05-21 15:19:42 +0800582 };
583
developerfd40db22021-04-29 10:08:25 +0800584 consys: consys@10000000 {
585 compatible = "mediatek,mt7986-consys";
586 reg = <0 0x10000000 0 0x8600000>;
587 memory-region = <&wmcpu_emi>;
588 };
589
590 xhci: xhci@11200000 {
591 compatible = "mediatek,mt7986-xhci",
592 "mediatek,mtk-xhci";
593 reg = <0 0x11200000 0 0x2e00>,
594 <0 0x11203e00 0 0x0100>;
595 reg-names = "mac", "ippc";
596 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
597 phys = <&u2port0 PHY_TYPE_USB2>,
598 <&u3port0 PHY_TYPE_USB3>,
599 <&u2port1 PHY_TYPE_USB2>;
600 clocks = <&system_clk>,
601 <&system_clk>,
602 <&system_clk>,
603 <&system_clk>,
604 <&system_clk>;
605 clock-names = "sys_ck",
606 "xhci_ck",
607 "ref_ck",
608 "mcu_ck",
609 "dma_ck";
610 #address-cells = <2>;
611 #size-cells = <2>;
612 status = "okay";
613 };
614
615 usbtphy: usb-phy@11e10000 {
616 compatible = "mediatek,mt7986",
617 "mediatek,generic-tphy-v2";
618 #address-cells = <2>;
619 #size-cells = <2>;
620 ranges;
621 status = "okay";
622
623 u2port0: usb-phy@11e10000 {
624 reg = <0 0x11e10000 0 0x700>;
625 clocks = <&system_clk>;
626 clock-names = "ref";
627 #phy-cells = <1>;
628 status = "okay";
629 };
630
631 u3port0: usb-phy@11e10700 {
632 reg = <0 0x11e10700 0 0x900>;
633 clocks = <&system_clk>;
634 clock-names = "ref";
635 #phy-cells = <1>;
636 status = "okay";
637 };
638
639 u2port1: usb-phy@11e11000 {
640 reg = <0 0x11e11000 0 0x700>;
641 clocks = <&system_clk>;
642 clock-names = "ref";
643 #phy-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800644 status = "disabled";
developerfd40db22021-04-29 10:08:25 +0800645 };
646 };
developer2df324b2021-06-24 10:21:45 +0800647
648 clkitg: clkitg {
649 compatible = "simple-bus";
650 };
developerfbbf02b2021-06-25 09:30:28 +0800651
652 trng: trng@1020f000 {
653 compatible = "mediatek,mt7986-rng",
654 "mediatek,mt7623-rng";
655 reg = <0 0x1020f000 0 0x100>;
656 clocks = <&infracfg_ao CK_INFRA_TRNG_CK>;
657 clock-names = "rng";
658 };
developer86ee1e12021-06-30 11:18:53 +0800659
660 ice: ice_debug {
661 compatible = "mediatek,mt8512-ice_debug",
662 "mediatek,mt2701-ice_debug";
developer66b5c8d2021-07-16 14:02:47 +0800663 clocks = <&infracfg_ao CK_INFRA_DBG_CK>,
664 <&topckgen CK_TOP_ARM_DB_JTSEL>;
665 clock-names = "ice_dbg", "dbg_jtsel";
developer86ee1e12021-06-30 11:18:53 +0800666 };
developer3e9ad9d2021-07-01 16:42:25 +0800667
668 efuse: efuse@11d00000 {
669 compatible = "mediatek,mt7986-efuse",
670 "mediatek,efuse";
671 reg = <0 0x11d00000 0 0x1000>;
672 #address-cells = <1>;
673 #size-cells = <1>;
674
675 thermal_calibration: calib@274 {
676 reg = <0x274 0xc>;
677 };
678 };
developerfd40db22021-04-29 10:08:25 +0800679};
developer2df324b2021-06-24 10:21:45 +0800680
681#include "mt7986-clkitg.dtsi"