blob: 7ac9806de5a38fb6069c5b9513e16d7681d0f050 [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>
developer15adbbf2021-05-24 22:20:07 +080019#include <dt-bindings/clock/mt7986-clk.h>
developer3e9ad9d2021-07-01 16:42:25 +080020#include <dt-bindings/thermal/thermal.h>
developer15adbbf2021-05-24 22:20:07 +080021
developerfd40db22021-04-29 10:08:25 +080022/ {
23 compatible = "mediatek,mt7986a-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
developer15adbbf2021-05-24 22:20:07 +0800168 clk40m: oscillator@0 {
169 compatible = "fixed-clock";
170 #clock-cells = <0>;
171 clock-frequency = <40000000>;
172 clock-output-names = "clkxtal";
173 };
174
developerfd40db22021-04-29 10:08:25 +0800175 system_clk: dummy_system_clk {
176 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>;
developerfd40db22021-04-29 10:08:25 +0800189 };
190
developer15adbbf2021-05-24 22:20:07 +0800191 infracfg_ao: infracfg_ao@10001000 {
192 compatible = "mediatek,mt7986-infracfg_ao", "syscon";
developer8b9f2852021-06-03 21:53:08 +0800193 reg = <0 0x10001000 0 0x68>;
developer15adbbf2021-05-24 22:20:07 +0800194 #clock-cells = <1>;
195 };
196
197 infracfg: infracfg@10001040 {
198 compatible = "mediatek,mt7986-infracfg", "syscon";
developer8b9f2852021-06-03 21:53:08 +0800199 reg = <0 0x1000106c 0 0x1000>;
developer15adbbf2021-05-24 22:20:07 +0800200 #clock-cells = <1>;
201 };
202
203 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>;
213 };
214
developerfd40db22021-04-29 10:08:25 +0800215 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
developer8b9f2852021-06-03 21:53:08 +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>;
developer8b9f2852021-06-03 21:53:08 +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>;
developer8b9f2852021-06-03 21:53:08 +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>;
developer8b9f2852021-06-03 21:53:08 +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
developer8b9f2852021-06-03 21:53:08 +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 };
304
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
developere2ed4342021-07-02 16:04:23 +0800403 pcie0: pcie@11280000 {
developerfd40db22021-04-29 10:08:25 +0800404 compatible = "mediatek,mt7986-pcie";
developerfd40db22021-04-29 10:08:25 +0800405 reg = <0 0x11280000 0 0x5000>;
developere2ed4342021-07-02 16:04:23 +0800406 reg-names = "pcie-mac";
developerfd40db22021-04-29 10:08:25 +0800407 #address-cells = <3>;
408 #size-cells = <2>;
409 interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
410 bus-range = <0x00 0xff>;
411 ranges = <0x82000000 0 0x20000000
412 0x0 0x20000000 0 0x10000000>;
developere2ed4342021-07-02 16:04:23 +0800413 status = "disabled";
developerfd40db22021-04-29 10:08:25 +0800414
developere2ed4342021-07-02 16:04:23 +0800415 clocks = <&infracfg_ao CK_INFRA_PCIE_SEL>,
416 <&infracfg_ao CK_INFRA_IPCIE_CK>,
417 <&infracfg_ao CK_INFRA_IPCIE_PIPE_CK>,
418 <&infracfg_ao CK_INFRA_IPCIER_CK>,
419 <&infracfg_ao CK_INFRA_IPCIEB_CK>;
420
421 #interrupt-cells = <1>;
422 interrupt-map-mask = <0 0 0 7>;
423 interrupt-map = <0 0 0 1 &pcie_intc0 0>,
424 <0 0 0 2 &pcie_intc0 1>,
425 <0 0 0 3 &pcie_intc0 2>,
426 <0 0 0 4 &pcie_intc0 3>;
427 pcie_intc0: interrupt-controller {
428 interrupt-controller;
429 #address-cells = <0>;
developerfd40db22021-04-29 10:08:25 +0800430 #interrupt-cells = <1>;
developerfd40db22021-04-29 10:08:25 +0800431 };
432 };
433
developer3e916422021-05-27 16:40:29 +0800434 crypto: crypto@10320000 {
435 compatible = "inside-secure,safexcel-eip97";
436 reg = <0 0x10320000 0 0x40000>;
437 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
438 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
439 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
440 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
441 interrupt-names = "ring0", "ring1", "ring2", "ring3";
developere1993bd2021-07-06 13:48:40 +0800442 clocks = <&infracfg_ao CK_INFRA_EIP97_CK>;
443 clock-names = "infra_eip97_ck";
444 assigned-clocks = <&topckgen CK_TOP_EIP_B_SEL>;
445 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>;
developer3e916422021-05-27 16:40:29 +0800446 };
447
developerfd40db22021-04-29 10:08:25 +0800448 pio: pinctrl@1001f000 {
449 compatible = "mediatek,mt7986-pinctrl";
450 reg = <0 0x1001f000 0 0x1000>,
451 <0 0x11c30000 0 0x1000>,
452 <0 0x11c40000 0 0x1000>,
453 <0 0x11e20000 0 0x1000>,
454 <0 0x11e30000 0 0x1000>,
455 <0 0x11f00000 0 0x1000>,
456 <0 0x11f10000 0 0x1000>,
457 <0 0x1000b000 0 0x1000>;
458 reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base",
459 "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base",
460 "iocfg_tl_base", "eint";
461 gpio-controller;
462 #gpio-cells = <2>;
463 gpio-ranges = <&pio 0 0 100>;
464 interrupt-controller;
developera7f8fa42021-06-07 16:46:34 +0800465 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developerfd40db22021-04-29 10:08:25 +0800466 interrupt-parent = <&gic>;
467 #interrupt-cells = <2>;
468 };
469
470 ethsys: syscon@15000000 {
471 #address-cells = <1>;
472 #size-cells = <1>;
developer8b9f2852021-06-03 21:53:08 +0800473 compatible = "mediatek,mt7986-ethsys_ck",
developerfd40db22021-04-29 10:08:25 +0800474 "syscon";
475 reg = <0 0x15000000 0 0x1000>;
476 #clock-cells = <1>;
477 #reset-cells = <1>;
478
479 ethsysrst: reset-controller {
480 compatible = "ti,syscon-reset";
481 #reset-cells = <1>;
482 ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
483 };
484 };
485
486 eth: ethernet@15100000 {
487 compatible = "mediatek,mt7986-eth";
488 reg = <0 0x15100000 0 0x80000>;
489 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
490 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
491 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
492 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800493 clocks = <&ethsys CK_ETH_FE_EN>,
494 <&ethsys CK_ETH_GP2_EN>,
495 <&ethsys CK_ETH_GP1_EN>,
496 <&ethsys CK_ETH_WOCPU1_EN>,
497 <&ethsys CK_ETH_WOCPU0_EN>,
developer77bbf432021-06-28 18:39:08 +0800498 <&sgmiisys0 CK_SGM0_TX_EN>,
499 <&sgmiisys0 CK_SGM0_RX_EN>,
500 <&sgmiisys0 CK_SGM0_CK0_EN>,
501 <&sgmiisys0 CK_SGM0_CDR_CK0_EN>,
502 <&sgmiisys1 CK_SGM1_TX_EN>,
503 <&sgmiisys1 CK_SGM1_RX_EN>,
504 <&sgmiisys1 CK_SGM1_CK1_EN>,
505 <&sgmiisys1 CK_SGM1_CDR_CK1_EN>;
developerfd40db22021-04-29 10:08:25 +0800506 clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
507 "sgmii_tx250m", "sgmii_rx250m",
508 "sgmii_cdr_ref", "sgmii_cdr_fb",
509 "sgmii2_tx250m", "sgmii2_rx250m",
510 "sgmii2_cdr_ref", "sgmii2_cdr_fb";
developer8b9f2852021-06-03 21:53:08 +0800511 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
512 <&topckgen CK_TOP_SGM_325M_SEL>;
513 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
514 <&topckgen CK_TOP_CB_SGM_325M>;
developerfd40db22021-04-29 10:08:25 +0800515 mediatek,ethsys = <&ethsys>;
516 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
517 #reset-cells = <1>;
518 #address-cells = <1>;
519 #size-cells = <0>;
520 status = "disabled";
521 };
522
523 hnat: hnat@15000000 {
524 compatible = "mediatek,mtk-hnat_v4";
525 reg = <0 0x15100000 0 0x80000>;
526 resets = <&ethsys 0>;
527 reset-names = "mtketh";
528 status = "disabled";
529 };
530
531 sgmiisys0: syscon@10060000 {
developer15adbbf2021-05-24 22:20:07 +0800532 compatible = "mediatek,mt7986-sgmiisys",
533 "mediatek,mt7986-sgmiisys_0",
534 "syscon";
developerfd40db22021-04-29 10:08:25 +0800535 reg = <0 0x10060000 0 0x1000>;
536 #clock-cells = <1>;
537 };
538
539 sgmiisys1: syscon@10070000 {
developer15adbbf2021-05-24 22:20:07 +0800540 compatible = "mediatek,mt7986-sgmiisys",
541 "mediatek,mt7986-sgmiisys_1",
542 "syscon";
developerfd40db22021-04-29 10:08:25 +0800543 reg = <0 0x10070000 0 0x1000>;
544 #clock-cells = <1>;
545 };
546
547 snand: snfi@11005000 {
548 compatible = "mediatek,mt7986-snand";
549 reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>;
550 reg-names = "nfi", "ecc";
551 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer248c10b2021-07-14 16:11:19 +0800552 clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>,
553 <&infracfg_ao CK_INFRA_NFI1_CK>,
554 <&infracfg_ao CK_INFRA_NFI_HCK_CK>;
555 clock-names = "pad_clk", "nfi_clk", "nfi_hclk";
developer8b9f2852021-06-03 21:53:08 +0800556 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
557 <&topckgen CK_TOP_NFI1X_SEL>;
developer5ed51d22021-07-06 21:01:26 +0800558 assigned-clock-parents = <&topckgen CK_TOP_MM_D8_D2>,
559 <&topckgen CK_TOP_CB_MM_D8>;
developerfd40db22021-04-29 10:08:25 +0800560 #address-cells = <1>;
561 #size-cells = <0>;
developerfa941f12021-07-13 14:58:47 +0800562 drive-strength = <1>;
developerfd40db22021-04-29 10:08:25 +0800563 status = "disabled";
564 };
565
566 wbsys: wbsys@18000000 {
567 compatible = "mediatek,wbsys";
568 reg = <0 0x18000000 0 0x1000000>;
569 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
570 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
571 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
572 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
573 chip_id = <0x7986>;
574 };
575
576 wed_pcie: wed_pcie@10003000 {
577 compatible = "mediatek,wed_pcie";
578 reg = <0 0x10003000 0 0x10>;
579 };
580
581 spi0: spi@1100a000 {
developer44700a22021-07-13 19:06:49 +0800582 compatible = "mediatek,ipm-spi-quad";
developerfd40db22021-04-29 10:08:25 +0800583 reg = <0 0x1100a000 0 0x100>;
584 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800585 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800586 <&topckgen CK_TOP_SPI_SEL>,
developer8b9f2852021-06-03 21:53:08 +0800587 <&infracfg_ao CK_INFRA_SPI0_CK>,
developer44700a22021-07-13 19:06:49 +0800588 <&infracfg_ao CK_INFRA_SPI0_HCK_CK>;
589 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfa941f12021-07-13 14:58:47 +0800590 drive-strength = <3>;
developerfd40db22021-04-29 10:08:25 +0800591 status = "disabled";
592 };
593
594 spi1: spi@1100b000 {
developer44700a22021-07-13 19:06:49 +0800595 compatible = "mediatek,ipm-spi-single";
developerfd40db22021-04-29 10:08:25 +0800596 reg = <0 0x1100b000 0 0x100>;
597 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800598 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800599 <&topckgen CK_TOP_SPIM_MST_SEL>,
developer8b9f2852021-06-03 21:53:08 +0800600 <&infracfg_ao CK_INFRA_SPI1_CK>,
developer44700a22021-07-13 19:06:49 +0800601 <&infracfg_ao CK_INFRA_SPI1_HCK_CK>;
602 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800603 status = "disabled";
604 };
605
developer637f5552021-05-27 17:45:27 +0800606 mmc0: mmc@11230000 {
607 compatible = "mediatek,mt7986-mmc";
608 reg = <0 0x11230000 0 0x1000>,
609 <0 0x11c20000 0 0x1000>;
610 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800611 clocks = <&topckgen CK_TOP_EMMC_416M>,
612 <&topckgen CK_TOP_EMMC_250M>,
613 <&infracfg_ao CK_INFRA_MSDC_CK>;
developer637f5552021-05-27 17:45:27 +0800614 clock-names = "source", "hclk", "source_cg";
developer8b9f2852021-06-03 21:53:08 +0800615 assigned-clocks = <&topckgen CK_TOP_EMMC_416M_SEL>,
616 <&topckgen CK_TOP_EMMC_250M_SEL>;
617 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
618 <&topckgen CK_TOP_CB_CKSQ_40M>;
developerfa941f12021-07-13 14:58:47 +0800619 drive-strength = <1>;
developer637f5552021-05-27 17:45:27 +0800620 status = "disabled";
621 };
622
developeree2df732021-05-21 15:19:42 +0800623 auxadc: adc@1100d000 {
624 compatible = "mediatek,mt7986-auxadc",
625 "mediatek,mt7622-auxadc";
626 reg = <0 0x1100d000 0 0x1000>;
developer8b9f2852021-06-03 21:53:08 +0800627 clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>;
developeree2df732021-05-21 15:19:42 +0800628 clock-names = "main";
629 #io-channel-cells = <1>;
developer8b9f2852021-06-03 21:53:08 +0800630 status = "disabled";
developeree2df732021-05-21 15:19:42 +0800631 };
632
developerfd40db22021-04-29 10:08:25 +0800633 consys: consys@10000000 {
634 compatible = "mediatek,mt7986-consys";
635 reg = <0 0x10000000 0 0x8600000>;
636 memory-region = <&wmcpu_emi>;
637 };
638
639 xhci: xhci@11200000 {
640 compatible = "mediatek,mt7986-xhci",
641 "mediatek,mtk-xhci";
642 reg = <0 0x11200000 0 0x2e00>,
643 <0 0x11203e00 0 0x0100>;
644 reg-names = "mac", "ippc";
645 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
646 phys = <&u2port0 PHY_TYPE_USB2>,
647 <&u3port0 PHY_TYPE_USB3>,
648 <&u2port1 PHY_TYPE_USB2>;
649 clocks = <&system_clk>,
650 <&system_clk>,
651 <&system_clk>,
652 <&system_clk>,
653 <&system_clk>;
654 clock-names = "sys_ck",
655 "xhci_ck",
656 "ref_ck",
657 "mcu_ck",
658 "dma_ck";
659 #address-cells = <2>;
660 #size-cells = <2>;
661 status = "okay";
662 };
663
664 usbtphy: usb-phy@11e10000 {
665 compatible = "mediatek,mt7986",
666 "mediatek,generic-tphy-v2";
667 #address-cells = <2>;
668 #size-cells = <2>;
669 ranges;
670 status = "okay";
671
672 u2port0: usb-phy@11e10000 {
673 reg = <0 0x11e10000 0 0x700>;
674 clocks = <&system_clk>;
675 clock-names = "ref";
676 #phy-cells = <1>;
677 status = "okay";
678 };
679
680 u3port0: usb-phy@11e10700 {
681 reg = <0 0x11e10700 0 0x900>;
682 clocks = <&system_clk>;
683 clock-names = "ref";
684 #phy-cells = <1>;
685 status = "okay";
686 };
687
688 u2port1: usb-phy@11e11000 {
689 reg = <0 0x11e11000 0 0x700>;
690 clocks = <&system_clk>;
691 clock-names = "ref";
692 #phy-cells = <1>;
693 status = "okay";
694 };
695 };
developer15adbbf2021-05-24 22:20:07 +0800696
697 clkitg: clkitg {
698 compatible = "simple-bus";
699 };
developerfbbf02b2021-06-25 09:30:28 +0800700
developere1993bd2021-07-06 13:48:40 +0800701 afe: audio-controller@11210000 {
702 compatible = "mediatek,mt7986-audio";
703 reg = <0 0x11210000 0 0x9000>;
704 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
705 clocks = <&infracfg_ao CK_INFRA_AUD_BUS_CK>,
706 <&infracfg_ao CK_INFRA_AUD_26M_CK>,
707 <&infracfg_ao CK_INFRA_AUD_L_CK>,
708 <&infracfg_ao CK_INFRA_AUD_AUD_CK>,
709 <&infracfg_ao CK_INFRA_AUD_EG2_CK>;
710 clock-names = "aud_bus_ck",
711 "aud_26m_ck",
712 "aud_l_ck",
713 "aud_aud_ck",
714 "aud_eg2_ck";
715 assigned-clocks = <&topckgen CK_TOP_A1SYS_SEL>,
716 <&topckgen CK_TOP_AUD_L_SEL>,
717 <&topckgen CK_TOP_A_TUNER_SEL>;
718 assigned-clock-parents = <&topckgen CK_TOP_APLL2_D4>,
719 <&topckgen CK_TOP_CB_APLL2_196M>,
720 <&topckgen CK_TOP_APLL2_D4>;
721 };
722
developerfbbf02b2021-06-25 09:30:28 +0800723 trng: trng@1020f000 {
724 compatible = "mediatek,mt7986-rng",
725 "mediatek,mt7623-rng";
726 reg = <0 0x1020f000 0 0x100>;
727 clocks = <&infracfg_ao CK_INFRA_TRNG_CK>;
728 clock-names = "rng";
729 };
developer86ee1e12021-06-30 11:18:53 +0800730
731 ice: ice_debug {
732 compatible = "mediatek,mt7986-ice_debug",
733 "mediatek,mt2701-ice_debug";
developer66b5c8d2021-07-16 14:02:47 +0800734 clocks = <&infracfg_ao CK_INFRA_DBG_CK>,
735 <&topckgen CK_TOP_ARM_DB_JTSEL>;
736 clock-names = "ice_dbg", "dbg_jtsel";
developer86ee1e12021-06-30 11:18:53 +0800737 };
developer3e9ad9d2021-07-01 16:42:25 +0800738
739 efuse: efuse@11d00000 {
740 compatible = "mediatek,mt7986-efuse",
741 "mediatek,efuse";
742 reg = <0 0x11d00000 0 0x1000>;
743 #address-cells = <1>;
744 #size-cells = <1>;
745
746 thermal_calibration: calib@274 {
747 reg = <0x274 0xc>;
748 };
749 };
developerfd40db22021-04-29 10:08:25 +0800750};
developer15adbbf2021-05-24 22:20:07 +0800751
developer8b9f2852021-06-03 21:53:08 +0800752#include "mt7986-clkitg.dtsi"