1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 MediaTek Inc.
4 * Author: John Crispin <john@phrozen.org>
5 * Sean Wang <sean.wang@mediatek.com>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/clock/mt2701-clk.h>
12 #include <dt-bindings/pinctrl/mt7623-pinfunc.h>
13 #include <dt-bindings/power/mt2701-power.h>
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/phy/phy.h>
16 #include <dt-bindings/reset/mt2701-resets.h>
17 #include <dt-bindings/thermal/thermal.h>
20 compatible = "mediatek,mt7623";
21 interrupt-parent = <&sysirq>;
25 cpu_opp_table: opp-table {
26 compatible = "operating-points-v2";
30 opp-hz = /bits/ 64 <98000000>;
31 opp-microvolt = <1050000>;
35 opp-hz = /bits/ 64 <198000000>;
36 opp-microvolt = <1050000>;
40 opp-hz = /bits/ 64 <398000000>;
41 opp-microvolt = <1050000>;
45 opp-hz = /bits/ 64 <598000000>;
46 opp-microvolt = <1050000>;
50 opp-hz = /bits/ 64 <747500000>;
51 opp-microvolt = <1050000>;
55 opp-hz = /bits/ 64 <1040000000>;
56 opp-microvolt = <1150000>;
60 opp-hz = /bits/ 64 <1196000000>;
61 opp-microvolt = <1200000>;
65 opp-hz = /bits/ 64 <1300000000>;
66 opp-microvolt = <1300000>;
73 enable-method = "mediatek,mt6589-smp";
77 compatible = "arm,cortex-a7";
79 clocks = <&infracfg CLK_INFRA_CPUSEL>,
80 <&apmixedsys CLK_APMIXED_MAINPLL>;
81 clock-names = "cpu", "intermediate";
82 operating-points-v2 = <&cpu_opp_table>;
84 clock-frequency = <1300000000>;
89 compatible = "arm,cortex-a7";
91 clocks = <&infracfg CLK_INFRA_CPUSEL>,
92 <&apmixedsys CLK_APMIXED_MAINPLL>;
93 clock-names = "cpu", "intermediate";
94 operating-points-v2 = <&cpu_opp_table>;
96 clock-frequency = <1300000000>;
101 compatible = "arm,cortex-a7";
103 clocks = <&infracfg CLK_INFRA_CPUSEL>,
104 <&apmixedsys CLK_APMIXED_MAINPLL>;
105 clock-names = "cpu", "intermediate";
106 operating-points-v2 = <&cpu_opp_table>;
107 #cooling-cells = <2>;
108 clock-frequency = <1300000000>;
113 compatible = "arm,cortex-a7";
115 clocks = <&infracfg CLK_INFRA_CPUSEL>,
116 <&apmixedsys CLK_APMIXED_MAINPLL>;
117 clock-names = "cpu", "intermediate";
118 operating-points-v2 = <&cpu_opp_table>;
119 #cooling-cells = <2>;
120 clock-frequency = <1300000000>;
124 system_clk: dummy13m {
125 compatible = "fixed-clock";
126 clock-frequency = <13000000>;
130 rtc32k: oscillator-1 {
131 compatible = "fixed-clock";
133 clock-frequency = <32000>;
134 clock-output-names = "rtc32k";
137 clk26m: oscillator-0 {
138 compatible = "fixed-clock";
140 clock-frequency = <26000000>;
141 clock-output-names = "clk26m";
145 cpu_thermal: cpu-thermal {
146 polling-delay-passive = <1000>;
147 polling-delay = <1000>;
149 thermal-sensors = <&thermal 0>;
152 cpu_passive: cpu-passive {
153 temperature = <47000>;
158 cpu_active: cpu-active {
159 temperature = <67000>;
165 temperature = <87000>;
171 temperature = <107000>;
179 trip = <&cpu_passive>;
180 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
184 trip = <&cpu_active>;
185 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
190 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
197 compatible = "arm,armv7-timer";
198 interrupt-parent = <&gic>;
199 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
200 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
201 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
202 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
203 clock-frequency = <13000000>;
204 arm,cpu-registers-not-fw-configured;
207 topckgen: syscon@10000000 {
208 compatible = "mediatek,mt7623-topckgen",
209 "mediatek,mt2701-topckgen",
211 reg = <0 0x10000000 0 0x1000>;
215 infracfg: syscon@10001000 {
216 compatible = "mediatek,mt7623-infracfg",
217 "mediatek,mt2701-infracfg",
219 reg = <0 0x10001000 0 0x1000>;
224 pericfg: syscon@10003000 {
225 compatible = "mediatek,mt7623-pericfg",
226 "mediatek,mt2701-pericfg",
228 reg = <0 0x10003000 0 0x1000>;
233 pio: pinctrl@10005000 {
234 compatible = "mediatek,mt7623-pinctrl";
235 reg = <0 0x1000b000 0 0x1000>;
236 mediatek,pctl-regmap = <&syscfg_pctl_a>;
240 interrupt-controller;
241 interrupt-parent = <&gic>;
242 #interrupt-cells = <2>;
243 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
244 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
247 syscfg_pctl_a: syscfg@10005000 {
248 compatible = "mediatek,mt7623-pctl-a-syscfg", "syscon";
249 reg = <0 0x10005000 0 0x1000>;
252 scpsys: scpsys@10006000 {
253 compatible = "mediatek,mt7623-scpsys",
254 "mediatek,mt2701-scpsys",
256 #power-domain-cells = <1>;
257 reg = <0 0x10006000 0 0x1000>;
258 infracfg = <&infracfg>;
259 clocks = <&topckgen CLK_TOP_MM_SEL>,
260 <&topckgen CLK_TOP_MFG_SEL>,
261 <&topckgen CLK_TOP_ETHIF_SEL>;
262 clock-names = "mm", "mfg", "ethif";
265 watchdog: watchdog@10007000 {
266 compatible = "mediatek,mt7623-wdt",
267 "mediatek,mt6589-wdt";
268 reg = <0 0x10007000 0 0x100>;
271 timer: timer@10008000 {
272 compatible = "mediatek,mt7623-timer",
273 "mediatek,mt6577-timer";
274 reg = <0 0x10008000 0 0x80>;
275 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
276 clocks = <&system_clk>, <&rtc32k>;
277 clock-names = "system-clk", "rtc-clk";
280 pwrap: pwrap@1000d000 {
281 compatible = "mediatek,mt7623-pwrap",
282 "mediatek,mt2701-pwrap";
283 reg = <0 0x1000d000 0 0x1000>;
285 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
286 resets = <&infracfg MT2701_INFRA_PMIC_WRAP_RST>;
287 reset-names = "pwrap";
288 clocks = <&infracfg CLK_INFRA_PMICSPI>,
289 <&infracfg CLK_INFRA_PMICWRAP>;
290 clock-names = "spi", "wrap";
294 compatible = "mediatek,mt7623-cir";
295 reg = <0 0x10013000 0 0x1000>;
296 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>;
297 clocks = <&infracfg CLK_INFRA_IRRX>;
302 sysirq: interrupt-controller@10200100 {
303 compatible = "mediatek,mt7623-sysirq",
304 "mediatek,mt6577-sysirq";
305 interrupt-controller;
306 #interrupt-cells = <3>;
307 interrupt-parent = <&gic>;
308 reg = <0 0x10200100 0 0x1c>;
311 efuse: efuse@10206000 {
312 compatible = "mediatek,mt7623-efuse",
313 "mediatek,mt8173-efuse";
314 reg = <0 0x10206000 0 0x1000>;
315 #address-cells = <1>;
317 thermal_calibration_data: calib@424 {
322 apmixedsys: syscon@10209000 {
323 compatible = "mediatek,mt7623-apmixedsys",
324 "mediatek,mt2701-apmixedsys",
326 reg = <0 0x10209000 0 0x1000>;
331 compatible = "mediatek,mt7623-rng";
332 reg = <0 0x1020f000 0 0x1000>;
333 clocks = <&infracfg CLK_INFRA_TRNG>;
337 gic: interrupt-controller@10211000 {
338 compatible = "arm,cortex-a7-gic";
339 interrupt-controller;
340 #interrupt-cells = <3>;
341 interrupt-parent = <&gic>;
342 reg = <0 0x10211000 0 0x1000>,
343 <0 0x10212000 0 0x2000>,
344 <0 0x10214000 0 0x2000>,
345 <0 0x10216000 0 0x2000>;
348 auxadc: adc@11001000 {
349 compatible = "mediatek,mt7623-auxadc",
350 "mediatek,mt2701-auxadc";
351 reg = <0 0x11001000 0 0x1000>;
352 clocks = <&pericfg CLK_PERI_AUXADC>;
353 clock-names = "main";
354 #io-channel-cells = <1>;
357 uart0: serial@11002000 {
358 compatible = "mediatek,mt7623-uart",
359 "mediatek,mt6577-uart";
360 reg = <0 0x11002000 0 0x400>;
361 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
362 clocks = <&pericfg CLK_PERI_UART0_SEL>,
363 <&pericfg CLK_PERI_UART0>;
364 clock-names = "baud", "bus";
368 uart1: serial@11003000 {
369 compatible = "mediatek,mt7623-uart",
370 "mediatek,mt6577-uart";
371 reg = <0 0x11003000 0 0x400>;
372 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
373 clocks = <&pericfg CLK_PERI_UART1_SEL>,
374 <&pericfg CLK_PERI_UART1>;
375 clock-names = "baud", "bus";
379 uart2: serial@11004000 {
380 compatible = "mediatek,mt7623-uart",
381 "mediatek,mt6577-uart";
382 reg = <0 0x11004000 0 0x400>;
383 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
384 clocks = <&pericfg CLK_PERI_UART2_SEL>,
385 <&pericfg CLK_PERI_UART2>;
386 clock-names = "baud", "bus";
390 uart3: serial@11005000 {
391 compatible = "mediatek,mt7623-uart",
392 "mediatek,mt6577-uart";
393 reg = <0 0x11005000 0 0x400>;
394 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
395 clocks = <&pericfg CLK_PERI_UART3_SEL>,
396 <&pericfg CLK_PERI_UART3>;
397 clock-names = "baud", "bus";
402 compatible = "mediatek,mt7623-pwm";
403 reg = <0 0x11006000 0 0x1000>;
405 clocks = <&topckgen CLK_TOP_PWM_SEL>,
406 <&pericfg CLK_PERI_PWM>,
407 <&pericfg CLK_PERI_PWM1>,
408 <&pericfg CLK_PERI_PWM2>,
409 <&pericfg CLK_PERI_PWM3>,
410 <&pericfg CLK_PERI_PWM4>,
411 <&pericfg CLK_PERI_PWM5>;
412 clock-names = "top", "main", "pwm1", "pwm2",
413 "pwm3", "pwm4", "pwm5";
418 compatible = "mediatek,mt7623-i2c",
419 "mediatek,mt6577-i2c";
420 reg = <0 0x11007000 0 0x70>,
421 <0 0x11000200 0 0x80>;
422 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
424 clocks = <&pericfg CLK_PERI_I2C0>,
425 <&pericfg CLK_PERI_AP_DMA>;
426 clock-names = "main", "dma";
427 #address-cells = <1>;
433 compatible = "mediatek,mt7623-i2c",
434 "mediatek,mt6577-i2c";
435 reg = <0 0x11008000 0 0x70>,
436 <0 0x11000280 0 0x80>;
437 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_LOW>;
439 clocks = <&pericfg CLK_PERI_I2C1>,
440 <&pericfg CLK_PERI_AP_DMA>;
441 clock-names = "main", "dma";
442 #address-cells = <1>;
448 compatible = "mediatek,mt7623-i2c",
449 "mediatek,mt6577-i2c";
450 reg = <0 0x11009000 0 0x70>,
451 <0 0x11000300 0 0x80>;
452 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_LOW>;
454 clocks = <&pericfg CLK_PERI_I2C2>,
455 <&pericfg CLK_PERI_AP_DMA>;
456 clock-names = "main", "dma";
457 #address-cells = <1>;
463 compatible = "mediatek,mt7623-spi",
464 "mediatek,mt2701-spi";
465 #address-cells = <1>;
467 reg = <0 0x1100a000 0 0x100>;
468 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_LOW>;
469 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
470 <&topckgen CLK_TOP_SPI0_SEL>,
471 <&pericfg CLK_PERI_SPI0>;
472 clock-names = "parent-clk", "sel-clk", "spi-clk";
476 thermal: thermal@1100b000 {
477 #thermal-sensor-cells = <1>;
478 compatible = "mediatek,mt7623-thermal",
479 "mediatek,mt2701-thermal";
480 reg = <0 0x1100b000 0 0x1000>;
481 interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>;
482 clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>;
483 clock-names = "therm", "auxadc";
484 resets = <&pericfg MT2701_PERI_THERM_SW_RST>;
485 reset-names = "therm";
486 mediatek,auxadc = <&auxadc>;
487 mediatek,apmixedsys = <&apmixedsys>;
488 nvmem-cells = <&thermal_calibration_data>;
489 nvmem-cell-names = "calibration-data";
492 btif: serial@1100c000 {
493 compatible = "mediatek,mt7623-btif",
495 reg = <0 0x1100c000 0 0x1000>;
496 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_LOW>;
497 clocks = <&pericfg CLK_PERI_BTIF>;
498 clock-names = "main";
504 nandc: nfi@1100d000 {
505 compatible = "mediatek,mt7623-nfc",
506 "mediatek,mt2701-nfc";
507 reg = <0 0x1100d000 0 0x1000>;
508 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_LOW>;
509 power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>;
510 clocks = <&pericfg CLK_PERI_NFI>,
511 <&pericfg CLK_PERI_NFI_PAD>;
512 clock-names = "nfi_clk", "pad_clk";
515 #address-cells = <1>;
520 compatible = "mediatek,mt7623-ecc",
521 "mediatek,mt2701-ecc";
522 reg = <0 0x1100e000 0 0x1000>;
523 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_LOW>;
524 clocks = <&pericfg CLK_PERI_NFI_ECC>;
525 clock-names = "nfiecc_clk";
529 nor_flash: spi@11014000 {
530 compatible = "mediatek,mt7623-nor",
531 "mediatek,mt8173-nor";
532 reg = <0 0x11014000 0 0x1000>;
533 clocks = <&pericfg CLK_PERI_FLASH>,
534 <&topckgen CLK_TOP_FLASH_SEL>;
535 clock-names = "spi", "sf";
536 #address-cells = <1>;
542 compatible = "mediatek,mt7623-spi",
543 "mediatek,mt2701-spi";
544 #address-cells = <1>;
546 reg = <0 0x11016000 0 0x100>;
547 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
548 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
549 <&topckgen CLK_TOP_SPI1_SEL>,
550 <&pericfg CLK_PERI_SPI1>;
551 clock-names = "parent-clk", "sel-clk", "spi-clk";
556 compatible = "mediatek,mt7623-spi",
557 "mediatek,mt2701-spi";
558 #address-cells = <1>;
560 reg = <0 0x11017000 0 0x1000>;
561 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_LOW>;
562 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
563 <&topckgen CLK_TOP_SPI2_SEL>,
564 <&pericfg CLK_PERI_SPI2>;
565 clock-names = "parent-clk", "sel-clk", "spi-clk";
569 audsys: clock-controller@11220000 {
570 compatible = "mediatek,mt7623-audsys",
571 "mediatek,mt2701-audsys",
573 reg = <0 0x11220000 0 0x2000>;
576 afe: audio-controller {
577 compatible = "mediatek,mt7623-audio",
578 "mediatek,mt2701-audio";
579 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,
580 <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>;
581 interrupt-names = "afe", "asys";
582 power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>;
584 clocks = <&infracfg CLK_INFRA_AUDIO>,
585 <&topckgen CLK_TOP_AUD_MUX1_SEL>,
586 <&topckgen CLK_TOP_AUD_MUX2_SEL>,
587 <&topckgen CLK_TOP_AUD_48K_TIMING>,
588 <&topckgen CLK_TOP_AUD_44K_TIMING>,
589 <&topckgen CLK_TOP_AUD_K1_SRC_SEL>,
590 <&topckgen CLK_TOP_AUD_K2_SRC_SEL>,
591 <&topckgen CLK_TOP_AUD_K3_SRC_SEL>,
592 <&topckgen CLK_TOP_AUD_K4_SRC_SEL>,
593 <&topckgen CLK_TOP_AUD_K1_SRC_DIV>,
594 <&topckgen CLK_TOP_AUD_K2_SRC_DIV>,
595 <&topckgen CLK_TOP_AUD_K3_SRC_DIV>,
596 <&topckgen CLK_TOP_AUD_K4_SRC_DIV>,
597 <&topckgen CLK_TOP_AUD_I2S1_MCLK>,
598 <&topckgen CLK_TOP_AUD_I2S2_MCLK>,
599 <&topckgen CLK_TOP_AUD_I2S3_MCLK>,
600 <&topckgen CLK_TOP_AUD_I2S4_MCLK>,
601 <&audsys CLK_AUD_I2SO1>,
602 <&audsys CLK_AUD_I2SO2>,
603 <&audsys CLK_AUD_I2SO3>,
604 <&audsys CLK_AUD_I2SO4>,
605 <&audsys CLK_AUD_I2SIN1>,
606 <&audsys CLK_AUD_I2SIN2>,
607 <&audsys CLK_AUD_I2SIN3>,
608 <&audsys CLK_AUD_I2SIN4>,
609 <&audsys CLK_AUD_ASRCO1>,
610 <&audsys CLK_AUD_ASRCO2>,
611 <&audsys CLK_AUD_ASRCO3>,
612 <&audsys CLK_AUD_ASRCO4>,
613 <&audsys CLK_AUD_AFE>,
614 <&audsys CLK_AUD_AFE_CONN>,
615 <&audsys CLK_AUD_A1SYS>,
616 <&audsys CLK_AUD_A2SYS>,
617 <&audsys CLK_AUD_AFE_MRGIF>;
619 clock-names = "infra_sys_audio_clk",
620 "top_audio_mux1_sel",
621 "top_audio_mux2_sel",
622 "top_audio_a1sys_hp",
623 "top_audio_a2sys_hp",
654 assigned-clocks = <&topckgen CLK_TOP_AUD_MUX1_SEL>,
655 <&topckgen CLK_TOP_AUD_MUX2_SEL>,
656 <&topckgen CLK_TOP_AUD_MUX1_DIV>,
657 <&topckgen CLK_TOP_AUD_MUX2_DIV>;
658 assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL_98M>,
659 <&topckgen CLK_TOP_AUD2PLL_90M>;
660 assigned-clock-rates = <0>, <0>, <49152000>, <45158400>;
665 compatible = "mediatek,mt7623-mmc",
666 "mediatek,mt2701-mmc";
667 reg = <0 0x11230000 0 0x1000>;
668 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_LOW>;
669 clocks = <&pericfg CLK_PERI_MSDC30_0>,
670 <&topckgen CLK_TOP_MSDC30_0_SEL>;
671 clock-names = "source", "hclk";
676 compatible = "mediatek,mt7623-mmc",
677 "mediatek,mt2701-mmc";
678 reg = <0 0x11240000 0 0x1000>;
679 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_LOW>;
680 clocks = <&pericfg CLK_PERI_MSDC30_1>,
681 <&topckgen CLK_TOP_MSDC30_1_SEL>;
682 clock-names = "source", "hclk";
686 hifsys: syscon@1a000000 {
687 compatible = "mediatek,mt7623-hifsys",
688 "mediatek,mt2701-hifsys",
690 reg = <0 0x1a000000 0 0x1000>;
695 pcie: pcie@1a140000 {
696 compatible = "mediatek,mt7623-pcie";
698 reg = <0 0x1a140000 0 0x1000>, /* PCIe shared registers */
699 <0 0x1a142000 0 0x1000>, /* Port0 registers */
700 <0 0x1a143000 0 0x1000>, /* Port1 registers */
701 <0 0x1a144000 0 0x1000>; /* Port2 registers */
702 reg-names = "subsys", "port0", "port1", "port2";
703 #address-cells = <3>;
705 #interrupt-cells = <1>;
706 interrupt-map-mask = <0xf800 0 0 0>;
707 interrupt-map = <0x0000 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>,
708 <0x0800 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>,
709 <0x1000 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>;
710 clocks = <&topckgen CLK_TOP_ETHIF_SEL>,
711 <&hifsys CLK_HIFSYS_PCIE0>,
712 <&hifsys CLK_HIFSYS_PCIE1>,
713 <&hifsys CLK_HIFSYS_PCIE2>;
714 clock-names = "free_ck", "sys_ck0", "sys_ck1", "sys_ck2";
715 resets = <&hifsys MT2701_HIFSYS_PCIE0_RST>,
716 <&hifsys MT2701_HIFSYS_PCIE1_RST>,
717 <&hifsys MT2701_HIFSYS_PCIE2_RST>;
718 reset-names = "pcie-rst0", "pcie-rst1", "pcie-rst2";
719 phys = <&pcie0_port PHY_TYPE_PCIE>,
720 <&pcie1_port PHY_TYPE_PCIE>,
721 <&u3port1 PHY_TYPE_PCIE>;
722 phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2";
723 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
724 bus-range = <0x00 0xff>;
726 ranges = <0x81000000 0 0x1a160000 0 0x1a160000 0 0x00010000
727 0x83000000 0 0x60000000 0 0x60000000 0 0x10000000>;
730 reg = <0x0000 0 0 0 0>;
731 #address-cells = <3>;
733 #interrupt-cells = <1>;
734 interrupt-map-mask = <0 0 0 0>;
735 interrupt-map = <0 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>;
742 reg = <0x0800 0 0 0 0>;
743 #address-cells = <3>;
745 #interrupt-cells = <1>;
746 interrupt-map-mask = <0 0 0 0>;
747 interrupt-map = <0 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
754 reg = <0x1000 0 0 0 0>;
755 #address-cells = <3>;
757 #interrupt-cells = <1>;
758 interrupt-map-mask = <0 0 0 0>;
759 interrupt-map = <0 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>;
766 pcie0_phy: pcie-phy@1a149000 {
767 compatible = "mediatek,generic-tphy-v1";
768 reg = <0 0x1a149000 0 0x0700>;
769 #address-cells = <2>;
774 pcie0_port: pcie-phy@1a149900 {
775 reg = <0 0x1a149900 0 0x0700>;
783 pcie1_phy: pcie-phy@1a14a000 {
784 compatible = "mediatek,generic-tphy-v1";
785 reg = <0 0x1a14a000 0 0x0700>;
786 #address-cells = <2>;
791 pcie1_port: pcie-phy@1a14a900 {
792 reg = <0 0x1a14a900 0 0x0700>;
801 compatible = "mediatek,mt7623-xhci",
802 "mediatek,mt8173-xhci";
803 reg = <0 0x1a1c0000 0 0x1000>,
804 <0 0x1a1c4700 0 0x0100>;
805 reg-names = "mac", "ippc";
806 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_LOW>;
807 clocks = <&hifsys CLK_HIFSYS_USB0PHY>,
808 <&topckgen CLK_TOP_ETHIF_SEL>;
809 clock-names = "sys_ck", "ref_ck";
810 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
811 phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>;
815 u3phy1: usb-phy@1a1c4000 {
816 compatible = "mediatek,mt7623-u3phy",
817 "mediatek,mt2701-u3phy";
818 reg = <0 0x1a1c4000 0 0x0700>;
819 #address-cells = <2>;
824 u2port0: usb-phy@1a1c4800 {
825 reg = <0 0x1a1c4800 0 0x0100>;
826 clocks = <&topckgen CLK_TOP_USB_PHY48M>;
832 u3port0: usb-phy@1a1c4900 {
833 reg = <0 0x1a1c4900 0 0x0700>;
842 compatible = "mediatek,mt7623-xhci",
843 "mediatek,mt8173-xhci";
844 reg = <0 0x1a240000 0 0x1000>,
845 <0 0x1a244700 0 0x0100>;
846 reg-names = "mac", "ippc";
847 interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_LOW>;
848 clocks = <&hifsys CLK_HIFSYS_USB1PHY>,
849 <&topckgen CLK_TOP_ETHIF_SEL>;
850 clock-names = "sys_ck", "ref_ck";
851 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
852 phys = <&u2port1 PHY_TYPE_USB2>, <&u3port1 PHY_TYPE_USB3>;
856 u3phy2: usb-phy@1a244000 {
857 compatible = "mediatek,mt7623-u3phy",
858 "mediatek,mt2701-u3phy";
859 reg = <0 0x1a244000 0 0x0700>;
860 #address-cells = <2>;
865 u2port1: usb-phy@1a244800 {
866 reg = <0 0x1a244800 0 0x0100>;
867 clocks = <&topckgen CLK_TOP_USB_PHY48M>;
873 u3port1: usb-phy@1a244900 {
874 reg = <0 0x1a244900 0 0x0700>;
882 ethsys: syscon@1b000000 {
883 compatible = "mediatek,mt7623-ethsys",
884 "mediatek,mt2701-ethsys",
886 reg = <0 0x1b000000 0 0x1000>;
891 hsdma: dma-controller@1b007000 {
892 compatible = "mediatek,mt7623-hsdma";
893 reg = <0 0x1b007000 0 0x1000>;
894 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>;
895 clocks = <ðsys CLK_ETHSYS_HSDMA>;
896 clock-names = "hsdma";
897 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
901 eth: ethernet@1b100000 {
902 compatible = "mediatek,mt7623-eth",
903 "mediatek,mt2701-eth",
905 reg = <0 0x1b100000 0 0x20000>;
906 interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_LOW>,
907 <GIC_SPI 199 IRQ_TYPE_LEVEL_LOW>,
908 <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>;
909 clocks = <&topckgen CLK_TOP_ETHIF_SEL>,
910 <ðsys CLK_ETHSYS_ESW>,
911 <ðsys CLK_ETHSYS_GP1>,
912 <ðsys CLK_ETHSYS_GP2>,
913 <&apmixedsys CLK_APMIXED_TRGPLL>;
914 clock-names = "ethif", "esw", "gp1", "gp2", "trgpll";
915 resets = <ðsys MT2701_ETHSYS_FE_RST>,
916 <ðsys MT2701_ETHSYS_GMAC_RST>,
917 <ðsys MT2701_ETHSYS_PPE_RST>;
918 reset-names = "fe", "gmac", "ppe";
919 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
920 mediatek,ethsys = <ðsys>;
921 mediatek,pctl = <&syscfg_pctl_a>;
922 #address-cells = <1>;
927 crypto: crypto@1b240000 {
928 compatible = "mediatek,eip97-crypto";
929 reg = <0 0x1b240000 0 0x20000>;
930 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>,
931 <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>,
932 <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>,
933 <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>,
934 <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>;
935 clocks = <ðsys CLK_ETHSYS_CRYPTO>;
936 clock-names = "cryp";
937 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
943 cir_pins_a:cir-default {
945 pinmux = <MT7623_PIN_46_IR_FUNC_IR>;
950 i2c0_pins_a: i2c0-default {
952 pinmux = <MT7623_PIN_75_SDA0_FUNC_SDA0>,
953 <MT7623_PIN_76_SCL0_FUNC_SCL0>;
958 i2c1_pins_a: i2c1-default {
960 pinmux = <MT7623_PIN_57_SDA1_FUNC_SDA1>,
961 <MT7623_PIN_58_SCL1_FUNC_SCL1>;
966 i2c1_pins_b: i2c1-alt {
968 pinmux = <MT7623_PIN_242_URTS2_FUNC_SCL1>,
969 <MT7623_PIN_243_UCTS2_FUNC_SDA1>;
974 i2c2_pins_a: i2c2-default {
976 pinmux = <MT7623_PIN_77_SDA2_FUNC_SDA2>,
977 <MT7623_PIN_78_SCL2_FUNC_SCL2>;
982 i2c2_pins_b: i2c2-alt {
984 pinmux = <MT7623_PIN_122_GPIO122_FUNC_SDA2>,
985 <MT7623_PIN_123_HTPLG_FUNC_SCL2>;
990 i2s0_pins_a: i2s0-default {
992 pinmux = <MT7623_PIN_49_I2S0_DATA_FUNC_I2S0_DATA>,
993 <MT7623_PIN_72_I2S0_DATA_IN_FUNC_I2S0_DATA_IN>,
994 <MT7623_PIN_73_I2S0_LRCK_FUNC_I2S0_LRCK>,
995 <MT7623_PIN_74_I2S0_BCK_FUNC_I2S0_BCK>,
996 <MT7623_PIN_126_I2S0_MCLK_FUNC_I2S0_MCLK>;
997 drive-strength = <MTK_DRIVE_12mA>;
1002 i2s1_pins_a: i2s1-default {
1004 pinmux = <MT7623_PIN_33_I2S1_DATA_FUNC_I2S1_DATA>,
1005 <MT7623_PIN_34_I2S1_DATA_IN_FUNC_I2S1_DATA_IN>,
1006 <MT7623_PIN_35_I2S1_BCK_FUNC_I2S1_BCK>,
1007 <MT7623_PIN_36_I2S1_LRCK_FUNC_I2S1_LRCK>,
1008 <MT7623_PIN_37_I2S1_MCLK_FUNC_I2S1_MCLK>;
1009 drive-strength = <MTK_DRIVE_12mA>;
1014 key_pins_a: keys-alt {
1016 pinmux = <MT7623_PIN_256_GPIO256_FUNC_GPIO256>,
1017 <MT7623_PIN_257_GPIO257_FUNC_GPIO257> ;
1022 led_pins_a: leds-alt {
1024 pinmux = <MT7623_PIN_239_EXT_SDIO0_FUNC_GPIO239>,
1025 <MT7623_PIN_240_EXT_XCS_FUNC_GPIO240>,
1026 <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>;
1030 mmc0_pins_default: mmc0default {
1032 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
1033 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
1034 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
1035 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
1036 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
1037 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
1038 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
1039 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
1040 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
1046 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
1051 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
1056 mmc0_pins_uhs: mmc0 {
1058 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
1059 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
1060 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
1061 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
1062 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
1063 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
1064 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
1065 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
1066 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
1068 drive-strength = <MTK_DRIVE_2mA>;
1069 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1073 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
1074 drive-strength = <MTK_DRIVE_2mA>;
1075 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
1079 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
1084 mmc1_pins_default: mmc1default {
1086 pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
1087 <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
1088 <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
1089 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
1090 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
1092 drive-strength = <MTK_DRIVE_4mA>;
1093 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1097 pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
1099 drive-strength = <MTK_DRIVE_4mA>;
1103 pinmux = <MT7623_PIN_29_EINT7_FUNC_MSDC1_WP>;
1109 pinmux = <MT7623_PIN_261_MSDC1_INS_FUNC_GPIO261>;
1114 mmc1_pins_uhs: mmc1 {
1116 pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
1117 <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
1118 <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
1119 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
1120 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
1122 drive-strength = <MTK_DRIVE_4mA>;
1123 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1127 pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
1128 drive-strength = <MTK_DRIVE_4mA>;
1129 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1133 nand_pins_default: nanddefault {
1135 pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>;
1136 drive-strength = <MTK_DRIVE_8mA>;
1137 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1141 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_NLD7>,
1142 <MT7623_PIN_112_MSDC0_DAT6_FUNC_NLD6>,
1143 <MT7623_PIN_114_MSDC0_DAT4_FUNC_NLD4>,
1144 <MT7623_PIN_118_MSDC0_DAT3_FUNC_NLD3>,
1145 <MT7623_PIN_121_MSDC0_DAT0_FUNC_NLD0>,
1146 <MT7623_PIN_120_MSDC0_DAT1_FUNC_NLD1>,
1147 <MT7623_PIN_113_MSDC0_DAT5_FUNC_NLD5>,
1148 <MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8>,
1149 <MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2>;
1151 drive-strength = <MTK_DRIVE_8mA>;
1156 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>;
1157 drive-strength = <MTK_DRIVE_8mA>;
1158 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1162 pcie_default: pcie_pin_default {
1164 pinmux = <MT7623_PIN_208_AUD_EXT_CK1_FUNC_PCIE0_PERST_N>,
1165 <MT7623_PIN_209_AUD_EXT_CK2_FUNC_PCIE1_PERST_N>;
1170 pwm_pins_a: pwm-default {
1172 pinmux = <MT7623_PIN_203_PWM0_FUNC_PWM0>,
1173 <MT7623_PIN_204_PWM1_FUNC_PWM1>,
1174 <MT7623_PIN_205_PWM2_FUNC_PWM2>,
1175 <MT7623_PIN_206_PWM3_FUNC_PWM3>,
1176 <MT7623_PIN_207_PWM4_FUNC_PWM4>;
1180 spi0_pins_a: spi0-default {
1182 pinmux = <MT7623_PIN_53_SPI0_CSN_FUNC_SPI0_CS>,
1183 <MT7623_PIN_54_SPI0_CK_FUNC_SPI0_CK>,
1184 <MT7623_PIN_55_SPI0_MI_FUNC_SPI0_MI>,
1185 <MT7623_PIN_56_SPI0_MO_FUNC_SPI0_MO>;
1190 spi1_pins_a: spi1-default {
1192 pinmux = <MT7623_PIN_7_SPI1_CSN_FUNC_SPI1_CS>,
1193 <MT7623_PIN_199_SPI1_CK_FUNC_SPI1_CK>,
1194 <MT7623_PIN_8_SPI1_MI_FUNC_SPI1_MI>,
1195 <MT7623_PIN_9_SPI1_MO_FUNC_SPI1_MO>;
1199 spi2_pins_a: spi2-default {
1201 pinmux = <MT7623_PIN_101_SPI2_CSN_FUNC_SPI2_CS>,
1202 <MT7623_PIN_104_SPI2_CK_FUNC_SPI2_CK>,
1203 <MT7623_PIN_102_SPI2_MI_FUNC_SPI2_MI>,
1204 <MT7623_PIN_103_SPI2_MO_FUNC_SPI2_MO>;
1208 uart0_pins_a: uart0-default {
1210 pinmux = <MT7623_PIN_79_URXD0_FUNC_URXD0>,
1211 <MT7623_PIN_80_UTXD0_FUNC_UTXD0>;
1215 uart1_pins_a: uart1-default {
1217 pinmux = <MT7623_PIN_81_URXD1_FUNC_URXD1>,
1218 <MT7623_PIN_82_UTXD1_FUNC_UTXD1>;
1222 uart2_pins_a: uart2-default {
1224 pinmux = <MT7623_PIN_14_GPIO14_FUNC_URXD2>,
1225 <MT7623_PIN_15_GPIO15_FUNC_UTXD2>;
1229 uart2_pins_b: uart2-alt {
1231 pinmux = <MT7623_PIN_200_URXD2_FUNC_URXD2>,
1232 <MT7623_PIN_201_UTXD2_FUNC_UTXD2>;