1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (c) 2017-2018 MediaTek Inc. 4724ba675SRob Herring * Author: John Crispin <john@phrozen.org> 5724ba675SRob Herring * Sean Wang <sean.wang@mediatek.com> 6724ba675SRob Herring * Ryder Lee <ryder.lee@mediatek.com> 7724ba675SRob Herring * 8724ba675SRob Herring */ 9724ba675SRob Herring 10724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 11724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h> 12724ba675SRob Herring#include <dt-bindings/clock/mt2701-clk.h> 13724ba675SRob Herring#include <dt-bindings/pinctrl/mt7623-pinfunc.h> 14724ba675SRob Herring#include <dt-bindings/power/mt2701-power.h> 15724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 16724ba675SRob Herring#include <dt-bindings/phy/phy.h> 17724ba675SRob Herring#include <dt-bindings/reset/mt2701-resets.h> 18724ba675SRob Herring#include <dt-bindings/thermal/thermal.h> 19724ba675SRob Herring 20724ba675SRob Herring/ { 21724ba675SRob Herring compatible = "mediatek,mt7623"; 22724ba675SRob Herring interrupt-parent = <&sysirq>; 23724ba675SRob Herring #address-cells = <2>; 24724ba675SRob Herring #size-cells = <2>; 25724ba675SRob Herring 26724ba675SRob Herring cpu_opp_table: opp-table { 27724ba675SRob Herring compatible = "operating-points-v2"; 28724ba675SRob Herring opp-shared; 29724ba675SRob Herring 30724ba675SRob Herring opp-98000000 { 31724ba675SRob Herring opp-hz = /bits/ 64 <98000000>; 32724ba675SRob Herring opp-microvolt = <1050000>; 33724ba675SRob Herring }; 34724ba675SRob Herring 35724ba675SRob Herring opp-198000000 { 36724ba675SRob Herring opp-hz = /bits/ 64 <198000000>; 37724ba675SRob Herring opp-microvolt = <1050000>; 38724ba675SRob Herring }; 39724ba675SRob Herring 40724ba675SRob Herring opp-398000000 { 41724ba675SRob Herring opp-hz = /bits/ 64 <398000000>; 42724ba675SRob Herring opp-microvolt = <1050000>; 43724ba675SRob Herring }; 44724ba675SRob Herring 45724ba675SRob Herring opp-598000000 { 46724ba675SRob Herring opp-hz = /bits/ 64 <598000000>; 47724ba675SRob Herring opp-microvolt = <1050000>; 48724ba675SRob Herring }; 49724ba675SRob Herring 50724ba675SRob Herring opp-747500000 { 51724ba675SRob Herring opp-hz = /bits/ 64 <747500000>; 52724ba675SRob Herring opp-microvolt = <1050000>; 53724ba675SRob Herring }; 54724ba675SRob Herring 55724ba675SRob Herring opp-1040000000 { 56724ba675SRob Herring opp-hz = /bits/ 64 <1040000000>; 57724ba675SRob Herring opp-microvolt = <1150000>; 58724ba675SRob Herring }; 59724ba675SRob Herring 60724ba675SRob Herring opp-1196000000 { 61724ba675SRob Herring opp-hz = /bits/ 64 <1196000000>; 62724ba675SRob Herring opp-microvolt = <1200000>; 63724ba675SRob Herring }; 64724ba675SRob Herring 65724ba675SRob Herring opp-1300000000 { 66724ba675SRob Herring opp-hz = /bits/ 64 <1300000000>; 67724ba675SRob Herring opp-microvolt = <1300000>; 68724ba675SRob Herring }; 69724ba675SRob Herring }; 70724ba675SRob Herring 71724ba675SRob Herring cpus { 72724ba675SRob Herring #address-cells = <1>; 73724ba675SRob Herring #size-cells = <0>; 74724ba675SRob Herring enable-method = "mediatek,mt6589-smp"; 75724ba675SRob Herring 76724ba675SRob Herring cpu0: cpu@0 { 77724ba675SRob Herring device_type = "cpu"; 78724ba675SRob Herring compatible = "arm,cortex-a7"; 79724ba675SRob Herring reg = <0x0>; 80724ba675SRob Herring clocks = <&infracfg CLK_INFRA_CPUSEL>, 81724ba675SRob Herring <&apmixedsys CLK_APMIXED_MAINPLL>; 82724ba675SRob Herring clock-names = "cpu", "intermediate"; 83724ba675SRob Herring operating-points-v2 = <&cpu_opp_table>; 84724ba675SRob Herring #cooling-cells = <2>; 85724ba675SRob Herring clock-frequency = <1300000000>; 86724ba675SRob Herring }; 87724ba675SRob Herring 88724ba675SRob Herring cpu1: cpu@1 { 89724ba675SRob Herring device_type = "cpu"; 90724ba675SRob Herring compatible = "arm,cortex-a7"; 91724ba675SRob Herring reg = <0x1>; 92724ba675SRob Herring clocks = <&infracfg CLK_INFRA_CPUSEL>, 93724ba675SRob Herring <&apmixedsys CLK_APMIXED_MAINPLL>; 94724ba675SRob Herring clock-names = "cpu", "intermediate"; 95724ba675SRob Herring operating-points-v2 = <&cpu_opp_table>; 96724ba675SRob Herring #cooling-cells = <2>; 97724ba675SRob Herring clock-frequency = <1300000000>; 98724ba675SRob Herring }; 99724ba675SRob Herring 100724ba675SRob Herring cpu2: cpu@2 { 101724ba675SRob Herring device_type = "cpu"; 102724ba675SRob Herring compatible = "arm,cortex-a7"; 103724ba675SRob Herring reg = <0x2>; 104724ba675SRob Herring clocks = <&infracfg CLK_INFRA_CPUSEL>, 105724ba675SRob Herring <&apmixedsys CLK_APMIXED_MAINPLL>; 106724ba675SRob Herring clock-names = "cpu", "intermediate"; 107724ba675SRob Herring operating-points-v2 = <&cpu_opp_table>; 108724ba675SRob Herring #cooling-cells = <2>; 109724ba675SRob Herring clock-frequency = <1300000000>; 110724ba675SRob Herring }; 111724ba675SRob Herring 112724ba675SRob Herring cpu3: cpu@3 { 113724ba675SRob Herring device_type = "cpu"; 114724ba675SRob Herring compatible = "arm,cortex-a7"; 115724ba675SRob Herring reg = <0x3>; 116724ba675SRob Herring clocks = <&infracfg CLK_INFRA_CPUSEL>, 117724ba675SRob Herring <&apmixedsys CLK_APMIXED_MAINPLL>; 118724ba675SRob Herring clock-names = "cpu", "intermediate"; 119724ba675SRob Herring operating-points-v2 = <&cpu_opp_table>; 120724ba675SRob Herring #cooling-cells = <2>; 121724ba675SRob Herring clock-frequency = <1300000000>; 122724ba675SRob Herring }; 123724ba675SRob Herring }; 124724ba675SRob Herring 125724ba675SRob Herring pmu { 126724ba675SRob Herring compatible = "arm,cortex-a7-pmu"; 127724ba675SRob Herring interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_LOW>, 128724ba675SRob Herring <GIC_SPI 5 IRQ_TYPE_LEVEL_LOW>, 129724ba675SRob Herring <GIC_SPI 6 IRQ_TYPE_LEVEL_LOW>, 130724ba675SRob Herring <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>; 131724ba675SRob Herring interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 132724ba675SRob Herring }; 133724ba675SRob Herring 134724ba675SRob Herring system_clk: dummy13m { 135724ba675SRob Herring compatible = "fixed-clock"; 136724ba675SRob Herring clock-frequency = <13000000>; 137724ba675SRob Herring #clock-cells = <0>; 138724ba675SRob Herring }; 139724ba675SRob Herring 140724ba675SRob Herring rtc32k: oscillator-1 { 141724ba675SRob Herring compatible = "fixed-clock"; 142724ba675SRob Herring #clock-cells = <0>; 143724ba675SRob Herring clock-frequency = <32000>; 144724ba675SRob Herring clock-output-names = "rtc32k"; 145724ba675SRob Herring }; 146724ba675SRob Herring 147724ba675SRob Herring clk26m: oscillator-0 { 148724ba675SRob Herring compatible = "fixed-clock"; 149724ba675SRob Herring #clock-cells = <0>; 150724ba675SRob Herring clock-frequency = <26000000>; 151724ba675SRob Herring clock-output-names = "clk26m"; 152724ba675SRob Herring }; 153724ba675SRob Herring 154724ba675SRob Herring thermal-zones { 155724ba675SRob Herring cpu_thermal: cpu-thermal { 156724ba675SRob Herring polling-delay-passive = <1000>; 157724ba675SRob Herring polling-delay = <1000>; 158724ba675SRob Herring 159724ba675SRob Herring thermal-sensors = <&thermal 0>; 160724ba675SRob Herring 161724ba675SRob Herring trips { 162724ba675SRob Herring cpu_passive: cpu-passive { 163724ba675SRob Herring temperature = <57000>; 164724ba675SRob Herring hysteresis = <2000>; 165724ba675SRob Herring type = "passive"; 166724ba675SRob Herring }; 167724ba675SRob Herring 168724ba675SRob Herring cpu_active: cpu-active { 169724ba675SRob Herring temperature = <67000>; 170724ba675SRob Herring hysteresis = <2000>; 171724ba675SRob Herring type = "active"; 172724ba675SRob Herring }; 173724ba675SRob Herring 174724ba675SRob Herring cpu_hot: cpu-hot { 175724ba675SRob Herring temperature = <87000>; 176724ba675SRob Herring hysteresis = <2000>; 177724ba675SRob Herring type = "hot"; 178724ba675SRob Herring }; 179724ba675SRob Herring 180724ba675SRob Herring cpu-crit { 181724ba675SRob Herring temperature = <107000>; 182724ba675SRob Herring hysteresis = <2000>; 183724ba675SRob Herring type = "critical"; 184724ba675SRob Herring }; 185724ba675SRob Herring }; 186724ba675SRob Herring 187724ba675SRob Herring cooling-maps { 188724ba675SRob Herring map0 { 189724ba675SRob Herring trip = <&cpu_passive>; 190724ba675SRob Herring cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 191724ba675SRob Herring <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 192724ba675SRob Herring <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 193724ba675SRob Herring <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 194724ba675SRob Herring }; 195724ba675SRob Herring 196724ba675SRob Herring map1 { 197724ba675SRob Herring trip = <&cpu_active>; 198724ba675SRob Herring cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 199724ba675SRob Herring <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 200724ba675SRob Herring <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 201724ba675SRob Herring <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 202724ba675SRob Herring }; 203724ba675SRob Herring 204724ba675SRob Herring map2 { 205724ba675SRob Herring trip = <&cpu_hot>; 206724ba675SRob Herring cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 207724ba675SRob Herring <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 208724ba675SRob Herring <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 209724ba675SRob Herring <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 210724ba675SRob Herring }; 211724ba675SRob Herring }; 212724ba675SRob Herring }; 213724ba675SRob Herring }; 214724ba675SRob Herring 215724ba675SRob Herring timer { 216724ba675SRob Herring compatible = "arm,armv7-timer"; 217724ba675SRob Herring interrupt-parent = <&gic>; 218724ba675SRob Herring interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 219724ba675SRob Herring <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 220724ba675SRob Herring <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 221724ba675SRob Herring <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 222724ba675SRob Herring clock-frequency = <13000000>; 223724ba675SRob Herring arm,cpu-registers-not-fw-configured; 224724ba675SRob Herring }; 225724ba675SRob Herring 226724ba675SRob Herring topckgen: syscon@10000000 { 227724ba675SRob Herring compatible = "mediatek,mt7623-topckgen", 228724ba675SRob Herring "mediatek,mt2701-topckgen", 229724ba675SRob Herring "syscon"; 230724ba675SRob Herring reg = <0 0x10000000 0 0x1000>; 231724ba675SRob Herring #clock-cells = <1>; 232724ba675SRob Herring }; 233724ba675SRob Herring 234724ba675SRob Herring infracfg: syscon@10001000 { 235724ba675SRob Herring compatible = "mediatek,mt7623-infracfg", 236724ba675SRob Herring "mediatek,mt2701-infracfg", 237724ba675SRob Herring "syscon"; 238724ba675SRob Herring reg = <0 0x10001000 0 0x1000>; 239724ba675SRob Herring #clock-cells = <1>; 240724ba675SRob Herring #reset-cells = <1>; 241724ba675SRob Herring }; 242724ba675SRob Herring 243724ba675SRob Herring pericfg: syscon@10003000 { 244724ba675SRob Herring compatible = "mediatek,mt7623-pericfg", 245724ba675SRob Herring "mediatek,mt2701-pericfg", 246724ba675SRob Herring "syscon"; 247724ba675SRob Herring reg = <0 0x10003000 0 0x1000>; 248724ba675SRob Herring #clock-cells = <1>; 249724ba675SRob Herring #reset-cells = <1>; 250724ba675SRob Herring }; 251724ba675SRob Herring 252724ba675SRob Herring pio: pinctrl@10005000 { 253724ba675SRob Herring compatible = "mediatek,mt7623-pinctrl"; 254724ba675SRob Herring reg = <0 0x1000b000 0 0x1000>; 255724ba675SRob Herring mediatek,pctl-regmap = <&syscfg_pctl_a>; 256724ba675SRob Herring gpio-controller; 257724ba675SRob Herring #gpio-cells = <2>; 258724ba675SRob Herring interrupt-controller; 259724ba675SRob Herring interrupt-parent = <&gic>; 260724ba675SRob Herring #interrupt-cells = <2>; 261724ba675SRob Herring interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, 262724ba675SRob Herring <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; 263724ba675SRob Herring }; 264724ba675SRob Herring 265724ba675SRob Herring syscfg_pctl_a: syscfg@10005000 { 266724ba675SRob Herring compatible = "mediatek,mt7623-pctl-a-syscfg", "syscon"; 267724ba675SRob Herring reg = <0 0x10005000 0 0x1000>; 268724ba675SRob Herring }; 269724ba675SRob Herring 270724ba675SRob Herring scpsys: power-controller@10006000 { 271724ba675SRob Herring compatible = "mediatek,mt7623-scpsys", 272724ba675SRob Herring "mediatek,mt2701-scpsys", 273724ba675SRob Herring "syscon"; 274724ba675SRob Herring #power-domain-cells = <1>; 275724ba675SRob Herring reg = <0 0x10006000 0 0x1000>; 276724ba675SRob Herring infracfg = <&infracfg>; 277724ba675SRob Herring clocks = <&topckgen CLK_TOP_MM_SEL>, 278724ba675SRob Herring <&topckgen CLK_TOP_MFG_SEL>, 279724ba675SRob Herring <&topckgen CLK_TOP_ETHIF_SEL>; 280724ba675SRob Herring clock-names = "mm", "mfg", "ethif"; 281724ba675SRob Herring }; 282724ba675SRob Herring 283724ba675SRob Herring watchdog: watchdog@10007000 { 284724ba675SRob Herring compatible = "mediatek,mt7623-wdt", 285724ba675SRob Herring "mediatek,mt6589-wdt"; 286724ba675SRob Herring reg = <0 0x10007000 0 0x100>; 287724ba675SRob Herring }; 288724ba675SRob Herring 289724ba675SRob Herring timer: timer@10008000 { 290724ba675SRob Herring compatible = "mediatek,mt7623-timer", 291724ba675SRob Herring "mediatek,mt6577-timer"; 292724ba675SRob Herring reg = <0 0x10008000 0 0x80>; 293724ba675SRob Herring interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>; 294724ba675SRob Herring clocks = <&system_clk>, <&rtc32k>; 295724ba675SRob Herring clock-names = "system-clk", "rtc-clk"; 296724ba675SRob Herring }; 297724ba675SRob Herring 298724ba675SRob Herring pwrap: pwrap@1000d000 { 299724ba675SRob Herring compatible = "mediatek,mt7623-pwrap", 300724ba675SRob Herring "mediatek,mt2701-pwrap"; 301724ba675SRob Herring reg = <0 0x1000d000 0 0x1000>; 302724ba675SRob Herring reg-names = "pwrap"; 303724ba675SRob Herring interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>; 304724ba675SRob Herring resets = <&infracfg MT2701_INFRA_PMIC_WRAP_RST>; 305724ba675SRob Herring reset-names = "pwrap"; 306724ba675SRob Herring clocks = <&infracfg CLK_INFRA_PMICSPI>, 307724ba675SRob Herring <&infracfg CLK_INFRA_PMICWRAP>; 308724ba675SRob Herring clock-names = "spi", "wrap"; 309724ba675SRob Herring }; 310724ba675SRob Herring 311724ba675SRob Herring cir: cir@10013000 { 312724ba675SRob Herring compatible = "mediatek,mt7623-cir"; 313724ba675SRob Herring reg = <0 0x10013000 0 0x1000>; 314724ba675SRob Herring interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>; 315724ba675SRob Herring clocks = <&infracfg CLK_INFRA_IRRX>; 316724ba675SRob Herring clock-names = "clk"; 317724ba675SRob Herring status = "disabled"; 318724ba675SRob Herring }; 319724ba675SRob Herring 320724ba675SRob Herring sysirq: interrupt-controller@10200100 { 321724ba675SRob Herring compatible = "mediatek,mt7623-sysirq", 322724ba675SRob Herring "mediatek,mt6577-sysirq"; 323724ba675SRob Herring interrupt-controller; 324724ba675SRob Herring #interrupt-cells = <3>; 325724ba675SRob Herring interrupt-parent = <&gic>; 326724ba675SRob Herring reg = <0 0x10200100 0 0x1c>; 327724ba675SRob Herring }; 328724ba675SRob Herring 329724ba675SRob Herring efuse: efuse@10206000 { 330724ba675SRob Herring compatible = "mediatek,mt7623-efuse", 331724ba675SRob Herring "mediatek,mt8173-efuse"; 332724ba675SRob Herring reg = <0 0x10206000 0 0x1000>; 333724ba675SRob Herring #address-cells = <1>; 334724ba675SRob Herring #size-cells = <1>; 335724ba675SRob Herring thermal_calibration_data: calib@424 { 336724ba675SRob Herring reg = <0x424 0xc>; 337724ba675SRob Herring }; 338724ba675SRob Herring }; 339724ba675SRob Herring 340724ba675SRob Herring apmixedsys: syscon@10209000 { 341724ba675SRob Herring compatible = "mediatek,mt7623-apmixedsys", 342724ba675SRob Herring "mediatek,mt2701-apmixedsys", 343724ba675SRob Herring "syscon"; 344724ba675SRob Herring reg = <0 0x10209000 0 0x1000>; 345724ba675SRob Herring #clock-cells = <1>; 346724ba675SRob Herring }; 347724ba675SRob Herring 348724ba675SRob Herring rng: rng@1020f000 { 349724ba675SRob Herring compatible = "mediatek,mt7623-rng"; 350724ba675SRob Herring reg = <0 0x1020f000 0 0x1000>; 351724ba675SRob Herring clocks = <&infracfg CLK_INFRA_TRNG>; 352724ba675SRob Herring clock-names = "rng"; 353724ba675SRob Herring }; 354724ba675SRob Herring 355724ba675SRob Herring gic: interrupt-controller@10211000 { 356724ba675SRob Herring compatible = "arm,cortex-a7-gic"; 357724ba675SRob Herring interrupt-controller; 358724ba675SRob Herring #interrupt-cells = <3>; 359724ba675SRob Herring interrupt-parent = <&gic>; 360724ba675SRob Herring reg = <0 0x10211000 0 0x1000>, 361724ba675SRob Herring <0 0x10212000 0 0x2000>, 362724ba675SRob Herring <0 0x10214000 0 0x2000>, 363724ba675SRob Herring <0 0x10216000 0 0x2000>; 364724ba675SRob Herring }; 365724ba675SRob Herring 366724ba675SRob Herring auxadc: adc@11001000 { 367724ba675SRob Herring compatible = "mediatek,mt7623-auxadc", 368724ba675SRob Herring "mediatek,mt2701-auxadc"; 369724ba675SRob Herring reg = <0 0x11001000 0 0x1000>; 370724ba675SRob Herring clocks = <&pericfg CLK_PERI_AUXADC>; 371724ba675SRob Herring clock-names = "main"; 372724ba675SRob Herring #io-channel-cells = <1>; 373724ba675SRob Herring }; 374724ba675SRob Herring 375724ba675SRob Herring uart0: serial@11002000 { 376724ba675SRob Herring compatible = "mediatek,mt7623-uart", 377724ba675SRob Herring "mediatek,mt6577-uart"; 378724ba675SRob Herring reg = <0 0x11002000 0 0x400>; 379724ba675SRob Herring interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>; 380724ba675SRob Herring clocks = <&pericfg CLK_PERI_UART0_SEL>, 381724ba675SRob Herring <&pericfg CLK_PERI_UART0>; 382724ba675SRob Herring clock-names = "baud", "bus"; 383724ba675SRob Herring status = "disabled"; 384724ba675SRob Herring }; 385724ba675SRob Herring 386724ba675SRob Herring uart1: serial@11003000 { 387724ba675SRob Herring compatible = "mediatek,mt7623-uart", 388724ba675SRob Herring "mediatek,mt6577-uart"; 389724ba675SRob Herring reg = <0 0x11003000 0 0x400>; 390724ba675SRob Herring interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>; 391724ba675SRob Herring clocks = <&pericfg CLK_PERI_UART1_SEL>, 392724ba675SRob Herring <&pericfg CLK_PERI_UART1>; 393724ba675SRob Herring clock-names = "baud", "bus"; 394724ba675SRob Herring status = "disabled"; 395724ba675SRob Herring }; 396724ba675SRob Herring 397724ba675SRob Herring uart2: serial@11004000 { 398724ba675SRob Herring compatible = "mediatek,mt7623-uart", 399724ba675SRob Herring "mediatek,mt6577-uart"; 400724ba675SRob Herring reg = <0 0x11004000 0 0x400>; 401724ba675SRob Herring interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>; 402724ba675SRob Herring clocks = <&pericfg CLK_PERI_UART2_SEL>, 403724ba675SRob Herring <&pericfg CLK_PERI_UART2>; 404724ba675SRob Herring clock-names = "baud", "bus"; 405724ba675SRob Herring status = "disabled"; 406724ba675SRob Herring }; 407724ba675SRob Herring 408724ba675SRob Herring uart3: serial@11005000 { 409724ba675SRob Herring compatible = "mediatek,mt7623-uart", 410724ba675SRob Herring "mediatek,mt6577-uart"; 411724ba675SRob Herring reg = <0 0x11005000 0 0x400>; 412724ba675SRob Herring interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>; 413724ba675SRob Herring clocks = <&pericfg CLK_PERI_UART3_SEL>, 414724ba675SRob Herring <&pericfg CLK_PERI_UART3>; 415724ba675SRob Herring clock-names = "baud", "bus"; 416724ba675SRob Herring status = "disabled"; 417724ba675SRob Herring }; 418724ba675SRob Herring 419724ba675SRob Herring pwm: pwm@11006000 { 420724ba675SRob Herring compatible = "mediatek,mt7623-pwm"; 421724ba675SRob Herring reg = <0 0x11006000 0 0x1000>; 422724ba675SRob Herring #pwm-cells = <2>; 423724ba675SRob Herring clocks = <&topckgen CLK_TOP_PWM_SEL>, 424724ba675SRob Herring <&pericfg CLK_PERI_PWM>, 425724ba675SRob Herring <&pericfg CLK_PERI_PWM1>, 426724ba675SRob Herring <&pericfg CLK_PERI_PWM2>, 427724ba675SRob Herring <&pericfg CLK_PERI_PWM3>, 428724ba675SRob Herring <&pericfg CLK_PERI_PWM4>, 429724ba675SRob Herring <&pericfg CLK_PERI_PWM5>; 430724ba675SRob Herring clock-names = "top", "main", "pwm1", "pwm2", 431724ba675SRob Herring "pwm3", "pwm4", "pwm5"; 432724ba675SRob Herring status = "disabled"; 433724ba675SRob Herring }; 434724ba675SRob Herring 435724ba675SRob Herring i2c0: i2c@11007000 { 436724ba675SRob Herring compatible = "mediatek,mt7623-i2c", 437724ba675SRob Herring "mediatek,mt6577-i2c"; 438724ba675SRob Herring reg = <0 0x11007000 0 0x70>, 439724ba675SRob Herring <0 0x11000200 0 0x80>; 440724ba675SRob Herring interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>; 441724ba675SRob Herring clock-div = <16>; 442724ba675SRob Herring clocks = <&pericfg CLK_PERI_I2C0>, 443724ba675SRob Herring <&pericfg CLK_PERI_AP_DMA>; 444724ba675SRob Herring clock-names = "main", "dma"; 445724ba675SRob Herring #address-cells = <1>; 446724ba675SRob Herring #size-cells = <0>; 447724ba675SRob Herring status = "disabled"; 448724ba675SRob Herring }; 449724ba675SRob Herring 450724ba675SRob Herring i2c1: i2c@11008000 { 451724ba675SRob Herring compatible = "mediatek,mt7623-i2c", 452724ba675SRob Herring "mediatek,mt6577-i2c"; 453724ba675SRob Herring reg = <0 0x11008000 0 0x70>, 454724ba675SRob Herring <0 0x11000280 0 0x80>; 455724ba675SRob Herring interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_LOW>; 456724ba675SRob Herring clock-div = <16>; 457724ba675SRob Herring clocks = <&pericfg CLK_PERI_I2C1>, 458724ba675SRob Herring <&pericfg CLK_PERI_AP_DMA>; 459724ba675SRob Herring clock-names = "main", "dma"; 460724ba675SRob Herring #address-cells = <1>; 461724ba675SRob Herring #size-cells = <0>; 462724ba675SRob Herring status = "disabled"; 463724ba675SRob Herring }; 464724ba675SRob Herring 465724ba675SRob Herring i2c2: i2c@11009000 { 466724ba675SRob Herring compatible = "mediatek,mt7623-i2c", 467724ba675SRob Herring "mediatek,mt6577-i2c"; 468724ba675SRob Herring reg = <0 0x11009000 0 0x70>, 469724ba675SRob Herring <0 0x11000300 0 0x80>; 470724ba675SRob Herring interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_LOW>; 471724ba675SRob Herring clock-div = <16>; 472724ba675SRob Herring clocks = <&pericfg CLK_PERI_I2C2>, 473724ba675SRob Herring <&pericfg CLK_PERI_AP_DMA>; 474724ba675SRob Herring clock-names = "main", "dma"; 475724ba675SRob Herring #address-cells = <1>; 476724ba675SRob Herring #size-cells = <0>; 477724ba675SRob Herring status = "disabled"; 478724ba675SRob Herring }; 479724ba675SRob Herring 480724ba675SRob Herring spi0: spi@1100a000 { 481724ba675SRob Herring compatible = "mediatek,mt7623-spi", 482724ba675SRob Herring "mediatek,mt2701-spi"; 483724ba675SRob Herring #address-cells = <1>; 484724ba675SRob Herring #size-cells = <0>; 485724ba675SRob Herring reg = <0 0x1100a000 0 0x100>; 486724ba675SRob Herring interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_LOW>; 487724ba675SRob Herring clocks = <&topckgen CLK_TOP_SYSPLL3_D2>, 488724ba675SRob Herring <&topckgen CLK_TOP_SPI0_SEL>, 489724ba675SRob Herring <&pericfg CLK_PERI_SPI0>; 490724ba675SRob Herring clock-names = "parent-clk", "sel-clk", "spi-clk"; 491724ba675SRob Herring status = "disabled"; 492724ba675SRob Herring }; 493724ba675SRob Herring 494724ba675SRob Herring thermal: thermal@1100b000 { 495724ba675SRob Herring #thermal-sensor-cells = <1>; 496724ba675SRob Herring compatible = "mediatek,mt7623-thermal", 497724ba675SRob Herring "mediatek,mt2701-thermal"; 498724ba675SRob Herring reg = <0 0x1100b000 0 0x1000>; 499724ba675SRob Herring interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>; 500724ba675SRob Herring clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>; 501724ba675SRob Herring clock-names = "therm", "auxadc"; 502724ba675SRob Herring resets = <&pericfg MT2701_PERI_THERM_SW_RST>; 503724ba675SRob Herring reset-names = "therm"; 504724ba675SRob Herring mediatek,auxadc = <&auxadc>; 505724ba675SRob Herring mediatek,apmixedsys = <&apmixedsys>; 506724ba675SRob Herring nvmem-cells = <&thermal_calibration_data>; 507724ba675SRob Herring nvmem-cell-names = "calibration-data"; 508724ba675SRob Herring }; 509724ba675SRob Herring 510724ba675SRob Herring btif: serial@1100c000 { 511724ba675SRob Herring compatible = "mediatek,mt7623-btif", 512724ba675SRob Herring "mediatek,mtk-btif"; 513724ba675SRob Herring reg = <0 0x1100c000 0 0x1000>; 514724ba675SRob Herring interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_LOW>; 515724ba675SRob Herring clocks = <&pericfg CLK_PERI_BTIF>; 516724ba675SRob Herring clock-names = "main"; 517724ba675SRob Herring reg-shift = <2>; 518724ba675SRob Herring reg-io-width = <4>; 519724ba675SRob Herring status = "disabled"; 520724ba675SRob Herring }; 521724ba675SRob Herring 522724ba675SRob Herring nandc: nfi@1100d000 { 523724ba675SRob Herring compatible = "mediatek,mt7623-nfc", 524724ba675SRob Herring "mediatek,mt2701-nfc"; 525724ba675SRob Herring reg = <0 0x1100d000 0 0x1000>; 526724ba675SRob Herring interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_LOW>; 527724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; 528724ba675SRob Herring clocks = <&pericfg CLK_PERI_NFI>, 529724ba675SRob Herring <&pericfg CLK_PERI_NFI_PAD>; 530724ba675SRob Herring clock-names = "nfi_clk", "pad_clk"; 531724ba675SRob Herring status = "disabled"; 532724ba675SRob Herring ecc-engine = <&bch>; 533724ba675SRob Herring #address-cells = <1>; 534724ba675SRob Herring #size-cells = <0>; 535724ba675SRob Herring }; 536724ba675SRob Herring 537724ba675SRob Herring bch: ecc@1100e000 { 538724ba675SRob Herring compatible = "mediatek,mt7623-ecc", 539724ba675SRob Herring "mediatek,mt2701-ecc"; 540724ba675SRob Herring reg = <0 0x1100e000 0 0x1000>; 541724ba675SRob Herring interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_LOW>; 542724ba675SRob Herring clocks = <&pericfg CLK_PERI_NFI_ECC>; 543724ba675SRob Herring clock-names = "nfiecc_clk"; 544724ba675SRob Herring status = "disabled"; 545724ba675SRob Herring }; 546724ba675SRob Herring 547724ba675SRob Herring nor_flash: spi@11014000 { 548724ba675SRob Herring compatible = "mediatek,mt7623-nor", 549724ba675SRob Herring "mediatek,mt8173-nor"; 550724ba675SRob Herring reg = <0 0x11014000 0 0x1000>; 551724ba675SRob Herring clocks = <&pericfg CLK_PERI_FLASH>, 552724ba675SRob Herring <&topckgen CLK_TOP_FLASH_SEL>; 553724ba675SRob Herring clock-names = "spi", "sf"; 554724ba675SRob Herring #address-cells = <1>; 555724ba675SRob Herring #size-cells = <0>; 556724ba675SRob Herring status = "disabled"; 557724ba675SRob Herring }; 558724ba675SRob Herring 559724ba675SRob Herring spi1: spi@11016000 { 560724ba675SRob Herring compatible = "mediatek,mt7623-spi", 561724ba675SRob Herring "mediatek,mt2701-spi"; 562724ba675SRob Herring #address-cells = <1>; 563724ba675SRob Herring #size-cells = <0>; 564724ba675SRob Herring reg = <0 0x11016000 0 0x100>; 565724ba675SRob Herring interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>; 566724ba675SRob Herring clocks = <&topckgen CLK_TOP_SYSPLL3_D2>, 567724ba675SRob Herring <&topckgen CLK_TOP_SPI1_SEL>, 568724ba675SRob Herring <&pericfg CLK_PERI_SPI1>; 569724ba675SRob Herring clock-names = "parent-clk", "sel-clk", "spi-clk"; 570724ba675SRob Herring status = "disabled"; 571724ba675SRob Herring }; 572724ba675SRob Herring 573724ba675SRob Herring spi2: spi@11017000 { 574724ba675SRob Herring compatible = "mediatek,mt7623-spi", 575724ba675SRob Herring "mediatek,mt2701-spi"; 576724ba675SRob Herring #address-cells = <1>; 577724ba675SRob Herring #size-cells = <0>; 578724ba675SRob Herring reg = <0 0x11017000 0 0x1000>; 579724ba675SRob Herring interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_LOW>; 580724ba675SRob Herring clocks = <&topckgen CLK_TOP_SYSPLL3_D2>, 581724ba675SRob Herring <&topckgen CLK_TOP_SPI2_SEL>, 582724ba675SRob Herring <&pericfg CLK_PERI_SPI2>; 583724ba675SRob Herring clock-names = "parent-clk", "sel-clk", "spi-clk"; 584724ba675SRob Herring status = "disabled"; 585724ba675SRob Herring }; 586724ba675SRob Herring 587724ba675SRob Herring usb0: usb@11200000 { 588724ba675SRob Herring compatible = "mediatek,mt7623-musb", 589724ba675SRob Herring "mediatek,mtk-musb"; 590724ba675SRob Herring reg = <0 0x11200000 0 0x1000>; 591724ba675SRob Herring interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 592724ba675SRob Herring interrupt-names = "mc"; 593724ba675SRob Herring phys = <&u2port2 PHY_TYPE_USB2>; 594724ba675SRob Herring dr_mode = "otg"; 595724ba675SRob Herring clocks = <&pericfg CLK_PERI_USB0>, 596724ba675SRob Herring <&pericfg CLK_PERI_USB0_MCU>, 597724ba675SRob Herring <&pericfg CLK_PERI_USB_SLV>; 598724ba675SRob Herring clock-names = "main","mcu","univpll"; 599724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; 600724ba675SRob Herring status = "disabled"; 601724ba675SRob Herring }; 602724ba675SRob Herring 603724ba675SRob Herring u2phy1: t-phy@11210000 { 604724ba675SRob Herring compatible = "mediatek,mt7623-tphy", 605724ba675SRob Herring "mediatek,generic-tphy-v1"; 606724ba675SRob Herring reg = <0 0x11210000 0 0x0800>; 607724ba675SRob Herring #address-cells = <2>; 608724ba675SRob Herring #size-cells = <2>; 609724ba675SRob Herring ranges; 610724ba675SRob Herring status = "disabled"; 611724ba675SRob Herring 612724ba675SRob Herring u2port2: usb-phy@11210800 { 613724ba675SRob Herring reg = <0 0x11210800 0 0x0100>; 614724ba675SRob Herring clocks = <&topckgen CLK_TOP_USB_PHY48M>; 615724ba675SRob Herring clock-names = "ref"; 616724ba675SRob Herring #phy-cells = <1>; 617724ba675SRob Herring }; 618724ba675SRob Herring }; 619724ba675SRob Herring 620724ba675SRob Herring audsys: clock-controller@11220000 { 621724ba675SRob Herring compatible = "mediatek,mt7623-audsys", 622724ba675SRob Herring "mediatek,mt2701-audsys", 623724ba675SRob Herring "syscon"; 624724ba675SRob Herring reg = <0 0x11220000 0 0x2000>; 625724ba675SRob Herring #clock-cells = <1>; 626724ba675SRob Herring 627724ba675SRob Herring afe: audio-controller { 628724ba675SRob Herring compatible = "mediatek,mt7623-audio", 629724ba675SRob Herring "mediatek,mt2701-audio"; 630724ba675SRob Herring interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>, 631724ba675SRob Herring <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>; 632724ba675SRob Herring interrupt-names = "afe", "asys"; 633724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; 634724ba675SRob Herring 635724ba675SRob Herring clocks = <&infracfg CLK_INFRA_AUDIO>, 636724ba675SRob Herring <&topckgen CLK_TOP_AUD_MUX1_SEL>, 637724ba675SRob Herring <&topckgen CLK_TOP_AUD_MUX2_SEL>, 638724ba675SRob Herring <&topckgen CLK_TOP_AUD_48K_TIMING>, 639724ba675SRob Herring <&topckgen CLK_TOP_AUD_44K_TIMING>, 640724ba675SRob Herring <&topckgen CLK_TOP_AUD_K1_SRC_SEL>, 641724ba675SRob Herring <&topckgen CLK_TOP_AUD_K2_SRC_SEL>, 642724ba675SRob Herring <&topckgen CLK_TOP_AUD_K3_SRC_SEL>, 643724ba675SRob Herring <&topckgen CLK_TOP_AUD_K4_SRC_SEL>, 644724ba675SRob Herring <&topckgen CLK_TOP_AUD_K1_SRC_DIV>, 645724ba675SRob Herring <&topckgen CLK_TOP_AUD_K2_SRC_DIV>, 646724ba675SRob Herring <&topckgen CLK_TOP_AUD_K3_SRC_DIV>, 647724ba675SRob Herring <&topckgen CLK_TOP_AUD_K4_SRC_DIV>, 648724ba675SRob Herring <&topckgen CLK_TOP_AUD_I2S1_MCLK>, 649724ba675SRob Herring <&topckgen CLK_TOP_AUD_I2S2_MCLK>, 650724ba675SRob Herring <&topckgen CLK_TOP_AUD_I2S3_MCLK>, 651724ba675SRob Herring <&topckgen CLK_TOP_AUD_I2S4_MCLK>, 652724ba675SRob Herring <&audsys CLK_AUD_I2SO1>, 653724ba675SRob Herring <&audsys CLK_AUD_I2SO2>, 654724ba675SRob Herring <&audsys CLK_AUD_I2SO3>, 655724ba675SRob Herring <&audsys CLK_AUD_I2SO4>, 656724ba675SRob Herring <&audsys CLK_AUD_I2SIN1>, 657724ba675SRob Herring <&audsys CLK_AUD_I2SIN2>, 658724ba675SRob Herring <&audsys CLK_AUD_I2SIN3>, 659724ba675SRob Herring <&audsys CLK_AUD_I2SIN4>, 660724ba675SRob Herring <&audsys CLK_AUD_ASRCO1>, 661724ba675SRob Herring <&audsys CLK_AUD_ASRCO2>, 662724ba675SRob Herring <&audsys CLK_AUD_ASRCO3>, 663724ba675SRob Herring <&audsys CLK_AUD_ASRCO4>, 664724ba675SRob Herring <&audsys CLK_AUD_AFE>, 665724ba675SRob Herring <&audsys CLK_AUD_AFE_CONN>, 666724ba675SRob Herring <&audsys CLK_AUD_A1SYS>, 667724ba675SRob Herring <&audsys CLK_AUD_A2SYS>, 668724ba675SRob Herring <&audsys CLK_AUD_AFE_MRGIF>; 669724ba675SRob Herring 670724ba675SRob Herring clock-names = "infra_sys_audio_clk", 671724ba675SRob Herring "top_audio_mux1_sel", 672724ba675SRob Herring "top_audio_mux2_sel", 673724ba675SRob Herring "top_audio_a1sys_hp", 674724ba675SRob Herring "top_audio_a2sys_hp", 675724ba675SRob Herring "i2s0_src_sel", 676724ba675SRob Herring "i2s1_src_sel", 677724ba675SRob Herring "i2s2_src_sel", 678724ba675SRob Herring "i2s3_src_sel", 679724ba675SRob Herring "i2s0_src_div", 680724ba675SRob Herring "i2s1_src_div", 681724ba675SRob Herring "i2s2_src_div", 682724ba675SRob Herring "i2s3_src_div", 683724ba675SRob Herring "i2s0_mclk_en", 684724ba675SRob Herring "i2s1_mclk_en", 685724ba675SRob Herring "i2s2_mclk_en", 686724ba675SRob Herring "i2s3_mclk_en", 687724ba675SRob Herring "i2so0_hop_ck", 688724ba675SRob Herring "i2so1_hop_ck", 689724ba675SRob Herring "i2so2_hop_ck", 690724ba675SRob Herring "i2so3_hop_ck", 691724ba675SRob Herring "i2si0_hop_ck", 692724ba675SRob Herring "i2si1_hop_ck", 693724ba675SRob Herring "i2si2_hop_ck", 694724ba675SRob Herring "i2si3_hop_ck", 695724ba675SRob Herring "asrc0_out_ck", 696724ba675SRob Herring "asrc1_out_ck", 697724ba675SRob Herring "asrc2_out_ck", 698724ba675SRob Herring "asrc3_out_ck", 699724ba675SRob Herring "audio_afe_pd", 700724ba675SRob Herring "audio_afe_conn_pd", 701724ba675SRob Herring "audio_a1sys_pd", 702724ba675SRob Herring "audio_a2sys_pd", 703724ba675SRob Herring "audio_mrgif_pd"; 704724ba675SRob Herring 705724ba675SRob Herring assigned-clocks = <&topckgen CLK_TOP_AUD_MUX1_SEL>, 706724ba675SRob Herring <&topckgen CLK_TOP_AUD_MUX2_SEL>, 707724ba675SRob Herring <&topckgen CLK_TOP_AUD_MUX1_DIV>, 708724ba675SRob Herring <&topckgen CLK_TOP_AUD_MUX2_DIV>; 709724ba675SRob Herring assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL_98M>, 710724ba675SRob Herring <&topckgen CLK_TOP_AUD2PLL_90M>; 711724ba675SRob Herring assigned-clock-rates = <0>, <0>, <49152000>, <45158400>; 712724ba675SRob Herring }; 713724ba675SRob Herring }; 714724ba675SRob Herring 715724ba675SRob Herring mmc0: mmc@11230000 { 716724ba675SRob Herring compatible = "mediatek,mt7623-mmc", 717724ba675SRob Herring "mediatek,mt2701-mmc"; 718724ba675SRob Herring reg = <0 0x11230000 0 0x1000>; 719724ba675SRob Herring interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_LOW>; 720724ba675SRob Herring clocks = <&pericfg CLK_PERI_MSDC30_0>, 721724ba675SRob Herring <&topckgen CLK_TOP_MSDC30_0_SEL>; 722724ba675SRob Herring clock-names = "source", "hclk"; 723724ba675SRob Herring status = "disabled"; 724724ba675SRob Herring }; 725724ba675SRob Herring 726724ba675SRob Herring mmc1: mmc@11240000 { 727724ba675SRob Herring compatible = "mediatek,mt7623-mmc", 728724ba675SRob Herring "mediatek,mt2701-mmc"; 729724ba675SRob Herring reg = <0 0x11240000 0 0x1000>; 730724ba675SRob Herring interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_LOW>; 731724ba675SRob Herring clocks = <&pericfg CLK_PERI_MSDC30_1>, 732724ba675SRob Herring <&topckgen CLK_TOP_MSDC30_1_SEL>; 733724ba675SRob Herring clock-names = "source", "hclk"; 734724ba675SRob Herring status = "disabled"; 735724ba675SRob Herring }; 736724ba675SRob Herring 737724ba675SRob Herring vdecsys: syscon@16000000 { 738724ba675SRob Herring compatible = "mediatek,mt7623-vdecsys", 739724ba675SRob Herring "mediatek,mt2701-vdecsys", 740724ba675SRob Herring "syscon"; 741724ba675SRob Herring reg = <0 0x16000000 0 0x1000>; 742724ba675SRob Herring #clock-cells = <1>; 743724ba675SRob Herring }; 744724ba675SRob Herring 745724ba675SRob Herring hifsys: syscon@1a000000 { 746724ba675SRob Herring compatible = "mediatek,mt7623-hifsys", 747724ba675SRob Herring "mediatek,mt2701-hifsys", 748724ba675SRob Herring "syscon"; 749724ba675SRob Herring reg = <0 0x1a000000 0 0x1000>; 750724ba675SRob Herring #clock-cells = <1>; 751724ba675SRob Herring #reset-cells = <1>; 752724ba675SRob Herring }; 753724ba675SRob Herring 754724ba675SRob Herring pcie: pcie@1a140000 { 755724ba675SRob Herring compatible = "mediatek,mt7623-pcie"; 756724ba675SRob Herring device_type = "pci"; 757724ba675SRob Herring reg = <0 0x1a140000 0 0x1000>, /* PCIe shared registers */ 758724ba675SRob Herring <0 0x1a142000 0 0x1000>, /* Port0 registers */ 759724ba675SRob Herring <0 0x1a143000 0 0x1000>, /* Port1 registers */ 760724ba675SRob Herring <0 0x1a144000 0 0x1000>; /* Port2 registers */ 761724ba675SRob Herring reg-names = "subsys", "port0", "port1", "port2"; 762724ba675SRob Herring #address-cells = <3>; 763724ba675SRob Herring #size-cells = <2>; 764724ba675SRob Herring #interrupt-cells = <1>; 765724ba675SRob Herring interrupt-map-mask = <0xf800 0 0 0>; 766724ba675SRob Herring interrupt-map = <0x0000 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>, 767724ba675SRob Herring <0x0800 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>, 768724ba675SRob Herring <0x1000 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>; 769724ba675SRob Herring clocks = <&topckgen CLK_TOP_ETHIF_SEL>, 770724ba675SRob Herring <&hifsys CLK_HIFSYS_PCIE0>, 771724ba675SRob Herring <&hifsys CLK_HIFSYS_PCIE1>, 772724ba675SRob Herring <&hifsys CLK_HIFSYS_PCIE2>; 773724ba675SRob Herring clock-names = "free_ck", "sys_ck0", "sys_ck1", "sys_ck2"; 774724ba675SRob Herring resets = <&hifsys MT2701_HIFSYS_PCIE0_RST>, 775724ba675SRob Herring <&hifsys MT2701_HIFSYS_PCIE1_RST>, 776724ba675SRob Herring <&hifsys MT2701_HIFSYS_PCIE2_RST>; 777724ba675SRob Herring reset-names = "pcie-rst0", "pcie-rst1", "pcie-rst2"; 778724ba675SRob Herring phys = <&pcie0_port PHY_TYPE_PCIE>, 779724ba675SRob Herring <&pcie1_port PHY_TYPE_PCIE>, 780724ba675SRob Herring <&u3port1 PHY_TYPE_PCIE>; 781724ba675SRob Herring phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2"; 782724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>; 783724ba675SRob Herring bus-range = <0x00 0xff>; 784724ba675SRob Herring status = "disabled"; 785724ba675SRob Herring ranges = <0x81000000 0 0x1a160000 0 0x1a160000 0 0x00010000 786724ba675SRob Herring 0x83000000 0 0x60000000 0 0x60000000 0 0x10000000>; 787724ba675SRob Herring 788724ba675SRob Herring pcie@0,0 { 789724ba675SRob Herring reg = <0x0000 0 0 0 0>; 790724ba675SRob Herring #address-cells = <3>; 791724ba675SRob Herring #size-cells = <2>; 792724ba675SRob Herring #interrupt-cells = <1>; 793724ba675SRob Herring interrupt-map-mask = <0 0 0 0>; 794724ba675SRob Herring interrupt-map = <0 0 0 0 &sysirq GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>; 795724ba675SRob Herring ranges; 796724ba675SRob Herring status = "disabled"; 797724ba675SRob Herring }; 798724ba675SRob Herring 799724ba675SRob Herring pcie@1,0 { 800724ba675SRob Herring reg = <0x0800 0 0 0 0>; 801724ba675SRob Herring #address-cells = <3>; 802724ba675SRob Herring #size-cells = <2>; 803724ba675SRob Herring #interrupt-cells = <1>; 804724ba675SRob Herring interrupt-map-mask = <0 0 0 0>; 805724ba675SRob Herring interrupt-map = <0 0 0 0 &sysirq GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>; 806724ba675SRob Herring ranges; 807724ba675SRob Herring status = "disabled"; 808724ba675SRob Herring }; 809724ba675SRob Herring 810724ba675SRob Herring pcie@2,0 { 811724ba675SRob Herring reg = <0x1000 0 0 0 0>; 812724ba675SRob Herring #address-cells = <3>; 813724ba675SRob Herring #size-cells = <2>; 814724ba675SRob Herring #interrupt-cells = <1>; 815724ba675SRob Herring interrupt-map-mask = <0 0 0 0>; 816724ba675SRob Herring interrupt-map = <0 0 0 0 &sysirq GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>; 817724ba675SRob Herring ranges; 818724ba675SRob Herring status = "disabled"; 819724ba675SRob Herring }; 820724ba675SRob Herring }; 821724ba675SRob Herring 822724ba675SRob Herring pcie0_phy: t-phy@1a149000 { 823724ba675SRob Herring compatible = "mediatek,mt7623-tphy", 824724ba675SRob Herring "mediatek,generic-tphy-v1"; 825724ba675SRob Herring reg = <0 0x1a149000 0 0x0700>; 826724ba675SRob Herring #address-cells = <2>; 827724ba675SRob Herring #size-cells = <2>; 828724ba675SRob Herring ranges; 829724ba675SRob Herring status = "disabled"; 830724ba675SRob Herring 831724ba675SRob Herring pcie0_port: pcie-phy@1a149900 { 832724ba675SRob Herring reg = <0 0x1a149900 0 0x0700>; 833724ba675SRob Herring clocks = <&clk26m>; 834724ba675SRob Herring clock-names = "ref"; 835724ba675SRob Herring #phy-cells = <1>; 836724ba675SRob Herring status = "okay"; 837724ba675SRob Herring }; 838724ba675SRob Herring }; 839724ba675SRob Herring 840724ba675SRob Herring pcie1_phy: t-phy@1a14a000 { 841724ba675SRob Herring compatible = "mediatek,mt7623-tphy", 842724ba675SRob Herring "mediatek,generic-tphy-v1"; 843724ba675SRob Herring reg = <0 0x1a14a000 0 0x0700>; 844724ba675SRob Herring #address-cells = <2>; 845724ba675SRob Herring #size-cells = <2>; 846724ba675SRob Herring ranges; 847724ba675SRob Herring status = "disabled"; 848724ba675SRob Herring 849724ba675SRob Herring pcie1_port: pcie-phy@1a14a900 { 850724ba675SRob Herring reg = <0 0x1a14a900 0 0x0700>; 851724ba675SRob Herring clocks = <&clk26m>; 852724ba675SRob Herring clock-names = "ref"; 853724ba675SRob Herring #phy-cells = <1>; 854724ba675SRob Herring status = "okay"; 855724ba675SRob Herring }; 856724ba675SRob Herring }; 857724ba675SRob Herring 858724ba675SRob Herring usb1: usb@1a1c0000 { 859724ba675SRob Herring compatible = "mediatek,mt7623-xhci", 860724ba675SRob Herring "mediatek,mtk-xhci"; 861724ba675SRob Herring reg = <0 0x1a1c0000 0 0x1000>, 862724ba675SRob Herring <0 0x1a1c4700 0 0x0100>; 863724ba675SRob Herring reg-names = "mac", "ippc"; 864724ba675SRob Herring interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_LOW>; 865724ba675SRob Herring clocks = <&hifsys CLK_HIFSYS_USB0PHY>, 866724ba675SRob Herring <&topckgen CLK_TOP_ETHIF_SEL>; 867724ba675SRob Herring clock-names = "sys_ck", "ref_ck"; 868724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>; 869724ba675SRob Herring phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>; 870724ba675SRob Herring status = "disabled"; 871724ba675SRob Herring }; 872724ba675SRob Herring 873724ba675SRob Herring u3phy1: t-phy@1a1c4000 { 874724ba675SRob Herring compatible = "mediatek,mt7623-tphy", 875724ba675SRob Herring "mediatek,generic-tphy-v1"; 876724ba675SRob Herring reg = <0 0x1a1c4000 0 0x0700>; 877724ba675SRob Herring #address-cells = <2>; 878724ba675SRob Herring #size-cells = <2>; 879724ba675SRob Herring ranges; 880724ba675SRob Herring status = "disabled"; 881724ba675SRob Herring 882724ba675SRob Herring u2port0: usb-phy@1a1c4800 { 883724ba675SRob Herring reg = <0 0x1a1c4800 0 0x0100>; 884724ba675SRob Herring clocks = <&topckgen CLK_TOP_USB_PHY48M>; 885724ba675SRob Herring clock-names = "ref"; 886724ba675SRob Herring #phy-cells = <1>; 887724ba675SRob Herring status = "okay"; 888724ba675SRob Herring }; 889724ba675SRob Herring 890724ba675SRob Herring u3port0: usb-phy@1a1c4900 { 891724ba675SRob Herring reg = <0 0x1a1c4900 0 0x0700>; 892724ba675SRob Herring clocks = <&clk26m>; 893724ba675SRob Herring clock-names = "ref"; 894724ba675SRob Herring #phy-cells = <1>; 895724ba675SRob Herring status = "okay"; 896724ba675SRob Herring }; 897724ba675SRob Herring }; 898724ba675SRob Herring 899724ba675SRob Herring usb2: usb@1a240000 { 900724ba675SRob Herring compatible = "mediatek,mt7623-xhci", 901724ba675SRob Herring "mediatek,mtk-xhci"; 902724ba675SRob Herring reg = <0 0x1a240000 0 0x1000>, 903724ba675SRob Herring <0 0x1a244700 0 0x0100>; 904724ba675SRob Herring reg-names = "mac", "ippc"; 905724ba675SRob Herring interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_LOW>; 906724ba675SRob Herring clocks = <&hifsys CLK_HIFSYS_USB1PHY>, 907724ba675SRob Herring <&topckgen CLK_TOP_ETHIF_SEL>; 908724ba675SRob Herring clock-names = "sys_ck", "ref_ck"; 909724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_HIF>; 910724ba675SRob Herring phys = <&u2port1 PHY_TYPE_USB2>, <&u3port1 PHY_TYPE_USB3>; 911724ba675SRob Herring status = "disabled"; 912724ba675SRob Herring }; 913724ba675SRob Herring 914724ba675SRob Herring u3phy2: t-phy@1a244000 { 915724ba675SRob Herring compatible = "mediatek,mt7623-tphy", 916724ba675SRob Herring "mediatek,generic-tphy-v1"; 917724ba675SRob Herring reg = <0 0x1a244000 0 0x0700>; 918724ba675SRob Herring #address-cells = <2>; 919724ba675SRob Herring #size-cells = <2>; 920724ba675SRob Herring ranges; 921724ba675SRob Herring status = "disabled"; 922724ba675SRob Herring 923724ba675SRob Herring u2port1: usb-phy@1a244800 { 924724ba675SRob Herring reg = <0 0x1a244800 0 0x0100>; 925724ba675SRob Herring clocks = <&topckgen CLK_TOP_USB_PHY48M>; 926724ba675SRob Herring clock-names = "ref"; 927724ba675SRob Herring #phy-cells = <1>; 928724ba675SRob Herring status = "okay"; 929724ba675SRob Herring }; 930724ba675SRob Herring 931724ba675SRob Herring u3port1: usb-phy@1a244900 { 932724ba675SRob Herring reg = <0 0x1a244900 0 0x0700>; 933724ba675SRob Herring clocks = <&clk26m>; 934724ba675SRob Herring clock-names = "ref"; 935724ba675SRob Herring #phy-cells = <1>; 936724ba675SRob Herring status = "okay"; 937724ba675SRob Herring }; 938724ba675SRob Herring }; 939724ba675SRob Herring 940724ba675SRob Herring ethsys: syscon@1b000000 { 941724ba675SRob Herring compatible = "mediatek,mt7623-ethsys", 942724ba675SRob Herring "mediatek,mt2701-ethsys", 943724ba675SRob Herring "syscon"; 944724ba675SRob Herring reg = <0 0x1b000000 0 0x1000>; 945724ba675SRob Herring #clock-cells = <1>; 946724ba675SRob Herring #reset-cells = <1>; 947724ba675SRob Herring }; 948724ba675SRob Herring 949724ba675SRob Herring hsdma: dma-controller@1b007000 { 950724ba675SRob Herring compatible = "mediatek,mt7623-hsdma"; 951724ba675SRob Herring reg = <0 0x1b007000 0 0x1000>; 952724ba675SRob Herring interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>; 953724ba675SRob Herring clocks = <ðsys CLK_ETHSYS_HSDMA>; 954724ba675SRob Herring clock-names = "hsdma"; 955724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>; 956724ba675SRob Herring #dma-cells = <1>; 957724ba675SRob Herring }; 958724ba675SRob Herring 959724ba675SRob Herring eth: ethernet@1b100000 { 960724ba675SRob Herring compatible = "mediatek,mt7623-eth", 961724ba675SRob Herring "mediatek,mt2701-eth", 962724ba675SRob Herring "syscon"; 963724ba675SRob Herring reg = <0 0x1b100000 0 0x20000>; 964724ba675SRob Herring interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_LOW>, 965724ba675SRob Herring <GIC_SPI 199 IRQ_TYPE_LEVEL_LOW>, 966724ba675SRob Herring <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>; 967724ba675SRob Herring clocks = <&topckgen CLK_TOP_ETHIF_SEL>, 968724ba675SRob Herring <ðsys CLK_ETHSYS_ESW>, 969724ba675SRob Herring <ðsys CLK_ETHSYS_GP1>, 970724ba675SRob Herring <ðsys CLK_ETHSYS_GP2>, 971724ba675SRob Herring <&apmixedsys CLK_APMIXED_TRGPLL>; 972724ba675SRob Herring clock-names = "ethif", "esw", "gp1", "gp2", "trgpll"; 973724ba675SRob Herring resets = <ðsys MT2701_ETHSYS_FE_RST>, 974724ba675SRob Herring <ðsys MT2701_ETHSYS_GMAC_RST>, 975724ba675SRob Herring <ðsys MT2701_ETHSYS_PPE_RST>; 976724ba675SRob Herring reset-names = "fe", "gmac", "ppe"; 977724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>; 978724ba675SRob Herring mediatek,ethsys = <ðsys>; 979724ba675SRob Herring mediatek,pctl = <&syscfg_pctl_a>; 980724ba675SRob Herring #address-cells = <1>; 981724ba675SRob Herring #size-cells = <0>; 982724ba675SRob Herring status = "disabled"; 983724ba675SRob Herring 984724ba675SRob Herring gmac0: mac@0 { 985724ba675SRob Herring compatible = "mediatek,eth-mac"; 986724ba675SRob Herring reg = <0>; 987724ba675SRob Herring status = "disabled"; 988724ba675SRob Herring }; 989724ba675SRob Herring 990724ba675SRob Herring gmac1: mac@1 { 991724ba675SRob Herring compatible = "mediatek,eth-mac"; 992724ba675SRob Herring reg = <1>; 993724ba675SRob Herring status = "disabled"; 994724ba675SRob Herring }; 995724ba675SRob Herring }; 996724ba675SRob Herring 997724ba675SRob Herring crypto: crypto@1b240000 { 998724ba675SRob Herring compatible = "mediatek,eip97-crypto"; 999724ba675SRob Herring reg = <0 0x1b240000 0 0x20000>; 1000724ba675SRob Herring interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>, 1001724ba675SRob Herring <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>, 1002724ba675SRob Herring <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>, 1003724ba675SRob Herring <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>, 1004724ba675SRob Herring <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>; 1005724ba675SRob Herring clocks = <ðsys CLK_ETHSYS_CRYPTO>; 1006724ba675SRob Herring clock-names = "cryp"; 1007724ba675SRob Herring power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>; 1008724ba675SRob Herring status = "disabled"; 1009724ba675SRob Herring }; 1010724ba675SRob Herring 1011724ba675SRob Herring bdpsys: syscon@1c000000 { 1012724ba675SRob Herring compatible = "mediatek,mt7623-bdpsys", 1013724ba675SRob Herring "mediatek,mt2701-bdpsys", 1014724ba675SRob Herring "syscon"; 1015724ba675SRob Herring reg = <0 0x1c000000 0 0x1000>; 1016724ba675SRob Herring #clock-cells = <1>; 1017724ba675SRob Herring }; 1018724ba675SRob Herring}; 1019724ba675SRob Herring 1020724ba675SRob Herring&pio { 1021724ba675SRob Herring cir_pins_a:cir-default { 1022724ba675SRob Herring pins-cir { 1023724ba675SRob Herring pinmux = <MT7623_PIN_46_IR_FUNC_IR>; 1024724ba675SRob Herring bias-disable; 1025724ba675SRob Herring }; 1026724ba675SRob Herring }; 1027724ba675SRob Herring 1028724ba675SRob Herring i2c0_pins_a: i2c0-default { 1029724ba675SRob Herring pins-i2c0 { 1030724ba675SRob Herring pinmux = <MT7623_PIN_75_SDA0_FUNC_SDA0>, 1031724ba675SRob Herring <MT7623_PIN_76_SCL0_FUNC_SCL0>; 1032724ba675SRob Herring bias-disable; 1033724ba675SRob Herring }; 1034724ba675SRob Herring }; 1035724ba675SRob Herring 1036724ba675SRob Herring i2c1_pins_a: i2c1-default { 1037724ba675SRob Herring pin-i2c1 { 1038724ba675SRob Herring pinmux = <MT7623_PIN_57_SDA1_FUNC_SDA1>, 1039724ba675SRob Herring <MT7623_PIN_58_SCL1_FUNC_SCL1>; 1040724ba675SRob Herring bias-disable; 1041724ba675SRob Herring }; 1042724ba675SRob Herring }; 1043724ba675SRob Herring 1044724ba675SRob Herring i2c1_pins_b: i2c1-alt { 1045724ba675SRob Herring pin-i2c1 { 1046724ba675SRob Herring pinmux = <MT7623_PIN_242_URTS2_FUNC_SCL1>, 1047724ba675SRob Herring <MT7623_PIN_243_UCTS2_FUNC_SDA1>; 1048724ba675SRob Herring bias-disable; 1049724ba675SRob Herring }; 1050724ba675SRob Herring }; 1051724ba675SRob Herring 1052724ba675SRob Herring i2c2_pins_a: i2c2-default { 1053724ba675SRob Herring pin-i2c2 { 1054724ba675SRob Herring pinmux = <MT7623_PIN_77_SDA2_FUNC_SDA2>, 1055724ba675SRob Herring <MT7623_PIN_78_SCL2_FUNC_SCL2>; 1056724ba675SRob Herring bias-disable; 1057724ba675SRob Herring }; 1058724ba675SRob Herring }; 1059724ba675SRob Herring 1060724ba675SRob Herring i2c2_pins_b: i2c2-alt { 1061724ba675SRob Herring pin-i2c2 { 1062724ba675SRob Herring pinmux = <MT7623_PIN_122_GPIO122_FUNC_SDA2>, 1063724ba675SRob Herring <MT7623_PIN_123_HTPLG_FUNC_SCL2>; 1064724ba675SRob Herring bias-disable; 1065724ba675SRob Herring }; 1066724ba675SRob Herring }; 1067724ba675SRob Herring 1068724ba675SRob Herring i2s0_pins_a: i2s0-default { 1069724ba675SRob Herring pin-i2s0 { 1070724ba675SRob Herring pinmux = <MT7623_PIN_49_I2S0_DATA_FUNC_I2S0_DATA>, 1071724ba675SRob Herring <MT7623_PIN_72_I2S0_DATA_IN_FUNC_I2S0_DATA_IN>, 1072724ba675SRob Herring <MT7623_PIN_73_I2S0_LRCK_FUNC_I2S0_LRCK>, 1073724ba675SRob Herring <MT7623_PIN_74_I2S0_BCK_FUNC_I2S0_BCK>, 1074724ba675SRob Herring <MT7623_PIN_126_I2S0_MCLK_FUNC_I2S0_MCLK>; 1075724ba675SRob Herring drive-strength = <MTK_DRIVE_12mA>; 1076724ba675SRob Herring bias-pull-down; 1077724ba675SRob Herring }; 1078724ba675SRob Herring }; 1079724ba675SRob Herring 1080724ba675SRob Herring i2s1_pins_a: i2s1-default { 1081724ba675SRob Herring pin-i2s1 { 1082724ba675SRob Herring pinmux = <MT7623_PIN_33_I2S1_DATA_FUNC_I2S1_DATA>, 1083724ba675SRob Herring <MT7623_PIN_34_I2S1_DATA_IN_FUNC_I2S1_DATA_IN>, 1084724ba675SRob Herring <MT7623_PIN_35_I2S1_BCK_FUNC_I2S1_BCK>, 1085724ba675SRob Herring <MT7623_PIN_36_I2S1_LRCK_FUNC_I2S1_LRCK>, 1086724ba675SRob Herring <MT7623_PIN_37_I2S1_MCLK_FUNC_I2S1_MCLK>; 1087724ba675SRob Herring drive-strength = <MTK_DRIVE_12mA>; 1088724ba675SRob Herring bias-pull-down; 1089724ba675SRob Herring }; 1090724ba675SRob Herring }; 1091724ba675SRob Herring 1092724ba675SRob Herring key_pins_a: keys-alt { 1093724ba675SRob Herring pins-keys { 1094724ba675SRob Herring pinmux = <MT7623_PIN_256_GPIO256_FUNC_GPIO256>, 1095724ba675SRob Herring <MT7623_PIN_257_GPIO257_FUNC_GPIO257> ; 1096724ba675SRob Herring input-enable; 1097724ba675SRob Herring }; 1098724ba675SRob Herring }; 1099724ba675SRob Herring 1100724ba675SRob Herring led_pins_a: leds-alt { 1101724ba675SRob Herring pins-leds { 1102724ba675SRob Herring pinmux = <MT7623_PIN_239_EXT_SDIO0_FUNC_GPIO239>, 1103724ba675SRob Herring <MT7623_PIN_240_EXT_XCS_FUNC_GPIO240>, 1104724ba675SRob Herring <MT7623_PIN_241_EXT_SCK_FUNC_GPIO241>; 1105724ba675SRob Herring }; 1106724ba675SRob Herring }; 1107724ba675SRob Herring 1108724ba675SRob Herring mmc0_pins_default: mmc0default { 1109724ba675SRob Herring pins-cmd-dat { 1110724ba675SRob Herring pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>, 1111724ba675SRob Herring <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>, 1112724ba675SRob Herring <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>, 1113724ba675SRob Herring <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>, 1114724ba675SRob Herring <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>, 1115724ba675SRob Herring <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>, 1116724ba675SRob Herring <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>, 1117724ba675SRob Herring <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>, 1118724ba675SRob Herring <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>; 1119724ba675SRob Herring input-enable; 1120724ba675SRob Herring bias-pull-up; 1121724ba675SRob Herring }; 1122724ba675SRob Herring 1123724ba675SRob Herring pins-clk { 1124724ba675SRob Herring pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>; 1125724ba675SRob Herring bias-pull-down; 1126724ba675SRob Herring }; 1127724ba675SRob Herring 1128724ba675SRob Herring pins-rst { 1129724ba675SRob Herring pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>; 1130724ba675SRob Herring bias-pull-up; 1131724ba675SRob Herring }; 1132724ba675SRob Herring }; 1133724ba675SRob Herring 1134724ba675SRob Herring mmc0_pins_uhs: mmc0 { 1135724ba675SRob Herring pins-cmd-dat { 1136724ba675SRob Herring pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7>, 1137724ba675SRob Herring <MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6>, 1138724ba675SRob Herring <MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5>, 1139724ba675SRob Herring <MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4>, 1140724ba675SRob Herring <MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3>, 1141724ba675SRob Herring <MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2>, 1142724ba675SRob Herring <MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1>, 1143724ba675SRob Herring <MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0>, 1144724ba675SRob Herring <MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD>; 1145724ba675SRob Herring input-enable; 1146*c04774afSAngeloGioacchino Del Regno drive-strength = <2>; 1147724ba675SRob Herring bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 1148724ba675SRob Herring }; 1149724ba675SRob Herring 1150724ba675SRob Herring pins-clk { 1151724ba675SRob Herring pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK>; 1152*c04774afSAngeloGioacchino Del Regno drive-strength = <2>; 1153724ba675SRob Herring bias-pull-down = <MTK_PUPD_SET_R1R0_01>; 1154724ba675SRob Herring }; 1155724ba675SRob Herring 1156724ba675SRob Herring pins-rst { 1157724ba675SRob Herring pinmux = <MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB>; 1158724ba675SRob Herring bias-pull-up; 1159724ba675SRob Herring }; 1160724ba675SRob Herring }; 1161724ba675SRob Herring 1162724ba675SRob Herring mmc1_pins_default: mmc1default { 1163724ba675SRob Herring pins-cmd-dat { 1164724ba675SRob Herring pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>, 1165724ba675SRob Herring <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>, 1166724ba675SRob Herring <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>, 1167724ba675SRob Herring <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>, 1168724ba675SRob Herring <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>; 1169724ba675SRob Herring input-enable; 1170*c04774afSAngeloGioacchino Del Regno drive-strength = <4>; 1171724ba675SRob Herring bias-pull-up = <MTK_PUPD_SET_R1R0_10>; 1172724ba675SRob Herring }; 1173724ba675SRob Herring 1174724ba675SRob Herring pins-clk { 1175724ba675SRob Herring pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>; 1176724ba675SRob Herring bias-pull-down; 1177*c04774afSAngeloGioacchino Del Regno drive-strength = <4>; 1178724ba675SRob Herring }; 1179724ba675SRob Herring 1180724ba675SRob Herring pins-wp { 1181724ba675SRob Herring pinmux = <MT7623_PIN_29_EINT7_FUNC_MSDC1_WP>; 1182724ba675SRob Herring input-enable; 1183724ba675SRob Herring bias-pull-up; 1184724ba675SRob Herring }; 1185724ba675SRob Herring 1186724ba675SRob Herring pins-insert { 1187724ba675SRob Herring pinmux = <MT7623_PIN_261_MSDC1_INS_FUNC_GPIO261>; 1188724ba675SRob Herring bias-pull-up; 1189724ba675SRob Herring }; 1190724ba675SRob Herring }; 1191724ba675SRob Herring 1192724ba675SRob Herring mmc1_pins_uhs: mmc1 { 1193724ba675SRob Herring pins-cmd-dat { 1194724ba675SRob Herring pinmux = <MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0>, 1195724ba675SRob Herring <MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1>, 1196724ba675SRob Herring <MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2>, 1197724ba675SRob Herring <MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3>, 1198724ba675SRob Herring <MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD>; 1199724ba675SRob Herring input-enable; 1200*c04774afSAngeloGioacchino Del Regno drive-strength = <4>; 1201724ba675SRob Herring bias-pull-up = <MTK_PUPD_SET_R1R0_10>; 1202724ba675SRob Herring }; 1203724ba675SRob Herring 1204724ba675SRob Herring pins-clk { 1205724ba675SRob Herring pinmux = <MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK>; 1206*c04774afSAngeloGioacchino Del Regno drive-strength = <4>; 1207724ba675SRob Herring bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 1208724ba675SRob Herring }; 1209724ba675SRob Herring }; 1210724ba675SRob Herring 1211724ba675SRob Herring nand_pins_default: nanddefault { 1212724ba675SRob Herring pins-ale { 1213724ba675SRob Herring pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>; 1214*c04774afSAngeloGioacchino Del Regno drive-strength = <8>; 1215724ba675SRob Herring bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 1216724ba675SRob Herring }; 1217724ba675SRob Herring 1218724ba675SRob Herring pins-dat { 1219724ba675SRob Herring pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_NLD7>, 1220724ba675SRob Herring <MT7623_PIN_112_MSDC0_DAT6_FUNC_NLD6>, 1221724ba675SRob Herring <MT7623_PIN_114_MSDC0_DAT4_FUNC_NLD4>, 1222724ba675SRob Herring <MT7623_PIN_118_MSDC0_DAT3_FUNC_NLD3>, 1223724ba675SRob Herring <MT7623_PIN_121_MSDC0_DAT0_FUNC_NLD0>, 1224724ba675SRob Herring <MT7623_PIN_120_MSDC0_DAT1_FUNC_NLD1>, 1225724ba675SRob Herring <MT7623_PIN_113_MSDC0_DAT5_FUNC_NLD5>, 1226724ba675SRob Herring <MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8>, 1227724ba675SRob Herring <MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2>; 1228724ba675SRob Herring input-enable; 1229*c04774afSAngeloGioacchino Del Regno drive-strength = <8>; 1230724ba675SRob Herring bias-pull-up; 1231724ba675SRob Herring }; 1232724ba675SRob Herring 1233724ba675SRob Herring pins-we { 1234724ba675SRob Herring pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>; 1235*c04774afSAngeloGioacchino Del Regno drive-strength = <8>; 1236724ba675SRob Herring bias-pull-up = <MTK_PUPD_SET_R1R0_10>; 1237724ba675SRob Herring }; 1238724ba675SRob Herring }; 1239724ba675SRob Herring 1240724ba675SRob Herring pcie_default: pcie_pin_default { 1241724ba675SRob Herring pins_cmd_dat { 1242724ba675SRob Herring pinmux = <MT7623_PIN_208_AUD_EXT_CK1_FUNC_PCIE0_PERST_N>, 1243724ba675SRob Herring <MT7623_PIN_209_AUD_EXT_CK2_FUNC_PCIE1_PERST_N>; 1244724ba675SRob Herring bias-disable; 1245724ba675SRob Herring }; 1246724ba675SRob Herring }; 1247724ba675SRob Herring 1248724ba675SRob Herring pwm_pins_a: pwm-default { 1249724ba675SRob Herring pins-pwm { 1250724ba675SRob Herring pinmux = <MT7623_PIN_203_PWM0_FUNC_PWM0>, 1251724ba675SRob Herring <MT7623_PIN_204_PWM1_FUNC_PWM1>, 1252724ba675SRob Herring <MT7623_PIN_205_PWM2_FUNC_PWM2>, 1253724ba675SRob Herring <MT7623_PIN_206_PWM3_FUNC_PWM3>, 1254724ba675SRob Herring <MT7623_PIN_207_PWM4_FUNC_PWM4>; 1255724ba675SRob Herring }; 1256724ba675SRob Herring }; 1257724ba675SRob Herring 1258724ba675SRob Herring spi0_pins_a: spi0-default { 1259724ba675SRob Herring pins-spi { 1260724ba675SRob Herring pinmux = <MT7623_PIN_53_SPI0_CSN_FUNC_SPI0_CS>, 1261724ba675SRob Herring <MT7623_PIN_54_SPI0_CK_FUNC_SPI0_CK>, 1262724ba675SRob Herring <MT7623_PIN_55_SPI0_MI_FUNC_SPI0_MI>, 1263724ba675SRob Herring <MT7623_PIN_56_SPI0_MO_FUNC_SPI0_MO>; 1264724ba675SRob Herring bias-disable; 1265724ba675SRob Herring }; 1266724ba675SRob Herring }; 1267724ba675SRob Herring 1268724ba675SRob Herring spi1_pins_a: spi1-default { 1269724ba675SRob Herring pins-spi { 1270724ba675SRob Herring pinmux = <MT7623_PIN_7_SPI1_CSN_FUNC_SPI1_CS>, 1271724ba675SRob Herring <MT7623_PIN_199_SPI1_CK_FUNC_SPI1_CK>, 1272724ba675SRob Herring <MT7623_PIN_8_SPI1_MI_FUNC_SPI1_MI>, 1273724ba675SRob Herring <MT7623_PIN_9_SPI1_MO_FUNC_SPI1_MO>; 1274724ba675SRob Herring }; 1275724ba675SRob Herring }; 1276724ba675SRob Herring 1277724ba675SRob Herring spi2_pins_a: spi2-default { 1278724ba675SRob Herring pins-spi { 1279724ba675SRob Herring pinmux = <MT7623_PIN_101_SPI2_CSN_FUNC_SPI2_CS>, 1280724ba675SRob Herring <MT7623_PIN_104_SPI2_CK_FUNC_SPI2_CK>, 1281724ba675SRob Herring <MT7623_PIN_102_SPI2_MI_FUNC_SPI2_MI>, 1282724ba675SRob Herring <MT7623_PIN_103_SPI2_MO_FUNC_SPI2_MO>; 1283724ba675SRob Herring }; 1284724ba675SRob Herring }; 1285724ba675SRob Herring 1286724ba675SRob Herring uart0_pins_a: uart0-default { 1287724ba675SRob Herring pins-dat { 1288724ba675SRob Herring pinmux = <MT7623_PIN_79_URXD0_FUNC_URXD0>, 1289724ba675SRob Herring <MT7623_PIN_80_UTXD0_FUNC_UTXD0>; 1290724ba675SRob Herring }; 1291724ba675SRob Herring }; 1292724ba675SRob Herring 1293724ba675SRob Herring uart1_pins_a: uart1-default { 1294724ba675SRob Herring pins-dat { 1295724ba675SRob Herring pinmux = <MT7623_PIN_81_URXD1_FUNC_URXD1>, 1296724ba675SRob Herring <MT7623_PIN_82_UTXD1_FUNC_UTXD1>; 1297724ba675SRob Herring }; 1298724ba675SRob Herring }; 1299724ba675SRob Herring 1300724ba675SRob Herring uart2_pins_a: uart2-default { 1301724ba675SRob Herring pins-dat { 1302724ba675SRob Herring pinmux = <MT7623_PIN_14_GPIO14_FUNC_URXD2>, 1303724ba675SRob Herring <MT7623_PIN_15_GPIO15_FUNC_UTXD2>; 1304724ba675SRob Herring }; 1305724ba675SRob Herring }; 1306724ba675SRob Herring 1307724ba675SRob Herring uart2_pins_b: uart2-alt { 1308724ba675SRob Herring pins-dat { 1309724ba675SRob Herring pinmux = <MT7623_PIN_200_URXD2_FUNC_URXD2>, 1310724ba675SRob Herring <MT7623_PIN_201_UTXD2_FUNC_UTXD2>; 1311724ba675SRob Herring }; 1312724ba675SRob Herring }; 1313724ba675SRob Herring}; 1314