2 * Copyright (c) 2017 MediaTek Inc.
3 * Author: Ming Huang <ming.huang@mediatek.com>
4 * Sean Wang <sean.wang@mediatek.com>
6 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
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>
18 compatible = "mediatek,mt7622";
19 interrupt-parent = <&sysirq>;
23 cpu_opp_table: opp-table {
24 compatible = "operating-points-v2";
27 opp-hz = /bits/ 64 <30000000>;
28 opp-microvolt = <950000>;
32 opp-hz = /bits/ 64 <437500000>;
33 opp-microvolt = <1000000>;
37 opp-hz = /bits/ 64 <600000000>;
38 opp-microvolt = <1050000>;
42 opp-hz = /bits/ 64 <812500000>;
43 opp-microvolt = <1100000>;
47 opp-hz = /bits/ 64 <1025000000>;
48 opp-microvolt = <1150000>;
52 opp-hz = /bits/ 64 <1137500000>;
53 opp-microvolt = <1200000>;
57 opp-hz = /bits/ 64 <1262500000>;
58 opp-microvolt = <1250000>;
62 opp-hz = /bits/ 64 <1350000000>;
63 opp-microvolt = <1310000>;
73 compatible = "arm,cortex-a53";
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>;
80 enable-method = "psci";
81 clock-frequency = <1300000000>;
82 cci-control-port = <&cci_control2>;
87 compatible = "arm,cortex-a53";
89 clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
90 <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
91 clock-names = "cpu", "intermediate";
92 operating-points-v2 = <&cpu_opp_table>;
94 enable-method = "psci";
95 clock-frequency = <1300000000>;
96 cci-control-port = <&cci_control2>;
100 pwrap_clk: dummy40m {
101 compatible = "fixed-clock";
102 clock-frequency = <40000000>;
107 compatible = "fixed-clock";
109 clock-frequency = <25000000>;
110 clock-output-names = "clkxtal";
114 compatible = "arm,psci-0.2";
119 compatible = "arm,cortex-a53-pmu";
120 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_LOW>,
121 <GIC_SPI 9 IRQ_TYPE_LEVEL_LOW>;
122 interrupt-affinity = <&cpu0>, <&cpu1>;
126 #address-cells = <2>;
130 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
131 secmon_reserved: secmon@43000000 {
132 reg = <0 0x43000000 0 0x30000>;
138 cpu_thermal: cpu-thermal {
139 polling-delay-passive = <1000>;
140 polling-delay = <1000>;
142 thermal-sensors = <&thermal 0>;
145 cpu_passive: cpu-passive {
146 temperature = <47000>;
151 cpu_active: cpu-active {
152 temperature = <67000>;
158 temperature = <87000>;
164 temperature = <107000>;
172 trip = <&cpu_passive>;
173 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
174 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
178 trip = <&cpu_active>;
179 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
180 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
185 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
186 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
193 compatible = "arm,armv8-timer";
194 interrupt-parent = <&gic>;
195 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
196 IRQ_TYPE_LEVEL_HIGH)>,
197 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
198 IRQ_TYPE_LEVEL_HIGH)>,
199 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) |
200 IRQ_TYPE_LEVEL_HIGH)>,
201 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
202 IRQ_TYPE_LEVEL_HIGH)>;
205 infracfg: infracfg@10000000 {
206 compatible = "mediatek,mt7622-infracfg",
208 reg = <0 0x10000000 0 0x1000>;
213 pwrap: pwrap@10001000 {
214 compatible = "mediatek,mt7622-pwrap";
215 reg = <0 0x10001000 0 0x250>;
217 clocks = <&infracfg CLK_INFRA_PMIC_PD>, <&pwrap_clk>;
218 clock-names = "spi", "wrap";
219 resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>;
220 reset-names = "pwrap";
221 interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
225 pericfg: pericfg@10002000 {
226 compatible = "mediatek,mt7622-pericfg",
228 reg = <0 0x10002000 0 0x1000>;
233 scpsys: scpsys@10006000 {
234 compatible = "mediatek,mt7622-scpsys",
236 #power-domain-cells = <1>;
237 reg = <0 0x10006000 0 0x1000>;
238 interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>,
239 <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>,
240 <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>,
241 <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>;
242 infracfg = <&infracfg>;
243 clocks = <&topckgen CLK_TOP_HIF_SEL>;
244 clock-names = "hif_sel";
248 compatible = "mediatek,mt7622-cir";
249 reg = <0 0x10009000 0 0x1000>;
250 interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>;
251 clocks = <&infracfg CLK_INFRA_IRRX_PD>,
252 <&topckgen CLK_TOP_AXI_SEL>;
253 clock-names = "clk", "bus";
257 sysirq: interrupt-controller@10200620 {
258 compatible = "mediatek,mt7622-sysirq",
259 "mediatek,mt6577-sysirq";
260 interrupt-controller;
261 #interrupt-cells = <3>;
262 interrupt-parent = <&gic>;
263 reg = <0 0x10200620 0 0x20>;
266 efuse: efuse@10206000 {
267 compatible = "mediatek,mt7622-efuse",
269 reg = <0 0x10206000 0 0x1000>;
270 #address-cells = <1>;
273 thermal_calibration: calib@198 {
278 apmixedsys: apmixedsys@10209000 {
279 compatible = "mediatek,mt7622-apmixedsys",
281 reg = <0 0x10209000 0 0x1000>;
285 topckgen: topckgen@10210000 {
286 compatible = "mediatek,mt7622-topckgen",
288 reg = <0 0x10210000 0 0x1000>;
293 compatible = "mediatek,mt7622-rng",
294 "mediatek,mt7623-rng";
295 reg = <0 0x1020f000 0 0x1000>;
296 clocks = <&infracfg CLK_INFRA_TRNG>;
300 pio: pinctrl@10211000 {
301 compatible = "mediatek,mt7622-pinctrl";
302 reg = <0 0x10211000 0 0x1000>,
303 <0 0x10005000 0 0x1000>;
304 reg-names = "base", "eint";
307 gpio-ranges = <&pio 0 0 103>;
308 interrupt-controller;
309 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
310 interrupt-parent = <&gic>;
311 #interrupt-cells = <2>;
314 watchdog: watchdog@10212000 {
315 compatible = "mediatek,mt7622-wdt",
316 "mediatek,mt6589-wdt";
317 reg = <0 0x10212000 0 0x800>;
321 compatible = "mediatek,mt7622-rtc",
323 reg = <0 0x10212800 0 0x200>;
324 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
325 clocks = <&topckgen CLK_TOP_RTC>;
329 gic: interrupt-controller@10300000 {
330 compatible = "arm,gic-400";
331 interrupt-controller;
332 #interrupt-cells = <3>;
333 interrupt-parent = <&gic>;
334 reg = <0 0x10310000 0 0x1000>,
335 <0 0x10320000 0 0x1000>,
336 <0 0x10340000 0 0x2000>,
337 <0 0x10360000 0 0x2000>;
341 compatible = "arm,cci-400";
342 #address-cells = <1>;
344 reg = <0 0x10390000 0 0x1000>;
345 ranges = <0 0 0x10390000 0x10000>;
347 cci_control0: slave-if@1000 {
348 compatible = "arm,cci-400-ctrl-if";
349 interface-type = "ace-lite";
350 reg = <0x1000 0x1000>;
353 cci_control1: slave-if@4000 {
354 compatible = "arm,cci-400-ctrl-if";
355 interface-type = "ace";
356 reg = <0x4000 0x1000>;
359 cci_control2: slave-if@5000 {
360 compatible = "arm,cci-400-ctrl-if";
361 interface-type = "ace";
362 reg = <0x5000 0x1000>;
366 compatible = "arm,cci-400-pmu,r1";
367 reg = <0x9000 0x5000>;
368 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
369 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
370 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
371 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
372 <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
376 auxadc: adc@11001000 {
377 compatible = "mediatek,mt7622-auxadc";
378 reg = <0 0x11001000 0 0x1000>;
379 clocks = <&pericfg CLK_PERI_AUXADC_PD>;
380 clock-names = "main";
381 #io-channel-cells = <1>;
384 uart0: serial@11002000 {
385 compatible = "mediatek,mt7622-uart",
386 "mediatek,mt6577-uart";
387 reg = <0 0x11002000 0 0x400>;
388 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
389 clocks = <&topckgen CLK_TOP_UART_SEL>,
390 <&pericfg CLK_PERI_UART0_PD>;
391 clock-names = "baud", "bus";
395 uart1: serial@11003000 {
396 compatible = "mediatek,mt7622-uart",
397 "mediatek,mt6577-uart";
398 reg = <0 0x11003000 0 0x400>;
399 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
400 clocks = <&topckgen CLK_TOP_UART_SEL>,
401 <&pericfg CLK_PERI_UART1_PD>;
402 clock-names = "baud", "bus";
406 uart2: serial@11004000 {
407 compatible = "mediatek,mt7622-uart",
408 "mediatek,mt6577-uart";
409 reg = <0 0x11004000 0 0x400>;
410 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
411 clocks = <&topckgen CLK_TOP_UART_SEL>,
412 <&pericfg CLK_PERI_UART2_PD>;
413 clock-names = "baud", "bus";
417 uart3: serial@11005000 {
418 compatible = "mediatek,mt7622-uart",
419 "mediatek,mt6577-uart";
420 reg = <0 0x11005000 0 0x400>;
421 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
422 clocks = <&topckgen CLK_TOP_UART_SEL>,
423 <&pericfg CLK_PERI_UART3_PD>;
424 clock-names = "baud", "bus";
429 compatible = "mediatek,mt7622-pwm";
430 reg = <0 0x11006000 0 0x1000>;
431 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
432 clocks = <&topckgen CLK_TOP_PWM_SEL>,
433 <&pericfg CLK_PERI_PWM_PD>,
434 <&pericfg CLK_PERI_PWM1_PD>,
435 <&pericfg CLK_PERI_PWM2_PD>,
436 <&pericfg CLK_PERI_PWM3_PD>,
437 <&pericfg CLK_PERI_PWM4_PD>,
438 <&pericfg CLK_PERI_PWM5_PD>,
439 <&pericfg CLK_PERI_PWM6_PD>;
440 clock-names = "top", "main", "pwm1", "pwm2", "pwm3", "pwm4",
446 compatible = "mediatek,mt7622-i2c";
447 reg = <0 0x11007000 0 0x90>,
448 <0 0x11000100 0 0x80>;
449 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
451 clocks = <&pericfg CLK_PERI_I2C0_PD>,
452 <&pericfg CLK_PERI_AP_DMA_PD>;
453 clock-names = "main", "dma";
454 #address-cells = <1>;
460 compatible = "mediatek,mt7622-i2c";
461 reg = <0 0x11008000 0 0x90>,
462 <0 0x11000180 0 0x80>;
463 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
465 clocks = <&pericfg CLK_PERI_I2C1_PD>,
466 <&pericfg CLK_PERI_AP_DMA_PD>;
467 clock-names = "main", "dma";
468 #address-cells = <1>;
474 compatible = "mediatek,mt7622-i2c";
475 reg = <0 0x11009000 0 0x90>,
476 <0 0x11000200 0 0x80>;
477 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
479 clocks = <&pericfg CLK_PERI_I2C2_PD>,
480 <&pericfg CLK_PERI_AP_DMA_PD>;
481 clock-names = "main", "dma";
482 #address-cells = <1>;
488 compatible = "mediatek,mt7622-spi";
489 reg = <0 0x1100a000 0 0x100>;
490 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>;
491 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
492 <&topckgen CLK_TOP_SPI0_SEL>,
493 <&pericfg CLK_PERI_SPI0_PD>;
494 clock-names = "parent-clk", "sel-clk", "spi-clk";
495 #address-cells = <1>;
500 thermal: thermal@1100b000 {
501 #thermal-sensor-cells = <1>;
502 compatible = "mediatek,mt7622-thermal";
503 reg = <0 0x1100b000 0 0x1000>;
504 interrupts = <0 78 IRQ_TYPE_LEVEL_LOW>;
505 clocks = <&pericfg CLK_PERI_THERM_PD>,
506 <&pericfg CLK_PERI_AUXADC_PD>;
507 clock-names = "therm", "auxadc";
508 resets = <&pericfg MT7622_PERI_THERM_SW_RST>;
509 reset-names = "therm";
510 mediatek,auxadc = <&auxadc>;
511 mediatek,apmixedsys = <&apmixedsys>;
512 nvmem-cells = <&thermal_calibration>;
513 nvmem-cell-names = "calibration-data";
516 btif: serial@1100c000 {
517 compatible = "mediatek,mt7622-btif",
519 reg = <0 0x1100c000 0 0x1000>;
520 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
521 clocks = <&pericfg CLK_PERI_BTIF_PD>;
522 clock-names = "main";
528 compatible = "mediatek,mt7622-bluetooth";
529 power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
535 nandc: nfi@1100d000 {
536 compatible = "mediatek,mt7622-nfc";
537 reg = <0 0x1100D000 0 0x1000>;
538 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
539 clocks = <&pericfg CLK_PERI_NFI_PD>,
540 <&pericfg CLK_PERI_SNFI_PD>;
541 clock-names = "nfi_clk", "pad_clk";
543 #address-cells = <1>;
549 compatible = "mediatek,mt7622-ecc";
550 reg = <0 0x1100e000 0 0x1000>;
551 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
552 clocks = <&pericfg CLK_PERI_NFIECC_PD>;
553 clock-names = "nfiecc_clk";
557 nor_flash: spi@11014000 {
558 compatible = "mediatek,mt7622-nor",
559 "mediatek,mt8173-nor";
560 reg = <0 0x11014000 0 0xe0>;
561 clocks = <&pericfg CLK_PERI_FLASH_PD>,
562 <&topckgen CLK_TOP_FLASH_SEL>;
563 clock-names = "spi", "sf";
564 #address-cells = <1>;
570 compatible = "mediatek,mt7622-spi";
571 reg = <0 0x11016000 0 0x100>;
572 interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_LOW>;
573 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
574 <&topckgen CLK_TOP_SPI1_SEL>,
575 <&pericfg CLK_PERI_SPI1_PD>;
576 clock-names = "parent-clk", "sel-clk", "spi-clk";
577 #address-cells = <1>;
582 uart4: serial@11019000 {
583 compatible = "mediatek,mt7622-uart",
584 "mediatek,mt6577-uart";
585 reg = <0 0x11019000 0 0x400>;
586 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_LOW>;
587 clocks = <&topckgen CLK_TOP_UART_SEL>,
588 <&pericfg CLK_PERI_UART4_PD>;
589 clock-names = "baud", "bus";
593 audsys: clock-controller@11220000 {
594 compatible = "mediatek,mt7622-audsys", "syscon";
595 reg = <0 0x11220000 0 0x2000>;
598 afe: audio-controller {
599 compatible = "mediatek,mt7622-audio";
600 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>,
601 <GIC_SPI 145 IRQ_TYPE_LEVEL_LOW>;
602 interrupt-names = "afe", "asys";
604 clocks = <&infracfg CLK_INFRA_AUDIO_PD>,
605 <&topckgen CLK_TOP_AUD1_SEL>,
606 <&topckgen CLK_TOP_AUD2_SEL>,
607 <&topckgen CLK_TOP_A1SYS_HP_DIV_PD>,
608 <&topckgen CLK_TOP_A2SYS_HP_DIV_PD>,
609 <&topckgen CLK_TOP_I2S0_MCK_SEL>,
610 <&topckgen CLK_TOP_I2S1_MCK_SEL>,
611 <&topckgen CLK_TOP_I2S2_MCK_SEL>,
612 <&topckgen CLK_TOP_I2S3_MCK_SEL>,
613 <&topckgen CLK_TOP_I2S0_MCK_DIV>,
614 <&topckgen CLK_TOP_I2S1_MCK_DIV>,
615 <&topckgen CLK_TOP_I2S2_MCK_DIV>,
616 <&topckgen CLK_TOP_I2S3_MCK_DIV>,
617 <&topckgen CLK_TOP_I2S0_MCK_DIV_PD>,
618 <&topckgen CLK_TOP_I2S1_MCK_DIV_PD>,
619 <&topckgen CLK_TOP_I2S2_MCK_DIV_PD>,
620 <&topckgen CLK_TOP_I2S3_MCK_DIV_PD>,
621 <&audsys CLK_AUDIO_I2SO1>,
622 <&audsys CLK_AUDIO_I2SO2>,
623 <&audsys CLK_AUDIO_I2SO3>,
624 <&audsys CLK_AUDIO_I2SO4>,
625 <&audsys CLK_AUDIO_I2SIN1>,
626 <&audsys CLK_AUDIO_I2SIN2>,
627 <&audsys CLK_AUDIO_I2SIN3>,
628 <&audsys CLK_AUDIO_I2SIN4>,
629 <&audsys CLK_AUDIO_ASRCO1>,
630 <&audsys CLK_AUDIO_ASRCO2>,
631 <&audsys CLK_AUDIO_ASRCO3>,
632 <&audsys CLK_AUDIO_ASRCO4>,
633 <&audsys CLK_AUDIO_AFE>,
634 <&audsys CLK_AUDIO_AFE_CONN>,
635 <&audsys CLK_AUDIO_A1SYS>,
636 <&audsys CLK_AUDIO_A2SYS>;
638 clock-names = "infra_sys_audio_clk",
639 "top_audio_mux1_sel",
640 "top_audio_mux2_sel",
641 "top_audio_a1sys_hp",
642 "top_audio_a2sys_hp",
672 assigned-clocks = <&topckgen CLK_TOP_A1SYS_HP_SEL>,
673 <&topckgen CLK_TOP_A2SYS_HP_SEL>,
674 <&topckgen CLK_TOP_A1SYS_HP_DIV>,
675 <&topckgen CLK_TOP_A2SYS_HP_DIV>;
676 assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL>,
677 <&topckgen CLK_TOP_AUD2PLL>;
678 assigned-clock-rates = <0>, <0>, <49152000>, <45158400>;
683 compatible = "mediatek,mt7622-mmc";
684 reg = <0 0x11230000 0 0x1000>;
685 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
686 clocks = <&pericfg CLK_PERI_MSDC30_0_PD>,
687 <&topckgen CLK_TOP_MSDC50_0_SEL>;
688 clock-names = "source", "hclk";
693 compatible = "mediatek,mt7622-mmc";
694 reg = <0 0x11240000 0 0x1000>;
695 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
696 clocks = <&pericfg CLK_PERI_MSDC30_1_PD>,
697 <&topckgen CLK_TOP_AXI_SEL>;
698 clock-names = "source", "hclk";
702 ssusbsys: ssusbsys@1a000000 {
703 compatible = "mediatek,mt7622-ssusbsys",
705 reg = <0 0x1a000000 0 0x1000>;
710 ssusb: usb@1a0c0000 {
711 compatible = "mediatek,mt7622-xhci",
713 reg = <0 0x1a0c0000 0 0x01000>,
714 <0 0x1a0c4700 0 0x0100>;
715 reg-names = "mac", "ippc";
716 interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_LOW>;
717 power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF1>;
718 clocks = <&ssusbsys CLK_SSUSB_SYS_EN>,
719 <&ssusbsys CLK_SSUSB_REF_EN>,
720 <&ssusbsys CLK_SSUSB_MCU_EN>,
721 <&ssusbsys CLK_SSUSB_DMA_EN>;
722 clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck";
723 phys = <&u2port0 PHY_TYPE_USB2>,
724 <&u3port0 PHY_TYPE_USB3>,
725 <&u2port1 PHY_TYPE_USB2>;
730 u3phy: usb-phy@1a0c4000 {
731 compatible = "mediatek,mt7622-u3phy",
732 "mediatek,generic-tphy-v1";
733 reg = <0 0x1a0c4000 0 0x700>;
734 #address-cells = <2>;
739 u2port0: usb-phy@1a0c4800 {
740 reg = <0 0x1a0c4800 0 0x0100>;
742 clocks = <&ssusbsys CLK_SSUSB_U2_PHY_EN>;
746 u3port0: usb-phy@1a0c4900 {
747 reg = <0 0x1a0c4900 0 0x0700>;
753 u2port1: usb-phy@1a0c5000 {
754 reg = <0 0x1a0c5000 0 0x0100>;
756 clocks = <&ssusbsys CLK_SSUSB_U2_PHY_1P_EN>;
761 pciesys: pciesys@1a100800 {
762 compatible = "mediatek,mt7622-pciesys",
764 reg = <0 0x1a100800 0 0x1000>;
769 pcie: pcie@1a140000 {
770 compatible = "mediatek,mt7622-pcie";
772 reg = <0 0x1a140000 0 0x1000>,
773 <0 0x1a143000 0 0x1000>,
774 <0 0x1a145000 0 0x1000>;
775 reg-names = "subsys", "port0", "port1";
776 #address-cells = <3>;
778 interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_LOW>,
779 <GIC_SPI 229 IRQ_TYPE_LEVEL_LOW>;
780 clocks = <&pciesys CLK_PCIE_P0_MAC_EN>,
781 <&pciesys CLK_PCIE_P1_MAC_EN>,
782 <&pciesys CLK_PCIE_P0_AHB_EN>,
783 <&pciesys CLK_PCIE_P0_AHB_EN>,
784 <&pciesys CLK_PCIE_P0_AUX_EN>,
785 <&pciesys CLK_PCIE_P1_AUX_EN>,
786 <&pciesys CLK_PCIE_P0_AXI_EN>,
787 <&pciesys CLK_PCIE_P1_AXI_EN>,
788 <&pciesys CLK_PCIE_P0_OBFF_EN>,
789 <&pciesys CLK_PCIE_P1_OBFF_EN>,
790 <&pciesys CLK_PCIE_P0_PIPE_EN>,
791 <&pciesys CLK_PCIE_P1_PIPE_EN>;
792 clock-names = "sys_ck0", "sys_ck1", "ahb_ck0", "ahb_ck1",
793 "aux_ck0", "aux_ck1", "axi_ck0", "axi_ck1",
794 "obff_ck0", "obff_ck1", "pipe_ck0", "pipe_ck1";
795 power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
796 bus-range = <0x00 0xff>;
797 ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x10000000>;
801 reg = <0x0000 0 0 0 0>;
802 #address-cells = <3>;
804 #interrupt-cells = <1>;
808 interrupt-map-mask = <0 0 0 7>;
809 interrupt-map = <0 0 0 1 &pcie_intc0 0>,
810 <0 0 0 2 &pcie_intc0 1>,
811 <0 0 0 3 &pcie_intc0 2>,
812 <0 0 0 4 &pcie_intc0 3>;
813 pcie_intc0: interrupt-controller {
814 interrupt-controller;
815 #address-cells = <0>;
816 #interrupt-cells = <1>;
821 reg = <0x0800 0 0 0 0>;
822 #address-cells = <3>;
824 #interrupt-cells = <1>;
828 interrupt-map-mask = <0 0 0 7>;
829 interrupt-map = <0 0 0 1 &pcie_intc1 0>,
830 <0 0 0 2 &pcie_intc1 1>,
831 <0 0 0 3 &pcie_intc1 2>,
832 <0 0 0 4 &pcie_intc1 3>;
833 pcie_intc1: interrupt-controller {
834 interrupt-controller;
835 #address-cells = <0>;
836 #interrupt-cells = <1>;
841 sata: sata@1a200000 {
842 compatible = "mediatek,mt7622-ahci",
844 reg = <0 0x1a200000 0 0x1100>;
845 interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
846 interrupt-names = "hostc";
847 clocks = <&pciesys CLK_SATA_AHB_EN>,
848 <&pciesys CLK_SATA_AXI_EN>,
849 <&pciesys CLK_SATA_ASIC_EN>,
850 <&pciesys CLK_SATA_RBC_EN>,
851 <&pciesys CLK_SATA_PM_EN>;
852 clock-names = "ahb", "axi", "asic", "rbc", "pm";
853 phys = <&sata_port PHY_TYPE_SATA>;
854 phy-names = "sata-phy";
855 ports-implemented = <0x1>;
856 power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
857 resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
858 <&pciesys MT7622_SATA_PHY_SW_RST>,
859 <&pciesys MT7622_SATA_PHY_REG_RST>;
860 reset-names = "axi", "sw", "reg";
861 mediatek,phy-mode = <&pciesys>;
865 sata_phy: sata-phy@1a243000 {
866 compatible = "mediatek,generic-tphy-v1";
867 #address-cells = <2>;
872 sata_port: sata-phy@1a243000 {
873 reg = <0 0x1a243000 0 0x0100>;
874 clocks = <&topckgen CLK_TOP_ETH_500M>;
880 ethsys: syscon@1b000000 {
881 compatible = "mediatek,mt7622-ethsys",
883 reg = <0 0x1b000000 0 0x1000>;
888 hsdma: dma-controller@1b007000 {
889 compatible = "mediatek,mt7622-hsdma";
890 reg = <0 0x1b007000 0 0x1000>;
891 interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_LOW>;
892 clocks = <ðsys CLK_ETH_HSDMA_EN>;
893 clock-names = "hsdma";
894 power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
898 eth: ethernet@1b100000 {
899 compatible = "mediatek,mt7622-eth",
900 "mediatek,mt2701-eth",
902 reg = <0 0x1b100000 0 0x20000>;
903 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>,
904 <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>,
905 <GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>;
906 clocks = <&topckgen CLK_TOP_ETH_SEL>,
907 <ðsys CLK_ETH_ESW_EN>,
908 <ðsys CLK_ETH_GP0_EN>,
909 <ðsys CLK_ETH_GP1_EN>,
910 <ðsys CLK_ETH_GP2_EN>,
911 <&sgmiisys CLK_SGMII_TX250M_EN>,
912 <&sgmiisys CLK_SGMII_RX250M_EN>,
913 <&sgmiisys CLK_SGMII_CDR_REF>,
914 <&sgmiisys CLK_SGMII_CDR_FB>,
915 <&topckgen CLK_TOP_SGMIIPLL>,
916 <&apmixedsys CLK_APMIXED_ETH2PLL>;
917 clock-names = "ethif", "esw", "gp0", "gp1", "gp2",
918 "sgmii_tx250m", "sgmii_rx250m",
919 "sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck",
921 power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
922 mediatek,ethsys = <ðsys>;
923 mediatek,sgmiisys = <&sgmiisys>;
924 #address-cells = <1>;
929 sgmiisys: sgmiisys@1b128000 {
930 compatible = "mediatek,mt7622-sgmiisys",
932 reg = <0 0x1b128000 0 0x3000>;
934 mediatek,physpeed = "2500";