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>; 8380dd27b6SRui Salvaterra next-level-cache = <&L2>; 84c4629c34SSean Wang }; 85c4629c34SSean Wang 86c4629c34SSean Wang cpu1: cpu@1 { 87c4629c34SSean Wang device_type = "cpu"; 8831af04cdSRob Herring compatible = "arm,cortex-a53"; 89c4629c34SSean Wang reg = <0x0 0x1>; 90a5a80f78SSean Wang clocks = <&infracfg CLK_INFRA_MUX1_SEL>, 91a5a80f78SSean Wang <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>; 92a5a80f78SSean Wang clock-names = "cpu", "intermediate"; 93a5a80f78SSean Wang operating-points-v2 = <&cpu_opp_table>; 94a06e5c05SViresh Kumar #cooling-cells = <2>; 95c4629c34SSean Wang enable-method = "psci"; 96c4629c34SSean Wang clock-frequency = <1300000000>; 979cc7f0deSRyder Lee cci-control-port = <&cci_control2>; 9880dd27b6SRui Salvaterra next-level-cache = <&L2>; 9980dd27b6SRui Salvaterra }; 10080dd27b6SRui Salvaterra 10180dd27b6SRui Salvaterra L2: l2-cache { 10280dd27b6SRui Salvaterra compatible = "cache"; 10380dd27b6SRui Salvaterra cache-level = <2>; 104492061bfSKrzysztof Kozlowski cache-unified; 105c4629c34SSean Wang }; 106c4629c34SSean Wang }; 107c4629c34SSean Wang 108d7167881SSean Wang pwrap_clk: dummy40m { 109d7167881SSean Wang compatible = "fixed-clock"; 110d7167881SSean Wang clock-frequency = <40000000>; 111d7167881SSean Wang #clock-cells = <0>; 112d7167881SSean Wang }; 113d7167881SSean Wang 114d7167881SSean Wang clk25m: oscillator { 115d7167881SSean Wang compatible = "fixed-clock"; 116d7167881SSean Wang #clock-cells = <0>; 117d7167881SSean Wang clock-frequency = <25000000>; 118d7167881SSean Wang clock-output-names = "clkxtal"; 119d7167881SSean Wang }; 120d7167881SSean Wang 121c4629c34SSean Wang psci { 122c4629c34SSean Wang compatible = "arm,psci-0.2"; 123c4629c34SSean Wang method = "smc"; 124c4629c34SSean Wang }; 125c4629c34SSean Wang 1269cc7f0deSRyder Lee pmu { 1279cc7f0deSRyder Lee compatible = "arm,cortex-a53-pmu"; 1289cc7f0deSRyder Lee interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_LOW>, 1299cc7f0deSRyder Lee <GIC_SPI 9 IRQ_TYPE_LEVEL_LOW>; 1309cc7f0deSRyder Lee interrupt-affinity = <&cpu0>, <&cpu1>; 1319cc7f0deSRyder Lee }; 1329cc7f0deSRyder Lee 133c4629c34SSean Wang reserved-memory { 134c4629c34SSean Wang #address-cells = <2>; 135c4629c34SSean Wang #size-cells = <2>; 136c4629c34SSean Wang ranges; 137c4629c34SSean Wang 138c4629c34SSean Wang /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ 139c4629c34SSean Wang secmon_reserved: secmon@43000000 { 140c4629c34SSean Wang reg = <0 0x43000000 0 0x30000>; 141c4629c34SSean Wang no-map; 142c4629c34SSean Wang }; 143c4629c34SSean Wang }; 144c4629c34SSean Wang 145ae457b76SSean Wang thermal-zones { 146ae457b76SSean Wang cpu_thermal: cpu-thermal { 147ae457b76SSean Wang polling-delay-passive = <1000>; 148ae457b76SSean Wang polling-delay = <1000>; 149ae457b76SSean Wang 150ae457b76SSean Wang thermal-sensors = <&thermal 0>; 151ae457b76SSean Wang 152ae457b76SSean Wang trips { 153ae457b76SSean Wang cpu_passive: cpu-passive { 154ae457b76SSean Wang temperature = <47000>; 155ae457b76SSean Wang hysteresis = <2000>; 156ae457b76SSean Wang type = "passive"; 157ae457b76SSean Wang }; 158ae457b76SSean Wang 159ae457b76SSean Wang cpu_active: cpu-active { 160ae457b76SSean Wang temperature = <67000>; 161ae457b76SSean Wang hysteresis = <2000>; 162ae457b76SSean Wang type = "active"; 163ae457b76SSean Wang }; 164ae457b76SSean Wang 165ae457b76SSean Wang cpu_hot: cpu-hot { 166ae457b76SSean Wang temperature = <87000>; 167ae457b76SSean Wang hysteresis = <2000>; 168ae457b76SSean Wang type = "hot"; 169ae457b76SSean Wang }; 170ae457b76SSean Wang 171ae457b76SSean Wang cpu-crit { 172ae457b76SSean Wang temperature = <107000>; 173ae457b76SSean Wang hysteresis = <2000>; 174ae457b76SSean Wang type = "critical"; 175ae457b76SSean Wang }; 176ae457b76SSean Wang }; 177ae457b76SSean Wang 178ae457b76SSean Wang cooling-maps { 179ae457b76SSean Wang map0 { 180ae457b76SSean Wang trip = <&cpu_passive>; 181398ed292SViresh Kumar cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 182398ed292SViresh Kumar <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 183ae457b76SSean Wang }; 184ae457b76SSean Wang 185ae457b76SSean Wang map1 { 186ae457b76SSean Wang trip = <&cpu_active>; 187398ed292SViresh Kumar cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 188398ed292SViresh Kumar <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 189ae457b76SSean Wang }; 190ae457b76SSean Wang 191ae457b76SSean Wang map2 { 192ae457b76SSean Wang trip = <&cpu_hot>; 193398ed292SViresh Kumar cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 194398ed292SViresh Kumar <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 195ae457b76SSean Wang }; 196ae457b76SSean Wang }; 197ae457b76SSean Wang }; 198ae457b76SSean Wang }; 199ae457b76SSean Wang 200c4629c34SSean Wang timer { 201c4629c34SSean Wang compatible = "arm,armv8-timer"; 202c4629c34SSean Wang interrupt-parent = <&gic>; 203c4629c34SSean Wang interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | 204c4629c34SSean Wang IRQ_TYPE_LEVEL_HIGH)>, 205c4629c34SSean Wang <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | 206c4629c34SSean Wang IRQ_TYPE_LEVEL_HIGH)>, 207c4629c34SSean Wang <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | 208c4629c34SSean Wang IRQ_TYPE_LEVEL_HIGH)>, 209c4629c34SSean Wang <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | 210c4629c34SSean Wang IRQ_TYPE_LEVEL_HIGH)>; 211c4629c34SSean Wang }; 212c4629c34SSean Wang 213d7167881SSean Wang infracfg: infracfg@10000000 { 214d7167881SSean Wang compatible = "mediatek,mt7622-infracfg", 215d7167881SSean Wang "syscon"; 216d7167881SSean Wang reg = <0 0x10000000 0 0x1000>; 217d7167881SSean Wang #clock-cells = <1>; 218d7167881SSean Wang #reset-cells = <1>; 219d7167881SSean Wang }; 220d7167881SSean Wang 221c4ff2adeSSean Wang pwrap: pwrap@10001000 { 222c4ff2adeSSean Wang compatible = "mediatek,mt7622-pwrap"; 223c4ff2adeSSean Wang reg = <0 0x10001000 0 0x250>; 224c4ff2adeSSean Wang reg-names = "pwrap"; 225c4ff2adeSSean Wang clocks = <&infracfg CLK_INFRA_PMIC_PD>, <&pwrap_clk>; 226c4ff2adeSSean Wang clock-names = "spi", "wrap"; 227c4ff2adeSSean Wang resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>; 228c4ff2adeSSean Wang reset-names = "pwrap"; 229c4ff2adeSSean Wang interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; 230c4ff2adeSSean Wang status = "disabled"; 231c4ff2adeSSean Wang }; 232c4ff2adeSSean Wang 233d7167881SSean Wang pericfg: pericfg@10002000 { 234d7167881SSean Wang compatible = "mediatek,mt7622-pericfg", 235d7167881SSean Wang "syscon"; 236d7167881SSean Wang reg = <0 0x10002000 0 0x1000>; 237d7167881SSean Wang #clock-cells = <1>; 238d7167881SSean Wang #reset-cells = <1>; 239d7167881SSean Wang }; 240d7167881SSean Wang 2416fc033b5SMatthias Brugger scpsys: power-controller@10006000 { 242925bd27fSSean Wang compatible = "mediatek,mt7622-scpsys", 243925bd27fSSean Wang "syscon"; 244925bd27fSSean Wang #power-domain-cells = <1>; 245925bd27fSSean Wang reg = <0 0x10006000 0 0x1000>; 246925bd27fSSean Wang interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>, 247925bd27fSSean Wang <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>, 248925bd27fSSean Wang <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>, 249925bd27fSSean Wang <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>; 250925bd27fSSean Wang infracfg = <&infracfg>; 251925bd27fSSean Wang clocks = <&topckgen CLK_TOP_HIF_SEL>; 252925bd27fSSean Wang clock-names = "hif_sel"; 253925bd27fSSean Wang }; 254925bd27fSSean Wang 255999d7695SRafał Miłecki cir: ir-receiver@10009000 { 256ae457b76SSean Wang compatible = "mediatek,mt7622-cir"; 257ae457b76SSean Wang reg = <0 0x10009000 0 0x1000>; 258ae457b76SSean Wang interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>; 259ae457b76SSean Wang clocks = <&infracfg CLK_INFRA_IRRX_PD>, 260ae457b76SSean Wang <&topckgen CLK_TOP_AXI_SEL>; 261ae457b76SSean Wang clock-names = "clk", "bus"; 262ae457b76SSean Wang status = "disabled"; 263ae457b76SSean Wang }; 264ae457b76SSean Wang 265c4629c34SSean Wang sysirq: interrupt-controller@10200620 { 266c4629c34SSean Wang compatible = "mediatek,mt7622-sysirq", 267c4629c34SSean Wang "mediatek,mt6577-sysirq"; 268c4629c34SSean Wang interrupt-controller; 269c4629c34SSean Wang #interrupt-cells = <3>; 270c4629c34SSean Wang interrupt-parent = <&gic>; 271c4629c34SSean Wang reg = <0 0x10200620 0 0x20>; 272c4629c34SSean Wang }; 273c4629c34SSean Wang 274ae457b76SSean Wang efuse: efuse@10206000 { 275ae457b76SSean Wang compatible = "mediatek,mt7622-efuse", 276ae457b76SSean Wang "mediatek,efuse"; 277ae457b76SSean Wang reg = <0 0x10206000 0 0x1000>; 278ae457b76SSean Wang #address-cells = <1>; 279ae457b76SSean Wang #size-cells = <1>; 280ae457b76SSean Wang 281ae457b76SSean Wang thermal_calibration: calib@198 { 282ae457b76SSean Wang reg = <0x198 0xc>; 283ae457b76SSean Wang }; 284ae457b76SSean Wang }; 285ae457b76SSean Wang 286837f0b9aSRafał Miłecki apmixedsys: clock-controller@10209000 { 287837f0b9aSRafał Miłecki compatible = "mediatek,mt7622-apmixedsys"; 288d7167881SSean Wang reg = <0 0x10209000 0 0x1000>; 289d7167881SSean Wang #clock-cells = <1>; 290d7167881SSean Wang }; 291d7167881SSean Wang 292837f0b9aSRafał Miłecki topckgen: clock-controller@10210000 { 293837f0b9aSRafał Miłecki compatible = "mediatek,mt7622-topckgen"; 294d7167881SSean Wang reg = <0 0x10210000 0 0x1000>; 295d7167881SSean Wang #clock-cells = <1>; 296d7167881SSean Wang }; 297d7167881SSean Wang 298ae457b76SSean Wang rng: rng@1020f000 { 299ae457b76SSean Wang compatible = "mediatek,mt7622-rng", 300ae457b76SSean Wang "mediatek,mt7623-rng"; 301ae457b76SSean Wang reg = <0 0x1020f000 0 0x1000>; 302ae457b76SSean Wang clocks = <&infracfg CLK_INFRA_TRNG>; 303ae457b76SSean Wang clock-names = "rng"; 304ae457b76SSean Wang }; 305ae457b76SSean Wang 3063725ba3fSSean Wang pio: pinctrl@10211000 { 3073725ba3fSSean Wang compatible = "mediatek,mt7622-pinctrl"; 30834093104SSean Wang reg = <0 0x10211000 0 0x1000>, 30934093104SSean Wang <0 0x10005000 0 0x1000>; 31034093104SSean Wang reg-names = "base", "eint"; 3113725ba3fSSean Wang gpio-controller; 3123725ba3fSSean Wang #gpio-cells = <2>; 313aa54a84fSSean Wang gpio-ranges = <&pio 0 0 103>; 31434093104SSean Wang interrupt-controller; 31534093104SSean Wang interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; 31634093104SSean Wang interrupt-parent = <&gic>; 31734093104SSean Wang #interrupt-cells = <2>; 3183725ba3fSSean Wang }; 3193725ba3fSSean Wang 320ae457b76SSean Wang watchdog: watchdog@10212000 { 321ae457b76SSean Wang compatible = "mediatek,mt7622-wdt", 322ae457b76SSean Wang "mediatek,mt6589-wdt"; 323ae457b76SSean Wang reg = <0 0x10212000 0 0x800>; 324ae457b76SSean Wang }; 325ae457b76SSean Wang 326ae457b76SSean Wang rtc: rtc@10212800 { 327ae457b76SSean Wang compatible = "mediatek,mt7622-rtc", 328ae457b76SSean Wang "mediatek,soc-rtc"; 329ae457b76SSean Wang reg = <0 0x10212800 0 0x200>; 330ae457b76SSean Wang interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>; 331ae457b76SSean Wang clocks = <&topckgen CLK_TOP_RTC>; 332ae457b76SSean Wang clock-names = "rtc"; 333ae457b76SSean Wang }; 334ae457b76SSean Wang 335c4629c34SSean Wang gic: interrupt-controller@10300000 { 336c4629c34SSean Wang compatible = "arm,gic-400"; 337c4629c34SSean Wang interrupt-controller; 338c4629c34SSean Wang #interrupt-cells = <3>; 339c4629c34SSean Wang interrupt-parent = <&gic>; 340c4629c34SSean Wang reg = <0 0x10310000 0 0x1000>, 341c4629c34SSean Wang <0 0x10320000 0 0x1000>, 342c4629c34SSean Wang <0 0x10340000 0 0x2000>, 343c4629c34SSean Wang <0 0x10360000 0 0x2000>; 344c4629c34SSean Wang }; 345c4629c34SSean Wang 3469cc7f0deSRyder Lee cci: cci@10390000 { 3479cc7f0deSRyder Lee compatible = "arm,cci-400"; 3489cc7f0deSRyder Lee #address-cells = <1>; 3499cc7f0deSRyder Lee #size-cells = <1>; 3509cc7f0deSRyder Lee reg = <0 0x10390000 0 0x1000>; 3519cc7f0deSRyder Lee ranges = <0 0 0x10390000 0x10000>; 3529cc7f0deSRyder Lee 3539cc7f0deSRyder Lee cci_control0: slave-if@1000 { 3549cc7f0deSRyder Lee compatible = "arm,cci-400-ctrl-if"; 3559cc7f0deSRyder Lee interface-type = "ace-lite"; 3569cc7f0deSRyder Lee reg = <0x1000 0x1000>; 3579cc7f0deSRyder Lee }; 3589cc7f0deSRyder Lee 3599cc7f0deSRyder Lee cci_control1: slave-if@4000 { 3609cc7f0deSRyder Lee compatible = "arm,cci-400-ctrl-if"; 3619cc7f0deSRyder Lee interface-type = "ace"; 3629cc7f0deSRyder Lee reg = <0x4000 0x1000>; 3639cc7f0deSRyder Lee }; 3649cc7f0deSRyder Lee 3659cc7f0deSRyder Lee cci_control2: slave-if@5000 { 3663abd0630SFelix Fietkau compatible = "arm,cci-400-ctrl-if", "syscon"; 3679cc7f0deSRyder Lee interface-type = "ace"; 3689cc7f0deSRyder Lee reg = <0x5000 0x1000>; 3699cc7f0deSRyder Lee }; 3709cc7f0deSRyder Lee 3719cc7f0deSRyder Lee pmu@9000 { 3729cc7f0deSRyder Lee compatible = "arm,cci-400-pmu,r1"; 3739cc7f0deSRyder Lee reg = <0x9000 0x5000>; 3749cc7f0deSRyder Lee interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, 3759cc7f0deSRyder Lee <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, 3769cc7f0deSRyder Lee <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, 3779cc7f0deSRyder Lee <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>, 3789cc7f0deSRyder Lee <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 3799cc7f0deSRyder Lee }; 3809cc7f0deSRyder Lee }; 3819cc7f0deSRyder Lee 382ae457b76SSean Wang auxadc: adc@11001000 { 383ae457b76SSean Wang compatible = "mediatek,mt7622-auxadc"; 384ae457b76SSean Wang reg = <0 0x11001000 0 0x1000>; 385ae457b76SSean Wang clocks = <&pericfg CLK_PERI_AUXADC_PD>; 386ae457b76SSean Wang clock-names = "main"; 387ae457b76SSean Wang #io-channel-cells = <1>; 388ae457b76SSean Wang }; 389ae457b76SSean Wang 390c4629c34SSean Wang uart0: serial@11002000 { 391c4629c34SSean Wang compatible = "mediatek,mt7622-uart", 392c4629c34SSean Wang "mediatek,mt6577-uart"; 393c4629c34SSean Wang reg = <0 0x11002000 0 0x400>; 394c4629c34SSean Wang interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>; 39513f36c32SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 3962b519747SRyder Lee <&pericfg CLK_PERI_UART0_PD>; 397c4629c34SSean Wang clock-names = "baud", "bus"; 398c4629c34SSean Wang status = "disabled"; 399c4629c34SSean Wang }; 400d7167881SSean Wang 401ae457b76SSean Wang uart1: serial@11003000 { 402ae457b76SSean Wang compatible = "mediatek,mt7622-uart", 403ae457b76SSean Wang "mediatek,mt6577-uart"; 404ae457b76SSean Wang reg = <0 0x11003000 0 0x400>; 405ae457b76SSean Wang interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>; 406ae457b76SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 407ae457b76SSean Wang <&pericfg CLK_PERI_UART1_PD>; 408ae457b76SSean Wang clock-names = "baud", "bus"; 409ae457b76SSean Wang status = "disabled"; 410ae457b76SSean Wang }; 411ae457b76SSean Wang 412ae457b76SSean Wang uart2: serial@11004000 { 413ae457b76SSean Wang compatible = "mediatek,mt7622-uart", 414ae457b76SSean Wang "mediatek,mt6577-uart"; 415ae457b76SSean Wang reg = <0 0x11004000 0 0x400>; 416ae457b76SSean Wang interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>; 417ae457b76SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 418ae457b76SSean Wang <&pericfg CLK_PERI_UART2_PD>; 419ae457b76SSean Wang clock-names = "baud", "bus"; 420ae457b76SSean Wang status = "disabled"; 421ae457b76SSean Wang }; 422ae457b76SSean Wang 423ae457b76SSean Wang uart3: serial@11005000 { 424ae457b76SSean Wang compatible = "mediatek,mt7622-uart", 425ae457b76SSean Wang "mediatek,mt6577-uart"; 426ae457b76SSean Wang reg = <0 0x11005000 0 0x400>; 427ae457b76SSean Wang interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>; 428ae457b76SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 429ae457b76SSean Wang <&pericfg CLK_PERI_UART3_PD>; 430ae457b76SSean Wang clock-names = "baud", "bus"; 431ae457b76SSean Wang status = "disabled"; 432ae457b76SSean Wang }; 433ae457b76SSean Wang 434ae457b76SSean Wang pwm: pwm@11006000 { 435ae457b76SSean Wang compatible = "mediatek,mt7622-pwm"; 436ae457b76SSean Wang reg = <0 0x11006000 0 0x1000>; 43722925af7SAngeloGioacchino Del Regno #pwm-cells = <2>; 438ae457b76SSean Wang interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>; 439ae457b76SSean Wang clocks = <&topckgen CLK_TOP_PWM_SEL>, 440ae457b76SSean Wang <&pericfg CLK_PERI_PWM_PD>, 441ae457b76SSean Wang <&pericfg CLK_PERI_PWM1_PD>, 442ae457b76SSean Wang <&pericfg CLK_PERI_PWM2_PD>, 443ae457b76SSean Wang <&pericfg CLK_PERI_PWM3_PD>, 444ae457b76SSean Wang <&pericfg CLK_PERI_PWM4_PD>, 445ae457b76SSean Wang <&pericfg CLK_PERI_PWM5_PD>, 446ae457b76SSean Wang <&pericfg CLK_PERI_PWM6_PD>; 447ae457b76SSean Wang clock-names = "top", "main", "pwm1", "pwm2", "pwm3", "pwm4", 448ae457b76SSean Wang "pwm5", "pwm6"; 449ae457b76SSean Wang status = "disabled"; 450ae457b76SSean Wang }; 451ae457b76SSean Wang 452ae457b76SSean Wang i2c0: i2c@11007000 { 453ae457b76SSean Wang compatible = "mediatek,mt7622-i2c"; 454ae457b76SSean Wang reg = <0 0x11007000 0 0x90>, 455ae457b76SSean Wang <0 0x11000100 0 0x80>; 456ae457b76SSean Wang interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>; 457ae457b76SSean Wang clock-div = <16>; 458ae457b76SSean Wang clocks = <&pericfg CLK_PERI_I2C0_PD>, 459ae457b76SSean Wang <&pericfg CLK_PERI_AP_DMA_PD>; 460ae457b76SSean Wang clock-names = "main", "dma"; 461ae457b76SSean Wang #address-cells = <1>; 462ae457b76SSean Wang #size-cells = <0>; 463ae457b76SSean Wang status = "disabled"; 464ae457b76SSean Wang }; 465ae457b76SSean Wang 466ae457b76SSean Wang i2c1: i2c@11008000 { 467ae457b76SSean Wang compatible = "mediatek,mt7622-i2c"; 468ae457b76SSean Wang reg = <0 0x11008000 0 0x90>, 469ae457b76SSean Wang <0 0x11000180 0 0x80>; 470ae457b76SSean Wang interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>; 471ae457b76SSean Wang clock-div = <16>; 472ae457b76SSean Wang clocks = <&pericfg CLK_PERI_I2C1_PD>, 473ae457b76SSean Wang <&pericfg CLK_PERI_AP_DMA_PD>; 474ae457b76SSean Wang clock-names = "main", "dma"; 475ae457b76SSean Wang #address-cells = <1>; 476ae457b76SSean Wang #size-cells = <0>; 477ae457b76SSean Wang status = "disabled"; 478ae457b76SSean Wang }; 479ae457b76SSean Wang 480ae457b76SSean Wang i2c2: i2c@11009000 { 481ae457b76SSean Wang compatible = "mediatek,mt7622-i2c"; 482ae457b76SSean Wang reg = <0 0x11009000 0 0x90>, 483ae457b76SSean Wang <0 0x11000200 0 0x80>; 484ae457b76SSean Wang interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>; 485ae457b76SSean Wang clock-div = <16>; 486ae457b76SSean Wang clocks = <&pericfg CLK_PERI_I2C2_PD>, 487ae457b76SSean Wang <&pericfg CLK_PERI_AP_DMA_PD>; 488ae457b76SSean Wang clock-names = "main", "dma"; 489ae457b76SSean Wang #address-cells = <1>; 490ae457b76SSean Wang #size-cells = <0>; 491ae457b76SSean Wang status = "disabled"; 492ae457b76SSean Wang }; 493ae457b76SSean Wang 494ae457b76SSean Wang spi0: spi@1100a000 { 495ae457b76SSean Wang compatible = "mediatek,mt7622-spi"; 496ae457b76SSean Wang reg = <0 0x1100a000 0 0x100>; 497ae457b76SSean Wang interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>; 498ae457b76SSean Wang clocks = <&topckgen CLK_TOP_SYSPLL3_D2>, 499ae457b76SSean Wang <&topckgen CLK_TOP_SPI0_SEL>, 500ae457b76SSean Wang <&pericfg CLK_PERI_SPI0_PD>; 501ae457b76SSean Wang clock-names = "parent-clk", "sel-clk", "spi-clk"; 502ae457b76SSean Wang #address-cells = <1>; 503ae457b76SSean Wang #size-cells = <0>; 504ae457b76SSean Wang status = "disabled"; 505ae457b76SSean Wang }; 506ae457b76SSean Wang 507ae457b76SSean Wang thermal: thermal@1100b000 { 508ae457b76SSean Wang #thermal-sensor-cells = <1>; 509ae457b76SSean Wang compatible = "mediatek,mt7622-thermal"; 510ae457b76SSean Wang reg = <0 0x1100b000 0 0x1000>; 511ae457b76SSean Wang interrupts = <0 78 IRQ_TYPE_LEVEL_LOW>; 512ae457b76SSean Wang clocks = <&pericfg CLK_PERI_THERM_PD>, 513ae457b76SSean Wang <&pericfg CLK_PERI_AUXADC_PD>; 514ae457b76SSean Wang clock-names = "therm", "auxadc"; 515ae457b76SSean Wang resets = <&pericfg MT7622_PERI_THERM_SW_RST>; 516ae457b76SSean Wang mediatek,auxadc = <&auxadc>; 517ae457b76SSean Wang mediatek,apmixedsys = <&apmixedsys>; 518ae457b76SSean Wang nvmem-cells = <&thermal_calibration>; 519ae457b76SSean Wang nvmem-cell-names = "calibration-data"; 520ae457b76SSean Wang }; 521ae457b76SSean Wang 522ae457b76SSean Wang btif: serial@1100c000 { 523ae457b76SSean Wang compatible = "mediatek,mt7622-btif", 524ae457b76SSean Wang "mediatek,mtk-btif"; 525ae457b76SSean Wang reg = <0 0x1100c000 0 0x1000>; 526ae457b76SSean Wang interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>; 527ae457b76SSean Wang clocks = <&pericfg CLK_PERI_BTIF_PD>; 528ae457b76SSean Wang reg-shift = <2>; 529ae457b76SSean Wang reg-io-width = <4>; 530ae457b76SSean Wang status = "disabled"; 531e1dd0582SRyder Lee 532e1dd0582SRyder Lee bluetooth { 533e1dd0582SRyder Lee compatible = "mediatek,mt7622-bluetooth"; 534e1dd0582SRyder Lee power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; 535e1dd0582SRyder Lee clocks = <&clk25m>; 536e1dd0582SRyder Lee clock-names = "ref"; 537e1dd0582SRyder Lee }; 538ae457b76SSean Wang }; 539ae457b76SSean Wang 5400e3661deSXiangsheng Hou nandc: nand-controller@1100d000 { 54123beb1adSSean Wang compatible = "mediatek,mt7622-nfc"; 54223beb1adSSean Wang reg = <0 0x1100D000 0 0x1000>; 54323beb1adSSean Wang interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>; 54423beb1adSSean Wang clocks = <&pericfg CLK_PERI_NFI_PD>, 54523beb1adSSean Wang <&pericfg CLK_PERI_SNFI_PD>; 54623beb1adSSean Wang clock-names = "nfi_clk", "pad_clk"; 54723beb1adSSean Wang ecc-engine = <&bch>; 54823beb1adSSean Wang #address-cells = <1>; 54923beb1adSSean Wang #size-cells = <0>; 55023beb1adSSean Wang status = "disabled"; 55123beb1adSSean Wang }; 55223beb1adSSean Wang 5535ba090a0SChuanhong Guo snfi: spi@1100d000 { 5545ba090a0SChuanhong Guo compatible = "mediatek,mt7622-snand"; 5555ba090a0SChuanhong Guo reg = <0 0x1100d000 0 0x1000>; 5565ba090a0SChuanhong Guo interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>; 5575ba090a0SChuanhong Guo clocks = <&pericfg CLK_PERI_NFI_PD>, <&pericfg CLK_PERI_SNFI_PD>; 5585ba090a0SChuanhong Guo clock-names = "nfi_clk", "pad_clk"; 5595ba090a0SChuanhong Guo nand-ecc-engine = <&bch>; 5605ba090a0SChuanhong Guo #address-cells = <1>; 5615ba090a0SChuanhong Guo #size-cells = <0>; 5625ba090a0SChuanhong Guo status = "disabled"; 5635ba090a0SChuanhong Guo }; 5645ba090a0SChuanhong Guo 56523beb1adSSean Wang bch: ecc@1100e000 { 56623beb1adSSean Wang compatible = "mediatek,mt7622-ecc"; 56723beb1adSSean Wang reg = <0 0x1100e000 0 0x1000>; 56823beb1adSSean Wang interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>; 56923beb1adSSean Wang clocks = <&pericfg CLK_PERI_NFIECC_PD>; 57023beb1adSSean Wang clock-names = "nfiecc_clk"; 57123beb1adSSean Wang status = "disabled"; 57223beb1adSSean Wang }; 57323beb1adSSean Wang 57423beb1adSSean Wang nor_flash: spi@11014000 { 57523beb1adSSean Wang compatible = "mediatek,mt7622-nor", 57623beb1adSSean Wang "mediatek,mt8173-nor"; 57723beb1adSSean Wang reg = <0 0x11014000 0 0xe0>; 57823beb1adSSean Wang clocks = <&pericfg CLK_PERI_FLASH_PD>, 57923beb1adSSean Wang <&topckgen CLK_TOP_FLASH_SEL>; 58023beb1adSSean Wang clock-names = "spi", "sf"; 58123beb1adSSean Wang #address-cells = <1>; 58223beb1adSSean Wang #size-cells = <0>; 58323beb1adSSean Wang status = "disabled"; 58423beb1adSSean Wang }; 58523beb1adSSean Wang 586ae457b76SSean Wang spi1: spi@11016000 { 587ae457b76SSean Wang compatible = "mediatek,mt7622-spi"; 588ae457b76SSean Wang reg = <0 0x11016000 0 0x100>; 589ae457b76SSean Wang interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_LOW>; 590ae457b76SSean Wang clocks = <&topckgen CLK_TOP_SYSPLL3_D2>, 591ae457b76SSean Wang <&topckgen CLK_TOP_SPI1_SEL>, 592ae457b76SSean Wang <&pericfg CLK_PERI_SPI1_PD>; 593ae457b76SSean Wang clock-names = "parent-clk", "sel-clk", "spi-clk"; 594ae457b76SSean Wang #address-cells = <1>; 595ae457b76SSean Wang #size-cells = <0>; 596ae457b76SSean Wang status = "disabled"; 597ae457b76SSean Wang }; 598ae457b76SSean Wang 599ae457b76SSean Wang uart4: serial@11019000 { 600ae457b76SSean Wang compatible = "mediatek,mt7622-uart", 601ae457b76SSean Wang "mediatek,mt6577-uart"; 602ae457b76SSean Wang reg = <0 0x11019000 0 0x400>; 603ae457b76SSean Wang interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_LOW>; 604ae457b76SSean Wang clocks = <&topckgen CLK_TOP_UART_SEL>, 605ae457b76SSean Wang <&pericfg CLK_PERI_UART4_PD>; 606ae457b76SSean Wang clock-names = "baud", "bus"; 607ae457b76SSean Wang status = "disabled"; 608ae457b76SSean Wang }; 609ae457b76SSean Wang 610f1e0d0d8SRyder Lee audsys: clock-controller@11220000 { 611f1e0d0d8SRyder Lee compatible = "mediatek,mt7622-audsys", "syscon"; 612f1e0d0d8SRyder Lee reg = <0 0x11220000 0 0x2000>; 613f1e0d0d8SRyder Lee #clock-cells = <1>; 614f1e0d0d8SRyder Lee 615f1e0d0d8SRyder Lee afe: audio-controller { 616f1e0d0d8SRyder Lee compatible = "mediatek,mt7622-audio"; 617f1e0d0d8SRyder Lee interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>, 618f1e0d0d8SRyder Lee <GIC_SPI 145 IRQ_TYPE_LEVEL_LOW>; 619f1e0d0d8SRyder Lee interrupt-names = "afe", "asys"; 620f1e0d0d8SRyder Lee 621f1e0d0d8SRyder Lee clocks = <&infracfg CLK_INFRA_AUDIO_PD>, 622f1e0d0d8SRyder Lee <&topckgen CLK_TOP_AUD1_SEL>, 623f1e0d0d8SRyder Lee <&topckgen CLK_TOP_AUD2_SEL>, 624f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A1SYS_HP_DIV_PD>, 625f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A2SYS_HP_DIV_PD>, 626f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S0_MCK_SEL>, 627f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S1_MCK_SEL>, 628f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S2_MCK_SEL>, 629f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S3_MCK_SEL>, 630f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S0_MCK_DIV>, 631f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S1_MCK_DIV>, 632f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S2_MCK_DIV>, 633f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S3_MCK_DIV>, 634f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S0_MCK_DIV_PD>, 635f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S1_MCK_DIV_PD>, 636f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S2_MCK_DIV_PD>, 637f1e0d0d8SRyder Lee <&topckgen CLK_TOP_I2S3_MCK_DIV_PD>, 638f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SO1>, 639f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SO2>, 640f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SO3>, 641f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SO4>, 642f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SIN1>, 643f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SIN2>, 644f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SIN3>, 645f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_I2SIN4>, 646f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_ASRCO1>, 647f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_ASRCO2>, 648f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_ASRCO3>, 649f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_ASRCO4>, 650f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_AFE>, 651f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_AFE_CONN>, 652f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_A1SYS>, 653f1e0d0d8SRyder Lee <&audsys CLK_AUDIO_A2SYS>; 654f1e0d0d8SRyder Lee 655f1e0d0d8SRyder Lee clock-names = "infra_sys_audio_clk", 656f1e0d0d8SRyder Lee "top_audio_mux1_sel", 657f1e0d0d8SRyder Lee "top_audio_mux2_sel", 658f1e0d0d8SRyder Lee "top_audio_a1sys_hp", 659f1e0d0d8SRyder Lee "top_audio_a2sys_hp", 660f1e0d0d8SRyder Lee "i2s0_src_sel", 661f1e0d0d8SRyder Lee "i2s1_src_sel", 662f1e0d0d8SRyder Lee "i2s2_src_sel", 663f1e0d0d8SRyder Lee "i2s3_src_sel", 664f1e0d0d8SRyder Lee "i2s0_src_div", 665f1e0d0d8SRyder Lee "i2s1_src_div", 666f1e0d0d8SRyder Lee "i2s2_src_div", 667f1e0d0d8SRyder Lee "i2s3_src_div", 668f1e0d0d8SRyder Lee "i2s0_mclk_en", 669f1e0d0d8SRyder Lee "i2s1_mclk_en", 670f1e0d0d8SRyder Lee "i2s2_mclk_en", 671f1e0d0d8SRyder Lee "i2s3_mclk_en", 672f1e0d0d8SRyder Lee "i2so0_hop_ck", 673f1e0d0d8SRyder Lee "i2so1_hop_ck", 674f1e0d0d8SRyder Lee "i2so2_hop_ck", 675f1e0d0d8SRyder Lee "i2so3_hop_ck", 676f1e0d0d8SRyder Lee "i2si0_hop_ck", 677f1e0d0d8SRyder Lee "i2si1_hop_ck", 678f1e0d0d8SRyder Lee "i2si2_hop_ck", 679f1e0d0d8SRyder Lee "i2si3_hop_ck", 680f1e0d0d8SRyder Lee "asrc0_out_ck", 681f1e0d0d8SRyder Lee "asrc1_out_ck", 682f1e0d0d8SRyder Lee "asrc2_out_ck", 683f1e0d0d8SRyder Lee "asrc3_out_ck", 684f1e0d0d8SRyder Lee "audio_afe_pd", 685f1e0d0d8SRyder Lee "audio_afe_conn_pd", 686f1e0d0d8SRyder Lee "audio_a1sys_pd", 687f1e0d0d8SRyder Lee "audio_a2sys_pd"; 688f1e0d0d8SRyder Lee 689f1e0d0d8SRyder Lee assigned-clocks = <&topckgen CLK_TOP_A1SYS_HP_SEL>, 690f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A2SYS_HP_SEL>, 691f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A1SYS_HP_DIV>, 692f1e0d0d8SRyder Lee <&topckgen CLK_TOP_A2SYS_HP_DIV>; 693f1e0d0d8SRyder Lee assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL>, 694f1e0d0d8SRyder Lee <&topckgen CLK_TOP_AUD2PLL>; 695f1e0d0d8SRyder Lee assigned-clock-rates = <0>, <0>, <49152000>, <45158400>; 696f1e0d0d8SRyder Lee }; 697f1e0d0d8SRyder Lee }; 698f1e0d0d8SRyder Lee 6992c002a30SSean Wang mmc0: mmc@11230000 { 7002c002a30SSean Wang compatible = "mediatek,mt7622-mmc"; 7012c002a30SSean Wang reg = <0 0x11230000 0 0x1000>; 7022c002a30SSean Wang interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>; 7032c002a30SSean Wang clocks = <&pericfg CLK_PERI_MSDC30_0_PD>, 7042c002a30SSean Wang <&topckgen CLK_TOP_MSDC50_0_SEL>; 7052c002a30SSean Wang clock-names = "source", "hclk"; 706d6f6cbeeSWenbin Mei resets = <&pericfg MT7622_PERI_MSDC0_SW_RST>; 707d6f6cbeeSWenbin Mei reset-names = "hrst"; 7082c002a30SSean Wang status = "disabled"; 7092c002a30SSean Wang }; 7102c002a30SSean Wang 7112c002a30SSean Wang mmc1: mmc@11240000 { 7122c002a30SSean Wang compatible = "mediatek,mt7622-mmc"; 7132c002a30SSean Wang reg = <0 0x11240000 0 0x1000>; 7142c002a30SSean Wang interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>; 7152c002a30SSean Wang clocks = <&pericfg CLK_PERI_MSDC30_1_PD>, 7162c002a30SSean Wang <&topckgen CLK_TOP_AXI_SEL>; 7172c002a30SSean Wang clock-names = "source", "hclk"; 718dc2e7617SFrank Wunderlich resets = <&pericfg MT7622_PERI_MSDC1_SW_RST>; 719dc2e7617SFrank Wunderlich reset-names = "hrst"; 7202c002a30SSean Wang status = "disabled"; 7212c002a30SSean Wang }; 7222c002a30SSean Wang 7231ba2ed77SRyder Lee wmac: wmac@18000000 { 7241ba2ed77SRyder Lee compatible = "mediatek,mt7622-wmac"; 7251ba2ed77SRyder Lee reg = <0 0x18000000 0 0x100000>; 7261ba2ed77SRyder Lee interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>; 7271ba2ed77SRyder Lee 7281ba2ed77SRyder Lee mediatek,infracfg = <&infracfg>; 7291ba2ed77SRyder Lee status = "disabled"; 7301ba2ed77SRyder Lee 7311ba2ed77SRyder Lee power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; 7321ba2ed77SRyder Lee }; 7331ba2ed77SRyder Lee 734837f0b9aSRafał Miłecki ssusbsys: clock-controller@1a000000 { 735837f0b9aSRafał Miłecki compatible = "mediatek,mt7622-ssusbsys"; 736d7167881SSean Wang reg = <0 0x1a000000 0 0x1000>; 737d7167881SSean Wang #clock-cells = <1>; 738d7167881SSean Wang #reset-cells = <1>; 739d7167881SSean Wang }; 740d7167881SSean Wang 7410f12d5b3SChunfeng Yun ssusb: usb@1a0c0000 { 7420f12d5b3SChunfeng Yun compatible = "mediatek,mt7622-xhci", 7430f12d5b3SChunfeng Yun "mediatek,mtk-xhci"; 7440f12d5b3SChunfeng Yun reg = <0 0x1a0c0000 0 0x01000>, 7450f12d5b3SChunfeng Yun <0 0x1a0c4700 0 0x0100>; 7460f12d5b3SChunfeng Yun reg-names = "mac", "ippc"; 7470f12d5b3SChunfeng Yun interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_LOW>; 7480f12d5b3SChunfeng Yun power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF1>; 7490f12d5b3SChunfeng Yun clocks = <&ssusbsys CLK_SSUSB_SYS_EN>, 7500f12d5b3SChunfeng Yun <&ssusbsys CLK_SSUSB_REF_EN>, 7510f12d5b3SChunfeng Yun <&ssusbsys CLK_SSUSB_MCU_EN>, 7520f12d5b3SChunfeng Yun <&ssusbsys CLK_SSUSB_DMA_EN>; 7530f12d5b3SChunfeng Yun clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck"; 7540f12d5b3SChunfeng Yun phys = <&u2port0 PHY_TYPE_USB2>, 7550f12d5b3SChunfeng Yun <&u3port0 PHY_TYPE_USB3>, 7560f12d5b3SChunfeng Yun <&u2port1 PHY_TYPE_USB2>; 7570f12d5b3SChunfeng Yun 7580f12d5b3SChunfeng Yun status = "disabled"; 7590f12d5b3SChunfeng Yun }; 7600f12d5b3SChunfeng Yun 7616029cae6SChunfeng Yun u3phy: t-phy@1a0c4000 { 7626029cae6SChunfeng Yun compatible = "mediatek,mt7622-tphy", 7630f12d5b3SChunfeng Yun "mediatek,generic-tphy-v1"; 7640f12d5b3SChunfeng Yun reg = <0 0x1a0c4000 0 0x700>; 7650f12d5b3SChunfeng Yun #address-cells = <2>; 7660f12d5b3SChunfeng Yun #size-cells = <2>; 7670f12d5b3SChunfeng Yun ranges; 7680f12d5b3SChunfeng Yun status = "disabled"; 7690f12d5b3SChunfeng Yun 7700f12d5b3SChunfeng Yun u2port0: usb-phy@1a0c4800 { 7710f12d5b3SChunfeng Yun reg = <0 0x1a0c4800 0 0x0100>; 7720f12d5b3SChunfeng Yun #phy-cells = <1>; 7730f12d5b3SChunfeng Yun clocks = <&ssusbsys CLK_SSUSB_U2_PHY_EN>; 7740f12d5b3SChunfeng Yun clock-names = "ref"; 7750f12d5b3SChunfeng Yun }; 7760f12d5b3SChunfeng Yun 7770f12d5b3SChunfeng Yun u3port0: usb-phy@1a0c4900 { 7780f12d5b3SChunfeng Yun reg = <0 0x1a0c4900 0 0x0700>; 7790f12d5b3SChunfeng Yun #phy-cells = <1>; 7800f12d5b3SChunfeng Yun clocks = <&clk25m>; 7810f12d5b3SChunfeng Yun clock-names = "ref"; 7820f12d5b3SChunfeng Yun }; 7830f12d5b3SChunfeng Yun 7840f12d5b3SChunfeng Yun u2port1: usb-phy@1a0c5000 { 7850f12d5b3SChunfeng Yun reg = <0 0x1a0c5000 0 0x0100>; 7860f12d5b3SChunfeng Yun #phy-cells = <1>; 7870f12d5b3SChunfeng Yun clocks = <&ssusbsys CLK_SSUSB_U2_PHY_1P_EN>; 7880f12d5b3SChunfeng Yun clock-names = "ref"; 7890f12d5b3SChunfeng Yun }; 7900f12d5b3SChunfeng Yun }; 7910f12d5b3SChunfeng Yun 792837f0b9aSRafał Miłecki pciesys: clock-controller@1a100800 { 793837f0b9aSRafał Miłecki compatible = "mediatek,mt7622-pciesys"; 794d7167881SSean Wang reg = <0 0x1a100800 0 0x1000>; 795d7167881SSean Wang #clock-cells = <1>; 796d7167881SSean Wang #reset-cells = <1>; 797d7167881SSean Wang }; 798d7167881SSean Wang 799c99c4733SChuanjia Liu pciecfg: pciecfg@1a140000 { 800c99c4733SChuanjia Liu compatible = "mediatek,generic-pciecfg", "syscon"; 801c99c4733SChuanjia Liu reg = <0 0x1a140000 0 0x1000>; 802c99c4733SChuanjia Liu }; 803c99c4733SChuanjia Liu 804c99c4733SChuanjia Liu pcie0: pcie@1a143000 { 80526907b53SRyder Lee compatible = "mediatek,mt7622-pcie"; 80626907b53SRyder Lee device_type = "pci"; 807c99c4733SChuanjia Liu reg = <0 0x1a143000 0 0x1000>; 808c99c4733SChuanjia Liu reg-names = "port0"; 809c99c4733SChuanjia Liu linux,pci-domain = <0>; 81026907b53SRyder Lee #address-cells = <3>; 81126907b53SRyder Lee #size-cells = <2>; 812c99c4733SChuanjia Liu interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_LOW>; 813c99c4733SChuanjia Liu interrupt-names = "pcie_irq"; 81426907b53SRyder Lee clocks = <&pciesys CLK_PCIE_P0_MAC_EN>, 81526907b53SRyder Lee <&pciesys CLK_PCIE_P0_AHB_EN>, 81626907b53SRyder Lee <&pciesys CLK_PCIE_P0_AUX_EN>, 81726907b53SRyder Lee <&pciesys CLK_PCIE_P0_AXI_EN>, 81826907b53SRyder Lee <&pciesys CLK_PCIE_P0_OBFF_EN>, 819c99c4733SChuanjia Liu <&pciesys CLK_PCIE_P0_PIPE_EN>; 820c99c4733SChuanjia Liu clock-names = "sys_ck0", "ahb_ck0", "aux_ck0", 821c99c4733SChuanjia Liu "axi_ck0", "obff_ck0", "pipe_ck0"; 822c99c4733SChuanjia Liu 82326907b53SRyder Lee power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; 82426907b53SRyder Lee bus-range = <0x00 0xff>; 825c99c4733SChuanjia Liu ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x8000000>; 82626907b53SRyder Lee status = "disabled"; 82726907b53SRyder Lee 82826907b53SRyder Lee #interrupt-cells = <1>; 82926907b53SRyder Lee interrupt-map-mask = <0 0 0 7>; 83026907b53SRyder Lee interrupt-map = <0 0 0 1 &pcie_intc0 0>, 83126907b53SRyder Lee <0 0 0 2 &pcie_intc0 1>, 83226907b53SRyder Lee <0 0 0 3 &pcie_intc0 2>, 83326907b53SRyder Lee <0 0 0 4 &pcie_intc0 3>; 83426907b53SRyder Lee pcie_intc0: interrupt-controller { 83526907b53SRyder Lee interrupt-controller; 83626907b53SRyder Lee #address-cells = <0>; 83726907b53SRyder Lee #interrupt-cells = <1>; 83826907b53SRyder Lee }; 83926907b53SRyder Lee }; 84026907b53SRyder Lee 841c99c4733SChuanjia Liu pcie1: pcie@1a145000 { 842c99c4733SChuanjia Liu compatible = "mediatek,mt7622-pcie"; 843c99c4733SChuanjia Liu device_type = "pci"; 844c99c4733SChuanjia Liu reg = <0 0x1a145000 0 0x1000>; 845c99c4733SChuanjia Liu reg-names = "port1"; 846c99c4733SChuanjia Liu linux,pci-domain = <1>; 84726907b53SRyder Lee #address-cells = <3>; 84826907b53SRyder Lee #size-cells = <2>; 849c99c4733SChuanjia Liu interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_LOW>; 850c99c4733SChuanjia Liu interrupt-names = "pcie_irq"; 851c99c4733SChuanjia Liu clocks = <&pciesys CLK_PCIE_P1_MAC_EN>, 852c99c4733SChuanjia Liu /* designer has connect RC1 with p0_ahb clock */ 853c99c4733SChuanjia Liu <&pciesys CLK_PCIE_P0_AHB_EN>, 854c99c4733SChuanjia Liu <&pciesys CLK_PCIE_P1_AUX_EN>, 855c99c4733SChuanjia Liu <&pciesys CLK_PCIE_P1_AXI_EN>, 856c99c4733SChuanjia Liu <&pciesys CLK_PCIE_P1_OBFF_EN>, 857c99c4733SChuanjia Liu <&pciesys CLK_PCIE_P1_PIPE_EN>; 858c99c4733SChuanjia Liu clock-names = "sys_ck1", "ahb_ck1", "aux_ck1", 859c99c4733SChuanjia Liu "axi_ck1", "obff_ck1", "pipe_ck1"; 860c99c4733SChuanjia Liu 861c99c4733SChuanjia Liu power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; 862c99c4733SChuanjia Liu bus-range = <0x00 0xff>; 863c99c4733SChuanjia Liu ranges = <0x82000000 0 0x28000000 0x0 0x28000000 0 0x8000000>; 86426907b53SRyder Lee status = "disabled"; 86526907b53SRyder Lee 866c99c4733SChuanjia Liu #interrupt-cells = <1>; 86726907b53SRyder Lee interrupt-map-mask = <0 0 0 7>; 86826907b53SRyder Lee interrupt-map = <0 0 0 1 &pcie_intc1 0>, 86926907b53SRyder Lee <0 0 0 2 &pcie_intc1 1>, 87026907b53SRyder Lee <0 0 0 3 &pcie_intc1 2>, 87126907b53SRyder Lee <0 0 0 4 &pcie_intc1 3>; 87226907b53SRyder Lee pcie_intc1: interrupt-controller { 87326907b53SRyder Lee interrupt-controller; 87426907b53SRyder Lee #address-cells = <0>; 87526907b53SRyder Lee #interrupt-cells = <1>; 87626907b53SRyder Lee }; 87726907b53SRyder Lee }; 87826907b53SRyder Lee 879a39251eeSRyder Lee sata: sata@1a200000 { 880a39251eeSRyder Lee compatible = "mediatek,mt7622-ahci", 881a39251eeSRyder Lee "mediatek,mtk-ahci"; 882a39251eeSRyder Lee reg = <0 0x1a200000 0 0x1100>; 883a39251eeSRyder Lee interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>; 884a39251eeSRyder Lee interrupt-names = "hostc"; 885a39251eeSRyder Lee clocks = <&pciesys CLK_SATA_AHB_EN>, 886a39251eeSRyder Lee <&pciesys CLK_SATA_AXI_EN>, 887a39251eeSRyder Lee <&pciesys CLK_SATA_ASIC_EN>, 888a39251eeSRyder Lee <&pciesys CLK_SATA_RBC_EN>, 889a39251eeSRyder Lee <&pciesys CLK_SATA_PM_EN>; 890a39251eeSRyder Lee clock-names = "ahb", "axi", "asic", "rbc", "pm"; 891a39251eeSRyder Lee phys = <&sata_port PHY_TYPE_SATA>; 892a39251eeSRyder Lee phy-names = "sata-phy"; 893a39251eeSRyder Lee ports-implemented = <0x1>; 894a39251eeSRyder Lee power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; 895a39251eeSRyder Lee resets = <&pciesys MT7622_SATA_AXI_BUS_RST>, 896a39251eeSRyder Lee <&pciesys MT7622_SATA_PHY_SW_RST>, 897a39251eeSRyder Lee <&pciesys MT7622_SATA_PHY_REG_RST>; 898a39251eeSRyder Lee reset-names = "axi", "sw", "reg"; 899a39251eeSRyder Lee mediatek,phy-mode = <&pciesys>; 900a39251eeSRyder Lee status = "disabled"; 901a39251eeSRyder Lee }; 902a39251eeSRyder Lee 903963c3b0cSEugen Hristev sata_phy: t-phy { 9046029cae6SChunfeng Yun compatible = "mediatek,mt7622-tphy", 9056029cae6SChunfeng Yun "mediatek,generic-tphy-v1"; 906a39251eeSRyder Lee #address-cells = <2>; 907a39251eeSRyder Lee #size-cells = <2>; 908a39251eeSRyder Lee ranges; 909a39251eeSRyder Lee status = "disabled"; 910a39251eeSRyder Lee 911a39251eeSRyder Lee sata_port: sata-phy@1a243000 { 912a39251eeSRyder Lee reg = <0 0x1a243000 0 0x0100>; 913a39251eeSRyder Lee clocks = <&topckgen CLK_TOP_ETH_500M>; 914a39251eeSRyder Lee clock-names = "ref"; 915a39251eeSRyder Lee #phy-cells = <1>; 916a39251eeSRyder Lee }; 917a39251eeSRyder Lee }; 918a39251eeSRyder Lee 919837f0b9aSRafał Miłecki hifsys: clock-controller@1af00000 { 920837f0b9aSRafał Miłecki compatible = "mediatek,mt7622-hifsys"; 921e9b65ecbSFelix Fietkau reg = <0 0x1af00000 0 0x70>; 922837f0b9aSRafał Miłecki #clock-cells = <1>; 923e9b65ecbSFelix Fietkau }; 924e9b65ecbSFelix Fietkau 925837f0b9aSRafał Miłecki ethsys: clock-controller@1b000000 { 926d7167881SSean Wang compatible = "mediatek,mt7622-ethsys", 927d7167881SSean Wang "syscon"; 928d7167881SSean Wang reg = <0 0x1b000000 0 0x1000>; 929d7167881SSean Wang #clock-cells = <1>; 930d7167881SSean Wang #reset-cells = <1>; 931d7167881SSean Wang }; 932d7167881SSean Wang 93318928e33SSean Wang hsdma: dma-controller@1b007000 { 93418928e33SSean Wang compatible = "mediatek,mt7622-hsdma"; 93518928e33SSean Wang reg = <0 0x1b007000 0 0x1000>; 93618928e33SSean Wang interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_LOW>; 93718928e33SSean Wang clocks = <ðsys CLK_ETH_HSDMA_EN>; 93818928e33SSean Wang clock-names = "hsdma"; 93918928e33SSean Wang power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>; 94018928e33SSean Wang #dma-cells = <1>; 9417d029cc2SRui Salvaterra dma-requests = <3>; 94218928e33SSean Wang }; 94318928e33SSean Wang 944e9b65ecbSFelix Fietkau pcie_mirror: pcie-mirror@10000400 { 945e9b65ecbSFelix Fietkau compatible = "mediatek,mt7622-pcie-mirror", 946e9b65ecbSFelix Fietkau "syscon"; 947e9b65ecbSFelix Fietkau reg = <0 0x10000400 0 0x10>; 948e9b65ecbSFelix Fietkau }; 949e9b65ecbSFelix Fietkau 950e9b65ecbSFelix Fietkau wed0: wed@1020a000 { 951e9b65ecbSFelix Fietkau compatible = "mediatek,mt7622-wed", 952e9b65ecbSFelix Fietkau "syscon"; 953e9b65ecbSFelix Fietkau reg = <0 0x1020a000 0 0x1000>; 954e9b65ecbSFelix Fietkau interrupts = <GIC_SPI 214 IRQ_TYPE_LEVEL_LOW>; 955e9b65ecbSFelix Fietkau }; 956e9b65ecbSFelix Fietkau 957e9b65ecbSFelix Fietkau wed1: wed@1020b000 { 958e9b65ecbSFelix Fietkau compatible = "mediatek,mt7622-wed", 959e9b65ecbSFelix Fietkau "syscon"; 960e9b65ecbSFelix Fietkau reg = <0 0x1020b000 0 0x1000>; 961e9b65ecbSFelix Fietkau interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_LOW>; 962e9b65ecbSFelix Fietkau }; 963e9b65ecbSFelix Fietkau 9645f599b3aSSean Wang eth: ethernet@1b100000 { 965*847afa33SRafał Miłecki compatible = "mediatek,mt7622-eth"; 9665f599b3aSSean Wang reg = <0 0x1b100000 0 0x20000>; 9675f599b3aSSean Wang interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>, 9685f599b3aSSean Wang <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>, 9695f599b3aSSean Wang <GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>; 9705f599b3aSSean Wang clocks = <&topckgen CLK_TOP_ETH_SEL>, 9715f599b3aSSean Wang <ðsys CLK_ETH_ESW_EN>, 9725f599b3aSSean Wang <ðsys CLK_ETH_GP0_EN>, 9735f599b3aSSean Wang <ðsys CLK_ETH_GP1_EN>, 9745f599b3aSSean Wang <ðsys CLK_ETH_GP2_EN>, 9755f599b3aSSean Wang <&sgmiisys CLK_SGMII_TX250M_EN>, 9765f599b3aSSean Wang <&sgmiisys CLK_SGMII_RX250M_EN>, 9775f599b3aSSean Wang <&sgmiisys CLK_SGMII_CDR_REF>, 9785f599b3aSSean Wang <&sgmiisys CLK_SGMII_CDR_FB>, 9795f599b3aSSean Wang <&topckgen CLK_TOP_SGMIIPLL>, 9805f599b3aSSean Wang <&apmixedsys CLK_APMIXED_ETH2PLL>; 9815f599b3aSSean Wang clock-names = "ethif", "esw", "gp0", "gp1", "gp2", 9825f599b3aSSean Wang "sgmii_tx250m", "sgmii_rx250m", 9835f599b3aSSean Wang "sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck", 9845f599b3aSSean Wang "eth2pll"; 9855f599b3aSSean Wang power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>; 9865f599b3aSSean Wang mediatek,ethsys = <ðsys>; 9875f599b3aSSean Wang mediatek,sgmiisys = <&sgmiisys>; 9884263f77aSLorenzo Bianconi cci-control-port = <&cci_control2>; 989e9b65ecbSFelix Fietkau mediatek,wed = <&wed0>, <&wed1>; 990e9b65ecbSFelix Fietkau mediatek,pcie-mirror = <&pcie_mirror>; 991e9b65ecbSFelix Fietkau mediatek,hifsys = <&hifsys>; 9923abd0630SFelix Fietkau dma-coherent; 9935f599b3aSSean Wang #address-cells = <1>; 9945f599b3aSSean Wang #size-cells = <0>; 9955f599b3aSSean Wang status = "disabled"; 9965f599b3aSSean Wang }; 9975f599b3aSSean Wang 998d7167881SSean Wang sgmiisys: sgmiisys@1b128000 { 999d7167881SSean Wang compatible = "mediatek,mt7622-sgmiisys", 1000d7167881SSean Wang "syscon"; 1001afdede61SSean Wang reg = <0 0x1b128000 0 0x3000>; 1002d7167881SSean Wang #clock-cells = <1>; 1003d7167881SSean Wang }; 1004c4629c34SSean Wang}; 1005