]> asedeno.scripts.mit.edu Git - linux.git/blob - arch/arm64/boot/dts/mediatek/mt7622.dtsi
4d6f8452f0063681e99fcbc67f22e667cb86188a
[linux.git] / arch / arm64 / boot / dts / mediatek / mt7622.dtsi
1 /*
2  * Copyright (c) 2017 MediaTek Inc.
3  * Author: Ming Huang <ming.huang@mediatek.com>
4  *         Sean Wang <sean.wang@mediatek.com>
5  *
6  * SPDX-License-Identifier: (GPL-2.0 OR MIT)
7  */
8
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/clock/mt7622-clk.h>
12 #include <dt-bindings/phy/phy.h>
13 #include <dt-bindings/power/mt7622-power.h>
14 #include <dt-bindings/reset/mt7622-reset.h>
15 #include <dt-bindings/thermal/thermal.h>
16
17 / {
18         compatible = "mediatek,mt7622";
19         interrupt-parent = <&sysirq>;
20         #address-cells = <2>;
21         #size-cells = <2>;
22
23         cpu_opp_table: opp-table {
24                 compatible = "operating-points-v2";
25                 opp-shared;
26                 opp-300000000 {
27                         opp-hz = /bits/ 64 <30000000>;
28                         opp-microvolt = <950000>;
29                 };
30
31                 opp-437500000 {
32                         opp-hz = /bits/ 64 <437500000>;
33                         opp-microvolt = <1000000>;
34                 };
35
36                 opp-600000000 {
37                         opp-hz = /bits/ 64 <600000000>;
38                         opp-microvolt = <1050000>;
39                 };
40
41                 opp-812500000 {
42                         opp-hz = /bits/ 64 <812500000>;
43                         opp-microvolt = <1100000>;
44                 };
45
46                 opp-1025000000 {
47                         opp-hz = /bits/ 64 <1025000000>;
48                         opp-microvolt = <1150000>;
49                 };
50
51                 opp-1137500000 {
52                         opp-hz = /bits/ 64 <1137500000>;
53                         opp-microvolt = <1200000>;
54                 };
55
56                 opp-1262500000 {
57                         opp-hz = /bits/ 64 <1262500000>;
58                         opp-microvolt = <1250000>;
59                 };
60
61                 opp-1350000000 {
62                         opp-hz = /bits/ 64 <1350000000>;
63                         opp-microvolt = <1310000>;
64                 };
65         };
66
67         cpus {
68                 #address-cells = <2>;
69                 #size-cells = <0>;
70
71                 cpu0: cpu@0 {
72                         device_type = "cpu";
73                         compatible = "arm,cortex-a53", "arm,armv8";
74                         reg = <0x0 0x0>;
75                         clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
76                                  <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
77                         clock-names = "cpu", "intermediate";
78                         operating-points-v2 = <&cpu_opp_table>;
79                         #cooling-cells = <2>;
80                         enable-method = "psci";
81                         clock-frequency = <1300000000>;
82                 };
83
84                 cpu1: cpu@1 {
85                         device_type = "cpu";
86                         compatible = "arm,cortex-a53", "arm,armv8";
87                         reg = <0x0 0x1>;
88                         clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
89                                  <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
90                         clock-names = "cpu", "intermediate";
91                         operating-points-v2 = <&cpu_opp_table>;
92                         #cooling-cells = <2>;
93                         enable-method = "psci";
94                         clock-frequency = <1300000000>;
95                 };
96         };
97
98         pwrap_clk: dummy40m {
99                 compatible = "fixed-clock";
100                 clock-frequency = <40000000>;
101                 #clock-cells = <0>;
102         };
103
104         clk25m: oscillator {
105                 compatible = "fixed-clock";
106                 #clock-cells = <0>;
107                 clock-frequency = <25000000>;
108                 clock-output-names = "clkxtal";
109         };
110
111         psci {
112                 compatible  = "arm,psci-0.2";
113                 method      = "smc";
114         };
115
116         reserved-memory {
117                 #address-cells = <2>;
118                 #size-cells = <2>;
119                 ranges;
120
121                 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
122                 secmon_reserved: secmon@43000000 {
123                         reg = <0 0x43000000 0 0x30000>;
124                         no-map;
125                 };
126         };
127
128         thermal-zones {
129                 cpu_thermal: cpu-thermal {
130                         polling-delay-passive = <1000>;
131                         polling-delay = <1000>;
132
133                         thermal-sensors = <&thermal 0>;
134
135                         trips {
136                                 cpu_passive: cpu-passive {
137                                         temperature = <47000>;
138                                         hysteresis = <2000>;
139                                         type = "passive";
140                                 };
141
142                                 cpu_active: cpu-active {
143                                         temperature = <67000>;
144                                         hysteresis = <2000>;
145                                         type = "active";
146                                 };
147
148                                 cpu_hot: cpu-hot {
149                                         temperature = <87000>;
150                                         hysteresis = <2000>;
151                                         type = "hot";
152                                 };
153
154                                 cpu-crit {
155                                         temperature = <107000>;
156                                         hysteresis = <2000>;
157                                         type = "critical";
158                                 };
159                         };
160
161                         cooling-maps {
162                                 map0 {
163                                         trip = <&cpu_passive>;
164                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
165                                 };
166
167                                 map1 {
168                                         trip = <&cpu_active>;
169                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
170                                 };
171
172                                 map2 {
173                                         trip = <&cpu_hot>;
174                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
175                                 };
176                         };
177                 };
178         };
179
180         timer {
181                 compatible = "arm,armv8-timer";
182                 interrupt-parent = <&gic>;
183                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
184                               IRQ_TYPE_LEVEL_HIGH)>,
185                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
186                               IRQ_TYPE_LEVEL_HIGH)>,
187                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) |
188                               IRQ_TYPE_LEVEL_HIGH)>,
189                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
190                               IRQ_TYPE_LEVEL_HIGH)>;
191         };
192
193         infracfg: infracfg@10000000 {
194                 compatible = "mediatek,mt7622-infracfg",
195                              "syscon";
196                 reg = <0 0x10000000 0 0x1000>;
197                 #clock-cells = <1>;
198                 #reset-cells = <1>;
199         };
200
201         pwrap: pwrap@10001000 {
202                 compatible = "mediatek,mt7622-pwrap";
203                 reg = <0 0x10001000 0 0x250>;
204                 reg-names = "pwrap";
205                 clocks = <&infracfg CLK_INFRA_PMIC_PD>, <&pwrap_clk>;
206                 clock-names = "spi", "wrap";
207                 resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>;
208                 reset-names = "pwrap";
209                 interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
210                 status = "disabled";
211         };
212
213         pericfg: pericfg@10002000 {
214                 compatible = "mediatek,mt7622-pericfg",
215                              "syscon";
216                 reg = <0 0x10002000 0 0x1000>;
217                 #clock-cells = <1>;
218                 #reset-cells = <1>;
219         };
220
221         scpsys: scpsys@10006000 {
222                 compatible = "mediatek,mt7622-scpsys",
223                              "syscon";
224                 #power-domain-cells = <1>;
225                 reg = <0 0x10006000 0 0x1000>;
226                 interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>,
227                              <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>,
228                              <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>,
229                              <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>;
230                 infracfg = <&infracfg>;
231                 clocks = <&topckgen CLK_TOP_HIF_SEL>;
232                 clock-names = "hif_sel";
233         };
234
235         cir: cir@10009000 {
236                 compatible = "mediatek,mt7622-cir";
237                 reg = <0 0x10009000 0 0x1000>;
238                 interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>;
239                 clocks = <&infracfg CLK_INFRA_IRRX_PD>,
240                          <&topckgen CLK_TOP_AXI_SEL>;
241                 clock-names = "clk", "bus";
242                 status = "disabled";
243         };
244
245         sysirq: interrupt-controller@10200620 {
246                 compatible = "mediatek,mt7622-sysirq",
247                              "mediatek,mt6577-sysirq";
248                 interrupt-controller;
249                 #interrupt-cells = <3>;
250                 interrupt-parent = <&gic>;
251                 reg = <0 0x10200620 0 0x20>;
252         };
253
254         efuse: efuse@10206000 {
255                 compatible = "mediatek,mt7622-efuse",
256                              "mediatek,efuse";
257                 reg = <0 0x10206000 0 0x1000>;
258                 #address-cells = <1>;
259                 #size-cells = <1>;
260
261                 thermal_calibration: calib@198 {
262                         reg = <0x198 0xc>;
263                 };
264         };
265
266         apmixedsys: apmixedsys@10209000 {
267                 compatible = "mediatek,mt7622-apmixedsys",
268                              "syscon";
269                 reg = <0 0x10209000 0 0x1000>;
270                 #clock-cells = <1>;
271         };
272
273         topckgen: topckgen@10210000 {
274                 compatible = "mediatek,mt7622-topckgen",
275                              "syscon";
276                 reg = <0 0x10210000 0 0x1000>;
277                 #clock-cells = <1>;
278         };
279
280         rng: rng@1020f000 {
281                 compatible = "mediatek,mt7622-rng",
282                              "mediatek,mt7623-rng";
283                 reg = <0 0x1020f000 0 0x1000>;
284                 clocks = <&infracfg CLK_INFRA_TRNG>;
285                 clock-names = "rng";
286         };
287
288         pio: pinctrl@10211000 {
289                 compatible = "mediatek,mt7622-pinctrl";
290                 reg = <0 0x10211000 0 0x1000>,
291                       <0 0x10005000 0 0x1000>;
292                 reg-names = "base", "eint";
293                 gpio-controller;
294                 #gpio-cells = <2>;
295                 interrupt-controller;
296                 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
297                 interrupt-parent = <&gic>;
298                 #interrupt-cells = <2>;
299         };
300
301         watchdog: watchdog@10212000 {
302                 compatible = "mediatek,mt7622-wdt",
303                              "mediatek,mt6589-wdt";
304                 reg = <0 0x10212000 0 0x800>;
305         };
306
307         rtc: rtc@10212800 {
308                 compatible = "mediatek,mt7622-rtc",
309                              "mediatek,soc-rtc";
310                 reg = <0 0x10212800 0 0x200>;
311                 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
312                 clocks = <&topckgen CLK_TOP_RTC>;
313                 clock-names = "rtc";
314         };
315
316         gic: interrupt-controller@10300000 {
317                 compatible = "arm,gic-400";
318                 interrupt-controller;
319                 #interrupt-cells = <3>;
320                 interrupt-parent = <&gic>;
321                 reg = <0 0x10310000 0 0x1000>,
322                       <0 0x10320000 0 0x1000>,
323                       <0 0x10340000 0 0x2000>,
324                       <0 0x10360000 0 0x2000>;
325         };
326
327         auxadc: adc@11001000 {
328                 compatible = "mediatek,mt7622-auxadc";
329                 reg = <0 0x11001000 0 0x1000>;
330                 clocks = <&pericfg CLK_PERI_AUXADC_PD>;
331                 clock-names = "main";
332                 #io-channel-cells = <1>;
333         };
334
335         uart0: serial@11002000 {
336                 compatible = "mediatek,mt7622-uart",
337                              "mediatek,mt6577-uart";
338                 reg = <0 0x11002000 0 0x400>;
339                 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
340                 clocks = <&topckgen CLK_TOP_UART_SEL>,
341                          <&pericfg CLK_PERI_UART1_PD>;
342                 clock-names = "baud", "bus";
343                 status = "disabled";
344         };
345
346         uart1: serial@11003000 {
347                 compatible = "mediatek,mt7622-uart",
348                              "mediatek,mt6577-uart";
349                 reg = <0 0x11003000 0 0x400>;
350                 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
351                 clocks = <&topckgen CLK_TOP_UART_SEL>,
352                          <&pericfg CLK_PERI_UART1_PD>;
353                 clock-names = "baud", "bus";
354                 status = "disabled";
355         };
356
357         uart2: serial@11004000 {
358                 compatible = "mediatek,mt7622-uart",
359                              "mediatek,mt6577-uart";
360                 reg = <0 0x11004000 0 0x400>;
361                 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
362                 clocks = <&topckgen CLK_TOP_UART_SEL>,
363                          <&pericfg CLK_PERI_UART2_PD>;
364                 clock-names = "baud", "bus";
365                 status = "disabled";
366         };
367
368         uart3: serial@11005000 {
369                 compatible = "mediatek,mt7622-uart",
370                              "mediatek,mt6577-uart";
371                 reg = <0 0x11005000 0 0x400>;
372                 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
373                 clocks = <&topckgen CLK_TOP_UART_SEL>,
374                          <&pericfg CLK_PERI_UART3_PD>;
375                 clock-names = "baud", "bus";
376                 status = "disabled";
377         };
378
379         pwm: pwm@11006000 {
380                 compatible = "mediatek,mt7622-pwm";
381                 reg = <0 0x11006000 0 0x1000>;
382                 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
383                 clocks = <&topckgen CLK_TOP_PWM_SEL>,
384                          <&pericfg CLK_PERI_PWM_PD>,
385                          <&pericfg CLK_PERI_PWM1_PD>,
386                          <&pericfg CLK_PERI_PWM2_PD>,
387                          <&pericfg CLK_PERI_PWM3_PD>,
388                          <&pericfg CLK_PERI_PWM4_PD>,
389                          <&pericfg CLK_PERI_PWM5_PD>,
390                          <&pericfg CLK_PERI_PWM6_PD>;
391                 clock-names = "top", "main", "pwm1", "pwm2", "pwm3", "pwm4",
392                               "pwm5", "pwm6";
393                 status = "disabled";
394         };
395
396         i2c0: i2c@11007000 {
397                 compatible = "mediatek,mt7622-i2c";
398                 reg = <0 0x11007000 0 0x90>,
399                       <0 0x11000100 0 0x80>;
400                 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
401                 clock-div = <16>;
402                 clocks = <&pericfg CLK_PERI_I2C0_PD>,
403                          <&pericfg CLK_PERI_AP_DMA_PD>;
404                 clock-names = "main", "dma";
405                 #address-cells = <1>;
406                 #size-cells = <0>;
407                 status = "disabled";
408         };
409
410         i2c1: i2c@11008000 {
411                 compatible = "mediatek,mt7622-i2c";
412                 reg = <0 0x11008000 0 0x90>,
413                       <0 0x11000180 0 0x80>;
414                 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
415                 clock-div = <16>;
416                 clocks = <&pericfg CLK_PERI_I2C1_PD>,
417                          <&pericfg CLK_PERI_AP_DMA_PD>;
418                 clock-names = "main", "dma";
419                 #address-cells = <1>;
420                 #size-cells = <0>;
421                 status = "disabled";
422         };
423
424         i2c2: i2c@11009000 {
425                 compatible = "mediatek,mt7622-i2c";
426                 reg = <0 0x11009000 0 0x90>,
427                       <0 0x11000200 0 0x80>;
428                 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
429                 clock-div = <16>;
430                 clocks = <&pericfg CLK_PERI_I2C2_PD>,
431                          <&pericfg CLK_PERI_AP_DMA_PD>;
432                 clock-names = "main", "dma";
433                 #address-cells = <1>;
434                 #size-cells = <0>;
435                 status = "disabled";
436         };
437
438         spi0: spi@1100a000 {
439                 compatible = "mediatek,mt7622-spi";
440                 reg = <0 0x1100a000 0 0x100>;
441                 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>;
442                 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
443                          <&topckgen CLK_TOP_SPI0_SEL>,
444                          <&pericfg CLK_PERI_SPI0_PD>;
445                 clock-names = "parent-clk", "sel-clk", "spi-clk";
446                 #address-cells = <1>;
447                 #size-cells = <0>;
448                 status = "disabled";
449         };
450
451         thermal: thermal@1100b000 {
452                 #thermal-sensor-cells = <1>;
453                 compatible = "mediatek,mt7622-thermal";
454                 reg = <0 0x1100b000 0 0x1000>;
455                 interrupts = <0 78 IRQ_TYPE_LEVEL_LOW>;
456                 clocks = <&pericfg CLK_PERI_THERM_PD>,
457                          <&pericfg CLK_PERI_AUXADC_PD>;
458                 clock-names = "therm", "auxadc";
459                 resets = <&pericfg MT7622_PERI_THERM_SW_RST>;
460                 reset-names = "therm";
461                 mediatek,auxadc = <&auxadc>;
462                 mediatek,apmixedsys = <&apmixedsys>;
463                 nvmem-cells = <&thermal_calibration>;
464                 nvmem-cell-names = "calibration-data";
465         };
466
467         btif: serial@1100c000 {
468                 compatible = "mediatek,mt7622-btif",
469                              "mediatek,mtk-btif";
470                 reg = <0 0x1100c000 0 0x1000>;
471                 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
472                 clocks = <&pericfg CLK_PERI_BTIF_PD>;
473                 clock-names = "main";
474                 reg-shift = <2>;
475                 reg-io-width = <4>;
476                 status = "disabled";
477         };
478
479         nandc: nfi@1100d000 {
480                 compatible = "mediatek,mt7622-nfc";
481                 reg = <0 0x1100D000 0 0x1000>;
482                 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
483                 clocks = <&pericfg CLK_PERI_NFI_PD>,
484                          <&pericfg CLK_PERI_SNFI_PD>;
485                 clock-names = "nfi_clk", "pad_clk";
486                 ecc-engine = <&bch>;
487                 #address-cells = <1>;
488                 #size-cells = <0>;
489                 status = "disabled";
490         };
491
492         bch: ecc@1100e000 {
493                 compatible = "mediatek,mt7622-ecc";
494                 reg = <0 0x1100e000 0 0x1000>;
495                 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
496                 clocks = <&pericfg CLK_PERI_NFIECC_PD>;
497                 clock-names = "nfiecc_clk";
498                 status = "disabled";
499         };
500
501         nor_flash: spi@11014000 {
502                 compatible = "mediatek,mt7622-nor",
503                              "mediatek,mt8173-nor";
504                 reg = <0 0x11014000 0 0xe0>;
505                 clocks = <&pericfg CLK_PERI_FLASH_PD>,
506                          <&topckgen CLK_TOP_FLASH_SEL>;
507                 clock-names = "spi", "sf";
508                 #address-cells = <1>;
509                 #size-cells = <0>;
510                 status = "disabled";
511         };
512
513         spi1: spi@11016000 {
514                 compatible = "mediatek,mt7622-spi";
515                 reg = <0 0x11016000 0 0x100>;
516                 interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_LOW>;
517                 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
518                          <&topckgen CLK_TOP_SPI1_SEL>,
519                          <&pericfg CLK_PERI_SPI1_PD>;
520                 clock-names = "parent-clk", "sel-clk", "spi-clk";
521                 #address-cells = <1>;
522                 #size-cells = <0>;
523                 status = "disabled";
524         };
525
526         uart4: serial@11019000 {
527                 compatible = "mediatek,mt7622-uart",
528                              "mediatek,mt6577-uart";
529                 reg = <0 0x11019000 0 0x400>;
530                 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_LOW>;
531                 clocks = <&topckgen CLK_TOP_UART_SEL>,
532                          <&pericfg CLK_PERI_UART4_PD>;
533                 clock-names = "baud", "bus";
534                 status = "disabled";
535         };
536
537         audsys: clock-controller@11220000 {
538                 compatible = "mediatek,mt7622-audsys", "syscon";
539                 reg = <0 0x11220000 0 0x2000>;
540                 #clock-cells = <1>;
541
542                 afe: audio-controller {
543                         compatible = "mediatek,mt7622-audio";
544                         interrupts =  <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>,
545                                       <GIC_SPI 145 IRQ_TYPE_LEVEL_LOW>;
546                         interrupt-names = "afe", "asys";
547
548                         clocks = <&infracfg CLK_INFRA_AUDIO_PD>,
549                                  <&topckgen CLK_TOP_AUD1_SEL>,
550                                  <&topckgen CLK_TOP_AUD2_SEL>,
551                                  <&topckgen CLK_TOP_A1SYS_HP_DIV_PD>,
552                                  <&topckgen CLK_TOP_A2SYS_HP_DIV_PD>,
553                                  <&topckgen CLK_TOP_I2S0_MCK_SEL>,
554                                  <&topckgen CLK_TOP_I2S1_MCK_SEL>,
555                                  <&topckgen CLK_TOP_I2S2_MCK_SEL>,
556                                  <&topckgen CLK_TOP_I2S3_MCK_SEL>,
557                                  <&topckgen CLK_TOP_I2S0_MCK_DIV>,
558                                  <&topckgen CLK_TOP_I2S1_MCK_DIV>,
559                                  <&topckgen CLK_TOP_I2S2_MCK_DIV>,
560                                  <&topckgen CLK_TOP_I2S3_MCK_DIV>,
561                                  <&topckgen CLK_TOP_I2S0_MCK_DIV_PD>,
562                                  <&topckgen CLK_TOP_I2S1_MCK_DIV_PD>,
563                                  <&topckgen CLK_TOP_I2S2_MCK_DIV_PD>,
564                                  <&topckgen CLK_TOP_I2S3_MCK_DIV_PD>,
565                                  <&audsys CLK_AUDIO_I2SO1>,
566                                  <&audsys CLK_AUDIO_I2SO2>,
567                                  <&audsys CLK_AUDIO_I2SO3>,
568                                  <&audsys CLK_AUDIO_I2SO4>,
569                                  <&audsys CLK_AUDIO_I2SIN1>,
570                                  <&audsys CLK_AUDIO_I2SIN2>,
571                                  <&audsys CLK_AUDIO_I2SIN3>,
572                                  <&audsys CLK_AUDIO_I2SIN4>,
573                                  <&audsys CLK_AUDIO_ASRCO1>,
574                                  <&audsys CLK_AUDIO_ASRCO2>,
575                                  <&audsys CLK_AUDIO_ASRCO3>,
576                                  <&audsys CLK_AUDIO_ASRCO4>,
577                                  <&audsys CLK_AUDIO_AFE>,
578                                  <&audsys CLK_AUDIO_AFE_CONN>,
579                                  <&audsys CLK_AUDIO_A1SYS>,
580                                  <&audsys CLK_AUDIO_A2SYS>;
581
582                         clock-names = "infra_sys_audio_clk",
583                                       "top_audio_mux1_sel",
584                                       "top_audio_mux2_sel",
585                                       "top_audio_a1sys_hp",
586                                       "top_audio_a2sys_hp",
587                                       "i2s0_src_sel",
588                                       "i2s1_src_sel",
589                                       "i2s2_src_sel",
590                                       "i2s3_src_sel",
591                                       "i2s0_src_div",
592                                       "i2s1_src_div",
593                                       "i2s2_src_div",
594                                       "i2s3_src_div",
595                                       "i2s0_mclk_en",
596                                       "i2s1_mclk_en",
597                                       "i2s2_mclk_en",
598                                       "i2s3_mclk_en",
599                                       "i2so0_hop_ck",
600                                       "i2so1_hop_ck",
601                                       "i2so2_hop_ck",
602                                       "i2so3_hop_ck",
603                                       "i2si0_hop_ck",
604                                       "i2si1_hop_ck",
605                                       "i2si2_hop_ck",
606                                       "i2si3_hop_ck",
607                                       "asrc0_out_ck",
608                                       "asrc1_out_ck",
609                                       "asrc2_out_ck",
610                                       "asrc3_out_ck",
611                                       "audio_afe_pd",
612                                       "audio_afe_conn_pd",
613                                       "audio_a1sys_pd",
614                                       "audio_a2sys_pd";
615
616                         assigned-clocks = <&topckgen CLK_TOP_A1SYS_HP_SEL>,
617                                           <&topckgen CLK_TOP_A2SYS_HP_SEL>,
618                                           <&topckgen CLK_TOP_A1SYS_HP_DIV>,
619                                           <&topckgen CLK_TOP_A2SYS_HP_DIV>;
620                         assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL>,
621                                                  <&topckgen CLK_TOP_AUD2PLL>;
622                         assigned-clock-rates = <0>, <0>, <49152000>, <45158400>;
623                 };
624         };
625
626         mmc0: mmc@11230000 {
627                 compatible = "mediatek,mt7622-mmc";
628                 reg = <0 0x11230000 0 0x1000>;
629                 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
630                 clocks = <&pericfg CLK_PERI_MSDC30_0_PD>,
631                          <&topckgen CLK_TOP_MSDC50_0_SEL>;
632                 clock-names = "source", "hclk";
633                 status = "disabled";
634         };
635
636         mmc1: mmc@11240000 {
637                 compatible = "mediatek,mt7622-mmc";
638                 reg = <0 0x11240000 0 0x1000>;
639                 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
640                 clocks = <&pericfg CLK_PERI_MSDC30_1_PD>,
641                          <&topckgen CLK_TOP_AXI_SEL>;
642                 clock-names = "source", "hclk";
643                 status = "disabled";
644         };
645
646         ssusbsys: ssusbsys@1a000000 {
647                 compatible = "mediatek,mt7622-ssusbsys",
648                              "syscon";
649                 reg = <0 0x1a000000 0 0x1000>;
650                 #clock-cells = <1>;
651                 #reset-cells = <1>;
652         };
653
654         ssusb: usb@1a0c0000 {
655                 compatible = "mediatek,mt7622-xhci",
656                              "mediatek,mtk-xhci";
657                 reg = <0 0x1a0c0000 0 0x01000>,
658                       <0 0x1a0c4700 0 0x0100>;
659                 reg-names = "mac", "ippc";
660                 interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_LOW>;
661                 power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF1>;
662                 clocks = <&ssusbsys CLK_SSUSB_SYS_EN>,
663                          <&ssusbsys CLK_SSUSB_REF_EN>,
664                          <&ssusbsys CLK_SSUSB_MCU_EN>,
665                          <&ssusbsys CLK_SSUSB_DMA_EN>;
666                 clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck";
667                 phys = <&u2port0 PHY_TYPE_USB2>,
668                        <&u3port0 PHY_TYPE_USB3>,
669                        <&u2port1 PHY_TYPE_USB2>;
670
671                 status = "disabled";
672         };
673
674         u3phy: usb-phy@1a0c4000 {
675                 compatible = "mediatek,mt7622-u3phy",
676                              "mediatek,generic-tphy-v1";
677                 reg = <0 0x1a0c4000 0 0x700>;
678                 #address-cells = <2>;
679                 #size-cells = <2>;
680                 ranges;
681                 status = "disabled";
682
683                 u2port0: usb-phy@1a0c4800 {
684                         reg = <0 0x1a0c4800 0 0x0100>;
685                         #phy-cells = <1>;
686                         clocks = <&ssusbsys CLK_SSUSB_U2_PHY_EN>;
687                         clock-names = "ref";
688                 };
689
690                 u3port0: usb-phy@1a0c4900 {
691                         reg = <0 0x1a0c4900 0 0x0700>;
692                         #phy-cells = <1>;
693                         clocks = <&clk25m>;
694                         clock-names = "ref";
695                 };
696
697                 u2port1: usb-phy@1a0c5000 {
698                         reg = <0 0x1a0c5000 0 0x0100>;
699                         #phy-cells = <1>;
700                         clocks = <&ssusbsys CLK_SSUSB_U2_PHY_1P_EN>;
701                         clock-names = "ref";
702                 };
703         };
704
705         pciesys: pciesys@1a100800 {
706                 compatible = "mediatek,mt7622-pciesys",
707                              "syscon";
708                 reg = <0 0x1a100800 0 0x1000>;
709                 #clock-cells = <1>;
710                 #reset-cells = <1>;
711         };
712
713         pcie: pcie@1a140000 {
714                 compatible = "mediatek,mt7622-pcie";
715                 device_type = "pci";
716                 reg = <0 0x1a140000 0 0x1000>,
717                       <0 0x1a143000 0 0x1000>,
718                       <0 0x1a145000 0 0x1000>;
719                 reg-names = "subsys", "port0", "port1";
720                 #address-cells = <3>;
721                 #size-cells = <2>;
722                 interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_LOW>,
723                              <GIC_SPI 229 IRQ_TYPE_LEVEL_LOW>;
724                 clocks = <&pciesys CLK_PCIE_P0_MAC_EN>,
725                          <&pciesys CLK_PCIE_P1_MAC_EN>,
726                          <&pciesys CLK_PCIE_P0_AHB_EN>,
727                          <&pciesys CLK_PCIE_P0_AHB_EN>,
728                          <&pciesys CLK_PCIE_P0_AUX_EN>,
729                          <&pciesys CLK_PCIE_P1_AUX_EN>,
730                          <&pciesys CLK_PCIE_P0_AXI_EN>,
731                          <&pciesys CLK_PCIE_P1_AXI_EN>,
732                          <&pciesys CLK_PCIE_P0_OBFF_EN>,
733                          <&pciesys CLK_PCIE_P1_OBFF_EN>,
734                          <&pciesys CLK_PCIE_P0_PIPE_EN>,
735                          <&pciesys CLK_PCIE_P1_PIPE_EN>;
736                 clock-names = "sys_ck0", "sys_ck1", "ahb_ck0", "ahb_ck1",
737                               "aux_ck0", "aux_ck1", "axi_ck0", "axi_ck1",
738                               "obff_ck0", "obff_ck1", "pipe_ck0", "pipe_ck1";
739                 power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
740                 bus-range = <0x00 0xff>;
741                 ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x10000000>;
742                 status = "disabled";
743
744                 pcie0: pcie@0,0 {
745                         reg = <0x0000 0 0 0 0>;
746                         #address-cells = <3>;
747                         #size-cells = <2>;
748                         #interrupt-cells = <1>;
749                         ranges;
750                         status = "disabled";
751
752                         num-lanes = <1>;
753                         interrupt-map-mask = <0 0 0 7>;
754                         interrupt-map = <0 0 0 1 &pcie_intc0 0>,
755                                         <0 0 0 2 &pcie_intc0 1>,
756                                         <0 0 0 3 &pcie_intc0 2>,
757                                         <0 0 0 4 &pcie_intc0 3>;
758                         pcie_intc0: interrupt-controller {
759                                 interrupt-controller;
760                                 #address-cells = <0>;
761                                 #interrupt-cells = <1>;
762                         };
763                 };
764
765                 pcie1: pcie@1,0 {
766                         reg = <0x0800 0 0 0 0>;
767                         #address-cells = <3>;
768                         #size-cells = <2>;
769                         #interrupt-cells = <1>;
770                         ranges;
771                         status = "disabled";
772
773                         num-lanes = <1>;
774                         interrupt-map-mask = <0 0 0 7>;
775                         interrupt-map = <0 0 0 1 &pcie_intc1 0>,
776                                         <0 0 0 2 &pcie_intc1 1>,
777                                         <0 0 0 3 &pcie_intc1 2>,
778                                         <0 0 0 4 &pcie_intc1 3>;
779                         pcie_intc1: interrupt-controller {
780                                 interrupt-controller;
781                                 #address-cells = <0>;
782                                 #interrupt-cells = <1>;
783                         };
784                 };
785         };
786
787         sata: sata@1a200000 {
788                 compatible = "mediatek,mt7622-ahci",
789                              "mediatek,mtk-ahci";
790                 reg = <0 0x1a200000 0 0x1100>;
791                 interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
792                 interrupt-names = "hostc";
793                 clocks = <&pciesys CLK_SATA_AHB_EN>,
794                          <&pciesys CLK_SATA_AXI_EN>,
795                          <&pciesys CLK_SATA_ASIC_EN>,
796                          <&pciesys CLK_SATA_RBC_EN>,
797                          <&pciesys CLK_SATA_PM_EN>;
798                 clock-names = "ahb", "axi", "asic", "rbc", "pm";
799                 phys = <&sata_port PHY_TYPE_SATA>;
800                 phy-names = "sata-phy";
801                 ports-implemented = <0x1>;
802                 power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
803                 resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
804                          <&pciesys MT7622_SATA_PHY_SW_RST>,
805                          <&pciesys MT7622_SATA_PHY_REG_RST>;
806                 reset-names = "axi", "sw", "reg";
807                 mediatek,phy-mode = <&pciesys>;
808                 status = "disabled";
809         };
810
811         sata_phy: sata-phy@1a243000 {
812                 compatible = "mediatek,generic-tphy-v1";
813                 #address-cells = <2>;
814                 #size-cells = <2>;
815                 ranges;
816                 status = "disabled";
817
818                 sata_port: sata-phy@1a243000 {
819                         reg = <0 0x1a243000 0 0x0100>;
820                         clocks = <&topckgen CLK_TOP_ETH_500M>;
821                         clock-names = "ref";
822                         #phy-cells = <1>;
823                 };
824         };
825
826         ethsys: syscon@1b000000 {
827                 compatible = "mediatek,mt7622-ethsys",
828                              "syscon";
829                 reg = <0 0x1b000000 0 0x1000>;
830                 #clock-cells = <1>;
831                 #reset-cells = <1>;
832         };
833
834         hsdma: dma-controller@1b007000 {
835                 compatible = "mediatek,mt7622-hsdma";
836                 reg = <0 0x1b007000 0 0x1000>;
837                 interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_LOW>;
838                 clocks = <&ethsys CLK_ETH_HSDMA_EN>;
839                 clock-names = "hsdma";
840                 power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
841                 #dma-cells = <1>;
842         };
843
844         eth: ethernet@1b100000 {
845                 compatible = "mediatek,mt7622-eth",
846                              "mediatek,mt2701-eth",
847                              "syscon";
848                 reg = <0 0x1b100000 0 0x20000>;
849                 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>,
850                              <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>,
851                              <GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>;
852                 clocks = <&topckgen CLK_TOP_ETH_SEL>,
853                          <&ethsys CLK_ETH_ESW_EN>,
854                          <&ethsys CLK_ETH_GP0_EN>,
855                          <&ethsys CLK_ETH_GP1_EN>,
856                          <&ethsys CLK_ETH_GP2_EN>,
857                          <&sgmiisys CLK_SGMII_TX250M_EN>,
858                          <&sgmiisys CLK_SGMII_RX250M_EN>,
859                          <&sgmiisys CLK_SGMII_CDR_REF>,
860                          <&sgmiisys CLK_SGMII_CDR_FB>,
861                          <&topckgen CLK_TOP_SGMIIPLL>,
862                          <&apmixedsys CLK_APMIXED_ETH2PLL>;
863                 clock-names = "ethif", "esw", "gp0", "gp1", "gp2",
864                               "sgmii_tx250m", "sgmii_rx250m",
865                               "sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck",
866                               "eth2pll";
867                 power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
868                 mediatek,ethsys = <&ethsys>;
869                 mediatek,sgmiisys = <&sgmiisys>;
870                 #address-cells = <1>;
871                 #size-cells = <0>;
872                 status = "disabled";
873         };
874
875         sgmiisys: sgmiisys@1b128000 {
876                 compatible = "mediatek,mt7622-sgmiisys",
877                              "syscon";
878                 reg = <0 0x1b128000 0 0x1000>;
879                 #clock-cells = <1>;
880         };
881 };