1c4629c34SSean Wang/* 2c4629c34SSean Wang * Copyright (c) 2017 MediaTek Inc. 3c4629c34SSean Wang * Author: Ming Huang <ming.huang@mediatek.com> 4c4629c34SSean Wang * Sean Wang <sean.wang@mediatek.com> 5c4629c34SSean Wang * 6c4629c34SSean Wang * SPDX-License-Identifier: (GPL-2.0 OR MIT) 7c4629c34SSean Wang */ 8c4629c34SSean Wang 9c4629c34SSean Wang#include <dt-bindings/interrupt-controller/irq.h> 10c4629c34SSean Wang#include <dt-bindings/interrupt-controller/arm-gic.h> 11d7167881SSean Wang#include <dt-bindings/clock/mt7622-clk.h> 12a39251eeSRyder Lee#include <dt-bindings/phy/phy.h> 13925bd27fSSean Wang#include <dt-bindings/power/mt7622-power.h> 14d7167881SSean Wang#include <dt-bindings/reset/mt7622-reset.h> 15ae457b76SSean Wang#include <dt-bindings/thermal/thermal.h> 16c4629c34SSean Wang 17c4629c34SSean Wang/ { 18c4629c34SSean Wang compatible = "mediatek,mt7622"; 19c4629c34SSean Wang interrupt-parent = <&sysirq>; 20c4629c34SSean Wang #address-cells = <2>; 21c4629c34SSean Wang #size-cells = <2>; 22c4629c34SSean Wang 23a5a80f78SSean Wang cpu_opp_table: opp-table { 24a5a80f78SSean Wang compatible = "operating-points-v2"; 25a5a80f78SSean Wang opp-shared; 26a5a80f78SSean Wang opp-300000000 { 27a5a80f78SSean Wang opp-hz = /bits/ 64 <30000000>; 28a5a80f78SSean Wang opp-microvolt = <950000>; 29a5a80f78SSean Wang }; 30a5a80f78SSean Wang 31a5a80f78SSean Wang opp-437500000 { 32a5a80f78SSean Wang opp-hz = /bits/ 64 <437500000>; 33a5a80f78SSean Wang opp-microvolt = <1000000>; 34a5a80f78SSean Wang }; 35a5a80f78SSean Wang 36a5a80f78SSean Wang opp-600000000 { 37a5a80f78SSean Wang opp-hz = /bits/ 64 <600000000>; 38a5a80f78SSean Wang opp-microvolt = <1050000>; 39a5a80f78SSean Wang }; 40a5a80f78SSean Wang 41a5a80f78SSean Wang opp-812500000 { 42a5a80f78SSean Wang opp-hz = /bits/ 64 <812500000>; 43a5a80f78SSean Wang opp-microvolt = <1100000>; 44a5a80f78SSean Wang }; 45a5a80f78SSean Wang 46a5a80f78SSean Wang opp-1025000000 { 47a5a80f78SSean Wang opp-hz = /bits/ 64 <1025000000>; 48a5a80f78SSean Wang opp-microvolt = <1150000>; 49a5a80f78SSean Wang }; 50a5a80f78SSean Wang 51a5a80f78SSean Wang opp-1137500000 { 52a5a80f78SSean Wang opp-hz = /bits/ 64 <1137500000>; 53a5a80f78SSean Wang opp-microvolt = <1200000>; 54a5a80f78SSean Wang }; 55a5a80f78SSean Wang 56a5a80f78SSean Wang opp-1262500000 { 57a5a80f78SSean Wang opp-hz = /bits/ 64 <1262500000>; 58a5a80f78SSean Wang opp-microvolt = <1250000>; 59a5a80f78SSean Wang }; 60a5a80f78SSean Wang 61a5a80f78SSean Wang opp-1350000000 { 62a5a80f78SSean Wang opp-hz = /bits/ 64 <1350000000>; 63a5a80f78SSean Wang opp-microvolt = <1310000>; 64a5a80f78SSean Wang }; 65a5a80f78SSean Wang }; 66a5a80f78SSean Wang 67c4629c34SSean Wang cpus { 68c4629c34SSean Wang #address-cells = <2>; 69c4629c34SSean Wang #size-cells = <0>; 70c4629c34SSean Wang 71c4629c34SSean Wang cpu0: cpu@0 { 72c4629c34SSean Wang device_type = "cpu"; 7331af04cdSRob Herring compatible = "arm,cortex-a53"; 74c4629c34SSean Wang reg = <0x0 0x0>; 75a5a80f78SSean Wang clocks = <&infracfg CLK_INFRA_MUX1_SEL>, 76a5a80f78SSean Wang <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>; 77a5a80f78SSean Wang clock-names = "cpu", "intermediate"; 78a5a80f78SSean Wang operating-points-v2 = <&cpu_opp_table>; 79ae457b76SSean Wang #cooling-cells = <2>; 80c4629c34SSean Wang enable-method = "psci"; 81c4629c34SSean Wang clock-frequency = <1300000000>; 829cc7f0deSRyder Lee cci-control-port = <&cci_control2>; 83c4629c34SSean Wang }; 84c4629c34SSean Wang 85c4629c34SSean Wang cpu1: cpu@1 { 86c4629c34SSean Wang device_type = "cpu"; 8731af04cdSRob Herring compatible = "arm,cortex-a53"; 88c4629c34SSean Wang reg = <0x0 0x1>; 89a5a80f78SSean Wang clocks = <&infracfg CLK_INFRA_MUX1_SEL>, 90a5a80f78SSean Wang <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>; 91a5a80f78SSean Wang clock-names = "cpu", "intermediate"; 92a5a80f78SSean Wang operating-points-v2 = <&cpu_opp_table>; 93a06e5c05SViresh Kumar #cooling-cells = <2>; 94c4629c34SSean Wang enable-method = "psci"; 95c4629c34SSean Wang clock-frequency = <1300000000>; 969cc7f0deSRyder Lee cci-control-port = <&cci_control2>; 97c4629c34SSean Wang }; 98c4629c34SSean Wang }; 99c4629c34SSean Wang 100d7167881SSean Wang pwrap_clk: dummy40m { 101d7167881SSean Wang compatible = "fixed-clock"; 102d7167881SSean Wang clock-frequency = <40000000>; 103d7167881SSean Wang #clock-cells = <0>; 104d7167881SSean Wang }; 105d7167881SSean Wang 106d7167881SSean Wang clk25m: oscillator { 107d7167881SSean Wang compatible = "fixed-clock"; 108d7167881SSean Wang #clock-cells = <0>; 109d7167881SSean Wang clock-frequency = <25000000>; 110d7167881SSean Wang clock-output-names = "clkxtal"; 111d7167881SSean Wang }; 112d7167881SSean Wang 113c4629c34SSean Wang psci { 114c4629c34SSean Wang compatible = "arm,psci-0.2"; 115c4629c34SSean Wang method = "smc"; 116c4629c34SSean Wang }; 117c4629c34SSean Wang 1189cc7f0deSRyder Lee pmu { 1199cc7f0deSRyder Lee compatible = "arm,cortex-a53-pmu"; 1209cc7f0deSRyder Lee interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_LOW>, 1219cc7f0deSRyder Lee <GIC_SPI 9 IRQ_TYPE_LEVEL_LOW>; 1229cc7f0deSRyder Lee interrupt-affinity = <&cpu0>, <&cpu1>; 1239cc7f0deSRyder Lee }; 1249cc7f0deSRyder Lee 125c4629c34SSean Wang reserved-memory { 126c4629c34SSean Wang #address-cells = <2>; 127c4629c34SSean Wang #size-cells = <2>; 128c4629c34SSean Wang ranges; 129c4629c34SSean Wang 130c4629c34SSean Wang /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ 131c4629c34SSean Wang secmon_reserved: secmon@43000000 { 132c4629c34SSean Wang reg = <0 0x43000000 0 0x30000>; 133c4629c34SSean Wang no-map; 134c4629c34SSean Wang }; 135c4629c34SSean Wang }; 136c4629c34SSean Wang 137ae457b76SSean Wang thermal-zones { 138ae457b76SSean Wang cpu_thermal: cpu-thermal { 139ae457b76SSean Wang polling-delay-passive = <1000>; 140ae457b76SSean Wang polling-delay = <1000>; 141ae457b76SSean Wang 142ae457b76SSean Wang thermal-sensors = <&thermal 0>; 143ae457b76SSean Wang 144ae457b76SSean Wang trips { 145ae457b76SSean Wang cpu_passive: cpu-passive { 146ae457b76SSean Wang temperature = <47000>; 147ae457b76SSean Wang hysteresis = <2000>; 148ae457b76SSean Wang type = "passive"; 149ae457b76SSean Wang }; 150ae457b76SSean Wang 151ae457b76SSean Wang cpu_active: cpu-active { 152ae457b76SSean Wang temperature = <67000>; 153ae457b76SSean Wang hysteresis = <2000>; 154ae457b76SSean Wang type = "active"; 155ae457b76SSean Wang }; 156ae457b76SSean Wang 157ae457b76SSean Wang cpu_hot: cpu-hot { 158ae457b76SSean Wang temperature = <87000>; 159ae457b76SSean Wang hysteresis = <2000>; 160ae457b76SSean Wang type = "hot"; 161ae457b76SSean Wang }; 162ae457b76SSean Wang 163ae457b76SSean Wang cpu-crit { 164ae457b76SSean Wang temperature = <107000>; 165ae457b76SSean Wang hysteresis = <2000>; 166ae457b76SSean Wang type = "critical"; 167ae457b76SSean Wang }; 168ae457b76SSean Wang }; 169ae457b76SSean Wang 170ae457b76SSean Wang cooling-maps { 171ae457b76SSean Wang map0 { 172ae457b76SSean Wang trip = <&cpu_passive>; 173398ed292SViresh Kumar cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 174398ed292SViresh Kumar <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 175ae457b76SSean Wang }; 176ae457b76SSean Wang 177ae457b76SSean Wang map1 { 178ae457b76SSean Wang trip = <&cpu_active>; 179398ed292SViresh Kumar cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 180398ed292SViresh Kumar <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 181ae457b76SSean Wang }; 182ae457b76SSean Wang 183ae457b76SSean Wang map2 { 184ae457b76SSean Wang trip = <&cpu_hot>; 185398ed292SViresh Kumar cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 186398ed292SViresh Kumar <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 187ae457b76SSean Wang }; 188ae457b76SSean Wang }; 189ae457b76SSean Wang }; 190ae457b76SSean Wang }; 191ae457b76SSean Wang 192c4629c34SSean Wang timer { 193c4629c34SSean Wang compatible = "arm,armv8-timer"; 194c4629c34SSean Wang interrupt-parent = <&gic>; 195c4629c34SSean Wang interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | 196c4629c34SSean Wang IRQ_TYPE_LEVEL_HIGH)>, 197c4629c34SSean Wang <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | 198c4629c34SSean Wang IRQ_TYPE_LEVEL_HIGH)>, 199c4629c34SSean Wang <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | 200c4629c34SSean Wang IRQ_TYPE_LEVEL_HIGH)>, 201c4629c34SSean Wang <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | 202c4629c34SSean Wang IRQ_TYPE_LEVEL_HIGH)>; 203c4629c34SSean Wang }; 204c4629c34SSean Wang 205d7167881SSean Wang infracfg: infracfg@10000000 { 206d7167881SSean Wang compatible = "mediatek,mt7622-infracfg", 207d7167881SSean Wang "syscon"; 208d7167881SSean Wang reg = <0 0x10000000 0 0x1000>; 209d7167881SSean Wang #clock-cells = <1>; 210d7167881SSean Wang #reset-cells = <1>; 211d7167881SSean Wang }; 212d7167881SSean Wang 213c4ff2adeSSean Wang pwrap: pwrap@10001000 { 214c4ff2adeSSean Wang compatible = "mediatek,mt7622-pwrap"; 215c4ff2adeSSean Wang reg = <0 0x10001000 0 0x250>; 216c4ff2adeSSean Wang reg-names = "pwrap"; 217c4ff2adeSSean Wang clocks = <&infracfg CLK_INFRA_PMIC_PD>, <&pwrap_clk>; 218c4ff2adeSSean Wang clock-names = "spi", "wrap"; 219c4ff2adeSSean Wang resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>; 220c4ff2adeSSean Wang reset-names = "pwrap"; 221c4ff2adeSSean Wang interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; 222c4ff2adeSSean Wang status = "disabled"; 223c4ff2adeSSean Wang }; 224c4ff2adeSSean Wang 225d7167881SSean Wang pericfg: pericfg@10002000 { 226d7167881SSean Wang compatible = "mediatek,mt7622-pericfg", 227d7167881SSean Wang "syscon"; 228d7167881SSean Wang reg = <0 0x10002000 0 0x1000>; 229d7167881SSean Wang #clock-cells = <1>; 230d7167881SSean Wang #reset-cells = <1>; 231d7167881SSean Wang }; 232d7167881SSean Wang 233925bd27fSSean Wang scpsys: scpsys@10006000 { 234925bd27fSSean Wang compatible = "mediatek,mt7622-scpsys", 235925bd27fSSean Wang "syscon"; 236925bd27fSSean Wang #power-domain-cells = <1>; 237925bd27fSSean Wang reg = <0 0x10006000 0 0x1000>; 238925bd27fSSean Wang interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>, 239925bd27fSSean Wang <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>, 240925bd27fSSean Wang <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>, 241925bd27fSSean Wang <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>; 242925bd27fSSean Wang infracfg = <&infracfg>; 243925bd27fSSean Wang clocks = <&topckgen CLK_TOP_HIF_SEL>; 244925bd27fSSean Wang clock-names = "hif_sel"; 245925bd27fSSean Wang }; 246925bd27fSSean Wang 247ae457b76SSean Wang cir: cir@10009000 { 248ae457b76SSean Wang compatible = "mediatek,mt7622-cir"; 249ae457b76SSean Wang reg = <0 0x10009000 0 0x1000>; 250ae457b76SSean Wang interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>; 251ae457b76SSean Wang clocks = <&infracfg CLK_INFRA_IRRX_PD>, 252ae457b76SSean Wang <&topckgen CLK_TOP_AXI_SEL>; 253ae457b76SSean Wang clock-names = "clk", "bus"; 254ae457b76SSean Wang status = "disabled"; 255ae457b76SSean Wang }; 256ae457b76SSean Wang 257c4629c34SSean Wang sysirq: interrupt-controller@10200620 { 258c4629c34SSean Wang compatible = "mediatek,mt7622-sysirq", 259c4629c34SSean Wang "mediatek,mt6577-sysirq"; 260c4629c34SSean Wang interrupt-controller; 261c4629c34SSean Wang #interrupt-cells = <3>; 262c4629c34SSean Wang interrupt-parent = <&gic>; 263c4629c34SSean Wang reg = <0 0x10200620 0 0x20>; 264c4629c34SSean Wang }; 265c4629c34SSean Wang 266ae457b76SSean Wang efuse: efuse@10206000 { 267ae457b76SSean Wang compatible = "mediatek,mt7622-efuse", 268ae457b76SSean Wang "mediatek,efuse"; 269ae457b76SSean Wang reg = <0 0x10206000 0 0x1000>; 270ae457b76SSean Wang #address-cells = <1>; 271ae457b76SSean Wang #size-cells = <1>; 272ae457b76SSean Wang 273ae457b76SSean Wang thermal_calibration: calib@198 { 274ae457b76SSean Wang reg = <0x198 0xc>; 275ae457b76SSean Wang }; 276ae457b76SSean Wang }; 277ae457b76SSean Wang 278d7167881SSean Wang apmixedsys: apmixedsys@10209000 { 279d7167881SSean Wang compatible = "mediatek,mt7622-apmixedsys", 280d7167881SSean Wang "syscon"; 281d7167881SSean Wang reg = <0 0x10209000 0 0x1000>; 282d7167881SSean Wang #clock-cells = <1>; 283d7167881SSean Wang }; 284d7167881SSean Wang 285d7167881SSean Wang topckgen: topckgen@10210000 { 286d7167881SSean Wang compatible = "mediatek,mt7622-topckgen", 287d7167881SSean Wang "syscon"; 288d7167881SSean Wang reg = <0 0x10210000 0 0x1000>; 289d7167881SSean Wang #clock-cells = <1>; 290d7167881SSean Wang }; 291d7167881SSean Wang 292ae457b76SSean Wang rng: rng@1020f000 { 293ae457b76SSean Wang compatible = "mediatek,mt7622-rng", 294ae457b76SSean Wang "mediatek,mt7623-rng"; 295ae457b76SSean Wang reg = <0 0x1020f000 0 0x1000>; 296ae457b76SSean Wang clocks = <&infracfg CLK_INFRA_TRNG>; 297ae457b76SSean Wang clock-names = "rng"; 298ae457b76SSean Wang }; 299ae457b76SSean Wang 3003725ba3fSSean Wang pio: pinctrl@10211000 { 3013725ba3fSSean Wang compatible = "mediatek,mt7622-pinctrl"; 30234093104SSean Wang reg = <0 0x10211000 0 0x1000>, 30334093104SSean Wang <0 0x10005000 0 0x1000>; 30434093104SSean Wang reg-names = "base", "eint"; 3053725ba3fSSean Wang gpio-controller; 3063725ba3fSSean Wang #gpio-cells = <2>; 307aa54a84fSSean Wang gpio-ranges = <&pio 0 0 103>; 30834093104SSean Wang interrupt-controller; 30934093104SSean Wang interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; 31034093104SSean Wang interrupt-parent = <&gic>; 31134093104SSean Wang #interrupt-cells = <2>; 3123725ba3fSSean Wang }; 3133725ba3fSSean Wang 314ae457b76SSean Wang watchdog: watchdog@10212000 { 315ae457b76SSean Wang compatible = "mediatek,mt7622-wdt", 316ae457b76SSean Wang "mediatek,mt6589-wdt"; 317ae457b76SSean Wang reg = <0 0x10212000 0 0x800>; 318ae457b76SSean Wang }; 319ae457b76SSean Wang 320ae457b76SSean Wang rtc: rtc@10212800 { 321ae457b76SSean Wang compatible = "mediatek,mt7622-rtc", 322ae457b76SSean Wang "mediatek,soc-rtc"; 323ae457b76SSean Wang reg = <0 0x10212800 0 0x200>; 324ae457b76SSean Wang interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>; 325ae457b76SSean Wang clocks = <&topckgen CLK_TOP_RTC>; 326ae457b76SSean Wang clock-names = "rtc"; 327ae457b76SSean Wang }; 328ae457b76SSean Wang 329c4629c34SSean Wang gic: interrupt-controller@10300000 { 330c4629c34SSean Wang compatible = "arm,gic-400"; 331c4629c34SSean Wang interrupt-controller; 332c4629c34SSean Wang #interrupt-cells = <3>; 333c4629c34SSean Wang interrupt-parent = <&gic>; 334c4629c34SSean Wang reg = <0 0x10310000 0 0x1000>, 335c4629c34SSean Wang <0 0x10320000 0 0x1000>, 336c4629c34SSean Wang <0 0x10340000 0 0x2000>, 337c4629c34SSean Wang <0 0x10360000 0 0x2000>; 338c4629c34SSean Wang }; 339c4629c34SSean Wang 3409cc7f0deSRyder Lee cci: cci@10390000 { 3419cc7f0deSRyder Lee compatible = "arm,cci-400"; 3429cc7f0deSRyder Lee #address-cells = <1>; 3439cc7f0deSRyder Lee #size-cells = <1>; 3449cc7f0deSRyder Lee reg = <0 0x10390000 0 0x1000>; 3459cc7f0deSRyder Lee ranges = <0 0 0x10390000 0x10000>; 3469cc7f0deSRyder Lee 3479cc7f0deSRyder Lee cci_control0: slave-if@1000 { 3489cc7f0deSRyder Lee compatible = "arm,cci-400-ctrl-if"; 3499cc7f0deSRyder Lee interface-type = "ace-lite"; 3509cc7f0deSRyder Lee reg = <0x1000 0x1000>; 3519cc7f0deSRyder Lee }; 3529cc7f0deSRyder Lee 3539cc7f0deSRyder Lee cci_control1: slave-if@4000 { 3549cc7f0deSRyder Lee compatible = "arm,cci-400-ctrl-if"; 3559cc7f0deSRyder Lee interface-type = "ace"; 3569cc7f0deSRyder Lee reg = <0x4000 0x1000>; 3579cc7f0deSRyder Lee }; 3589cc7f0deSRyder Lee 3599cc7f0deSRyder Lee cci_control2: slave-if@5000 { 3609cc7f0deSRyder Lee compatible = "arm,cci-400-ctrl-if"; 3619cc7f0deSRyder Lee interface-type = "ace"; 3629cc7f0deSRyder Lee reg = <0x5000 0x1000>; 3639cc7f0deSRyder Lee }; 3649cc7f0deSRyder Lee 3659cc7f0deSRyder Lee pmu@9000 { 3669cc7f0deSRyder Lee compatible = "arm,cci-400-pmu,r1"; 3679cc7f0deSRyder Lee reg = <0x9000 0x5000>; 3689cc7f0deSRyder Lee interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, 3699cc7f0deSRyder Lee <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, 3709cc7f0deSRyder Lee <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, 3719cc7f0deSRyder Lee <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>, 3729cc7f0deSRyder Lee <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 3739cc7f0deSRyder Lee }; 3749cc7f0deSRyder Lee }; 3759cc7f0deSRyder Lee 376ae457b76SSean Wang auxadc: adc@11001000 { 377ae457b76SSean Wang compatible = "mediatek,mt7622-auxadc"; 378ae457b76SSean Wang reg = <0 0x11001000 0 0x1000>; 379ae457b76SSean Wang clocks = <&pericfg CLK_PERI_AUXADC_PD>; 380ae457b76SSean Wang clock-names = "main"; 381ae457b76SSean Wang #io-channel-cells = <1>; 382ae457b76SSean Wang }; 383ae457b76SSean Wang 384c4629c34SSean Wang uart0: serial@11002000 { 385c4629c34SSean Wang compatible = "mediatek,mt7622-uart", 386c4629c34SSean Wang "mediatek,mt6577-uart"; 387c4629c34SSean Wang reg = <0 0x11002000 0 0x400>; 388c4629c34SSean Wang interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>; 38913f36c32SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 3902b519747SRyder Lee <&pericfg CLK_PERI_UART0_PD>; 391c4629c34SSean Wang clock-names = "baud", "bus"; 392c4629c34SSean Wang status = "disabled"; 393c4629c34SSean Wang }; 394d7167881SSean Wang 395ae457b76SSean Wang uart1: serial@11003000 { 396ae457b76SSean Wang compatible = "mediatek,mt7622-uart", 397ae457b76SSean Wang "mediatek,mt6577-uart"; 398ae457b76SSean Wang reg = <0 0x11003000 0 0x400>; 399ae457b76SSean Wang interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>; 400ae457b76SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 401ae457b76SSean Wang <&pericfg CLK_PERI_UART1_PD>; 402ae457b76SSean Wang clock-names = "baud", "bus"; 403ae457b76SSean Wang status = "disabled"; 404ae457b76SSean Wang }; 405ae457b76SSean Wang 406ae457b76SSean Wang uart2: serial@11004000 { 407ae457b76SSean Wang compatible = "mediatek,mt7622-uart", 408ae457b76SSean Wang "mediatek,mt6577-uart"; 409ae457b76SSean Wang reg = <0 0x11004000 0 0x400>; 410ae457b76SSean Wang interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>; 411ae457b76SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 412ae457b76SSean Wang <&pericfg CLK_PERI_UART2_PD>; 413ae457b76SSean Wang clock-names = "baud", "bus"; 414ae457b76SSean Wang status = "disabled"; 415ae457b76SSean Wang }; 416ae457b76SSean Wang 417ae457b76SSean Wang uart3: serial@11005000 { 418ae457b76SSean Wang compatible = "mediatek,mt7622-uart", 419ae457b76SSean Wang "mediatek,mt6577-uart"; 420ae457b76SSean Wang reg = <0 0x11005000 0 0x400>; 421ae457b76SSean Wang interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>; 422ae457b76SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 423ae457b76SSean Wang <&pericfg CLK_PERI_UART3_PD>; 424ae457b76SSean Wang clock-names = "baud", "bus"; 425ae457b76SSean Wang status = "disabled"; 426ae457b76SSean Wang }; 427ae457b76SSean Wang 428ae457b76SSean Wang pwm: pwm@11006000 { 429ae457b76SSean Wang compatible = "mediatek,mt7622-pwm"; 430ae457b76SSean Wang reg = <0 0x11006000 0 0x1000>; 431ae457b76SSean Wang interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>; 432ae457b76SSean Wang clocks = <&topckgen CLK_TOP_PWM_SEL>, 433ae457b76SSean Wang <&pericfg CLK_PERI_PWM_PD>, 434ae457b76SSean Wang <&pericfg CLK_PERI_PWM1_PD>, 435ae457b76SSean Wang <&pericfg CLK_PERI_PWM2_PD>, 436ae457b76SSean Wang <&pericfg CLK_PERI_PWM3_PD>, 437ae457b76SSean Wang <&pericfg CLK_PERI_PWM4_PD>, 438ae457b76SSean Wang <&pericfg CLK_PERI_PWM5_PD>, 439ae457b76SSean Wang <&pericfg CLK_PERI_PWM6_PD>; 440ae457b76SSean Wang clock-names = "top", "main", "pwm1", "pwm2", "pwm3", "pwm4", 441ae457b76SSean Wang "pwm5", "pwm6"; 442ae457b76SSean Wang status = "disabled"; 443ae457b76SSean Wang }; 444ae457b76SSean Wang 445ae457b76SSean Wang i2c0: i2c@11007000 { 446ae457b76SSean Wang compatible = "mediatek,mt7622-i2c"; 447ae457b76SSean Wang reg = <0 0x11007000 0 0x90>, 448ae457b76SSean Wang <0 0x11000100 0 0x80>; 449ae457b76SSean Wang interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>; 450ae457b76SSean Wang clock-div = <16>; 451ae457b76SSean Wang clocks = <&pericfg CLK_PERI_I2C0_PD>, 452ae457b76SSean Wang <&pericfg CLK_PERI_AP_DMA_PD>; 453ae457b76SSean Wang clock-names = "main", "dma"; 454ae457b76SSean Wang #address-cells = <1>; 455ae457b76SSean Wang #size-cells = <0>; 456ae457b76SSean Wang status = "disabled"; 457ae457b76SSean Wang }; 458ae457b76SSean Wang 459ae457b76SSean Wang i2c1: i2c@11008000 { 460ae457b76SSean Wang compatible = "mediatek,mt7622-i2c"; 461ae457b76SSean Wang reg = <0 0x11008000 0 0x90>, 462ae457b76SSean Wang <0 0x11000180 0 0x80>; 463ae457b76SSean Wang interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>; 464ae457b76SSean Wang clock-div = <16>; 465ae457b76SSean Wang clocks = <&pericfg CLK_PERI_I2C1_PD>, 466ae457b76SSean Wang <&pericfg CLK_PERI_AP_DMA_PD>; 467ae457b76SSean Wang clock-names = "main", "dma"; 468ae457b76SSean Wang #address-cells = <1>; 469ae457b76SSean Wang #size-cells = <0>; 470ae457b76SSean Wang status = "disabled"; 471ae457b76SSean Wang }; 472ae457b76SSean Wang 473ae457b76SSean Wang i2c2: i2c@11009000 { 474ae457b76SSean Wang compatible = "mediatek,mt7622-i2c"; 475ae457b76SSean Wang reg = <0 0x11009000 0 0x90>, 476ae457b76SSean Wang <0 0x11000200 0 0x80>; 477ae457b76SSean Wang interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>; 478ae457b76SSean Wang clock-div = <16>; 479ae457b76SSean Wang clocks = <&pericfg CLK_PERI_I2C2_PD>, 480ae457b76SSean Wang <&pericfg CLK_PERI_AP_DMA_PD>; 481ae457b76SSean Wang clock-names = "main", "dma"; 482ae457b76SSean Wang #address-cells = <1>; 483ae457b76SSean Wang #size-cells = <0>; 484ae457b76SSean Wang status = "disabled"; 485ae457b76SSean Wang }; 486ae457b76SSean Wang 487ae457b76SSean Wang spi0: spi@1100a000 { 488ae457b76SSean Wang compatible = "mediatek,mt7622-spi"; 489ae457b76SSean Wang reg = <0 0x1100a000 0 0x100>; 490ae457b76SSean Wang interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>; 491ae457b76SSean Wang clocks = <&topckgen CLK_TOP_SYSPLL3_D2>, 492ae457b76SSean Wang <&topckgen CLK_TOP_SPI0_SEL>, 493ae457b76SSean Wang <&pericfg CLK_PERI_SPI0_PD>; 494ae457b76SSean Wang clock-names = "parent-clk", "sel-clk", "spi-clk"; 495ae457b76SSean Wang #address-cells = <1>; 496ae457b76SSean Wang #size-cells = <0>; 497ae457b76SSean Wang status = "disabled"; 498ae457b76SSean Wang }; 499ae457b76SSean Wang 500ae457b76SSean Wang thermal: thermal@1100b000 { 501ae457b76SSean Wang #thermal-sensor-cells = <1>; 502ae457b76SSean Wang compatible = "mediatek,mt7622-thermal"; 503ae457b76SSean Wang reg = <0 0x1100b000 0 0x1000>; 504ae457b76SSean Wang interrupts = <0 78 IRQ_TYPE_LEVEL_LOW>; 505ae457b76SSean Wang clocks = <&pericfg CLK_PERI_THERM_PD>, 506ae457b76SSean Wang <&pericfg CLK_PERI_AUXADC_PD>; 507ae457b76SSean Wang clock-names = "therm", "auxadc"; 508ae457b76SSean Wang resets = <&pericfg MT7622_PERI_THERM_SW_RST>; 509ae457b76SSean Wang reset-names = "therm"; 510ae457b76SSean Wang mediatek,auxadc = <&auxadc>; 511ae457b76SSean Wang mediatek,apmixedsys = <&apmixedsys>; 512ae457b76SSean Wang nvmem-cells = <&thermal_calibration>; 513ae457b76SSean Wang nvmem-cell-names = "calibration-data"; 514ae457b76SSean Wang }; 515ae457b76SSean Wang 516ae457b76SSean Wang btif: serial@1100c000 { 517ae457b76SSean Wang compatible = "mediatek,mt7622-btif", 518ae457b76SSean Wang "mediatek,mtk-btif"; 519ae457b76SSean Wang reg = <0 0x1100c000 0 0x1000>; 520ae457b76SSean Wang interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>; 521ae457b76SSean Wang clocks = <&pericfg CLK_PERI_BTIF_PD>; 522ae457b76SSean Wang clock-names = "main"; 523ae457b76SSean Wang reg-shift = <2>; 524ae457b76SSean Wang reg-io-width = <4>; 525ae457b76SSean Wang status = "disabled"; 526e1dd0582SRyder Lee 527e1dd0582SRyder Lee bluetooth { 528e1dd0582SRyder Lee compatible = "mediatek,mt7622-bluetooth"; 529e1dd0582SRyder Lee power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; 530e1dd0582SRyder Lee clocks = <&clk25m>; 531e1dd0582SRyder Lee clock-names = "ref"; 532e1dd0582SRyder Lee }; 533ae457b76SSean Wang }; 534ae457b76SSean Wang 53523beb1adSSean Wang nandc: nfi@1100d000 { 53623beb1adSSean Wang compatible = "mediatek,mt7622-nfc"; 53723beb1adSSean Wang reg = <0 0x1100D000 0 0x1000>; 53823beb1adSSean Wang interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>; 53923beb1adSSean Wang clocks = <&pericfg CLK_PERI_NFI_PD>, 54023beb1adSSean Wang <&pericfg CLK_PERI_SNFI_PD>; 54123beb1adSSean Wang clock-names = "nfi_clk", "pad_clk"; 54223beb1adSSean Wang ecc-engine = <&bch>; 54323beb1adSSean Wang #address-cells = <1>; 54423beb1adSSean Wang #size-cells = <0>; 54523beb1adSSean Wang status = "disabled"; 54623beb1adSSean Wang }; 54723beb1adSSean Wang 54823beb1adSSean Wang bch: ecc@1100e000 { 54923beb1adSSean Wang compatible = "mediatek,mt7622-ecc"; 55023beb1adSSean Wang reg = <0 0x1100e000 0 0x1000>; 55123beb1adSSean Wang interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>; 55223beb1adSSean Wang clocks = <&pericfg CLK_PERI_NFIECC_PD>; 55323beb1adSSean Wang clock-names = "nfiecc_clk"; 55423beb1adSSean Wang status = "disabled"; 55523beb1adSSean Wang }; 55623beb1adSSean Wang 55723beb1adSSean Wang nor_flash: spi@11014000 { 55823beb1adSSean Wang compatible = "mediatek,mt7622-nor", 55923beb1adSSean Wang "mediatek,mt8173-nor"; 56023beb1adSSean Wang reg = <0 0x11014000 0 0xe0>; 56123beb1adSSean Wang clocks = <&pericfg CLK_PERI_FLASH_PD>, 56223beb1adSSean Wang <&topckgen CLK_TOP_FLASH_SEL>; 56323beb1adSSean Wang clock-names = "spi", "sf"; 56423beb1adSSean Wang #address-cells = <1>; 56523beb1adSSean Wang #size-cells = <0>; 56623beb1adSSean Wang status = "disabled"; 56723beb1adSSean Wang }; 56823beb1adSSean Wang 569ae457b76SSean Wang spi1: spi@11016000 { 570ae457b76SSean Wang compatible = "mediatek,mt7622-spi"; 571ae457b76SSean Wang reg = <0 0x11016000 0 0x100>; 572ae457b76SSean Wang interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_LOW>; 573ae457b76SSean Wang clocks = <&topckgen CLK_TOP_SYSPLL3_D2>, 574ae457b76SSean Wang <&topckgen CLK_TOP_SPI1_SEL>, 575ae457b76SSean Wang <&pericfg CLK_PERI_SPI1_PD>; 576ae457b76SSean Wang clock-names = "parent-clk", "sel-clk", "spi-clk"; 577ae457b76SSean Wang #address-cells = <1>; 578ae457b76SSean Wang #size-cells = <0>; 579ae457b76SSean Wang status = "disabled"; 580ae457b76SSean Wang }; 581ae457b76SSean Wang 582ae457b76SSean Wang uart4: serial@11019000 { 583ae457b76SSean Wang compatible = "mediatek,mt7622-uart", 584ae457b76SSean Wang "mediatek,mt6577-uart"; 585ae457b76SSean Wang reg = <0 0x11019000 0 0x400>; 586ae457b76SSean Wang interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_LOW>; 587ae457b76SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 588ae457b76SSean Wang <&pericfg CLK_PERI_UART4_PD>; 589ae457b76SSean Wang clock-names = "baud", "bus"; 590ae457b76SSean Wang status = "disabled"; 591ae457b76SSean Wang }; 592ae457b76SSean Wang 593f1e0d0d8SRyder Lee audsys: clock-controller@11220000 { 594f1e0d0d8SRyder Lee compatible = "mediatek,mt7622-audsys", "syscon"; 595f1e0d0d8SRyder Lee reg = <0 0x11220000 0 0x2000>; 596f1e0d0d8SRyder Lee #clock-cells = <1>; 597f1e0d0d8SRyder Lee 598f1e0d0d8SRyder Lee afe: audio-controller { 599f1e0d0d8SRyder Lee compatible = "mediatek,mt7622-audio"; 600f1e0d0d8SRyder Lee interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>, 601f1e0d0d8SRyder Lee <GIC_SPI 145 IRQ_TYPE_LEVEL_LOW>; 602f1e0d0d8SRyder Lee interrupt-names = "afe", "asys"; 603f1e0d0d8SRyder Lee 604f1e0d0d8SRyder Lee clocks = <&infracfg CLK_INFRA_AUDIO_PD>, 605f1e0d0d8SRyder Lee <&topckgen CLK_TOP_AUD1_SEL>, 606f1e0d0d8SRyder Lee <&topckgen CLK_TOP_AUD2_SEL>, 607f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A1SYS_HP_DIV_PD>, 608f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A2SYS_HP_DIV_PD>, 609f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S0_MCK_SEL>, 610f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S1_MCK_SEL>, 611f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S2_MCK_SEL>, 612f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S3_MCK_SEL>, 613f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S0_MCK_DIV>, 614f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S1_MCK_DIV>, 615f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S2_MCK_DIV>, 616f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S3_MCK_DIV>, 617f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S0_MCK_DIV_PD>, 618f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S1_MCK_DIV_PD>, 619f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S2_MCK_DIV_PD>, 620f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S3_MCK_DIV_PD>, 621f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SO1>, 622f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SO2>, 623f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SO3>, 624f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SO4>, 625f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SIN1>, 626f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SIN2>, 627f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SIN3>, 628f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SIN4>, 629f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_ASRCO1>, 630f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_ASRCO2>, 631f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_ASRCO3>, 632f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_ASRCO4>, 633f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_AFE>, 634f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_AFE_CONN>, 635f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_A1SYS>, 636f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_A2SYS>; 637f1e0d0d8SRyder Lee 638f1e0d0d8SRyder Lee clock-names = "infra_sys_audio_clk", 639f1e0d0d8SRyder Lee "top_audio_mux1_sel", 640f1e0d0d8SRyder Lee "top_audio_mux2_sel", 641f1e0d0d8SRyder Lee "top_audio_a1sys_hp", 642f1e0d0d8SRyder Lee "top_audio_a2sys_hp", 643f1e0d0d8SRyder Lee "i2s0_src_sel", 644f1e0d0d8SRyder Lee "i2s1_src_sel", 645f1e0d0d8SRyder Lee "i2s2_src_sel", 646f1e0d0d8SRyder Lee "i2s3_src_sel", 647f1e0d0d8SRyder Lee "i2s0_src_div", 648f1e0d0d8SRyder Lee "i2s1_src_div", 649f1e0d0d8SRyder Lee "i2s2_src_div", 650f1e0d0d8SRyder Lee "i2s3_src_div", 651f1e0d0d8SRyder Lee "i2s0_mclk_en", 652f1e0d0d8SRyder Lee "i2s1_mclk_en", 653f1e0d0d8SRyder Lee "i2s2_mclk_en", 654f1e0d0d8SRyder Lee "i2s3_mclk_en", 655f1e0d0d8SRyder Lee "i2so0_hop_ck", 656f1e0d0d8SRyder Lee "i2so1_hop_ck", 657f1e0d0d8SRyder Lee "i2so2_hop_ck", 658f1e0d0d8SRyder Lee "i2so3_hop_ck", 659f1e0d0d8SRyder Lee "i2si0_hop_ck", 660f1e0d0d8SRyder Lee "i2si1_hop_ck", 661f1e0d0d8SRyder Lee "i2si2_hop_ck", 662f1e0d0d8SRyder Lee "i2si3_hop_ck", 663f1e0d0d8SRyder Lee "asrc0_out_ck", 664f1e0d0d8SRyder Lee "asrc1_out_ck", 665f1e0d0d8SRyder Lee "asrc2_out_ck", 666f1e0d0d8SRyder Lee "asrc3_out_ck", 667f1e0d0d8SRyder Lee "audio_afe_pd", 668f1e0d0d8SRyder Lee "audio_afe_conn_pd", 669f1e0d0d8SRyder Lee "audio_a1sys_pd", 670f1e0d0d8SRyder Lee "audio_a2sys_pd"; 671f1e0d0d8SRyder Lee 672f1e0d0d8SRyder Lee assigned-clocks = <&topckgen CLK_TOP_A1SYS_HP_SEL>, 673f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A2SYS_HP_SEL>, 674f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A1SYS_HP_DIV>, 675f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A2SYS_HP_DIV>; 676f1e0d0d8SRyder Lee assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL>, 677f1e0d0d8SRyder Lee <&topckgen CLK_TOP_AUD2PLL>; 678f1e0d0d8SRyder Lee assigned-clock-rates = <0>, <0>, <49152000>, <45158400>; 679f1e0d0d8SRyder Lee }; 680f1e0d0d8SRyder Lee }; 681f1e0d0d8SRyder Lee 6822c002a30SSean Wang mmc0: mmc@11230000 { 6832c002a30SSean Wang compatible = "mediatek,mt7622-mmc"; 6842c002a30SSean Wang reg = <0 0x11230000 0 0x1000>; 6852c002a30SSean Wang interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>; 6862c002a30SSean Wang clocks = <&pericfg CLK_PERI_MSDC30_0_PD>, 6872c002a30SSean Wang <&topckgen CLK_TOP_MSDC50_0_SEL>; 6882c002a30SSean Wang clock-names = "source", "hclk"; 6892c002a30SSean Wang status = "disabled"; 6902c002a30SSean Wang }; 6912c002a30SSean Wang 6922c002a30SSean Wang mmc1: mmc@11240000 { 6932c002a30SSean Wang compatible = "mediatek,mt7622-mmc"; 6942c002a30SSean Wang reg = <0 0x11240000 0 0x1000>; 6952c002a30SSean Wang interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>; 6962c002a30SSean Wang clocks = <&pericfg CLK_PERI_MSDC30_1_PD>, 6972c002a30SSean Wang <&topckgen CLK_TOP_AXI_SEL>; 6982c002a30SSean Wang clock-names = "source", "hclk"; 6992c002a30SSean Wang status = "disabled"; 7002c002a30SSean Wang }; 7012c002a30SSean Wang 702d7167881SSean Wang ssusbsys: ssusbsys@1a000000 { 703d7167881SSean Wang compatible = "mediatek,mt7622-ssusbsys", 704d7167881SSean Wang "syscon"; 705d7167881SSean Wang reg = <0 0x1a000000 0 0x1000>; 706d7167881SSean Wang #clock-cells = <1>; 707d7167881SSean Wang #reset-cells = <1>; 708d7167881SSean Wang }; 709d7167881SSean Wang 7100f12d5b3SChunfeng Yun ssusb: usb@1a0c0000 { 7110f12d5b3SChunfeng Yun compatible = "mediatek,mt7622-xhci", 7120f12d5b3SChunfeng Yun "mediatek,mtk-xhci"; 7130f12d5b3SChunfeng Yun reg = <0 0x1a0c0000 0 0x01000>, 7140f12d5b3SChunfeng Yun <0 0x1a0c4700 0 0x0100>; 7150f12d5b3SChunfeng Yun reg-names = "mac", "ippc"; 7160f12d5b3SChunfeng Yun interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_LOW>; 7170f12d5b3SChunfeng Yun power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF1>; 7180f12d5b3SChunfeng Yun clocks = <&ssusbsys CLK_SSUSB_SYS_EN>, 7190f12d5b3SChunfeng Yun <&ssusbsys CLK_SSUSB_REF_EN>, 7200f12d5b3SChunfeng Yun <&ssusbsys CLK_SSUSB_MCU_EN>, 7210f12d5b3SChunfeng Yun <&ssusbsys CLK_SSUSB_DMA_EN>; 7220f12d5b3SChunfeng Yun clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck"; 7230f12d5b3SChunfeng Yun phys = <&u2port0 PHY_TYPE_USB2>, 7240f12d5b3SChunfeng Yun <&u3port0 PHY_TYPE_USB3>, 7250f12d5b3SChunfeng Yun <&u2port1 PHY_TYPE_USB2>; 7260f12d5b3SChunfeng Yun 7270f12d5b3SChunfeng Yun status = "disabled"; 7280f12d5b3SChunfeng Yun }; 7290f12d5b3SChunfeng Yun 7300f12d5b3SChunfeng Yun u3phy: usb-phy@1a0c4000 { 7310f12d5b3SChunfeng Yun compatible = "mediatek,mt7622-u3phy", 7320f12d5b3SChunfeng Yun "mediatek,generic-tphy-v1"; 7330f12d5b3SChunfeng Yun reg = <0 0x1a0c4000 0 0x700>; 7340f12d5b3SChunfeng Yun #address-cells = <2>; 7350f12d5b3SChunfeng Yun #size-cells = <2>; 7360f12d5b3SChunfeng Yun ranges; 7370f12d5b3SChunfeng Yun status = "disabled"; 7380f12d5b3SChunfeng Yun 7390f12d5b3SChunfeng Yun u2port0: usb-phy@1a0c4800 { 7400f12d5b3SChunfeng Yun reg = <0 0x1a0c4800 0 0x0100>; 7410f12d5b3SChunfeng Yun #phy-cells = <1>; 7420f12d5b3SChunfeng Yun clocks = <&ssusbsys CLK_SSUSB_U2_PHY_EN>; 7430f12d5b3SChunfeng Yun clock-names = "ref"; 7440f12d5b3SChunfeng Yun }; 7450f12d5b3SChunfeng Yun 7460f12d5b3SChunfeng Yun u3port0: usb-phy@1a0c4900 { 7470f12d5b3SChunfeng Yun reg = <0 0x1a0c4900 0 0x0700>; 7480f12d5b3SChunfeng Yun #phy-cells = <1>; 7490f12d5b3SChunfeng Yun clocks = <&clk25m>; 7500f12d5b3SChunfeng Yun clock-names = "ref"; 7510f12d5b3SChunfeng Yun }; 7520f12d5b3SChunfeng Yun 7530f12d5b3SChunfeng Yun u2port1: usb-phy@1a0c5000 { 7540f12d5b3SChunfeng Yun reg = <0 0x1a0c5000 0 0x0100>; 7550f12d5b3SChunfeng Yun #phy-cells = <1>; 7560f12d5b3SChunfeng Yun clocks = <&ssusbsys CLK_SSUSB_U2_PHY_1P_EN>; 7570f12d5b3SChunfeng Yun clock-names = "ref"; 7580f12d5b3SChunfeng Yun }; 7590f12d5b3SChunfeng Yun }; 7600f12d5b3SChunfeng Yun 761d7167881SSean Wang pciesys: pciesys@1a100800 { 762d7167881SSean Wang compatible = "mediatek,mt7622-pciesys", 763d7167881SSean Wang "syscon"; 764d7167881SSean Wang reg = <0 0x1a100800 0 0x1000>; 765d7167881SSean Wang #clock-cells = <1>; 766d7167881SSean Wang #reset-cells = <1>; 767d7167881SSean Wang }; 768d7167881SSean Wang 76926907b53SRyder Lee pcie: pcie@1a140000 { 77026907b53SRyder Lee compatible = "mediatek,mt7622-pcie"; 77126907b53SRyder Lee device_type = "pci"; 77226907b53SRyder Lee reg = <0 0x1a140000 0 0x1000>, 77326907b53SRyder Lee <0 0x1a143000 0 0x1000>, 77426907b53SRyder Lee <0 0x1a145000 0 0x1000>; 77526907b53SRyder Lee reg-names = "subsys", "port0", "port1"; 77626907b53SRyder Lee #address-cells = <3>; 77726907b53SRyder Lee #size-cells = <2>; 77826907b53SRyder Lee interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_LOW>, 77926907b53SRyder Lee <GIC_SPI 229 IRQ_TYPE_LEVEL_LOW>; 78026907b53SRyder Lee clocks = <&pciesys CLK_PCIE_P0_MAC_EN>, 78126907b53SRyder Lee <&pciesys CLK_PCIE_P1_MAC_EN>, 78226907b53SRyder Lee <&pciesys CLK_PCIE_P0_AHB_EN>, 78326907b53SRyder Lee <&pciesys CLK_PCIE_P0_AHB_EN>, 78426907b53SRyder Lee <&pciesys CLK_PCIE_P0_AUX_EN>, 78526907b53SRyder Lee <&pciesys CLK_PCIE_P1_AUX_EN>, 78626907b53SRyder Lee <&pciesys CLK_PCIE_P0_AXI_EN>, 78726907b53SRyder Lee <&pciesys CLK_PCIE_P1_AXI_EN>, 78826907b53SRyder Lee <&pciesys CLK_PCIE_P0_OBFF_EN>, 78926907b53SRyder Lee <&pciesys CLK_PCIE_P1_OBFF_EN>, 79026907b53SRyder Lee <&pciesys CLK_PCIE_P0_PIPE_EN>, 79126907b53SRyder Lee <&pciesys CLK_PCIE_P1_PIPE_EN>; 79226907b53SRyder Lee clock-names = "sys_ck0", "sys_ck1", "ahb_ck0", "ahb_ck1", 79326907b53SRyder Lee "aux_ck0", "aux_ck1", "axi_ck0", "axi_ck1", 79426907b53SRyder Lee "obff_ck0", "obff_ck1", "pipe_ck0", "pipe_ck1"; 79526907b53SRyder Lee power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; 79626907b53SRyder Lee bus-range = <0x00 0xff>; 79726907b53SRyder Lee ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x10000000>; 79826907b53SRyder Lee status = "disabled"; 79926907b53SRyder Lee 80026907b53SRyder Lee pcie0: pcie@0,0 { 80126907b53SRyder Lee reg = <0x0000 0 0 0 0>; 80226907b53SRyder Lee #address-cells = <3>; 80326907b53SRyder Lee #size-cells = <2>; 80426907b53SRyder Lee #interrupt-cells = <1>; 80526907b53SRyder Lee ranges; 80626907b53SRyder Lee status = "disabled"; 80726907b53SRyder Lee 80826907b53SRyder Lee interrupt-map-mask = <0 0 0 7>; 80926907b53SRyder Lee interrupt-map = <0 0 0 1 &pcie_intc0 0>, 81026907b53SRyder Lee <0 0 0 2 &pcie_intc0 1>, 81126907b53SRyder Lee <0 0 0 3 &pcie_intc0 2>, 81226907b53SRyder Lee <0 0 0 4 &pcie_intc0 3>; 81326907b53SRyder Lee pcie_intc0: interrupt-controller { 81426907b53SRyder Lee interrupt-controller; 81526907b53SRyder Lee #address-cells = <0>; 81626907b53SRyder Lee #interrupt-cells = <1>; 81726907b53SRyder Lee }; 81826907b53SRyder Lee }; 81926907b53SRyder Lee 82026907b53SRyder Lee pcie1: pcie@1,0 { 82126907b53SRyder Lee reg = <0x0800 0 0 0 0>; 82226907b53SRyder Lee #address-cells = <3>; 82326907b53SRyder Lee #size-cells = <2>; 82426907b53SRyder Lee #interrupt-cells = <1>; 82526907b53SRyder Lee ranges; 82626907b53SRyder Lee status = "disabled"; 82726907b53SRyder Lee 82826907b53SRyder Lee interrupt-map-mask = <0 0 0 7>; 82926907b53SRyder Lee interrupt-map = <0 0 0 1 &pcie_intc1 0>, 83026907b53SRyder Lee <0 0 0 2 &pcie_intc1 1>, 83126907b53SRyder Lee <0 0 0 3 &pcie_intc1 2>, 83226907b53SRyder Lee <0 0 0 4 &pcie_intc1 3>; 83326907b53SRyder Lee pcie_intc1: interrupt-controller { 83426907b53SRyder Lee interrupt-controller; 83526907b53SRyder Lee #address-cells = <0>; 83626907b53SRyder Lee #interrupt-cells = <1>; 83726907b53SRyder Lee }; 83826907b53SRyder Lee }; 83926907b53SRyder Lee }; 84026907b53SRyder Lee 841a39251eeSRyder Lee sata: sata@1a200000 { 842a39251eeSRyder Lee compatible = "mediatek,mt7622-ahci", 843a39251eeSRyder Lee "mediatek,mtk-ahci"; 844a39251eeSRyder Lee reg = <0 0x1a200000 0 0x1100>; 845a39251eeSRyder Lee interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>; 846a39251eeSRyder Lee interrupt-names = "hostc"; 847a39251eeSRyder Lee clocks = <&pciesys CLK_SATA_AHB_EN>, 848a39251eeSRyder Lee <&pciesys CLK_SATA_AXI_EN>, 849a39251eeSRyder Lee <&pciesys CLK_SATA_ASIC_EN>, 850a39251eeSRyder Lee <&pciesys CLK_SATA_RBC_EN>, 851a39251eeSRyder Lee <&pciesys CLK_SATA_PM_EN>; 852a39251eeSRyder Lee clock-names = "ahb", "axi", "asic", "rbc", "pm"; 853a39251eeSRyder Lee phys = <&sata_port PHY_TYPE_SATA>; 854a39251eeSRyder Lee phy-names = "sata-phy"; 855a39251eeSRyder Lee ports-implemented = <0x1>; 856a39251eeSRyder Lee power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; 857a39251eeSRyder Lee resets = <&pciesys MT7622_SATA_AXI_BUS_RST>, 858a39251eeSRyder Lee <&pciesys MT7622_SATA_PHY_SW_RST>, 859a39251eeSRyder Lee <&pciesys MT7622_SATA_PHY_REG_RST>; 860a39251eeSRyder Lee reset-names = "axi", "sw", "reg"; 861a39251eeSRyder Lee mediatek,phy-mode = <&pciesys>; 862a39251eeSRyder Lee status = "disabled"; 863a39251eeSRyder Lee }; 864a39251eeSRyder Lee 865a39251eeSRyder Lee sata_phy: sata-phy@1a243000 { 866a39251eeSRyder Lee compatible = "mediatek,generic-tphy-v1"; 867a39251eeSRyder Lee #address-cells = <2>; 868a39251eeSRyder Lee #size-cells = <2>; 869a39251eeSRyder Lee ranges; 870a39251eeSRyder Lee status = "disabled"; 871a39251eeSRyder Lee 872a39251eeSRyder Lee sata_port: sata-phy@1a243000 { 873a39251eeSRyder Lee reg = <0 0x1a243000 0 0x0100>; 874a39251eeSRyder Lee clocks = <&topckgen CLK_TOP_ETH_500M>; 875a39251eeSRyder Lee clock-names = "ref"; 876a39251eeSRyder Lee #phy-cells = <1>; 877a39251eeSRyder Lee }; 878a39251eeSRyder Lee }; 879a39251eeSRyder Lee 880d7167881SSean Wang ethsys: syscon@1b000000 { 881d7167881SSean Wang compatible = "mediatek,mt7622-ethsys", 882d7167881SSean Wang "syscon"; 883d7167881SSean Wang reg = <0 0x1b000000 0 0x1000>; 884d7167881SSean Wang #clock-cells = <1>; 885d7167881SSean Wang #reset-cells = <1>; 886d7167881SSean Wang }; 887d7167881SSean Wang 88818928e33SSean Wang hsdma: dma-controller@1b007000 { 88918928e33SSean Wang compatible = "mediatek,mt7622-hsdma"; 89018928e33SSean Wang reg = <0 0x1b007000 0 0x1000>; 89118928e33SSean Wang interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_LOW>; 89218928e33SSean Wang clocks = <ðsys CLK_ETH_HSDMA_EN>; 89318928e33SSean Wang clock-names = "hsdma"; 89418928e33SSean Wang power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>; 89518928e33SSean Wang #dma-cells = <1>; 89618928e33SSean Wang }; 89718928e33SSean Wang 8985f599b3aSSean Wang eth: ethernet@1b100000 { 8995f599b3aSSean Wang compatible = "mediatek,mt7622-eth", 9005f599b3aSSean Wang "mediatek,mt2701-eth", 9015f599b3aSSean Wang "syscon"; 9025f599b3aSSean Wang reg = <0 0x1b100000 0 0x20000>; 9035f599b3aSSean Wang interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>, 9045f599b3aSSean Wang <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>, 9055f599b3aSSean Wang <GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>; 9065f599b3aSSean Wang clocks = <&topckgen CLK_TOP_ETH_SEL>, 9075f599b3aSSean Wang <ðsys CLK_ETH_ESW_EN>, 9085f599b3aSSean Wang <ðsys CLK_ETH_GP0_EN>, 9095f599b3aSSean Wang <ðsys CLK_ETH_GP1_EN>, 9105f599b3aSSean Wang <ðsys CLK_ETH_GP2_EN>, 9115f599b3aSSean Wang <&sgmiisys CLK_SGMII_TX250M_EN>, 9125f599b3aSSean Wang <&sgmiisys CLK_SGMII_RX250M_EN>, 9135f599b3aSSean Wang <&sgmiisys CLK_SGMII_CDR_REF>, 9145f599b3aSSean Wang <&sgmiisys CLK_SGMII_CDR_FB>, 9155f599b3aSSean Wang <&topckgen CLK_TOP_SGMIIPLL>, 9165f599b3aSSean Wang <&apmixedsys CLK_APMIXED_ETH2PLL>; 9175f599b3aSSean Wang clock-names = "ethif", "esw", "gp0", "gp1", "gp2", 9185f599b3aSSean Wang "sgmii_tx250m", "sgmii_rx250m", 9195f599b3aSSean Wang "sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck", 9205f599b3aSSean Wang "eth2pll"; 9215f599b3aSSean Wang power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>; 9225f599b3aSSean Wang mediatek,ethsys = <ðsys>; 9235f599b3aSSean Wang mediatek,sgmiisys = <&sgmiisys>; 9245f599b3aSSean Wang #address-cells = <1>; 9255f599b3aSSean Wang #size-cells = <0>; 9265f599b3aSSean Wang status = "disabled"; 9275f599b3aSSean Wang }; 9285f599b3aSSean Wang 929d7167881SSean Wang sgmiisys: sgmiisys@1b128000 { 930d7167881SSean Wang compatible = "mediatek,mt7622-sgmiisys", 931d7167881SSean Wang "syscon"; 932*afdede61SSean Wang reg = <0 0x1b128000 0 0x3000>; 933d7167881SSean Wang #clock-cells = <1>; 934*afdede61SSean Wang mediatek,physpeed = "2500"; 935d7167881SSean Wang }; 936c4629c34SSean Wang}; 937