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>
6 * Ryder Lee <ryder.lee@mediatek.com>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/clock/mt2701-clk.h>
13 #include <dt-bindings/pinctrl/mt7623-pinfunc.h>
14 #include <dt-bindings/power/mt2701-power.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/phy/phy.h>
17 #include <dt-bindings/reset/mt2701-resets.h>
18 #include <dt-bindings/thermal/thermal.h>
21 compatible = "mediatek,mt7623";
22 interrupt-parent = <&sysirq>;
26 cpu_opp_table: opp-table {
27 compatible = "operating-points-v2";
31 opp-hz = /bits/ 64 <98000000>;
32 opp-microvolt = <1050000>;
36 opp-hz = /bits/ 64 <198000000>;
37 opp-microvolt = <1050000>;
41 opp-hz = /bits/ 64 <398000000>;
42 opp-microvolt = <1050000>;
46 opp-hz = /bits/ 64 <598000000>;
47 opp-microvolt = <1050000>;
51 opp-hz = /bits/ 64 <747500000>;
52 opp-microvolt = <1050000>;
56 opp-hz = /bits/ 64 <1040000000>;
57 opp-microvolt = <1150000>;
61 opp-hz = /bits/ 64 <1196000000>;
62 opp-microvolt = <1200000>;
66 opp-hz = /bits/ 64 <1300000000>;
67 opp-microvolt = <1300000>;
74 enable-method = "mediatek,mt6589-smp";
78 compatible = "arm,cortex-a7";
80 clocks = <&infracfg CLK_INFRA_CPUSEL>,
81 <&apmixedsys CLK_APMIXED_MAINPLL>;
82 clock-names = "cpu", "intermediate";
83 operating-points-v2 = <&cpu_opp_table>;
85 clock-frequency = <1300000000>;
90 compatible = "arm,cortex-a7";
92 clocks = <&infracfg CLK_INFRA_CPUSEL>,
93 <&apmixedsys CLK_APMIXED_MAINPLL>;
94 clock-names = "cpu", "intermediate";
95 operating-points-v2 = <&cpu_opp_table>;
97 clock-frequency = <1300000000>;
102 compatible = "arm,cortex-a7";
104 clocks = <&infracfg CLK_INFRA_CPUSEL>,
105 <&apmixedsys CLK_APMIXED_MAINPLL>;
106 clock-names = "cpu", "intermediate";
107 operating-points-v2 = <&cpu_opp_table>;
108 #cooling-cells = <2>;
109 clock-frequency = <1300000000>;
114 compatible = "arm,cortex-a7";
116 clocks = <&infracfg CLK_INFRA_CPUSEL>,
117 <&apmixedsys CLK_APMIXED_MAINPLL>;
118 clock-names = "cpu", "intermediate";
119 operating-points-v2 = <&cpu_opp_table>;
120 #cooling-cells = <2>;
121 clock-frequency = <1300000000>;
126 compatible = "arm,cortex-a7-pmu";
127 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_LOW>,
128 <GIC_SPI 5 IRQ_TYPE_LEVEL_LOW>,
129 <GIC_SPI 6 IRQ_TYPE_LEVEL_LOW>,
130 <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>;
131 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
134 system_clk: dummy13m {
135 compatible = "fixed-clock";
136 clock-frequency = <13000000>;
140 rtc32k: oscillator-1 {
141 compatible = "fixed-clock";
143 clock-frequency = <32000>;
144 clock-output-names = "rtc32k";
147 clk26m: oscillator-0 {
148 compatible = "fixed-clock";
150 clock-frequency = <26000000>;
151 clock-output-names = "clk26m";
155 cpu_thermal: cpu-thermal {
156 polling-delay-passive = <1000>;
157 polling-delay = <1000>;
159 thermal-sensors = <&thermal 0>;
162 cpu_passive: cpu-passive {
163 temperature = <47000>;
168 cpu_active: cpu-active {
169 temperature = <67000>;
175 temperature = <87000>;
181 temperature = <107000>;
189 trip = <&cpu_passive>;
190 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
191 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
192 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
193 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
197 trip = <&cpu_active>;
198 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
199 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
200 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
201 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
206 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
207 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
208 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
209 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
216 compatible = "arm,armv7-timer";
217 interrupt-parent = <&gic>;
218 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
219 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
220 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
221 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
222 clock-frequency = <13000000>;
223 arm,cpu-registers-not-fw-configured;
226 topckgen: syscon@10000000 {
227 compatible = "mediatek,mt7623-topckgen",
228 "mediatek,mt2701-topckgen",
230 reg = <0 0x10000000 0 0x1000>;
234 infracfg: syscon@10001000 {
235 compatible = "mediatek,mt7623-infracfg",
236 "mediatek,mt2701-infracfg",
238 reg = <0 0x10001000 0 0x1000>;
243 pericfg: syscon@10003000 {
244 compatible = "mediatek,mt7623-pericfg",
245 "mediatek,mt2701-pericfg",
247 reg = <0 0x10003000 0 0x1000>;
252 pio: pinctrl@10005000 {
253 compatible = "mediatek,mt7623-pinctrl";
254 reg = <0 0x1000b000 0 0x1000>;
255 mediatek,pctl-regmap = <&syscfg_pctl_a>;
259 interrupt-controller;
260 interrupt-parent = <&gic>;
261 #interrupt-cells = <2>;
262 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
263 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
266 syscfg_pctl_a: syscfg@10005000 {
267 compatible = "mediatek,mt7623-pctl-a-syscfg", "syscon";
268 reg = <0 0x10005000 0 0x1000>;
271 scpsys: power-controller@10006000 {
272 compatible = "mediatek,mt7623-scpsys",
273 "mediatek,mt2701-scpsys",
275 #power-domain-cells = <1>;
276 reg = <0 0x10006000 0 0x1000>;
277 infracfg = <&infracfg>;
278 clocks = <&topckgen CLK_TOP_MM_SEL>,
279 <&topckgen CLK_TOP_MFG_SEL>,
280 <&topckgen CLK_TOP_ETHIF_SEL>;
281 clock-names = "mm", "mfg", "ethif";
284 watchdog: watchdog@10007000 {
285 compatible = "mediatek,mt7623-wdt",
286 "mediatek,mt6589-wdt";
287 reg = <0 0x10007000 0 0x100>;
290 timer: timer@10008000 {
291 compatible = "mediatek,mt7623-timer",
292 "mediatek,mt6577-timer";
293 reg = <0 0x10008000 0 0x80>;
294 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
295 clocks = <&system_clk>, <&rtc32k>;
296 clock-names = "system-clk", "rtc-clk";
299 pwrap: pwrap@1000d000 {
300 compatible = "mediatek,mt7623-pwrap",
301 "mediatek,mt2701-pwrap";
302 reg = <0 0x1000d000 0 0x1000>;
304 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
305 resets = <&infracfg MT2701_INFRA_PMIC_WRAP_RST>;
306 reset-names = "pwrap";
307 clocks = <&infracfg CLK_INFRA_PMICSPI>,
308 <&infracfg CLK_INFRA_PMICWRAP>;
309 clock-names = "spi", "wrap";
313 compatible = "mediatek,mt7623-cir";
314 reg = <0 0x10013000 0 0x1000>;
315 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>;
316 clocks = <&infracfg CLK_INFRA_IRRX>;
321 sysirq: interrupt-controller@10200100 {
322 compatible = "mediatek,mt7623-sysirq",
323 "mediatek,mt6577-sysirq";
324 interrupt-controller;
325 #interrupt-cells = <3>;
326 interrupt-parent = <&gic>;
327 reg = <0 0x10200100 0 0x1c>;
330 efuse: efuse@10206000 {
331 compatible = "mediatek,mt7623-efuse",
332 "mediatek,mt8173-efuse";
333 reg = <0 0x10206000 0 0x1000>;
334 #address-cells = <1>;
336 thermal_calibration_data: calib@424 {
341 apmixedsys: syscon@10209000 {
342 compatible = "mediatek,mt7623-apmixedsys",
343 "mediatek,mt2701-apmixedsys",
345 reg = <0 0x10209000 0 0x1000>;
350 compatible = "mediatek,mt7623-rng";
351 reg = <0 0x1020f000 0 0x1000>;
352 clocks = <&infracfg CLK_INFRA_TRNG>;
356 gic: interrupt-controller@10211000 {
357 compatible = "arm,cortex-a7-gic";
358 interrupt-controller;
359 #interrupt-cells = <3>;
360 interrupt-parent = <&gic>;
361 reg = <0 0x10211000 0 0x1000>,
362 <0 0x10212000 0 0x2000>,
363 <0 0x10214000 0 0x2000>,
364 <0 0x10216000 0 0x2000>;
367 auxadc: adc@11001000 {
368 compatible = "mediatek,mt7623-auxadc",
369 "mediatek,mt2701-auxadc";
370 reg = <0 0x11001000 0 0x1000>;
371 clocks = <&pericfg CLK_PERI_AUXADC>;
372 clock-names = "main";
373 #io-channel-cells = <1>;
376 uart0: serial@11002000 {
377 compatible = "mediatek,mt7623-uart",
378 "mediatek,mt6577-uart";
379 reg = <0 0x11002000 0 0x400>;
380 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
381 clocks = <&pericfg CLK_PERI_UART0_SEL>,
382 <&pericfg CLK_PERI_UART0>;
383 clock-names = "baud", "bus";
387 uart1: serial@11003000 {
388 compatible = "mediatek,mt7623-uart",
389 "mediatek,mt6577-uart";
390 reg = <0 0x11003000 0 0x400>;
391 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
392 clocks = <&pericfg CLK_PERI_UART1_SEL>,
393 <&pericfg CLK_PERI_UART1>;
394 clock-names = "baud", "bus";
398 uart2: serial@11004000 {
399 compatible = "mediatek,mt7623-uart",
400 "mediatek,mt6577-uart";
401 reg = <0 0x11004000 0 0x400>;
402 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
403 clocks = <&pericfg CLK_PERI_UART2_SEL>,
404 <&pericfg CLK_PERI_UART2>;
405 clock-names = "baud", "bus";
409 uart3: serial@11005000 {
410 compatible = "mediatek,mt7623-uart",
411 "mediatek,mt6577-uart";
412 reg = <0 0x11005000 0 0x400>;
413 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
414 clocks = <&pericfg CLK_PERI_UART3_SEL>,
415 <&pericfg CLK_PERI_UART3>;
416 clock-names = "baud", "bus";
421 compatible = "mediatek,mt7623-pwm";
422 reg = <0 0x11006000 0 0x1000>;
424 clocks = <&topckgen CLK_TOP_PWM_SEL>,
425 <&pericfg CLK_PERI_PWM>,
426 <&pericfg CLK_PERI_PWM1>,
427 <&pericfg CLK_PERI_PWM2>,
428 <&pericfg CLK_PERI_PWM3>,
429 <&pericfg CLK_PERI_PWM4>,
430 <&pericfg CLK_PERI_PWM5>;
431 clock-names = "top", "main", "pwm1", "pwm2",
432 "pwm3", "pwm4", "pwm5";
437 compatible = "mediatek,mt7623-i2c",
438 "mediatek,mt6577-i2c";
439 reg = <0 0x11007000 0 0x70>,
440 <0 0x11000200 0 0x80>;
441 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
443 clocks = <&pericfg CLK_PERI_I2C0>,
444 <&pericfg CLK_PERI_AP_DMA>;
445 clock-names = "main", "dma";
446 #address-cells = <1>;
452 compatible = "mediatek,mt7623-i2c",
453 "mediatek,mt6577-i2c";
454 reg = <0 0x11008000 0 0x70>,
455 <0 0x11000280 0 0x80>;
456 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_LOW>;
458 clocks = <&pericfg CLK_PERI_I2C1>,
459 <&pericfg CLK_PERI_AP_DMA>;
460 clock-names = "main", "dma";
461 #address-cells = <1>;
467 compatible = "mediatek,mt7623-i2c",
468 "mediatek,mt6577-i2c";
469 reg = <0 0x11009000 0 0x70>,
470 <0 0x11000300 0 0x80>;
471 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_LOW>;
473 clocks = <&pericfg CLK_PERI_I2C2>,
474 <&pericfg CLK_PERI_AP_DMA>;
475 clock-names = "main", "dma";
476 #address-cells = <1>;
482 compatible = "mediatek,mt7623-spi",
483 "mediatek,mt2701-spi";
484 #address-cells = <1>;
486 reg = <0 0x1100a000 0 0x100>;
487 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_LOW>;
488 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
489 <&topckgen CLK_TOP_SPI0_SEL>,
490 <&pericfg CLK_PERI_SPI0>;
491 clock-names = "parent-clk", "sel-clk", "spi-clk";
495 thermal: thermal@1100b000 {
496 #thermal-sensor-cells = <1>;
497 compatible = "mediatek,mt7623-thermal",
498 "mediatek,mt2701-thermal";
499 reg = <0 0x1100b000 0 0x1000>;
500 interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>;
501 clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>;
502 clock-names = "therm", "auxadc";
503 resets = <&pericfg MT2701_PERI_THERM_SW_RST>;
504 reset-names = "therm";
505 mediatek,auxadc = <&auxadc>;
506 mediatek,apmixedsys = <&apmixedsys>;
507 nvmem-cells = <&thermal_calibration_data>;
508 nvmem-cell-names = "calibration-data";
511 btif: serial@1100c000 {
512 compatible = "mediatek,mt7623-btif",
514 reg = <0 0x1100c000 0 0x1000>;
515 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_LOW>;
516 clocks = <&pericfg CLK_PERI_BTIF>;
517 clock-names = "main";
523 nandc: nfi@1100d000 {
524 compatible = "mediatek,mt7623-nfc",
525 "mediatek,mt2701-nfc";
526 reg = <0 0x1100d000 0 0x1000>;
527 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_LOW>;
528 power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>;
529 clocks = <&pericfg CLK_PERI_NFI>,
530 <&pericfg CLK_PERI_NFI_PAD>;
531 clock-names = "nfi_clk", "pad_clk";
534 #address-cells = <1>;
539 compatible = "mediatek,mt7623-ecc",
540 "mediatek,mt2701-ecc";
541 reg = <0 0x1100e000 0 0x1000>;
542 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_LOW>;
543 clocks = <&pericfg CLK_PERI_NFI_ECC>;
544 clock-names = "nfiecc_clk";
548 nor_flash: spi@11014000 {
549 compatible = "mediatek,mt7623-nor",
550 "mediatek,mt8173-nor";
551 reg = <0 0x11014000 0 0x1000>;
552 clocks = <&pericfg CLK_PERI_FLASH>,
553 <&topckgen CLK_TOP_FLASH_SEL>;
554 clock-names = "spi", "sf";
555 #address-cells = <1>;
561 compatible = "mediatek,mt7623-spi",
562 "mediatek,mt2701-spi";
563 #address-cells = <1>;
565 reg = <0 0x11016000 0 0x100>;
566 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
567 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
568 <&topckgen CLK_TOP_SPI1_SEL>,
569 <&pericfg CLK_PERI_SPI1>;
570 clock-names = "parent-clk", "sel-clk", "spi-clk";
575 compatible = "mediatek,mt7623-spi",
576 "mediatek,mt2701-spi";
577 #address-cells = <1>;
579 reg = <0 0x11017000 0 0x1000>;
580 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_LOW>;
581 clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
582 <&topckgen CLK_TOP_SPI2_SEL>,
583 <&pericfg CLK_PERI_SPI2>;
584 clock-names = "parent-clk", "sel-clk", "spi-clk";
588 audsys: clock-controller@11220000 {
589 compatible = "mediatek,mt7623-audsys",
590 "mediatek,mt2701-audsys",
592 reg = <0 0x11220000 0 0x2000>;
595 afe: audio-controller {
596 compatible = "mediatek,mt7623-audio",
597 "mediatek,mt2701-audio";
598 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,
599 <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>;
600 interrupt-names = "afe", "asys";
601 power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>;
603 clocks = <&infracfg CLK_INFRA_AUDIO>,
604 <&topckgen CLK_TOP_AUD_MUX1_SEL>,
605 <&topckgen CLK_TOP_AUD_MUX2_SEL>,
606 <&topckgen CLK_TOP_AUD_48K_TIMING>,
607 <&topckgen CLK_TOP_AUD_44K_TIMING>,
608 <&topckgen CLK_TOP_AUD_K1_SRC_SEL>,
609 <&topckgen CLK_TOP_AUD_K2_SRC_SEL>,
610 <&topckgen CLK_TOP_AUD_K3_SRC_SEL>,
611 <&topckgen CLK_TOP_AUD_K4_SRC_SEL>,
612 <&topckgen CLK_TOP_AUD_K1_SRC_DIV>,
613 <&topckgen CLK_TOP_AUD_K2_SRC_DIV>,
614 <&topckgen CLK_TOP_AUD_K3_SRC_DIV>,
615 <&topckgen CLK_TOP_AUD_K4_SRC_DIV>,
616 <&topckgen CLK_TOP_AUD_I2S1_MCLK>,
617 <&topckgen CLK_TOP_AUD_I2S2_MCLK>,
618 <&topckgen CLK_TOP_AUD_I2S3_MCLK>,
619 <&topckgen CLK_TOP_AUD_I2S4_MCLK>,
620 <&audsys CLK_AUD_I2SO1>,
621 <&audsys CLK_AUD_I2SO2>,
622 <&audsys CLK_AUD_I2SO3>,
623 <&audsys CLK_AUD_I2SO4>,
624 <&audsys CLK_AUD_I2SIN1>,
625 <&audsys CLK_AUD_I2SIN2>,
626 <&audsys CLK_AUD_I2SIN3>,
627 <&audsys CLK_AUD_I2SIN4>,
628 <&audsys CLK_AUD_ASRCO1>,
629 <&audsys CLK_AUD_ASRCO2>,
630 <&audsys CLK_AUD_ASRCO3>,
631 <&audsys CLK_AUD_ASRCO4>,
632 <&audsys CLK_AUD_AFE>,
633 <&audsys CLK_AUD_AFE_CONN>,
634 <&audsys CLK_AUD_A1SYS>,
635 <&audsys CLK_AUD_A2SYS>,
636 <&audsys CLK_AUD_AFE_MRGIF>;
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",
673 assigned-clocks = <&topckgen CLK_TOP_AUD_MUX1_SEL>,
674 <&topckgen CLK_TOP_AUD_MUX2_SEL>,
675 <&topckgen CLK_TOP_AUD_MUX1_DIV>,
676 <&topckgen CLK_TOP_AUD_MUX2_DIV>;
677 assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL_98M>,
678 <&topckgen CLK_TOP_AUD2PLL_90M>;
679 assigned-clock-rates = <0>, <0>, <49152000>, <45158400>;
684 compatible = "mediatek,mt7623-mmc",
685 "mediatek,mt2701-mmc";
686 reg = <0 0x11230000 0 0x1000>;
687 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_LOW>;
688 clocks = <&pericfg CLK_PERI_MSDC30_0>,
689 <&topckgen CLK_TOP_MSDC30_0_SEL>;
690 clock-names = "source", "hclk";
695 compatible = "mediatek,mt7623-mmc",
696 "mediatek,mt2701-mmc";
697 reg = <0 0x11240000 0 0x1000>;
698 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_LOW>;
699 clocks = <&pericfg CLK_PERI_MSDC30_1>,
700 <&topckgen CLK_TOP_MSDC30_1_SEL>;
701 clock-names = "source", "hclk";
705 vdecsys: syscon@16000000 {
706 compatible = "mediatek,mt7623-vdecsys",
707 "mediatek,mt2701-vdecsys",
709 reg = <0 0x16000000 0 0x1000>;
713 hifsys: syscon@1a000000 {
714 compatible = "mediatek,mt7623-hifsys",
715 "mediatek,mt2701-hifsys",
717 reg = <0 0x1a000000 0 0x1000>;
722 pcie: pcie@1a140000 {
723 compatible = "mediatek,mt7623-pcie";
725 reg = <0 0x1a140000 0 0x1000>, /* PCIe shared registers */
726 <0 0x1a142000 0 0x1000>, /* Port0 registers */
727 <0 0x1a143000 0 0x1000>, /* Port1 registers */
728 <0 0x1a144000 0 0x1000>; /* Port2 registers */
729 reg-names = "subsys", "port0", "port1", "port2";
730 #address-cells = <3>;
732 #interrupt-cells = <1>;
733 interrupt-map-mask = <0xf800 0 0 0>;
734 interrupt-map = <0x0000 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>,
735 <0x0800 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>,
736 <0x1000 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>;
737 clocks = <&topckgen CLK_TOP_ETHIF_SEL>,
738 <&hifsys CLK_HIFSYS_PCIE0>,
739 <&hifsys CLK_HIFSYS_PCIE1>,
740 <&hifsys CLK_HIFSYS_PCIE2>;
741 clock-names = "free_ck", "sys_ck0", "sys_ck1", "sys_ck2";
742 resets = <&hifsys MT2701_HIFSYS_PCIE0_RST>,
743 <&hifsys MT2701_HIFSYS_PCIE1_RST>,
744 <&hifsys MT2701_HIFSYS_PCIE2_RST>;
745 reset-names = "pcie-rst0", "pcie-rst1", "pcie-rst2";
746 phys = <&pcie0_port PHY_TYPE_PCIE>,
747 <&pcie1_port PHY_TYPE_PCIE>,
748 <&u3port1 PHY_TYPE_PCIE>;
749 phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2";
750 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
751 bus-range = <0x00 0xff>;
753 ranges = <0x81000000 0 0x1a160000 0 0x1a160000 0 0x00010000
754 0x83000000 0 0x60000000 0 0x60000000 0 0x10000000>;
757 reg = <0x0000 0 0 0 0>;
758 #address-cells = <3>;
760 #interrupt-cells = <1>;
761 interrupt-map-mask = <0 0 0 0>;
762 interrupt-map = <0 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>;
768 reg = <0x0800 0 0 0 0>;
769 #address-cells = <3>;
771 #interrupt-cells = <1>;
772 interrupt-map-mask = <0 0 0 0>;
773 interrupt-map = <0 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>;
779 reg = <0x1000 0 0 0 0>;
780 #address-cells = <3>;
782 #interrupt-cells = <1>;
783 interrupt-map-mask = <0 0 0 0>;
784 interrupt-map = <0 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>;
790 pcie0_phy: pcie-phy@1a149000 {
791 compatible = "mediatek,generic-tphy-v1";
792 reg = <0 0x1a149000 0 0x0700>;
793 #address-cells = <2>;
798 pcie0_port: pcie-phy@1a149900 {
799 reg = <0 0x1a149900 0 0x0700>;
807 pcie1_phy: pcie-phy@1a14a000 {
808 compatible = "mediatek,generic-tphy-v1";
809 reg = <0 0x1a14a000 0 0x0700>;
810 #address-cells = <2>;
815 pcie1_port: pcie-phy@1a14a900 {
816 reg = <0 0x1a14a900 0 0x0700>;
825 compatible = "mediatek,mt7623-xhci",
826 "mediatek,mt8173-xhci";
827 reg = <0 0x1a1c0000 0 0x1000>,
828 <0 0x1a1c4700 0 0x0100>;
829 reg-names = "mac", "ippc";
830 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_LOW>;
831 clocks = <&hifsys CLK_HIFSYS_USB0PHY>,
832 <&topckgen CLK_TOP_ETHIF_SEL>;
833 clock-names = "sys_ck", "ref_ck";
834 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
835 phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>;
839 u3phy1: usb-phy@1a1c4000 {
840 compatible = "mediatek,mt7623-u3phy",
841 "mediatek,mt2701-u3phy";
842 reg = <0 0x1a1c4000 0 0x0700>;
843 #address-cells = <2>;
848 u2port0: usb-phy@1a1c4800 {
849 reg = <0 0x1a1c4800 0 0x0100>;
850 clocks = <&topckgen CLK_TOP_USB_PHY48M>;
856 u3port0: usb-phy@1a1c4900 {
857 reg = <0 0x1a1c4900 0 0x0700>;
866 compatible = "mediatek,mt7623-xhci",
867 "mediatek,mt8173-xhci";
868 reg = <0 0x1a240000 0 0x1000>,
869 <0 0x1a244700 0 0x0100>;
870 reg-names = "mac", "ippc";
871 interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_LOW>;
872 clocks = <&hifsys CLK_HIFSYS_USB1PHY>,
873 <&topckgen CLK_TOP_ETHIF_SEL>;
874 clock-names = "sys_ck", "ref_ck";
875 power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>;
876 phys = <&u2port1 PHY_TYPE_USB2>, <&u3port1 PHY_TYPE_USB3>;
880 u3phy2: usb-phy@1a244000 {
881 compatible = "mediatek,mt7623-u3phy",
882 "mediatek,mt2701-u3phy";
883 reg = <0 0x1a244000 0 0x0700>;
884 #address-cells = <2>;
889 u2port1: usb-phy@1a244800 {
890 reg = <0 0x1a244800 0 0x0100>;
891 clocks = <&topckgen CLK_TOP_USB_PHY48M>;
897 u3port1: usb-phy@1a244900 {
898 reg = <0 0x1a244900 0 0x0700>;
906 ethsys: syscon@1b000000 {
907 compatible = "mediatek,mt7623-ethsys",
908 "mediatek,mt2701-ethsys",
910 reg = <0 0x1b000000 0 0x1000>;
915 hsdma: dma-controller@1b007000 {
916 compatible = "mediatek,mt7623-hsdma";
917 reg = <0 0x1b007000 0 0x1000>;
918 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>;
919 clocks = <ðsys CLK_ETHSYS_HSDMA>;
920 clock-names = "hsdma";
921 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
925 eth: ethernet@1b100000 {
926 compatible = "mediatek,mt7623-eth",
927 "mediatek,mt2701-eth",
929 reg = <0 0x1b100000 0 0x20000>;
930 interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_LOW>,
931 <GIC_SPI 199 IRQ_TYPE_LEVEL_LOW>,
932 <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>;
933 clocks = <&topckgen CLK_TOP_ETHIF_SEL>,
934 <ðsys CLK_ETHSYS_ESW>,
935 <ðsys CLK_ETHSYS_GP1>,
936 <ðsys CLK_ETHSYS_GP2>,
937 <&apmixedsys CLK_APMIXED_TRGPLL>;
938 clock-names = "ethif", "esw", "gp1", "gp2", "trgpll";
939 resets = <ðsys MT2701_ETHSYS_FE_RST>,
940 <ðsys MT2701_ETHSYS_GMAC_RST>,
941 <ðsys MT2701_ETHSYS_PPE_RST>;
942 reset-names = "fe", "gmac", "ppe";
943 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
944 mediatek,ethsys = <ðsys>;
945 mediatek,pctl = <&syscfg_pctl_a>;
946 #address-cells = <1>;
951 crypto: crypto@1b240000 {
952 compatible = "mediatek,eip97-crypto";
953 reg = <0 0x1b240000 0 0x20000>;
954 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>,
955 <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>,
956 <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>,
957 <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>,
958 <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>;
959 clocks = <ðsys CLK_ETHSYS_CRYPTO>;
960 clock-names = "cryp";
961 power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
965 bdpsys: syscon@1c000000 {
966 compatible = "mediatek,mt7623-bdpsys",
967 "mediatek,mt2701-bdpsys",
969 reg = <0 0x1c000000 0 0x1000>;
975 cir_pins_a:cir-default {
977 pinmux = <MT7623_PIN_46_IR_FUNC_IR>;
982 i2c0_pins_a: i2c0-default {
984 pinmux = <MT7623_PIN_75_SDA0_FUNC_SDA0>,
985 <MT7623_PIN_76_SCL0_FUNC_SCL0>;
990 i2c1_pins_a: i2c1-default {
992 pinmux = <MT7623_PIN_57_SDA1_FUNC_SDA1>,
993 <MT7623_PIN_58_SCL1_FUNC_SCL1>;
998 i2c1_pins_b: i2c1-alt {
1000 pinmux = <MT7623_PIN_242_URTS2_FUNC_SCL1>,
1001 <MT7623_PIN_243_UCTS2_FUNC_SDA1>;
1006 i2c2_pins_a: i2c2-default {
1008 pinmux = <MT7623_PIN_77_SDA2_FUNC_SDA2>,
1009 <MT7623_PIN_78_SCL2_FUNC_SCL2>;
1014 i2c2_pins_b: i2c2-alt {
1016 pinmux = <MT7623_PIN_122_GPIO122_FUNC_SDA2>,
1017 <MT7623_PIN_123_HTPLG_FUNC_SCL2>;
1022 i2s0_pins_a: i2s0-default {
1024 pinmux = <MT7623_PIN_49_I2S0_DATA_FUNC_I2S0_DATA>,
1025 <MT7623_PIN_72_I2S0_DATA_IN_FUNC_I2S0_DATA_IN>,
1026 <MT7623_PIN_73_I2S0_LRCK_FUNC_I2S0_LRCK>,
1027 <MT7623_PIN_74_I2S0_BCK_FUNC_I2S0_BCK>,
1028 <MT7623_PIN_126_I2S0_MCLK_FUNC_I2S0_MCLK>;
1029 drive-strength = <MTK_DRIVE_12mA>;
1034 i2s1_pins_a: i2s1-default {
1036 pinmux = <MT7623_PIN_33_I2S1_DATA_FUNC_I2S1_DATA>,
1037 <MT7623_PIN_34_I2S1_DATA_IN_FUNC_I2S1_DATA_IN>,
1038 <MT7623_PIN_35_I2S1_BCK_FUNC_I2S1_BCK>,
1039 <MT7623_PIN_36_I2S1_LRCK_FUNC_I2S1_LRCK>,
1040 <MT7623_PIN_37_I2S1_MCLK_FUNC_I2S1_MCLK>;
1041 drive-strength = <MTK_DRIVE_12mA>;
1046 key_pins_a: keys-alt {
1048 pinmux = <MT7623_PIN_256_GPIO256_FUNC_GPIO256>,
1049 <MT7623_PIN_257_GPIO257_FUNC_GPIO257> ;
1054 led_pins_a: leds-alt {
1056 pinmux = <MT7623_PIN_239_EXT_SDIO0_FUNC_GPIO239>,
1057 <MT7623_PIN_240_EXT_XCS_FUNC_GPIO240>,
1058 <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>;
1062 mmc0_pins_default: mmc0default {
1064 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
1065 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
1066 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
1067 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
1068 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
1069 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
1070 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
1071 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
1072 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
1078 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
1083 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
1088 mmc0_pins_uhs: mmc0 {
1090 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>,
1091 <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>,
1092 <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>,
1093 <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>,
1094 <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>,
1095 <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>,
1096 <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>,
1097 <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>,
1098 <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>;
1100 drive-strength = <MTK_DRIVE_2mA>;
1101 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1105 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>;
1106 drive-strength = <MTK_DRIVE_2mA>;
1107 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
1111 pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>;
1116 mmc1_pins_default: mmc1default {
1118 pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
1119 <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
1120 <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
1121 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
1122 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
1124 drive-strength = <MTK_DRIVE_4mA>;
1125 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1129 pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
1131 drive-strength = <MTK_DRIVE_4mA>;
1135 pinmux = <MT7623_PIN_29_EINT7_FUNC_MSDC1_WP>;
1141 pinmux = <MT7623_PIN_261_MSDC1_INS_FUNC_GPIO261>;
1146 mmc1_pins_uhs: mmc1 {
1148 pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>,
1149 <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>,
1150 <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>,
1151 <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>,
1152 <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>;
1154 drive-strength = <MTK_DRIVE_4mA>;
1155 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1159 pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>;
1160 drive-strength = <MTK_DRIVE_4mA>;
1161 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1165 nand_pins_default: nanddefault {
1167 pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>;
1168 drive-strength = <MTK_DRIVE_8mA>;
1169 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1173 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_NLD7>,
1174 <MT7623_PIN_112_MSDC0_DAT6_FUNC_NLD6>,
1175 <MT7623_PIN_114_MSDC0_DAT4_FUNC_NLD4>,
1176 <MT7623_PIN_118_MSDC0_DAT3_FUNC_NLD3>,
1177 <MT7623_PIN_121_MSDC0_DAT0_FUNC_NLD0>,
1178 <MT7623_PIN_120_MSDC0_DAT1_FUNC_NLD1>,
1179 <MT7623_PIN_113_MSDC0_DAT5_FUNC_NLD5>,
1180 <MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8>,
1181 <MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2>;
1183 drive-strength = <MTK_DRIVE_8mA>;
1188 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>;
1189 drive-strength = <MTK_DRIVE_8mA>;
1190 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1194 pcie_default: pcie_pin_default {
1196 pinmux = <MT7623_PIN_208_AUD_EXT_CK1_FUNC_PCIE0_PERST_N>,
1197 <MT7623_PIN_209_AUD_EXT_CK2_FUNC_PCIE1_PERST_N>;
1202 pwm_pins_a: pwm-default {
1204 pinmux = <MT7623_PIN_203_PWM0_FUNC_PWM0>,
1205 <MT7623_PIN_204_PWM1_FUNC_PWM1>,
1206 <MT7623_PIN_205_PWM2_FUNC_PWM2>,
1207 <MT7623_PIN_206_PWM3_FUNC_PWM3>,
1208 <MT7623_PIN_207_PWM4_FUNC_PWM4>;
1212 spi0_pins_a: spi0-default {
1214 pinmux = <MT7623_PIN_53_SPI0_CSN_FUNC_SPI0_CS>,
1215 <MT7623_PIN_54_SPI0_CK_FUNC_SPI0_CK>,
1216 <MT7623_PIN_55_SPI0_MI_FUNC_SPI0_MI>,
1217 <MT7623_PIN_56_SPI0_MO_FUNC_SPI0_MO>;
1222 spi1_pins_a: spi1-default {
1224 pinmux = <MT7623_PIN_7_SPI1_CSN_FUNC_SPI1_CS>,
1225 <MT7623_PIN_199_SPI1_CK_FUNC_SPI1_CK>,
1226 <MT7623_PIN_8_SPI1_MI_FUNC_SPI1_MI>,
1227 <MT7623_PIN_9_SPI1_MO_FUNC_SPI1_MO>;
1231 spi2_pins_a: spi2-default {
1233 pinmux = <MT7623_PIN_101_SPI2_CSN_FUNC_SPI2_CS>,
1234 <MT7623_PIN_104_SPI2_CK_FUNC_SPI2_CK>,
1235 <MT7623_PIN_102_SPI2_MI_FUNC_SPI2_MI>,
1236 <MT7623_PIN_103_SPI2_MO_FUNC_SPI2_MO>;
1240 uart0_pins_a: uart0-default {
1242 pinmux = <MT7623_PIN_79_URXD0_FUNC_URXD0>,
1243 <MT7623_PIN_80_UTXD0_FUNC_UTXD0>;
1247 uart1_pins_a: uart1-default {
1249 pinmux = <MT7623_PIN_81_URXD1_FUNC_URXD1>,
1250 <MT7623_PIN_82_UTXD1_FUNC_UTXD1>;
1254 uart2_pins_a: uart2-default {
1256 pinmux = <MT7623_PIN_14_GPIO14_FUNC_URXD2>,
1257 <MT7623_PIN_15_GPIO15_FUNC_UTXD2>;
1261 uart2_pins_b: uart2-alt {
1263 pinmux = <MT7623_PIN_200_URXD2_FUNC_URXD2>,
1264 <MT7623_PIN_201_UTXD2_FUNC_UTXD2>;