blob: 37a904f6727b2d560d759462a086ed53fda42a42 [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>
developer15adbbf2021-05-24 22:20:07 +080022
developerfd40db22021-04-29 10:08:25 +080023/ {
24 compatible = "mediatek,mt7986a-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>;
36 };
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>;
43 };
44
developer3e9ad9d2021-07-01 16:42:25 +080045 cpu2: cpu@2 {
developerfd40db22021-04-29 10:08:25 +080046 device_type = "cpu";
47 compatible = "arm,cortex-a53";
48 enable-method = "psci";
49 reg = <0x2>;
50 };
51
developer3e9ad9d2021-07-01 16:42:25 +080052 cpu3: cpu@3 {
developerfd40db22021-04-29 10:08:25 +080053 device_type = "cpu";
54 enable-method = "psci";
55 compatible = "arm,cortex-a53";
56 reg = <0x3>;
57 };
58 };
59
60 wed: wed@15010000 {
61 compatible = "mediatek,wed";
62 wed_num = <2>;
63 /* add this property for wed get the pci slot number. */
64 pci_slot_map = <0>, <1>;
65 reg = <0 0x15010000 0 0x1000>,
66 <0 0x15011000 0 0x1000>;
67 interrupt-parent = <&gic>;
68 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
69 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
70 };
71
72 wed2: wed2@15011000 {
73 compatible = "mediatek,wed2";
74 wed_num = <2>;
75 reg = <0 0x15010000 0 0x1000>,
76 <0 0x15011000 0 0x1000>;
77 interrupt-parent = <&gic>;
78 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
79 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
80 };
81
82 wdma: wdma@15104800 {
83 compatible = "mediatek,wed-wdma";
84 reg = <0 0x15104800 0 0x400>,
85 <0 0x15104c00 0 0x400>;
86 };
87
88 ap2woccif: ap2woccif@151A5000 {
89 compatible = "mediatek,ap2woccif";
90 reg = <0 0x151A5000 0 0x1000>,
91 <0 0x151AD000 0 0x1000>;
92 interrupt-parent = <&gic>;
93 interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
94 <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
95 };
96
97 wocpu0_ilm: wocpu0_ilm@151E0000 {
98 compatible = "mediatek,wocpu0_ilm";
99 reg = <0 0x151E0000 0 0x8000>;
100 };
101
102 wocpu1_ilm: wocpu1_ilm@151F0000 {
103 compatible = "mediatek,wocpu1_ilm";
104 reg = <0 0x151F0000 0 0x8000>;
105 };
106
107 wocpu_dlm: wocpu_dlm@151E8000 {
108 compatible = "mediatek,wocpu_dlm";
109 reg = <0 0x151E8000 0 0x2000>,
110 <0 0x151F8000 0 0x2000>;
111
112 resets = <&ethsysrst 0>;
113 reset-names = "wocpu_rst";
114 };
115
116 cpu_boot: wocpu_boot@15194000 {
117 compatible = "mediatek,wocpu_boot";
118 reg = <0 0x15194000 0 0x1000>;
119 };
120
121 reserved-memory {
122 #address-cells = <2>;
123 #size-cells = <2>;
124 ranges;
125
126 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
127 secmon_reserved: secmon@43000000 {
128 reg = <0 0x43000000 0 0x30000>;
129 no-map;
130 };
131
132 wmcpu_emi: wmcpu-reserved@4FC00000 {
133 compatible = "mediatek,wmcpu-reserved";
134 no-map;
135 reg = <0 0x4FC00000 0 0x00100000>;
136 };
137
138 wocpu0_emi: wocpu0_emi@4FD00000 {
139 compatible = "mediatek,wocpu0_emi";
140 no-map;
141 reg = <0 0x4FD00000 0 0x40000>;
142 shared = <0>;
143 };
144
developer86423f02021-10-12 15:20:50 +0800145 wocpu1_emi: wocpu1_emi@4FD40000 {
developerfd40db22021-04-29 10:08:25 +0800146 compatible = "mediatek,wocpu1_emi";
147 no-map;
148 reg = <0 0x4FD40000 0 0x40000>;
149 shared = <0>;
150 };
151
developer86423f02021-10-12 15:20:50 +0800152 wocpu_data: wocpu_data@4FD80000 {
developerfd40db22021-04-29 10:08:25 +0800153 compatible = "mediatek,wocpu_data";
154 no-map;
developer8be272e2021-07-29 13:15:07 +0800155 reg = <0 0x4FD80000 0 0x240000>;
developerfd40db22021-04-29 10:08:25 +0800156 shared = <1>;
157 };
158 };
159
160 psci {
161 compatible = "arm,psci-0.2";
162 method = "smc";
163 };
164
developer15adbbf2021-05-24 22:20:07 +0800165 clk40m: oscillator@0 {
166 compatible = "fixed-clock";
167 #clock-cells = <0>;
168 clock-frequency = <40000000>;
169 clock-output-names = "clkxtal";
170 };
171
developerfd40db22021-04-29 10:08:25 +0800172 system_clk: dummy_system_clk {
173 compatible = "fixed-clock";
174 clock-frequency = <40000000>;
175 #clock-cells = <0>;
176 };
177
developerfd40db22021-04-29 10:08:25 +0800178 timer {
179 compatible = "arm,armv8-timer";
180 interrupt-parent = <&gic>;
developerf39022a2021-05-06 13:31:52 +0800181 clock-frequency = <13000000>;
developerfd40db22021-04-29 10:08:25 +0800182 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
183 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
184 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
185 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
developerfd40db22021-04-29 10:08:25 +0800186 };
187
developer15adbbf2021-05-24 22:20:07 +0800188 infracfg_ao: infracfg_ao@10001000 {
189 compatible = "mediatek,mt7986-infracfg_ao", "syscon";
developer8b9f2852021-06-03 21:53:08 +0800190 reg = <0 0x10001000 0 0x68>;
developer15adbbf2021-05-24 22:20:07 +0800191 #clock-cells = <1>;
192 };
193
194 infracfg: infracfg@10001040 {
195 compatible = "mediatek,mt7986-infracfg", "syscon";
developer8b9f2852021-06-03 21:53:08 +0800196 reg = <0 0x1000106c 0 0x1000>;
developer15adbbf2021-05-24 22:20:07 +0800197 #clock-cells = <1>;
198 };
199
200 topckgen: topckgen@1001B000 {
201 compatible = "mediatek,mt7986-topckgen", "syscon";
202 reg = <0 0x1001B000 0 0x1000>;
203 #clock-cells = <1>;
204 };
205
206 apmixedsys: apmixedsys@1001E000 {
207 compatible = "mediatek,mt7986-apmixedsys", "syscon";
208 reg = <0 0x1001E000 0 0x1000>;
209 #clock-cells = <1>;
210 };
211
developerfd40db22021-04-29 10:08:25 +0800212 watchdog: watchdog@1001c000 {
213 compatible = "mediatek,mt7622-wdt",
214 "mediatek,mt6589-wdt";
215 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
developerfd40db22021-04-29 10:08:25 +0800253 uart0: serial@11002000 {
254 compatible = "mediatek,mt7986-uart",
255 "mediatek,mt6577-uart";
256 reg = <0 0x11002000 0 0x400>;
257 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800258 clocks = <&infracfg_ao CK_INFRA_UART0_CK>;
259 assigned-clocks = <&topckgen CK_TOP_UART_SEL>,
260 <&infracfg_ao CK_INFRA_UART0_SEL>;
261 assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>,
262 <&infracfg CK_INFRA_UART>;
developerfd40db22021-04-29 10:08:25 +0800263 status = "disabled";
264 };
265
266 uart1: serial@11003000 {
267 compatible = "mediatek,mt7986-uart",
268 "mediatek,mt6577-uart";
269 reg = <0 0x11003000 0 0x400>;
270 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800271 clocks = <&infracfg_ao CK_INFRA_UART1_CK>;
272 assigned-clocks = <&infracfg_ao CK_INFRA_UART1_SEL>;
273 assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>;
developerfd40db22021-04-29 10:08:25 +0800274 status = "disabled";
275 };
276
277 uart2: serial@11004000 {
278 compatible = "mediatek,mt7986-uart",
279 "mediatek,mt6577-uart";
280 reg = <0 0x11004000 0 0x400>;
281 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800282 clocks = <&infracfg_ao CK_INFRA_UART2_CK>;
283 assigned-clocks = <&infracfg_ao CK_INFRA_UART2_SEL>;
284 assigned-clock-parents = <&infracfg CK_INFRA_CK_F26M>;
developerfd40db22021-04-29 10:08:25 +0800285 status = "disabled";
286 };
287
developer8b9f2852021-06-03 21:53:08 +0800288 i2c0: i2c@11008000 {
289 compatible = "mediatek,mt7986-i2c";
290 reg = <0 0x11008000 0 0x90>,
291 <0 0x10217080 0 0x80>;
292 interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
developerccffa942021-09-22 15:57:01 +0800293 clock-div = <5>;
developer8b9f2852021-06-03 21:53:08 +0800294 clocks = <&infracfg_ao CK_INFRA_I2CO_CK>,
295 <&infracfg_ao CK_INFRA_AP_DMA_CK>;
296 clock-names = "main", "dma";
297 #address-cells = <1>;
298 #size-cells = <0>;
299 status = "disabled";
300 };
301
developer3e9ad9d2021-07-01 16:42:25 +0800302 thermal-zones {
303 cpu_thermal: cpu-thermal {
304 polling-delay-passive = <1000>;
305 polling-delay = <1000>;
306 thermal-sensors = <&thermal 0>;
developer3e9ad9d2021-07-01 16:42:25 +0800307 };
308 };
309
310 thermal: thermal@1100c800 {
311 #thermal-sensor-cells = <1>;
312 compatible = "mediatek,mt7986-thermal";
developer4173d3c2021-08-12 11:21:49 +0800313 reg = <0 0x1100c800 0 0x800>;
developer3e9ad9d2021-07-01 16:42:25 +0800314 interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
315 clocks = <&infracfg_ao CK_INFRA_THERM_CK>,
developerdf32d112021-08-29 11:58:01 +0800316 <&infracfg_ao CK_INFRA_ADC_26M_CK>,
317 <&infracfg_ao CK_INFRA_ADC_FRC_CK>;
318 clock-names = "therm", "auxadc", "adc_32k";
developer3e9ad9d2021-07-01 16:42:25 +0800319 mediatek,auxadc = <&auxadc>;
320 mediatek,apmixedsys = <&apmixedsys>;
321 nvmem-cells = <&thermal_calibration>;
322 nvmem-cell-names = "calibration-data";
323 };
324
developere2ed4342021-07-02 16:04:23 +0800325 pcie0: pcie@11280000 {
developerfd40db22021-04-29 10:08:25 +0800326 compatible = "mediatek,mt7986-pcie";
developerfd40db22021-04-29 10:08:25 +0800327 reg = <0 0x11280000 0 0x5000>;
developere2ed4342021-07-02 16:04:23 +0800328 reg-names = "pcie-mac";
developerfd40db22021-04-29 10:08:25 +0800329 #address-cells = <3>;
330 #size-cells = <2>;
331 interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
332 bus-range = <0x00 0xff>;
333 ranges = <0x82000000 0 0x20000000
334 0x0 0x20000000 0 0x10000000>;
developere2ed4342021-07-02 16:04:23 +0800335 status = "disabled";
developerfd40db22021-04-29 10:08:25 +0800336
developere2ed4342021-07-02 16:04:23 +0800337 clocks = <&infracfg_ao CK_INFRA_PCIE_SEL>,
338 <&infracfg_ao CK_INFRA_IPCIE_CK>,
339 <&infracfg_ao CK_INFRA_IPCIE_PIPE_CK>,
340 <&infracfg_ao CK_INFRA_IPCIER_CK>,
341 <&infracfg_ao CK_INFRA_IPCIEB_CK>;
342
343 #interrupt-cells = <1>;
344 interrupt-map-mask = <0 0 0 7>;
345 interrupt-map = <0 0 0 1 &pcie_intc0 0>,
346 <0 0 0 2 &pcie_intc0 1>,
347 <0 0 0 3 &pcie_intc0 2>,
348 <0 0 0 4 &pcie_intc0 3>;
349 pcie_intc0: interrupt-controller {
350 interrupt-controller;
351 #address-cells = <0>;
developerfd40db22021-04-29 10:08:25 +0800352 #interrupt-cells = <1>;
developerfd40db22021-04-29 10:08:25 +0800353 };
354 };
355
developer3e916422021-05-27 16:40:29 +0800356 crypto: crypto@10320000 {
357 compatible = "inside-secure,safexcel-eip97";
358 reg = <0 0x10320000 0 0x40000>;
359 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
360 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
361 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
362 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
363 interrupt-names = "ring0", "ring1", "ring2", "ring3";
developere1993bd2021-07-06 13:48:40 +0800364 clocks = <&infracfg_ao CK_INFRA_EIP97_CK>;
365 clock-names = "infra_eip97_ck";
366 assigned-clocks = <&topckgen CK_TOP_EIP_B_SEL>;
367 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>;
developer3e916422021-05-27 16:40:29 +0800368 };
369
developerfd40db22021-04-29 10:08:25 +0800370 pio: pinctrl@1001f000 {
371 compatible = "mediatek,mt7986-pinctrl";
372 reg = <0 0x1001f000 0 0x1000>,
373 <0 0x11c30000 0 0x1000>,
374 <0 0x11c40000 0 0x1000>,
375 <0 0x11e20000 0 0x1000>,
376 <0 0x11e30000 0 0x1000>,
377 <0 0x11f00000 0 0x1000>,
378 <0 0x11f10000 0 0x1000>,
379 <0 0x1000b000 0 0x1000>;
380 reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base",
381 "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base",
382 "iocfg_tl_base", "eint";
383 gpio-controller;
384 #gpio-cells = <2>;
385 gpio-ranges = <&pio 0 0 100>;
386 interrupt-controller;
developera7f8fa42021-06-07 16:46:34 +0800387 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developerfd40db22021-04-29 10:08:25 +0800388 interrupt-parent = <&gic>;
389 #interrupt-cells = <2>;
390 };
391
392 ethsys: syscon@15000000 {
393 #address-cells = <1>;
394 #size-cells = <1>;
developer8b9f2852021-06-03 21:53:08 +0800395 compatible = "mediatek,mt7986-ethsys_ck",
developerfd40db22021-04-29 10:08:25 +0800396 "syscon";
397 reg = <0 0x15000000 0 0x1000>;
398 #clock-cells = <1>;
399 #reset-cells = <1>;
400
401 ethsysrst: reset-controller {
402 compatible = "ti,syscon-reset";
403 #reset-cells = <1>;
404 ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
405 };
406 };
407
408 eth: ethernet@15100000 {
409 compatible = "mediatek,mt7986-eth";
410 reg = <0 0x15100000 0 0x80000>;
411 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
412 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
413 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
414 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800415 clocks = <&ethsys CK_ETH_FE_EN>,
416 <&ethsys CK_ETH_GP2_EN>,
417 <&ethsys CK_ETH_GP1_EN>,
418 <&ethsys CK_ETH_WOCPU1_EN>,
419 <&ethsys CK_ETH_WOCPU0_EN>,
developer77bbf432021-06-28 18:39:08 +0800420 <&sgmiisys0 CK_SGM0_TX_EN>,
421 <&sgmiisys0 CK_SGM0_RX_EN>,
422 <&sgmiisys0 CK_SGM0_CK0_EN>,
423 <&sgmiisys0 CK_SGM0_CDR_CK0_EN>,
424 <&sgmiisys1 CK_SGM1_TX_EN>,
425 <&sgmiisys1 CK_SGM1_RX_EN>,
426 <&sgmiisys1 CK_SGM1_CK1_EN>,
427 <&sgmiisys1 CK_SGM1_CDR_CK1_EN>;
developerfd40db22021-04-29 10:08:25 +0800428 clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
429 "sgmii_tx250m", "sgmii_rx250m",
430 "sgmii_cdr_ref", "sgmii_cdr_fb",
431 "sgmii2_tx250m", "sgmii2_rx250m",
432 "sgmii2_cdr_ref", "sgmii2_cdr_fb";
developer8b9f2852021-06-03 21:53:08 +0800433 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
434 <&topckgen CK_TOP_SGM_325M_SEL>;
435 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
436 <&topckgen CK_TOP_CB_SGM_325M>;
developerfd40db22021-04-29 10:08:25 +0800437 mediatek,ethsys = <&ethsys>;
438 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
439 #reset-cells = <1>;
440 #address-cells = <1>;
441 #size-cells = <0>;
442 status = "disabled";
443 };
444
445 hnat: hnat@15000000 {
446 compatible = "mediatek,mtk-hnat_v4";
447 reg = <0 0x15100000 0 0x80000>;
448 resets = <&ethsys 0>;
449 reset-names = "mtketh";
450 status = "disabled";
451 };
452
453 sgmiisys0: syscon@10060000 {
developer15adbbf2021-05-24 22:20:07 +0800454 compatible = "mediatek,mt7986-sgmiisys",
455 "mediatek,mt7986-sgmiisys_0",
456 "syscon";
developerfd40db22021-04-29 10:08:25 +0800457 reg = <0 0x10060000 0 0x1000>;
458 #clock-cells = <1>;
459 };
460
461 sgmiisys1: syscon@10070000 {
developer15adbbf2021-05-24 22:20:07 +0800462 compatible = "mediatek,mt7986-sgmiisys",
463 "mediatek,mt7986-sgmiisys_1",
464 "syscon";
developerfd40db22021-04-29 10:08:25 +0800465 reg = <0 0x10070000 0 0x1000>;
466 #clock-cells = <1>;
467 };
468
469 snand: snfi@11005000 {
470 compatible = "mediatek,mt7986-snand";
471 reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>;
472 reg-names = "nfi", "ecc";
473 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer248c10b2021-07-14 16:11:19 +0800474 clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>,
475 <&infracfg_ao CK_INFRA_NFI1_CK>,
476 <&infracfg_ao CK_INFRA_NFI_HCK_CK>;
477 clock-names = "pad_clk", "nfi_clk", "nfi_hclk";
developer8b9f2852021-06-03 21:53:08 +0800478 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
479 <&topckgen CK_TOP_NFI1X_SEL>;
developere5562612021-08-05 15:50:40 +0800480 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>,
481 <&topckgen CK_TOP_CB_M_D8>;
developerfd40db22021-04-29 10:08:25 +0800482 #address-cells = <1>;
483 #size-cells = <0>;
484 status = "disabled";
485 };
486
487 wbsys: wbsys@18000000 {
488 compatible = "mediatek,wbsys";
489 reg = <0 0x18000000 0 0x1000000>;
490 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
491 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
492 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
493 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
494 chip_id = <0x7986>;
495 };
496
497 wed_pcie: wed_pcie@10003000 {
498 compatible = "mediatek,wed_pcie";
499 reg = <0 0x10003000 0 0x10>;
500 };
501
502 spi0: spi@1100a000 {
developer44700a22021-07-13 19:06:49 +0800503 compatible = "mediatek,ipm-spi-quad";
developerfd40db22021-04-29 10:08:25 +0800504 reg = <0 0x1100a000 0 0x100>;
505 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800506 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800507 <&topckgen CK_TOP_SPI_SEL>,
developer8b9f2852021-06-03 21:53:08 +0800508 <&infracfg_ao CK_INFRA_SPI0_CK>,
developer44700a22021-07-13 19:06:49 +0800509 <&infracfg_ao CK_INFRA_SPI0_HCK_CK>;
510 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800511 status = "disabled";
512 };
513
514 spi1: spi@1100b000 {
developer44700a22021-07-13 19:06:49 +0800515 compatible = "mediatek,ipm-spi-single";
developerfd40db22021-04-29 10:08:25 +0800516 reg = <0 0x1100b000 0 0x100>;
517 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800518 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800519 <&topckgen CK_TOP_SPIM_MST_SEL>,
developer8b9f2852021-06-03 21:53:08 +0800520 <&infracfg_ao CK_INFRA_SPI1_CK>,
developer44700a22021-07-13 19:06:49 +0800521 <&infracfg_ao CK_INFRA_SPI1_HCK_CK>;
522 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800523 status = "disabled";
524 };
525
developer637f5552021-05-27 17:45:27 +0800526 mmc0: mmc@11230000 {
527 compatible = "mediatek,mt7986-mmc";
528 reg = <0 0x11230000 0 0x1000>,
529 <0 0x11c20000 0 0x1000>;
530 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
developer8b9f2852021-06-03 21:53:08 +0800531 clocks = <&topckgen CK_TOP_EMMC_416M>,
532 <&topckgen CK_TOP_EMMC_250M>,
533 <&infracfg_ao CK_INFRA_MSDC_CK>;
developer637f5552021-05-27 17:45:27 +0800534 clock-names = "source", "hclk", "source_cg";
developer8b9f2852021-06-03 21:53:08 +0800535 assigned-clocks = <&topckgen CK_TOP_EMMC_416M_SEL>,
536 <&topckgen CK_TOP_EMMC_250M_SEL>;
developerf089cc02021-09-11 17:23:41 +0800537 assigned-clock-parents = <&topckgen CK_TOP_CB_M_416M>,
538 <&topckgen CK_TOP_NET1_D5_D2>;
developer637f5552021-05-27 17:45:27 +0800539 status = "disabled";
540 };
541
developeree2df732021-05-21 15:19:42 +0800542 auxadc: adc@1100d000 {
543 compatible = "mediatek,mt7986-auxadc",
544 "mediatek,mt7622-auxadc";
545 reg = <0 0x1100d000 0 0x1000>;
developer2cdfa052021-08-12 10:41:52 +0800546 clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>,
547 <&infracfg_ao CK_INFRA_ADC_FRC_CK>;
548 clock-names = "main", "32k";
developeree2df732021-05-21 15:19:42 +0800549 #io-channel-cells = <1>;
developer8b9f2852021-06-03 21:53:08 +0800550 status = "disabled";
developeree2df732021-05-21 15:19:42 +0800551 };
552
developerfd40db22021-04-29 10:08:25 +0800553 consys: consys@10000000 {
554 compatible = "mediatek,mt7986-consys";
555 reg = <0 0x10000000 0 0x8600000>;
556 memory-region = <&wmcpu_emi>;
557 };
558
559 xhci: xhci@11200000 {
560 compatible = "mediatek,mt7986-xhci",
561 "mediatek,mtk-xhci";
562 reg = <0 0x11200000 0 0x2e00>,
563 <0 0x11203e00 0 0x0100>;
564 reg-names = "mac", "ippc";
565 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
566 phys = <&u2port0 PHY_TYPE_USB2>,
567 <&u3port0 PHY_TYPE_USB3>,
568 <&u2port1 PHY_TYPE_USB2>;
569 clocks = <&system_clk>,
570 <&system_clk>,
571 <&system_clk>,
572 <&system_clk>,
573 <&system_clk>;
574 clock-names = "sys_ck",
575 "xhci_ck",
576 "ref_ck",
577 "mcu_ck",
578 "dma_ck";
579 #address-cells = <2>;
580 #size-cells = <2>;
581 status = "okay";
582 };
583
584 usbtphy: usb-phy@11e10000 {
585 compatible = "mediatek,mt7986",
586 "mediatek,generic-tphy-v2";
587 #address-cells = <2>;
588 #size-cells = <2>;
589 ranges;
590 status = "okay";
591
592 u2port0: usb-phy@11e10000 {
593 reg = <0 0x11e10000 0 0x700>;
594 clocks = <&system_clk>;
595 clock-names = "ref";
596 #phy-cells = <1>;
597 status = "okay";
598 };
599
600 u3port0: usb-phy@11e10700 {
601 reg = <0 0x11e10700 0 0x900>;
602 clocks = <&system_clk>;
603 clock-names = "ref";
604 #phy-cells = <1>;
605 status = "okay";
606 };
607
608 u2port1: usb-phy@11e11000 {
609 reg = <0 0x11e11000 0 0x700>;
610 clocks = <&system_clk>;
611 clock-names = "ref";
612 #phy-cells = <1>;
613 status = "okay";
614 };
615 };
developer15adbbf2021-05-24 22:20:07 +0800616
617 clkitg: clkitg {
618 compatible = "simple-bus";
619 };
developerfbbf02b2021-06-25 09:30:28 +0800620
developere1993bd2021-07-06 13:48:40 +0800621 afe: audio-controller@11210000 {
622 compatible = "mediatek,mt7986-audio";
623 reg = <0 0x11210000 0 0x9000>;
624 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
625 clocks = <&infracfg_ao CK_INFRA_AUD_BUS_CK>,
626 <&infracfg_ao CK_INFRA_AUD_26M_CK>,
627 <&infracfg_ao CK_INFRA_AUD_L_CK>,
628 <&infracfg_ao CK_INFRA_AUD_AUD_CK>,
629 <&infracfg_ao CK_INFRA_AUD_EG2_CK>;
630 clock-names = "aud_bus_ck",
631 "aud_26m_ck",
632 "aud_l_ck",
633 "aud_aud_ck",
634 "aud_eg2_ck";
635 assigned-clocks = <&topckgen CK_TOP_A1SYS_SEL>,
636 <&topckgen CK_TOP_AUD_L_SEL>,
637 <&topckgen CK_TOP_A_TUNER_SEL>;
638 assigned-clock-parents = <&topckgen CK_TOP_APLL2_D4>,
639 <&topckgen CK_TOP_CB_APLL2_196M>,
640 <&topckgen CK_TOP_APLL2_D4>;
641 };
642
developerfbbf02b2021-06-25 09:30:28 +0800643 trng: trng@1020f000 {
644 compatible = "mediatek,mt7986-rng",
645 "mediatek,mt7623-rng";
646 reg = <0 0x1020f000 0 0x100>;
647 clocks = <&infracfg_ao CK_INFRA_TRNG_CK>;
648 clock-names = "rng";
649 };
developer86ee1e12021-06-30 11:18:53 +0800650
651 ice: ice_debug {
652 compatible = "mediatek,mt7986-ice_debug",
653 "mediatek,mt2701-ice_debug";
developer66b5c8d2021-07-16 14:02:47 +0800654 clocks = <&infracfg_ao CK_INFRA_DBG_CK>,
655 <&topckgen CK_TOP_ARM_DB_JTSEL>;
656 clock-names = "ice_dbg", "dbg_jtsel";
developer86ee1e12021-06-30 11:18:53 +0800657 };
developer3e9ad9d2021-07-01 16:42:25 +0800658
659 efuse: efuse@11d00000 {
660 compatible = "mediatek,mt7986-efuse",
661 "mediatek,efuse";
662 reg = <0 0x11d00000 0 0x1000>;
663 #address-cells = <1>;
664 #size-cells = <1>;
665
666 thermal_calibration: calib@274 {
667 reg = <0x274 0xc>;
668 };
669 };
developerfd40db22021-04-29 10:08:25 +0800670};
developer15adbbf2021-05-24 22:20:07 +0800671
developer8b9f2852021-06-03 21:53:08 +0800672#include "mt7986-clkitg.dtsi"