blob: 069867508fe45a5914019de73b27ad7b8c9afba9 [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;
developer8be272e2021-07-29 13:15:07 +0800158 reg = <0 0x4FD80000 0 0x240000>;
developerfd40db22021-04-29 10:08:25 +0800159 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";
developere1993bd2021-07-06 13:48:40 +0800411 clocks = <&infracfg_ao CK_INFRA_EIP97_CK>;
412 clock-names = "infra_eip97_ck";
413 assigned-clocks = <&topckgen CK_TOP_EIP_B_SEL>;
414 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>;
developer3e916422021-05-27 16:40:29 +0800415 };
416
developerfd40db22021-04-29 10:08:25 +0800417 pio: pinctrl@1001f000 {
418 compatible = "mediatek,mt7986-pinctrl";
419 reg = <0 0x1001f000 0 0x1000>,
420 <0 0x11c30000 0 0x1000>,
421 <0 0x11c40000 0 0x1000>,
422 <0 0x11e20000 0 0x1000>,
423 <0 0x11e30000 0 0x1000>,
424 <0 0x11f00000 0 0x1000>,
425 <0 0x11f10000 0 0x1000>,
426 <0 0x1000b000 0 0x1000>;
427 reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base",
428 "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base",
429 "iocfg_tl_base", "eint";
430 gpio-controller;
431 #gpio-cells = <2>;
432 gpio-ranges = <&pio 0 0 100>;
433 interrupt-controller;
developera7f8fa42021-06-07 16:46:34 +0800434 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developerfd40db22021-04-29 10:08:25 +0800435 interrupt-parent = <&gic>;
436 #interrupt-cells = <2>;
437 };
438
439 ethsys: syscon@15000000 {
440 #address-cells = <1>;
441 #size-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800442 compatible = "mediatek,mt7986-ethsys_ck",
developerfd40db22021-04-29 10:08:25 +0800443 "syscon";
444 reg = <0 0x15000000 0 0x1000>;
445 #clock-cells = <1>;
446 #reset-cells = <1>;
447
448 ethsysrst: reset-controller {
449 compatible = "ti,syscon-reset";
450 #reset-cells = <1>;
451 ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
452 };
453 };
454
455 eth: ethernet@15100000 {
456 compatible = "mediatek,mt7986-eth";
457 reg = <0 0x15100000 0 0x80000>;
458 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
459 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
460 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
461 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800462 clocks = <&ethsys CK_ETH_FE_EN>,
463 <&ethsys CK_ETH_GP2_EN>,
464 <&ethsys CK_ETH_GP1_EN>,
465 <&ethsys CK_ETH_WOCPU1_EN>,
466 <&ethsys CK_ETH_WOCPU0_EN>,
developer77bbf432021-06-28 18:39:08 +0800467 <&sgmiisys0 CK_SGM0_TX_EN>,
468 <&sgmiisys0 CK_SGM0_RX_EN>,
469 <&sgmiisys0 CK_SGM0_CK0_EN>,
470 <&sgmiisys0 CK_SGM0_CDR_CK0_EN>,
471 <&sgmiisys1 CK_SGM1_TX_EN>,
472 <&sgmiisys1 CK_SGM1_RX_EN>,
473 <&sgmiisys1 CK_SGM1_CK1_EN>,
474 <&sgmiisys1 CK_SGM1_CDR_CK1_EN>;
developerfd40db22021-04-29 10:08:25 +0800475 clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
476 "sgmii_tx250m", "sgmii_rx250m",
477 "sgmii_cdr_ref", "sgmii_cdr_fb",
478 "sgmii2_tx250m", "sgmii2_rx250m",
479 "sgmii2_cdr_ref", "sgmii2_cdr_fb";
developer2df324b2021-06-24 10:21:45 +0800480 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
481 <&topckgen CK_TOP_SGM_325M_SEL>;
482 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
483 <&topckgen CK_TOP_CB_SGM_325M>;
developerfd40db22021-04-29 10:08:25 +0800484 mediatek,ethsys = <&ethsys>;
485 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
486 #reset-cells = <1>;
487 #address-cells = <1>;
488 #size-cells = <0>;
489 status = "disabled";
490 };
491
492 hnat: hnat@15000000 {
493 compatible = "mediatek,mtk-hnat_v4";
494 reg = <0 0x15100000 0 0x80000>;
495 resets = <&ethsys 0>;
496 reset-names = "mtketh";
497 status = "disabled";
498 };
499
500 sgmiisys0: syscon@10060000 {
developer2df324b2021-06-24 10:21:45 +0800501 compatible = "mediatek,mt7986-sgmiisys",
502 "mediatek,mt7986-sgmiisys_0",
503 "syscon";
developerfd40db22021-04-29 10:08:25 +0800504 reg = <0 0x10060000 0 0x1000>;
505 #clock-cells = <1>;
506 };
507
508 sgmiisys1: syscon@10070000 {
developer2df324b2021-06-24 10:21:45 +0800509 compatible = "mediatek,mt7986-sgmiisys",
510 "mediatek,mt7986-sgmiisys_1",
511 "syscon";
developerfd40db22021-04-29 10:08:25 +0800512 reg = <0 0x10070000 0 0x1000>;
513 #clock-cells = <1>;
514 };
515
516 snand: snfi@11005000 {
517 compatible = "mediatek,mt7986-snand";
518 reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>;
519 reg-names = "nfi", "ecc";
520 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer248c10b2021-07-14 16:11:19 +0800521 clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>,
522 <&infracfg_ao CK_INFRA_NFI1_CK>,
523 <&infracfg_ao CK_INFRA_NFI_HCK_CK>;
524 clock-names = "pad_clk", "nfi_clk", "nfi_hclk";
developer2df324b2021-06-24 10:21:45 +0800525 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
526 <&topckgen CK_TOP_NFI1X_SEL>;
developer5ed51d22021-07-06 21:01:26 +0800527 assigned-clock-parents = <&topckgen CK_TOP_MM_D8_D2>,
528 <&topckgen CK_TOP_CB_MM_D8>;
developerfd40db22021-04-29 10:08:25 +0800529 #address-cells = <1>;
530 #size-cells = <0>;
developerfa941f12021-07-13 14:58:47 +0800531 drive-strength = <1>;
developerfd40db22021-04-29 10:08:25 +0800532 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";
developerfa941f12021-07-13 14:58:47 +0800559 drive-strength = <3>;
developerfd40db22021-04-29 10:08:25 +0800560 status = "disabled";
561 };
562
563 spi1: spi@1100b000 {
developer44700a22021-07-13 19:06:49 +0800564 compatible = "mediatek,ipm-spi-single";
developerfd40db22021-04-29 10:08:25 +0800565 reg = <0 0x1100b000 0 0x100>;
566 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800567 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800568 <&topckgen CK_TOP_SPIM_MST_SEL>,
developer2df324b2021-06-24 10:21:45 +0800569 <&infracfg_ao CK_INFRA_SPI1_CK>,
developer44700a22021-07-13 19:06:49 +0800570 <&infracfg_ao CK_INFRA_SPI1_HCK_CK>;
571 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800572 status = "disabled";
573 };
574
developeree2df732021-05-21 15:19:42 +0800575 auxadc: adc@1100d000 {
576 compatible = "mediatek,mt7986-auxadc",
577 "mediatek,mt7622-auxadc";
578 reg = <0 0x1100d000 0 0x1000>;
developer2df324b2021-06-24 10:21:45 +0800579 clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>;
developeree2df732021-05-21 15:19:42 +0800580 clock-names = "main";
581 #io-channel-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800582 status = "disabled";
developeree2df732021-05-21 15:19:42 +0800583 };
584
developerfd40db22021-04-29 10:08:25 +0800585 consys: consys@10000000 {
586 compatible = "mediatek,mt7986-consys";
587 reg = <0 0x10000000 0 0x8600000>;
588 memory-region = <&wmcpu_emi>;
589 };
590
591 xhci: xhci@11200000 {
592 compatible = "mediatek,mt7986-xhci",
593 "mediatek,mtk-xhci";
594 reg = <0 0x11200000 0 0x2e00>,
595 <0 0x11203e00 0 0x0100>;
596 reg-names = "mac", "ippc";
597 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
598 phys = <&u2port0 PHY_TYPE_USB2>,
599 <&u3port0 PHY_TYPE_USB3>,
600 <&u2port1 PHY_TYPE_USB2>;
601 clocks = <&system_clk>,
602 <&system_clk>,
603 <&system_clk>,
604 <&system_clk>,
605 <&system_clk>;
606 clock-names = "sys_ck",
607 "xhci_ck",
608 "ref_ck",
609 "mcu_ck",
610 "dma_ck";
611 #address-cells = <2>;
612 #size-cells = <2>;
613 status = "okay";
614 };
615
616 usbtphy: usb-phy@11e10000 {
617 compatible = "mediatek,mt7986",
618 "mediatek,generic-tphy-v2";
619 #address-cells = <2>;
620 #size-cells = <2>;
621 ranges;
622 status = "okay";
623
624 u2port0: usb-phy@11e10000 {
625 reg = <0 0x11e10000 0 0x700>;
626 clocks = <&system_clk>;
627 clock-names = "ref";
628 #phy-cells = <1>;
629 status = "okay";
630 };
631
632 u3port0: usb-phy@11e10700 {
633 reg = <0 0x11e10700 0 0x900>;
634 clocks = <&system_clk>;
635 clock-names = "ref";
636 #phy-cells = <1>;
637 status = "okay";
638 };
639
640 u2port1: usb-phy@11e11000 {
641 reg = <0 0x11e11000 0 0x700>;
642 clocks = <&system_clk>;
643 clock-names = "ref";
644 #phy-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800645 status = "disabled";
developerfd40db22021-04-29 10:08:25 +0800646 };
647 };
developer2df324b2021-06-24 10:21:45 +0800648
649 clkitg: clkitg {
650 compatible = "simple-bus";
651 };
developerfbbf02b2021-06-25 09:30:28 +0800652
653 trng: trng@1020f000 {
654 compatible = "mediatek,mt7986-rng",
655 "mediatek,mt7623-rng";
656 reg = <0 0x1020f000 0 0x100>;
657 clocks = <&infracfg_ao CK_INFRA_TRNG_CK>;
658 clock-names = "rng";
659 };
developer86ee1e12021-06-30 11:18:53 +0800660
661 ice: ice_debug {
662 compatible = "mediatek,mt8512-ice_debug",
663 "mediatek,mt2701-ice_debug";
developer66b5c8d2021-07-16 14:02:47 +0800664 clocks = <&infracfg_ao CK_INFRA_DBG_CK>,
665 <&topckgen CK_TOP_ARM_DB_JTSEL>;
666 clock-names = "ice_dbg", "dbg_jtsel";
developer86ee1e12021-06-30 11:18:53 +0800667 };
developer3e9ad9d2021-07-01 16:42:25 +0800668
669 efuse: efuse@11d00000 {
670 compatible = "mediatek,mt7986-efuse",
671 "mediatek,efuse";
672 reg = <0 0x11d00000 0 0x1000>;
673 #address-cells = <1>;
674 #size-cells = <1>;
675
676 thermal_calibration: calib@274 {
677 reg = <0x274 0xc>;
678 };
679 };
developerfd40db22021-04-29 10:08:25 +0800680};
developer2df324b2021-06-24 10:21:45 +0800681
682#include "mt7986-clkitg.dtsi"