blob: ba27b95f5ae58504b366d49a20d1ba31a55f5a08 [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>
developer7f4cdcd2021-08-03 19:29:43 +080021#include <dt-bindings/pinctrl/mt65xx.h>
developere138bcd2021-12-06 09:20:47 +080022#include <dt-bindings/reset/mt7986-resets.h>
developer15adbbf2021-05-24 22:20:07 +080023
developerfd40db22021-04-29 10:08:25 +080024/ {
25 compatible = "mediatek,mt7986a-rfb";
26 interrupt-parent = <&gic>;
27 #address-cells = <2>;
28 #size-cells = <2>;
29 cpus {
30 #address-cells = <1>;
31 #size-cells = <0>;
developer3e9ad9d2021-07-01 16:42:25 +080032 cpu0: cpu@0 {
developerfd40db22021-04-29 10:08:25 +080033 device_type = "cpu";
34 compatible = "arm,cortex-a53";
35 enable-method = "psci";
36 reg = <0x0>;
37 };
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>;
44 };
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>;
51 };
52
developer3e9ad9d2021-07-01 16:42:25 +080053 cpu3: cpu@3 {
developerfd40db22021-04-29 10:08:25 +080054 device_type = "cpu";
55 enable-method = "psci";
56 compatible = "arm,cortex-a53";
57 reg = <0x3>;
58 };
59 };
60
61 wed: wed@15010000 {
62 compatible = "mediatek,wed";
63 wed_num = <2>;
64 /* add this property for wed get the pci slot number. */
65 pci_slot_map = <0>, <1>;
66 reg = <0 0x15010000 0 0x1000>,
67 <0 0x15011000 0 0x1000>;
68 interrupt-parent = <&gic>;
69 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
70 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
71 };
72
73 wed2: wed2@15011000 {
74 compatible = "mediatek,wed2";
75 wed_num = <2>;
76 reg = <0 0x15010000 0 0x1000>,
77 <0 0x15011000 0 0x1000>;
78 interrupt-parent = <&gic>;
79 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
80 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
81 };
82
83 wdma: wdma@15104800 {
84 compatible = "mediatek,wed-wdma";
85 reg = <0 0x15104800 0 0x400>,
86 <0 0x15104c00 0 0x400>;
87 };
88
89 ap2woccif: ap2woccif@151A5000 {
90 compatible = "mediatek,ap2woccif";
91 reg = <0 0x151A5000 0 0x1000>,
92 <0 0x151AD000 0 0x1000>;
93 interrupt-parent = <&gic>;
94 interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
95 <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
96 };
97
98 wocpu0_ilm: wocpu0_ilm@151E0000 {
99 compatible = "mediatek,wocpu0_ilm";
100 reg = <0 0x151E0000 0 0x8000>;
101 };
102
103 wocpu1_ilm: wocpu1_ilm@151F0000 {
104 compatible = "mediatek,wocpu1_ilm";
105 reg = <0 0x151F0000 0 0x8000>;
106 };
107
108 wocpu_dlm: wocpu_dlm@151E8000 {
109 compatible = "mediatek,wocpu_dlm";
110 reg = <0 0x151E8000 0 0x2000>,
111 <0 0x151F8000 0 0x2000>;
112
113 resets = <&ethsysrst 0>;
114 reset-names = "wocpu_rst";
115 };
116
117 cpu_boot: wocpu_boot@15194000 {
118 compatible = "mediatek,wocpu_boot";
119 reg = <0 0x15194000 0 0x1000>;
120 };
121
122 reserved-memory {
123 #address-cells = <2>;
124 #size-cells = <2>;
125 ranges;
126
127 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
128 secmon_reserved: secmon@43000000 {
129 reg = <0 0x43000000 0 0x30000>;
130 no-map;
131 };
132
133 wmcpu_emi: wmcpu-reserved@4FC00000 {
134 compatible = "mediatek,wmcpu-reserved";
135 no-map;
136 reg = <0 0x4FC00000 0 0x00100000>;
137 };
138
139 wocpu0_emi: wocpu0_emi@4FD00000 {
140 compatible = "mediatek,wocpu0_emi";
141 no-map;
142 reg = <0 0x4FD00000 0 0x40000>;
143 shared = <0>;
144 };
145
developer86423f02021-10-12 15:20:50 +0800146 wocpu1_emi: wocpu1_emi@4FD40000 {
developerfd40db22021-04-29 10:08:25 +0800147 compatible = "mediatek,wocpu1_emi";
148 no-map;
149 reg = <0 0x4FD40000 0 0x40000>;
150 shared = <0>;
151 };
152
developer86423f02021-10-12 15:20:50 +0800153 wocpu_data: wocpu_data@4FD80000 {
developerfd40db22021-04-29 10:08:25 +0800154 compatible = "mediatek,wocpu_data";
155 no-map;
developer8be272e2021-07-29 13:15:07 +0800156 reg = <0 0x4FD80000 0 0x240000>;
developerfd40db22021-04-29 10:08:25 +0800157 shared = <1>;
158 };
159 };
160
161 psci {
162 compatible = "arm,psci-0.2";
163 method = "smc";
164 };
165
developer15adbbf2021-05-24 22:20:07 +0800166 clk40m: oscillator@0 {
167 compatible = "fixed-clock";
168 #clock-cells = <0>;
169 clock-frequency = <40000000>;
170 clock-output-names = "clkxtal";
171 };
172
developerfd40db22021-04-29 10:08:25 +0800173 system_clk: dummy_system_clk {
174 compatible = "fixed-clock";
175 clock-frequency = <40000000>;
176 #clock-cells = <0>;
177 };
178
developerfd40db22021-04-29 10:08:25 +0800179 timer {
180 compatible = "arm,armv8-timer";
181 interrupt-parent = <&gic>;
developerf39022a2021-05-06 13:31:52 +0800182 clock-frequency = <13000000>;
developerfd40db22021-04-29 10:08:25 +0800183 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
184 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
185 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
186 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
developerfd40db22021-04-29 10:08:25 +0800187 };
188
developer15adbbf2021-05-24 22:20:07 +0800189 infracfg_ao: infracfg_ao@10001000 {
190 compatible = "mediatek,mt7986-infracfg_ao", "syscon";
developer8b9f2852021-06-03 21:53:08 +0800191 reg = <0 0x10001000 0 0x68>;
developer15adbbf2021-05-24 22:20:07 +0800192 #clock-cells = <1>;
193 };
194
195 infracfg: infracfg@10001040 {
196 compatible = "mediatek,mt7986-infracfg", "syscon";
developer8b9f2852021-06-03 21:53:08 +0800197 reg = <0 0x1000106c 0 0x1000>;
developer15adbbf2021-05-24 22:20:07 +0800198 #clock-cells = <1>;
199 };
200
201 topckgen: topckgen@1001B000 {
202 compatible = "mediatek,mt7986-topckgen", "syscon";
203 reg = <0 0x1001B000 0 0x1000>;
204 #clock-cells = <1>;
205 };
206
207 apmixedsys: apmixedsys@1001E000 {
208 compatible = "mediatek,mt7986-apmixedsys", "syscon";
209 reg = <0 0x1001E000 0 0x1000>;
210 #clock-cells = <1>;
211 };
212
developerfd40db22021-04-29 10:08:25 +0800213 watchdog: watchdog@1001c000 {
developere138bcd2021-12-06 09:20:47 +0800214 compatible = "mediatek,mt7986-wdt";
developerfd40db22021-04-29 10:08:25 +0800215 reg = <0 0x1001c000 0 0x1000>;
216 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
217 #reset-cells = <1>;
218 };
219
220 gic: interrupt-controller@c000000 {
221 compatible = "arm,gic-v3";
222 #interrupt-cells = <3>;
223 interrupt-parent = <&gic>;
224 interrupt-controller;
225 reg = <0 0x0c000000 0 0x40000>, /* GICD */
226 <0 0x0c080000 0 0x200000>; /* GICR */
227
228 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
229 };
230
developer8b9f2852021-06-03 21:53:08 +0800231 pwm: pwm@10048000 {
232 compatible = "mediatek,mt7986-pwm";
233 reg = <0 0x10048000 0 0x1000>;
234 #clock-cells = <1>;
235 #pwm-cells = <2>;
236 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
237 clocks = <&infracfg CK_INFRA_PWM>,
238 <&infracfg_ao CK_INFRA_PWM_BSEL>,
239 <&infracfg_ao CK_INFRA_PWM1_CK>,
240 <&infracfg_ao CK_INFRA_PWM2_CK>;
241 assigned-clocks = <&topckgen CK_TOP_PWM_SEL>,
242 <&infracfg_ao CK_INFRA_PWM_BSEL>,
243 <&infracfg_ao CK_INFRA_PWM1_SEL>,
244 <&infracfg_ao CK_INFRA_PWM2_SEL>;
245 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D4>,
246 <&infracfg CK_INFRA_PWM>,
247 <&infracfg CK_INFRA_PWM>,
248 <&infracfg CK_INFRA_PWM>;
249 clock-names = "top", "main", "pwm1", "pwm2";
250 status = "disabled";
251 };
252
developer017b92f2022-05-25 11:37:11 +0800253 fan: pwm-fan {
254 compatible = "pwm-fan";
255 /* cooling level (0, 1, 2) : (0% duty, 50% duty, 100% duty) */
256 cooling-levels = <0 128 255>;
257 #cooling-cells = <2>;
258 status = "disabled";
259 };
260
developerfd40db22021-04-29 10:08:25 +0800261 uart0: serial@11002000 {
262 compatible = "mediatek,mt7986-uart",
263 "mediatek,mt6577-uart";
264 reg = <0 0x11002000 0 0x400>;
265 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800266 clocks = <&infracfg_ao CK_INFRA_UART0_CK>;
267 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
268 <&infracfg_ao CK_INFRA_UART0_SEL>;
269 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
270 <&infracfg CK_INFRA_UART>;
developerfd40db22021-04-29 10:08:25 +0800271 status = "disabled";
272 };
273
274 uart1: serial@11003000 {
275 compatible = "mediatek,mt7986-uart",
276 "mediatek,mt6577-uart";
277 reg = <0 0x11003000 0 0x400>;
278 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800279 clocks = <&infracfg_ao CK_INFRA_UART1_CK>;
280 assigned-clocks = <&infracfg_ao CK_INFRA_UART1_SEL>;
281 assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>;
developerfd40db22021-04-29 10:08:25 +0800282 status = "disabled";
283 };
284
285 uart2: serial@11004000 {
286 compatible = "mediatek,mt7986-uart",
287 "mediatek,mt6577-uart";
288 reg = <0 0x11004000 0 0x400>;
289 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800290 clocks = <&infracfg_ao CK_INFRA_UART2_CK>;
291 assigned-clocks = <&infracfg_ao CK_INFRA_UART2_SEL>;
292 assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>;
developerfd40db22021-04-29 10:08:25 +0800293 status = "disabled";
294 };
295
developer8b9f2852021-06-03 21:53:08 +0800296 i2c0: i2c@11008000 {
297 compatible = "mediatek,mt7986-i2c";
298 reg = <0 0x11008000 0 0x90>,
299 <0 0x10217080 0 0x80>;
300 interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
developerccffa942021-09-22 15:57:01 +0800301 clock-div = <5>;
developer8b9f2852021-06-03 21:53:08 +0800302 clocks = <&infracfg_ao CK_INFRA_I2CO_CK>,
303 <&infracfg_ao CK_INFRA_AP_DMA_CK>;
304 clock-names = "main", "dma";
305 #address-cells = <1>;
306 #size-cells = <0>;
307 status = "disabled";
308 };
309
developer3e9ad9d2021-07-01 16:42:25 +0800310 thermal-zones {
311 cpu_thermal: cpu-thermal {
312 polling-delay-passive = <1000>;
313 polling-delay = <1000>;
314 thermal-sensors = <&thermal 0>;
developer017b92f2022-05-25 11:37:11 +0800315 trips {
316 cpu_trip_hot: hot {
317 temperature = <60000>;
318 hysteresis = <2000>;
319 type = "hot";
320 };
321
322 cpu_trip_active: active {
323 temperature = <40000>;
324 hysteresis = <2000>;
325 type = "active";
326 };
327
328 cpu_trip_passive: passive {
329 temperature = <20000>;
330 hysteresis = <2000>;
331 type = "passive";
332 };
333 };
334 cooling-maps {
335 cpu-hot {
336 /* hot: set fan to cooling level 2 */
337 cooling-device = <&fan 2 2>;
338 trip = <&cpu_trip_hot>;
339 };
340
341 cpu-active {
342 /* active: set fan to cooling level 1 */
343 cooling-device = <&fan 1 1>;
344 trip = <&cpu_trip_active>;
345 };
346
347 cpu-passive {
348 /* passive: set fan to cooling level 0 */
349 cooling-device = <&fan 0 0>;
350 trip = <&cpu_trip_passive>;
351 };
352 };
353
developer3e9ad9d2021-07-01 16:42:25 +0800354 };
355 };
356
357 thermal: thermal@1100c800 {
358 #thermal-sensor-cells = <1>;
359 compatible = "mediatek,mt7986-thermal";
developer4173d3c2021-08-12 11:21:49 +0800360 reg = <0 0x1100c800 0 0x800>;
developer3e9ad9d2021-07-01 16:42:25 +0800361 interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
362 clocks = <&infracfg_ao CK_INFRA_THERM_CK>,
developerdf32d112021-08-29 11:58:01 +0800363 <&infracfg_ao CK_INFRA_ADC_26M_CK>,
364 <&infracfg_ao CK_INFRA_ADC_FRC_CK>;
365 clock-names = "therm", "auxadc", "adc_32k";
developer3e9ad9d2021-07-01 16:42:25 +0800366 mediatek,auxadc = <&auxadc>;
367 mediatek,apmixedsys = <&apmixedsys>;
368 nvmem-cells = <&thermal_calibration>;
369 nvmem-cell-names = "calibration-data";
370 };
371
developere2ed4342021-07-02 16:04:23 +0800372 pcie0: pcie@11280000 {
developerfd40db22021-04-29 10:08:25 +0800373 compatible = "mediatek,mt7986-pcie";
developerfd40db22021-04-29 10:08:25 +0800374 reg = <0 0x11280000 0 0x5000>;
developere2ed4342021-07-02 16:04:23 +0800375 reg-names = "pcie-mac";
developerfd40db22021-04-29 10:08:25 +0800376 #address-cells = <3>;
377 #size-cells = <2>;
378 interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
379 bus-range = <0x00 0xff>;
380 ranges = <0x82000000 0 0x20000000
381 0x0 0x20000000 0 0x10000000>;
developere2ed4342021-07-02 16:04:23 +0800382 status = "disabled";
developerfd40db22021-04-29 10:08:25 +0800383
developere2ed4342021-07-02 16:04:23 +0800384 clocks = <&infracfg_ao CK_INFRA_PCIE_SEL>,
385 <&infracfg_ao CK_INFRA_IPCIE_CK>,
386 <&infracfg_ao CK_INFRA_IPCIE_PIPE_CK>,
387 <&infracfg_ao CK_INFRA_IPCIER_CK>,
388 <&infracfg_ao CK_INFRA_IPCIEB_CK>;
389
developer604b5ac2021-12-30 14:35:44 +0800390 phys = <&pcieport PHY_TYPE_PCIE>;
391 phy-names = "pcie-phy";
392
developere2ed4342021-07-02 16:04:23 +0800393 #interrupt-cells = <1>;
394 interrupt-map-mask = <0 0 0 7>;
395 interrupt-map = <0 0 0 1 &pcie_intc0 0>,
396 <0 0 0 2 &pcie_intc0 1>,
397 <0 0 0 3 &pcie_intc0 2>,
398 <0 0 0 4 &pcie_intc0 3>;
399 pcie_intc0: interrupt-controller {
400 interrupt-controller;
401 #address-cells = <0>;
developerfd40db22021-04-29 10:08:25 +0800402 #interrupt-cells = <1>;
developerfd40db22021-04-29 10:08:25 +0800403 };
developer472b74d2022-05-31 18:17:18 +0800404
405 slot0: pcie@0,0 {
406 reg = <0x0000 0 0 0 0>;
407 };
developerfd40db22021-04-29 10:08:25 +0800408 };
409
developer3e916422021-05-27 16:40:29 +0800410 crypto: crypto@10320000 {
411 compatible = "inside-secure,safexcel-eip97";
412 reg = <0 0x10320000 0 0x40000>;
413 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
414 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
415 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
416 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
417 interrupt-names = "ring0", "ring1", "ring2", "ring3";
developere1993bd2021-07-06 13:48:40 +0800418 clocks = <&infracfg_ao CK_INFRA_EIP97_CK>;
419 clock-names = "infra_eip97_ck";
420 assigned-clocks = <&topckgen CK_TOP_EIP_B_SEL>;
421 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>;
developer3e916422021-05-27 16:40:29 +0800422 };
423
developerfd40db22021-04-29 10:08:25 +0800424 pio: pinctrl@1001f000 {
425 compatible = "mediatek,mt7986-pinctrl";
426 reg = <0 0x1001f000 0 0x1000>,
427 <0 0x11c30000 0 0x1000>,
428 <0 0x11c40000 0 0x1000>,
429 <0 0x11e20000 0 0x1000>,
430 <0 0x11e30000 0 0x1000>,
431 <0 0x11f00000 0 0x1000>,
432 <0 0x11f10000 0 0x1000>,
433 <0 0x1000b000 0 0x1000>;
434 reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base",
435 "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base",
436 "iocfg_tl_base", "eint";
437 gpio-controller;
438 #gpio-cells = <2>;
439 gpio-ranges = <&pio 0 0 100>;
440 interrupt-controller;
developera7f8fa42021-06-07 16:46:34 +0800441 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developerfd40db22021-04-29 10:08:25 +0800442 interrupt-parent = <&gic>;
443 #interrupt-cells = <2>;
444 };
445
446 ethsys: syscon@15000000 {
447 #address-cells = <1>;
448 #size-cells = <1>;
developer8b9f2852021-06-03 21:53:08 +0800449 compatible = "mediatek,mt7986-ethsys_ck",
developerfd40db22021-04-29 10:08:25 +0800450 "syscon";
451 reg = <0 0x15000000 0 0x1000>;
452 #clock-cells = <1>;
453 #reset-cells = <1>;
454
455 ethsysrst: reset-controller {
456 compatible = "ti,syscon-reset";
457 #reset-cells = <1>;
458 ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
459 };
460 };
461
462 eth: ethernet@15100000 {
463 compatible = "mediatek,mt7986-eth";
464 reg = <0 0x15100000 0 0x80000>;
465 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
466 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
467 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
468 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800469 clocks = <&ethsys CK_ETH_FE_EN>,
470 <&ethsys CK_ETH_GP2_EN>,
471 <&ethsys CK_ETH_GP1_EN>,
472 <&ethsys CK_ETH_WOCPU1_EN>,
473 <&ethsys CK_ETH_WOCPU0_EN>,
developer77bbf432021-06-28 18:39:08 +0800474 <&sgmiisys0 CK_SGM0_TX_EN>,
475 <&sgmiisys0 CK_SGM0_RX_EN>,
476 <&sgmiisys0 CK_SGM0_CK0_EN>,
477 <&sgmiisys0 CK_SGM0_CDR_CK0_EN>,
478 <&sgmiisys1 CK_SGM1_TX_EN>,
479 <&sgmiisys1 CK_SGM1_RX_EN>,
480 <&sgmiisys1 CK_SGM1_CK1_EN>,
481 <&sgmiisys1 CK_SGM1_CDR_CK1_EN>;
developerfd40db22021-04-29 10:08:25 +0800482 clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
483 "sgmii_tx250m", "sgmii_rx250m",
484 "sgmii_cdr_ref", "sgmii_cdr_fb",
485 "sgmii2_tx250m", "sgmii2_rx250m",
486 "sgmii2_cdr_ref", "sgmii2_cdr_fb";
developer8b9f2852021-06-03 21:53:08 +0800487 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
488 <&topckgen CK_TOP_SGM_325M_SEL>;
489 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
490 <&topckgen CK_TOP_CB_SGM_325M>;
developerfd40db22021-04-29 10:08:25 +0800491 mediatek,ethsys = <&ethsys>;
492 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
493 #reset-cells = <1>;
494 #address-cells = <1>;
495 #size-cells = <0>;
496 status = "disabled";
497 };
498
499 hnat: hnat@15000000 {
500 compatible = "mediatek,mtk-hnat_v4";
501 reg = <0 0x15100000 0 0x80000>;
502 resets = <&ethsys 0>;
503 reset-names = "mtketh";
504 status = "disabled";
505 };
506
507 sgmiisys0: syscon@10060000 {
developer15adbbf2021-05-24 22:20:07 +0800508 compatible = "mediatek,mt7986-sgmiisys",
509 "mediatek,mt7986-sgmiisys_0",
510 "syscon";
developerfd40db22021-04-29 10:08:25 +0800511 reg = <0 0x10060000 0 0x1000>;
512 #clock-cells = <1>;
513 };
514
515 sgmiisys1: syscon@10070000 {
developer15adbbf2021-05-24 22:20:07 +0800516 compatible = "mediatek,mt7986-sgmiisys",
517 "mediatek,mt7986-sgmiisys_1",
518 "syscon";
developerfd40db22021-04-29 10:08:25 +0800519 reg = <0 0x10070000 0 0x1000>;
520 #clock-cells = <1>;
521 };
522
523 snand: snfi@11005000 {
524 compatible = "mediatek,mt7986-snand";
525 reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>;
526 reg-names = "nfi", "ecc";
527 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer248c10b2021-07-14 16:11:19 +0800528 clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>,
529 <&infracfg_ao CK_INFRA_NFI1_CK>,
530 <&infracfg_ao CK_INFRA_NFI_HCK_CK>;
531 clock-names = "pad_clk", "nfi_clk", "nfi_hclk";
developer8b9f2852021-06-03 21:53:08 +0800532 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
533 <&topckgen CK_TOP_NFI1X_SEL>;
developere5562612021-08-05 15:50:40 +0800534 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>,
535 <&topckgen CK_TOP_CB_M_D8>;
developerfd40db22021-04-29 10:08:25 +0800536 #address-cells = <1>;
537 #size-cells = <0>;
538 status = "disabled";
539 };
540
541 wbsys: wbsys@18000000 {
developereb527ef2022-01-12 10:38:12 +0800542 compatible = "mediatek,wbsys",
543 "mediatek,mt7986-wmac";
developere138bcd2021-12-06 09:20:47 +0800544 resets = <&watchdog MT7986_TOPRGU_CONSYS_RST>;
545 reset-names = "consys";
546 reg = <0 0x18000000 0 0x1000000>,
547 <0 0x10003000 0 0x1000>,
developera5ea3d22022-02-17 09:23:09 +0800548 <0 0x11d10000 0 0x1000>;
developerfd40db22021-04-29 10:08:25 +0800549 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
550 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
551 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
552 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
553 chip_id = <0x7986>;
developere138bcd2021-12-06 09:20:47 +0800554 memory-region = <&wmcpu_emi>;
developerfd40db22021-04-29 10:08:25 +0800555 };
556
557 wed_pcie: wed_pcie@10003000 {
558 compatible = "mediatek,wed_pcie";
559 reg = <0 0x10003000 0 0x10>;
560 };
561
562 spi0: spi@1100a000 {
developer44700a22021-07-13 19:06:49 +0800563 compatible = "mediatek,ipm-spi-quad";
developerfd40db22021-04-29 10:08:25 +0800564 reg = <0 0x1100a000 0 0x100>;
565 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800566 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800567 <&topckgen CK_TOP_SPI_SEL>,
developer8b9f2852021-06-03 21:53:08 +0800568 <&infracfg_ao CK_INFRA_SPI0_CK>,
developer44700a22021-07-13 19:06:49 +0800569 <&infracfg_ao CK_INFRA_SPI0_HCK_CK>;
570 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800571 status = "disabled";
572 };
573
574 spi1: spi@1100b000 {
developer44700a22021-07-13 19:06:49 +0800575 compatible = "mediatek,ipm-spi-single";
developerfd40db22021-04-29 10:08:25 +0800576 reg = <0 0x1100b000 0 0x100>;
577 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800578 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800579 <&topckgen CK_TOP_SPIM_MST_SEL>,
developer8b9f2852021-06-03 21:53:08 +0800580 <&infracfg_ao CK_INFRA_SPI1_CK>,
developer44700a22021-07-13 19:06:49 +0800581 <&infracfg_ao CK_INFRA_SPI1_HCK_CK>;
582 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800583 status = "disabled";
584 };
585
developer637f5552021-05-27 17:45:27 +0800586 mmc0: mmc@11230000 {
587 compatible = "mediatek,mt7986-mmc";
588 reg = <0 0x11230000 0 0x1000>,
589 <0 0x11c20000 0 0x1000>;
590 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800591 clocks = <&topckgen CK_TOP_EMMC_416M>,
developer30389d92022-05-10 09:35:17 +0800592 <&infracfg_ao CK_INFRA_MSDC_HCK_CK>,
593 <&infracfg_ao CK_INFRA_MSDC_CK>,
594 <&infracfg_ao CK_INFRA_MSDC_66M_CK>,
595 <&infracfg_ao CK_INFRA_MSDC_133M_CK>;
596 clock-names = "source", "hclk", "source_cg", "sys_cg", "axi_cg";
developer8b9f2852021-06-03 21:53:08 +0800597 assigned-clocks = <&topckgen CK_TOP_EMMC_416M_SEL>,
598 <&topckgen CK_TOP_EMMC_250M_SEL>;
developerf089cc02021-09-11 17:23:41 +0800599 assigned-clock-parents = <&topckgen CK_TOP_CB_M_416M>,
600 <&topckgen CK_TOP_NET1_D5_D2>;
developer637f5552021-05-27 17:45:27 +0800601 status = "disabled";
602 };
603
developeree2df732021-05-21 15:19:42 +0800604 auxadc: adc@1100d000 {
605 compatible = "mediatek,mt7986-auxadc",
606 "mediatek,mt7622-auxadc";
607 reg = <0 0x1100d000 0 0x1000>;
developer2cdfa052021-08-12 10:41:52 +0800608 clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>,
609 <&infracfg_ao CK_INFRA_ADC_FRC_CK>;
610 clock-names = "main", "32k";
developeree2df732021-05-21 15:19:42 +0800611 #io-channel-cells = <1>;
developer8b9f2852021-06-03 21:53:08 +0800612 status = "disabled";
developeree2df732021-05-21 15:19:42 +0800613 };
614
developerfd40db22021-04-29 10:08:25 +0800615 consys: consys@10000000 {
616 compatible = "mediatek,mt7986-consys";
617 reg = <0 0x10000000 0 0x8600000>;
618 memory-region = <&wmcpu_emi>;
619 };
620
621 xhci: xhci@11200000 {
622 compatible = "mediatek,mt7986-xhci",
623 "mediatek,mtk-xhci";
624 reg = <0 0x11200000 0 0x2e00>,
625 <0 0x11203e00 0 0x0100>;
626 reg-names = "mac", "ippc";
627 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
628 phys = <&u2port0 PHY_TYPE_USB2>,
629 <&u3port0 PHY_TYPE_USB3>,
630 <&u2port1 PHY_TYPE_USB2>;
631 clocks = <&system_clk>,
632 <&system_clk>,
633 <&system_clk>,
634 <&system_clk>,
635 <&system_clk>;
636 clock-names = "sys_ck",
637 "xhci_ck",
638 "ref_ck",
639 "mcu_ck",
640 "dma_ck";
641 #address-cells = <2>;
642 #size-cells = <2>;
developer604b5ac2021-12-30 14:35:44 +0800643 status = "okay";
644 };
645
646 pcietphy: pcie-phy@11c00000 {
647 compatible = "mediatek,mt7986",
developer98e5cb22022-01-28 17:31:23 +0800648 "mediatek,generic-tphy-v4";
developer604b5ac2021-12-30 14:35:44 +0800649 #address-cells = <2>;
650 #size-cells = <2>;
651 ranges;
developerfd40db22021-04-29 10:08:25 +0800652 status = "okay";
developer604b5ac2021-12-30 14:35:44 +0800653
654 pcieport: pcie-phy@11c00000 {
655 reg = <0 0x11c00000 0 0x20000>;
656 clocks = <&system_clk>;
657 clock-names = "ref";
658 #phy-cells = <1>;
developer98e5cb22022-01-28 17:31:23 +0800659 auto_load_valid;
660 auto_load_valid_ln1;
661 nvmem-cells = <&pcie_intr_ln0>,
662 <&pcie_rx_imp_ln0>,
663 <&pcie_tx_imp_ln0>,
664 <&pcie_auto_load_valid_ln0>,
665 <&pcie_intr_ln1>,
666 <&pcie_rx_imp_ln1>,
667 <&pcie_tx_imp_ln1>,
668 <&pcie_auto_load_valid_ln1>;
669 nvmem-cell-names = "intr",
670 "rx_imp",
671 "tx_imp",
672 "auto_load_valid",
673 "intr_ln1",
674 "rx_imp_ln1",
675 "tx_imp_ln1",
676 "auto_load_valid_ln1";
developer604b5ac2021-12-30 14:35:44 +0800677 status = "okay";
678 };
developerfd40db22021-04-29 10:08:25 +0800679 };
680
681 usbtphy: usb-phy@11e10000 {
682 compatible = "mediatek,mt7986",
683 "mediatek,generic-tphy-v2";
684 #address-cells = <2>;
685 #size-cells = <2>;
686 ranges;
687 status = "okay";
688
689 u2port0: usb-phy@11e10000 {
690 reg = <0 0x11e10000 0 0x700>;
691 clocks = <&system_clk>;
692 clock-names = "ref";
693 #phy-cells = <1>;
developer98e5cb22022-01-28 17:31:23 +0800694 auto_load_valid;
695 nvmem-cells = <&u2_intr_p0>, <&u2_auto_load_valid_p0>;
696 nvmem-cell-names = "intr", "auto_load_valid";
developerfd40db22021-04-29 10:08:25 +0800697 status = "okay";
698 };
699
700 u3port0: usb-phy@11e10700 {
701 reg = <0 0x11e10700 0 0x900>;
702 clocks = <&system_clk>;
703 clock-names = "ref";
704 #phy-cells = <1>;
developer98e5cb22022-01-28 17:31:23 +0800705 auto_load_valid;
706 nvmem-cells = <&comb_intr_p0>,
707 <&comb_rx_imp_p0>,
708 <&comb_tx_imp_p0>,
709 <&comb_auto_load_valid>;
710 nvmem-cell-names = "intr", "rx_imp", "tx_imp", "auto_load_valid";
developerfd40db22021-04-29 10:08:25 +0800711 status = "okay";
712 };
713
714 u2port1: usb-phy@11e11000 {
715 reg = <0 0x11e11000 0 0x700>;
716 clocks = <&system_clk>;
717 clock-names = "ref";
718 #phy-cells = <1>;
developer98e5cb22022-01-28 17:31:23 +0800719 auto_load_valid;
720 nvmem-cells = <&u2_intr_p1>, <&u2_auto_load_valid_p1>;
721 nvmem-cell-names = "intr", "auto_load_valid";
developerfd40db22021-04-29 10:08:25 +0800722 status = "okay";
723 };
724 };
developer15adbbf2021-05-24 22:20:07 +0800725
726 clkitg: clkitg {
727 compatible = "simple-bus";
728 };
developerfbbf02b2021-06-25 09:30:28 +0800729
developere1993bd2021-07-06 13:48:40 +0800730 afe: audio-controller@11210000 {
developerbe797a32021-12-16 16:56:09 +0800731 compatible = "mediatek,mt79xx-audio";
developere1993bd2021-07-06 13:48:40 +0800732 reg = <0 0x11210000 0 0x9000>;
733 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
734 clocks = <&infracfg_ao CK_INFRA_AUD_BUS_CK>,
735 <&infracfg_ao CK_INFRA_AUD_26M_CK>,
736 <&infracfg_ao CK_INFRA_AUD_L_CK>,
737 <&infracfg_ao CK_INFRA_AUD_AUD_CK>,
738 <&infracfg_ao CK_INFRA_AUD_EG2_CK>;
739 clock-names = "aud_bus_ck",
740 "aud_26m_ck",
741 "aud_l_ck",
742 "aud_aud_ck",
743 "aud_eg2_ck";
744 assigned-clocks = <&topckgen CK_TOP_A1SYS_SEL>,
745 <&topckgen CK_TOP_AUD_L_SEL>,
746 <&topckgen CK_TOP_A_TUNER_SEL>;
747 assigned-clock-parents = <&topckgen CK_TOP_APLL2_D4>,
748 <&topckgen CK_TOP_CB_APLL2_196M>,
749 <&topckgen CK_TOP_APLL2_D4>;
750 };
751
developerfbbf02b2021-06-25 09:30:28 +0800752 trng: trng@1020f000 {
753 compatible = "mediatek,mt7986-rng",
754 "mediatek,mt7623-rng";
755 reg = <0 0x1020f000 0 0x100>;
756 clocks = <&infracfg_ao CK_INFRA_TRNG_CK>;
757 clock-names = "rng";
758 };
developer86ee1e12021-06-30 11:18:53 +0800759
760 ice: ice_debug {
761 compatible = "mediatek,mt7986-ice_debug",
762 "mediatek,mt2701-ice_debug";
developer66b5c8d2021-07-16 14:02:47 +0800763 clocks = <&infracfg_ao CK_INFRA_DBG_CK>,
764 <&topckgen CK_TOP_ARM_DB_JTSEL>;
765 clock-names = "ice_dbg", "dbg_jtsel";
developer86ee1e12021-06-30 11:18:53 +0800766 };
developer3e9ad9d2021-07-01 16:42:25 +0800767
768 efuse: efuse@11d00000 {
769 compatible = "mediatek,mt7986-efuse",
770 "mediatek,efuse";
771 reg = <0 0x11d00000 0 0x1000>;
772 #address-cells = <1>;
773 #size-cells = <1>;
774
775 thermal_calibration: calib@274 {
776 reg = <0x274 0xc>;
777 };
developer98e5cb22022-01-28 17:31:23 +0800778
779 comb_auto_load_valid: usb3-alv-imp@8da {
780 reg = <0x8da 1>;
781 bits = <0 1>;
782 };
783
784 comb_rx_imp_p0: usb3-rx-imp@8d8 {
785 reg = <0x8d8 1>;
786 bits = <0 5>;
787 };
788
789 comb_tx_imp_p0: usb3-tx-imp@8d8 {
790 reg = <0x8d8 2>;
791 bits = <5 5>;
792 };
793
794 comb_intr_p0: usb3-intr@8d9 {
795 reg = <0x8d9 1>;
796 bits = <2 6>;
797 };
798
799 u2_auto_load_valid_p0: usb2-alv-p0@8e0 {
800 reg = <0x8e0 1>;
801 bits = <0 1>;
802 };
803
804 u2_intr_p0: usb2-intr-p0@8e0 {
805 reg = <0x8e0 1>;
806 bits = <1 5>;
807 };
808
809 u2_auto_load_valid_p1: usb2-alv-p1@8e0 {
810 reg = <0x8e0 2>;
811 bits = <6 1>;
812 };
813
814 u2_intr_p1: usb2-intr-p1@8e0 {
815 reg = <0x8e0 2>;
816 bits = <7 5>;
817 };
818
819 pcie_rx_imp_ln0: pcie-rx-imp@8d0 {
820 reg = <0x8d0 1>;
821 bits = <0 5>;
822 };
823
824 pcie_tx_imp_ln0: pcie-tx-imp@8d0 {
825 reg = <0x8d0 2>;
826 bits = <5 5>;
827 };
828
829 pcie_intr_ln0: pcie-intr@8d1 {
830 reg = <0x8d1 1>;
831 bits = <2 6>;
832 };
833
834 pcie_auto_load_valid_ln0: pcie-ln0-alv@8d4 {
835 reg = <0x8d4 1>;
836 bits = <0 1>;
837 };
838
839 pcie_rx_imp_ln1: pcie-rx-imp@8d2 {
840 reg = <0x8d2 1>;
841 bits = <0 5>;
842 };
843
844 pcie_tx_imp_ln1: pcie-tx-imp@8d2 {
845 reg = <0x8d2 2>;
846 bits = <5 5>;
847 };
848
849 pcie_intr_ln1: pcie-intr@8d3 {
850 reg = <0x8d3 1>;
851 bits = <2 6>;
852 };
853
854 pcie_auto_load_valid_ln1: pcie-ln1-alv@8d4 {
855 reg = <0x8d4 1>;
856 bits = <1 1>;
857 };
developer3e9ad9d2021-07-01 16:42:25 +0800858 };
developerfd40db22021-04-29 10:08:25 +0800859};
developer15adbbf2021-05-24 22:20:07 +0800860
developer8b9f2852021-06-03 21:53:08 +0800861#include "mt7986-clkitg.dtsi"