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", "arm,armv8";
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>;
86 compatible = "arm,cortex-a53", "arm,armv8";
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>;
93 enable-method = "psci";
94 clock-frequency = <1300000000>;
99 compatible = "fixed-clock";
100 clock-frequency = <40000000>;
105 compatible = "fixed-clock";
107 clock-frequency = <25000000>;
108 clock-output-names = "clkxtal";
112 compatible = "arm,psci-0.2";
117 #address-cells = <2>;
121 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
122 secmon_reserved: secmon@43000000 {
123 reg = <0 0x43000000 0 0x30000>;
129 cpu_thermal: cpu-thermal {
130 polling-delay-passive = <1000>;
131 polling-delay = <1000>;
133 thermal-sensors = <&thermal 0>;
136 cpu_passive: cpu-passive {
137 temperature = <47000>;
142 cpu_active: cpu-active {
143 temperature = <67000>;
149 temperature = <87000>;
155 temperature = <107000>;
163 trip = <&cpu_passive>;
164 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
168 trip = <&cpu_active>;
169 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
174 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
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)>;
193 infracfg: infracfg@10000000 {
194 compatible = "mediatek,mt7622-infracfg",
196 reg = <0 0x10000000 0 0x1000>;
201 pwrap: pwrap@10001000 {
202 compatible = "mediatek,mt7622-pwrap";
203 reg = <0 0x10001000 0 0x250>;
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>;
213 pericfg: pericfg@10002000 {
214 compatible = "mediatek,mt7622-pericfg",
216 reg = <0 0x10002000 0 0x1000>;
221 scpsys: scpsys@10006000 {
222 compatible = "mediatek,mt7622-scpsys",
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";
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";
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>;
254 efuse: efuse@10206000 {
255 compatible = "mediatek,mt7622-efuse",
257 reg = <0 0x10206000 0 0x1000>;
258 #address-cells = <1>;
261 thermal_calibration: calib@198 {
266 apmixedsys: apmixedsys@10209000 {
267 compatible = "mediatek,mt7622-apmixedsys",
269 reg = <0 0x10209000 0 0x1000>;
273 topckgen: topckgen@10210000 {
274 compatible = "mediatek,mt7622-topckgen",
276 reg = <0 0x10210000 0 0x1000>;
281 compatible = "mediatek,mt7622-rng",
282 "mediatek,mt7623-rng";
283 reg = <0 0x1020f000 0 0x1000>;
284 clocks = <&infracfg CLK_INFRA_TRNG>;
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";
295 interrupt-controller;
296 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
297 interrupt-parent = <&gic>;
298 #interrupt-cells = <2>;
301 watchdog: watchdog@10212000 {
302 compatible = "mediatek,mt7622-wdt",
303 "mediatek,mt6589-wdt";
304 reg = <0 0x10212000 0 0x800>;
308 compatible = "mediatek,mt7622-rtc",
310 reg = <0 0x10212800 0 0x200>;
311 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
312 clocks = <&topckgen CLK_TOP_RTC>;
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>;
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>;
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";
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";
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";
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";
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",
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>;
402 clocks = <&pericfg CLK_PERI_I2C0_PD>,
403 <&pericfg CLK_PERI_AP_DMA_PD>;
404 clock-names = "main", "dma";
405 #address-cells = <1>;
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>;
416 clocks = <&pericfg CLK_PERI_I2C1_PD>,
417 <&pericfg CLK_PERI_AP_DMA_PD>;
418 clock-names = "main", "dma";
419 #address-cells = <1>;
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>;
430 clocks = <&pericfg CLK_PERI_I2C2_PD>,
431 <&pericfg CLK_PERI_AP_DMA_PD>;
432 clock-names = "main", "dma";
433 #address-cells = <1>;
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>;
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";
467 btif: serial@1100c000 {
468 compatible = "mediatek,mt7622-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";
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";
487 #address-cells = <1>;
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";
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>;
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>;
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";
537 audsys: clock-controller@11220000 {
538 compatible = "mediatek,mt7622-audsys", "syscon";
539 reg = <0 0x11220000 0 0x2000>;
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";
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>;
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",
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>;
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";
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";
646 ssusbsys: ssusbsys@1a000000 {
647 compatible = "mediatek,mt7622-ssusbsys",
649 reg = <0 0x1a000000 0 0x1000>;
654 ssusb: usb@1a0c0000 {
655 compatible = "mediatek,mt7622-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>;
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>;
683 u2port0: usb-phy@1a0c4800 {
684 reg = <0 0x1a0c4800 0 0x0100>;
686 clocks = <&ssusbsys CLK_SSUSB_U2_PHY_EN>;
690 u3port0: usb-phy@1a0c4900 {
691 reg = <0 0x1a0c4900 0 0x0700>;
697 u2port1: usb-phy@1a0c5000 {
698 reg = <0 0x1a0c5000 0 0x0100>;
700 clocks = <&ssusbsys CLK_SSUSB_U2_PHY_1P_EN>;
705 pciesys: pciesys@1a100800 {
706 compatible = "mediatek,mt7622-pciesys",
708 reg = <0 0x1a100800 0 0x1000>;
713 pcie: pcie@1a140000 {
714 compatible = "mediatek,mt7622-pcie";
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>;
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>;
745 reg = <0x0000 0 0 0 0>;
746 #address-cells = <3>;
748 #interrupt-cells = <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>;
766 reg = <0x0800 0 0 0 0>;
767 #address-cells = <3>;
769 #interrupt-cells = <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>;
787 sata: sata@1a200000 {
788 compatible = "mediatek,mt7622-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>;
811 sata_phy: sata-phy@1a243000 {
812 compatible = "mediatek,generic-tphy-v1";
813 #address-cells = <2>;
818 sata_port: sata-phy@1a243000 {
819 reg = <0 0x1a243000 0 0x0100>;
820 clocks = <&topckgen CLK_TOP_ETH_500M>;
826 ethsys: syscon@1b000000 {
827 compatible = "mediatek,mt7622-ethsys",
829 reg = <0 0x1b000000 0 0x1000>;
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 = <ðsys CLK_ETH_HSDMA_EN>;
839 clock-names = "hsdma";
840 power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
844 eth: ethernet@1b100000 {
845 compatible = "mediatek,mt7622-eth",
846 "mediatek,mt2701-eth",
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 <ðsys CLK_ETH_ESW_EN>,
854 <ðsys CLK_ETH_GP0_EN>,
855 <ðsys CLK_ETH_GP1_EN>,
856 <ðsys 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",
867 power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
868 mediatek,ethsys = <ðsys>;
869 mediatek,sgmiisys = <&sgmiisys>;
870 #address-cells = <1>;
875 sgmiisys: sgmiisys@1b128000 {
876 compatible = "mediatek,mt7622-sgmiisys",
878 reg = <0 0x1b128000 0 0x1000>;