blob: 76701f675ac328dd4dfcd7bc4b1a1e302e1946d9 [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001/*
2 * Copyright (c) 2020 MediaTek Inc.
3 * Author: Sam.Shih <sam.shih@mediatek.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#include <dt-bindings/interrupt-controller/irq.h>
16#include <dt-bindings/interrupt-controller/arm-gic.h>
17#include <dt-bindings/phy/phy.h>
18#include <dt-bindings/reset/ti-syscon.h>
developer2df324b2021-06-24 10:21:45 +080019#include <dt-bindings/clock/mt7986-clk.h>
developer3e9ad9d2021-07-01 16:42:25 +080020#include <dt-bindings/thermal/thermal.h>
developer7f4cdcd2021-08-03 19:29:43 +080021#include <dt-bindings/pinctrl/mt65xx.h>
developer2df324b2021-06-24 10:21:45 +080022
developerfd40db22021-04-29 10:08:25 +080023/ {
24 compatible = "mediatek,mt7986b-rfb";
25 interrupt-parent = <&gic>;
26 #address-cells = <2>;
27 #size-cells = <2>;
28 cpus {
29 #address-cells = <1>;
30 #size-cells = <0>;
developer3e9ad9d2021-07-01 16:42:25 +080031 cpu0: cpu@0 {
developerfd40db22021-04-29 10:08:25 +080032 device_type = "cpu";
33 compatible = "arm,cortex-a53";
34 enable-method = "psci";
35 reg = <0x0>;
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
145 wocpu1_emi: wocpu1_emi@4FD80000 {
146 compatible = "mediatek,wocpu1_emi";
147 no-map;
148 reg = <0 0x4FD40000 0 0x40000>;
149 shared = <0>;
150 };
151
152 wocpu_data: wocpu_data@4FE00000 {
153 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
developer2df324b2021-06-24 10:21:45 +0800165 clk40m: oscillator@0 {
developerfd40db22021-04-29 10:08:25 +0800166 compatible = "fixed-clock";
developerfd40db22021-04-29 10:08:25 +0800167 #clock-cells = <0>;
developerfd40db22021-04-29 10:08:25 +0800168 clock-frequency = <40000000>;
developer2df324b2021-06-24 10:21:45 +0800169 clock-output-names = "clkxtal";
developerfd40db22021-04-29 10:08:25 +0800170 };
171
developer2df324b2021-06-24 10:21:45 +0800172 system_clk: dummy_system_clk {
developerfd40db22021-04-29 10:08:25 +0800173 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>;
developer2df324b2021-06-24 10:21:45 +0800186 };
187
188 infracfg_ao: infracfg_ao@10001000 {
189 compatible = "mediatek,mt7986-infracfg_ao", "syscon";
190 reg = <0 0x10001000 0 0x68>;
191 #clock-cells = <1>;
192 };
193
194 infracfg: infracfg@10001040 {
195 compatible = "mediatek,mt7986-infracfg", "syscon";
196 reg = <0 0x1000106c 0 0x1000>;
197 #clock-cells = <1>;
198 };
developerfd40db22021-04-29 10:08:25 +0800199
developer2df324b2021-06-24 10:21:45 +0800200 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>;
developerfd40db22021-04-29 10:08:25 +0800210 };
211
212 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
developer2df324b2021-06-24 10:21:45 +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>;
developer2df324b2021-06-24 10:21:45 +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>;
developer2df324b2021-06-24 10:21:45 +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>;
developer2df324b2021-06-24 10:21:45 +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
developer2df324b2021-06-24 10:21:45 +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>;
293 clock-div = <16>;
294 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 };
developerfd40db22021-04-29 10:08:25 +0800301
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
developer3e916422021-05-27 16:40:29 +0800325 crypto: crypto@10320000 {
326 compatible = "inside-secure,safexcel-eip97";
327 reg = <0 0x10320000 0 0x40000>;
328 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
329 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
330 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
331 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
332 interrupt-names = "ring0", "ring1", "ring2", "ring3";
developere1993bd2021-07-06 13:48:40 +0800333 clocks = <&infracfg_ao CK_INFRA_EIP97_CK>;
334 clock-names = "infra_eip97_ck";
335 assigned-clocks = <&topckgen CK_TOP_EIP_B_SEL>;
336 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>;
developer3e916422021-05-27 16:40:29 +0800337 };
338
developerfd40db22021-04-29 10:08:25 +0800339 pio: pinctrl@1001f000 {
340 compatible = "mediatek,mt7986-pinctrl";
341 reg = <0 0x1001f000 0 0x1000>,
342 <0 0x11c30000 0 0x1000>,
343 <0 0x11c40000 0 0x1000>,
344 <0 0x11e20000 0 0x1000>,
345 <0 0x11e30000 0 0x1000>,
346 <0 0x11f00000 0 0x1000>,
347 <0 0x11f10000 0 0x1000>,
348 <0 0x1000b000 0 0x1000>;
349 reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rb_base",
350 "iocfg_lt_base", "iocfg_lb_base", "iocfg_tr_base",
351 "iocfg_tl_base", "eint";
352 gpio-controller;
353 #gpio-cells = <2>;
354 gpio-ranges = <&pio 0 0 100>;
355 interrupt-controller;
developera7f8fa42021-06-07 16:46:34 +0800356 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
developerfd40db22021-04-29 10:08:25 +0800357 interrupt-parent = <&gic>;
358 #interrupt-cells = <2>;
359 };
360
361 ethsys: syscon@15000000 {
362 #address-cells = <1>;
363 #size-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800364 compatible = "mediatek,mt7986-ethsys_ck",
developerfd40db22021-04-29 10:08:25 +0800365 "syscon";
366 reg = <0 0x15000000 0 0x1000>;
367 #clock-cells = <1>;
368 #reset-cells = <1>;
369
370 ethsysrst: reset-controller {
371 compatible = "ti,syscon-reset";
372 #reset-cells = <1>;
373 ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>;
374 };
375 };
376
377 eth: ethernet@15100000 {
378 compatible = "mediatek,mt7986-eth";
379 reg = <0 0x15100000 0 0x80000>;
380 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
381 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
382 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
383 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800384 clocks = <&ethsys CK_ETH_FE_EN>,
385 <&ethsys CK_ETH_GP2_EN>,
386 <&ethsys CK_ETH_GP1_EN>,
387 <&ethsys CK_ETH_WOCPU1_EN>,
388 <&ethsys CK_ETH_WOCPU0_EN>,
developer77bbf432021-06-28 18:39:08 +0800389 <&sgmiisys0 CK_SGM0_TX_EN>,
390 <&sgmiisys0 CK_SGM0_RX_EN>,
391 <&sgmiisys0 CK_SGM0_CK0_EN>,
392 <&sgmiisys0 CK_SGM0_CDR_CK0_EN>,
393 <&sgmiisys1 CK_SGM1_TX_EN>,
394 <&sgmiisys1 CK_SGM1_RX_EN>,
395 <&sgmiisys1 CK_SGM1_CK1_EN>,
396 <&sgmiisys1 CK_SGM1_CDR_CK1_EN>;
developerfd40db22021-04-29 10:08:25 +0800397 clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
398 "sgmii_tx250m", "sgmii_rx250m",
399 "sgmii_cdr_ref", "sgmii_cdr_fb",
400 "sgmii2_tx250m", "sgmii2_rx250m",
401 "sgmii2_cdr_ref", "sgmii2_cdr_fb";
developer2df324b2021-06-24 10:21:45 +0800402 assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>,
403 <&topckgen CK_TOP_SGM_325M_SEL>;
404 assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>,
405 <&topckgen CK_TOP_CB_SGM_325M>;
developerfd40db22021-04-29 10:08:25 +0800406 mediatek,ethsys = <&ethsys>;
407 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
408 #reset-cells = <1>;
409 #address-cells = <1>;
410 #size-cells = <0>;
411 status = "disabled";
412 };
413
414 hnat: hnat@15000000 {
415 compatible = "mediatek,mtk-hnat_v4";
416 reg = <0 0x15100000 0 0x80000>;
417 resets = <&ethsys 0>;
418 reset-names = "mtketh";
419 status = "disabled";
420 };
421
422 sgmiisys0: syscon@10060000 {
developer2df324b2021-06-24 10:21:45 +0800423 compatible = "mediatek,mt7986-sgmiisys",
424 "mediatek,mt7986-sgmiisys_0",
425 "syscon";
developerfd40db22021-04-29 10:08:25 +0800426 reg = <0 0x10060000 0 0x1000>;
427 #clock-cells = <1>;
428 };
429
430 sgmiisys1: syscon@10070000 {
developer2df324b2021-06-24 10:21:45 +0800431 compatible = "mediatek,mt7986-sgmiisys",
432 "mediatek,mt7986-sgmiisys_1",
433 "syscon";
developerfd40db22021-04-29 10:08:25 +0800434 reg = <0 0x10070000 0 0x1000>;
435 #clock-cells = <1>;
436 };
437
438 snand: snfi@11005000 {
439 compatible = "mediatek,mt7986-snand";
440 reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>;
441 reg-names = "nfi", "ecc";
442 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
developer248c10b2021-07-14 16:11:19 +0800443 clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>,
444 <&infracfg_ao CK_INFRA_NFI1_CK>,
445 <&infracfg_ao CK_INFRA_NFI_HCK_CK>;
446 clock-names = "pad_clk", "nfi_clk", "nfi_hclk";
developer2df324b2021-06-24 10:21:45 +0800447 assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>,
448 <&topckgen CK_TOP_NFI1X_SEL>;
developere5562612021-08-05 15:50:40 +0800449 assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>,
450 <&topckgen CK_TOP_CB_M_D8>;
developerfd40db22021-04-29 10:08:25 +0800451 #address-cells = <1>;
452 #size-cells = <0>;
453 status = "disabled";
454 };
455
456 wbsys: wbsys@18000000 {
457 compatible = "mediatek,wbsys";
458 reg = <0 0x18000000 0 0x1000000>;
459 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
460 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
461 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
462 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
463 chip_id = <0x7986>;
464 };
465
466 wed_pcie: wed_pcie@10003000 {
467 compatible = "mediatek,wed_pcie";
468 reg = <0 0x10003000 0 0x10>;
469 };
470
471 spi0: spi@1100a000 {
developer44700a22021-07-13 19:06:49 +0800472 compatible = "mediatek,ipm-spi-quad";
developerfd40db22021-04-29 10:08:25 +0800473 reg = <0 0x1100a000 0 0x100>;
474 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800475 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800476 <&topckgen CK_TOP_SPI_SEL>,
developer2df324b2021-06-24 10:21:45 +0800477 <&infracfg_ao CK_INFRA_SPI0_CK>,
developer44700a22021-07-13 19:06:49 +0800478 <&infracfg_ao CK_INFRA_SPI0_HCK_CK>;
479 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800480 status = "disabled";
481 };
482
483 spi1: spi@1100b000 {
developer44700a22021-07-13 19:06:49 +0800484 compatible = "mediatek,ipm-spi-single";
developerfd40db22021-04-29 10:08:25 +0800485 reg = <0 0x1100b000 0 0x100>;
486 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
developer2df324b2021-06-24 10:21:45 +0800487 clocks = <&topckgen CK_TOP_CB_M_D2>,
developer44700a22021-07-13 19:06:49 +0800488 <&topckgen CK_TOP_SPIM_MST_SEL>,
developer2df324b2021-06-24 10:21:45 +0800489 <&infracfg_ao CK_INFRA_SPI1_CK>,
developer44700a22021-07-13 19:06:49 +0800490 <&infracfg_ao CK_INFRA_SPI1_HCK_CK>;
491 clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk";
developerfd40db22021-04-29 10:08:25 +0800492 status = "disabled";
493 };
494
developeree2df732021-05-21 15:19:42 +0800495 auxadc: adc@1100d000 {
496 compatible = "mediatek,mt7986-auxadc",
497 "mediatek,mt7622-auxadc";
498 reg = <0 0x1100d000 0 0x1000>;
developer2cdfa052021-08-12 10:41:52 +0800499 clocks = <&infracfg_ao CK_INFRA_ADC_26M_CK>,
500 <&infracfg_ao CK_INFRA_ADC_FRC_CK>;
501 clock-names = "main", "32k";
developeree2df732021-05-21 15:19:42 +0800502 #io-channel-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800503 status = "disabled";
developeree2df732021-05-21 15:19:42 +0800504 };
505
developerfd40db22021-04-29 10:08:25 +0800506 consys: consys@10000000 {
507 compatible = "mediatek,mt7986-consys";
508 reg = <0 0x10000000 0 0x8600000>;
509 memory-region = <&wmcpu_emi>;
510 };
511
512 xhci: xhci@11200000 {
513 compatible = "mediatek,mt7986-xhci",
514 "mediatek,mtk-xhci";
515 reg = <0 0x11200000 0 0x2e00>,
516 <0 0x11203e00 0 0x0100>;
517 reg-names = "mac", "ippc";
518 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
519 phys = <&u2port0 PHY_TYPE_USB2>,
520 <&u3port0 PHY_TYPE_USB3>,
521 <&u2port1 PHY_TYPE_USB2>;
522 clocks = <&system_clk>,
523 <&system_clk>,
524 <&system_clk>,
525 <&system_clk>,
526 <&system_clk>;
527 clock-names = "sys_ck",
528 "xhci_ck",
529 "ref_ck",
530 "mcu_ck",
531 "dma_ck";
532 #address-cells = <2>;
533 #size-cells = <2>;
534 status = "okay";
535 };
536
537 usbtphy: usb-phy@11e10000 {
538 compatible = "mediatek,mt7986",
539 "mediatek,generic-tphy-v2";
540 #address-cells = <2>;
541 #size-cells = <2>;
542 ranges;
543 status = "okay";
544
545 u2port0: usb-phy@11e10000 {
546 reg = <0 0x11e10000 0 0x700>;
547 clocks = <&system_clk>;
548 clock-names = "ref";
549 #phy-cells = <1>;
550 status = "okay";
551 };
552
553 u3port0: usb-phy@11e10700 {
554 reg = <0 0x11e10700 0 0x900>;
555 clocks = <&system_clk>;
556 clock-names = "ref";
557 #phy-cells = <1>;
558 status = "okay";
559 };
560
561 u2port1: usb-phy@11e11000 {
562 reg = <0 0x11e11000 0 0x700>;
563 clocks = <&system_clk>;
564 clock-names = "ref";
565 #phy-cells = <1>;
developer2df324b2021-06-24 10:21:45 +0800566 status = "disabled";
developerfd40db22021-04-29 10:08:25 +0800567 };
568 };
developer2df324b2021-06-24 10:21:45 +0800569
570 clkitg: clkitg {
571 compatible = "simple-bus";
572 };
developerfbbf02b2021-06-25 09:30:28 +0800573
574 trng: trng@1020f000 {
575 compatible = "mediatek,mt7986-rng",
576 "mediatek,mt7623-rng";
577 reg = <0 0x1020f000 0 0x100>;
578 clocks = <&infracfg_ao CK_INFRA_TRNG_CK>;
579 clock-names = "rng";
580 };
developer86ee1e12021-06-30 11:18:53 +0800581
582 ice: ice_debug {
583 compatible = "mediatek,mt8512-ice_debug",
584 "mediatek,mt2701-ice_debug";
developer66b5c8d2021-07-16 14:02:47 +0800585 clocks = <&infracfg_ao CK_INFRA_DBG_CK>,
586 <&topckgen CK_TOP_ARM_DB_JTSEL>;
587 clock-names = "ice_dbg", "dbg_jtsel";
developer86ee1e12021-06-30 11:18:53 +0800588 };
developer3e9ad9d2021-07-01 16:42:25 +0800589
590 efuse: efuse@11d00000 {
591 compatible = "mediatek,mt7986-efuse",
592 "mediatek,efuse";
593 reg = <0 0x11d00000 0 0x1000>;
594 #address-cells = <1>;
595 #size-cells = <1>;
596
597 thermal_calibration: calib@274 {
598 reg = <0x274 0xc>;
599 };
600 };
developerfd40db22021-04-29 10:08:25 +0800601};
developer2df324b2021-06-24 10:21:45 +0800602
603#include "mt7986-clkitg.dtsi"