1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* 3 * Copyright (C) 2021 MediaTek Inc. 4 * Author: Sam.Shih <sam.shih@mediatek.com> 5 */ 6 7#include <dt-bindings/interrupt-controller/irq.h> 8#include <dt-bindings/interrupt-controller/arm-gic.h> 9#include <dt-bindings/clock/mt7986-clk.h> 10#include <dt-bindings/reset/mt7986-resets.h> 11 12/ { 13 interrupt-parent = <&gic>; 14 #address-cells = <2>; 15 #size-cells = <2>; 16 17 clk40m: oscillator@0 { 18 compatible = "fixed-clock"; 19 clock-frequency = <40000000>; 20 #clock-cells = <0>; 21 clock-output-names = "clkxtal"; 22 }; 23 24 cpus { 25 #address-cells = <1>; 26 #size-cells = <0>; 27 cpu0: cpu@0 { 28 device_type = "cpu"; 29 compatible = "arm,cortex-a53"; 30 enable-method = "psci"; 31 reg = <0x0>; 32 #cooling-cells = <2>; 33 }; 34 35 cpu1: cpu@1 { 36 device_type = "cpu"; 37 compatible = "arm,cortex-a53"; 38 enable-method = "psci"; 39 reg = <0x1>; 40 #cooling-cells = <2>; 41 }; 42 43 cpu2: cpu@2 { 44 device_type = "cpu"; 45 compatible = "arm,cortex-a53"; 46 enable-method = "psci"; 47 reg = <0x2>; 48 #cooling-cells = <2>; 49 }; 50 51 cpu3: cpu@3 { 52 device_type = "cpu"; 53 enable-method = "psci"; 54 compatible = "arm,cortex-a53"; 55 reg = <0x3>; 56 #cooling-cells = <2>; 57 }; 58 }; 59 60 psci { 61 compatible = "arm,psci-0.2"; 62 method = "smc"; 63 }; 64 65 reserved-memory { 66 #address-cells = <2>; 67 #size-cells = <2>; 68 ranges; 69 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ 70 secmon_reserved: secmon@43000000 { 71 reg = <0 0x43000000 0 0x30000>; 72 no-map; 73 }; 74 75 wmcpu_emi: wmcpu-reserved@4fc00000 { 76 no-map; 77 reg = <0 0x4fc00000 0 0x00100000>; 78 }; 79 }; 80 81 timer { 82 compatible = "arm,armv8-timer"; 83 interrupt-parent = <&gic>; 84 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, 85 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, 86 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, 87 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; 88 }; 89 90 soc { 91 #address-cells = <2>; 92 #size-cells = <2>; 93 compatible = "simple-bus"; 94 ranges; 95 96 gic: interrupt-controller@c000000 { 97 compatible = "arm,gic-v3"; 98 #interrupt-cells = <3>; 99 interrupt-parent = <&gic>; 100 interrupt-controller; 101 reg = <0 0x0c000000 0 0x10000>, /* GICD */ 102 <0 0x0c080000 0 0x80000>, /* GICR */ 103 <0 0x0c400000 0 0x2000>, /* GICC */ 104 <0 0x0c410000 0 0x1000>, /* GICH */ 105 <0 0x0c420000 0 0x2000>; /* GICV */ 106 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; 107 }; 108 109 infracfg: infracfg@10001000 { 110 compatible = "mediatek,mt7986-infracfg", "syscon"; 111 reg = <0 0x10001000 0 0x1000>; 112 #clock-cells = <1>; 113 }; 114 115 topckgen: topckgen@1001b000 { 116 compatible = "mediatek,mt7986-topckgen", "syscon"; 117 reg = <0 0x1001B000 0 0x1000>; 118 #clock-cells = <1>; 119 }; 120 121 watchdog: watchdog@1001c000 { 122 compatible = "mediatek,mt7986-wdt", 123 "mediatek,mt6589-wdt"; 124 reg = <0 0x1001c000 0 0x1000>; 125 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; 126 #reset-cells = <1>; 127 status = "disabled"; 128 }; 129 130 apmixedsys: apmixedsys@1001e000 { 131 compatible = "mediatek,mt7986-apmixedsys"; 132 reg = <0 0x1001E000 0 0x1000>; 133 #clock-cells = <1>; 134 }; 135 136 pio: pinctrl@1001f000 { 137 compatible = "mediatek,mt7986a-pinctrl"; 138 reg = <0 0x1001f000 0 0x1000>, 139 <0 0x11c30000 0 0x1000>, 140 <0 0x11c40000 0 0x1000>, 141 <0 0x11e20000 0 0x1000>, 142 <0 0x11e30000 0 0x1000>, 143 <0 0x11f00000 0 0x1000>, 144 <0 0x11f10000 0 0x1000>, 145 <0 0x1000b000 0 0x1000>; 146 reg-names = "gpio", "iocfg_rt", "iocfg_rb", "iocfg_lt", 147 "iocfg_lb", "iocfg_tr", "iocfg_tl", "eint"; 148 gpio-controller; 149 #gpio-cells = <2>; 150 gpio-ranges = <&pio 0 0 100>; 151 interrupt-controller; 152 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>; 153 interrupt-parent = <&gic>; 154 #interrupt-cells = <2>; 155 }; 156 157 sgmiisys0: syscon@10060000 { 158 compatible = "mediatek,mt7986-sgmiisys_0", 159 "syscon"; 160 reg = <0 0x10060000 0 0x1000>; 161 #clock-cells = <1>; 162 }; 163 164 sgmiisys1: syscon@10070000 { 165 compatible = "mediatek,mt7986-sgmiisys_1", 166 "syscon"; 167 reg = <0 0x10070000 0 0x1000>; 168 #clock-cells = <1>; 169 }; 170 171 trng: rng@1020f000 { 172 compatible = "mediatek,mt7986-rng", 173 "mediatek,mt7623-rng"; 174 reg = <0 0x1020f000 0 0x100>; 175 clocks = <&infracfg CLK_INFRA_TRNG_CK>; 176 clock-names = "rng"; 177 status = "disabled"; 178 }; 179 180 crypto: crypto@10320000 { 181 compatible = "inside-secure,safexcel-eip97"; 182 reg = <0 0x10320000 0 0x40000>; 183 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, 184 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, 185 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, 186 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; 187 interrupt-names = "ring0", "ring1", "ring2", "ring3"; 188 clocks = <&infracfg CLK_INFRA_EIP97_CK>; 189 clock-names = "infra_eip97_ck"; 190 assigned-clocks = <&topckgen CLK_TOP_EIP_B_SEL>; 191 assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>; 192 status = "disabled"; 193 }; 194 195 uart0: serial@11002000 { 196 compatible = "mediatek,mt7986-uart", 197 "mediatek,mt6577-uart"; 198 reg = <0 0x11002000 0 0x400>; 199 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; 200 clocks = <&infracfg CLK_INFRA_UART0_SEL>, 201 <&infracfg CLK_INFRA_UART0_CK>; 202 clock-names = "baud", "bus"; 203 assigned-clocks = <&topckgen CLK_TOP_UART_SEL>, 204 <&infracfg CLK_INFRA_UART0_SEL>; 205 assigned-clock-parents = <&topckgen CLK_TOP_XTAL>, 206 <&topckgen CLK_TOP_UART_SEL>; 207 status = "disabled"; 208 }; 209 210 uart1: serial@11003000 { 211 compatible = "mediatek,mt7986-uart", 212 "mediatek,mt6577-uart"; 213 reg = <0 0x11003000 0 0x400>; 214 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>; 215 clocks = <&infracfg CLK_INFRA_UART1_SEL>, 216 <&infracfg CLK_INFRA_UART1_CK>; 217 clock-names = "baud", "bus"; 218 assigned-clocks = <&infracfg CLK_INFRA_UART1_SEL>; 219 assigned-clock-parents = <&topckgen CLK_TOP_F26M_SEL>; 220 status = "disabled"; 221 }; 222 223 uart2: serial@11004000 { 224 compatible = "mediatek,mt7986-uart", 225 "mediatek,mt6577-uart"; 226 reg = <0 0x11004000 0 0x400>; 227 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; 228 clocks = <&infracfg CLK_INFRA_UART2_SEL>, 229 <&infracfg CLK_INFRA_UART2_CK>; 230 clock-names = "baud", "bus"; 231 assigned-clocks = <&infracfg CLK_INFRA_UART2_SEL>; 232 assigned-clock-parents = <&topckgen CLK_TOP_F26M_SEL>; 233 status = "disabled"; 234 }; 235 236 ethsys: syscon@15000000 { 237 #address-cells = <1>; 238 #size-cells = <1>; 239 compatible = "mediatek,mt7986-ethsys", 240 "syscon"; 241 reg = <0 0x15000000 0 0x1000>; 242 #clock-cells = <1>; 243 #reset-cells = <1>; 244 }; 245 246 wed_pcie: wed-pcie@10003000 { 247 compatible = "mediatek,mt7986-wed-pcie", 248 "syscon"; 249 reg = <0 0x10003000 0 0x10>; 250 }; 251 252 wed0: wed@15010000 { 253 compatible = "mediatek,mt7986-wed", 254 "syscon"; 255 reg = <0 0x15010000 0 0x1000>; 256 interrupt-parent = <&gic>; 257 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>; 258 }; 259 260 wed1: wed@15011000 { 261 compatible = "mediatek,mt7986-wed", 262 "syscon"; 263 reg = <0 0x15011000 0 0x1000>; 264 interrupt-parent = <&gic>; 265 interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>; 266 }; 267 268 eth: ethernet@15100000 { 269 compatible = "mediatek,mt7986-eth"; 270 reg = <0 0x15100000 0 0x80000>; 271 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, 272 <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, 273 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>, 274 <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; 275 clocks = <ðsys CLK_ETH_FE_EN>, 276 <ðsys CLK_ETH_GP2_EN>, 277 <ðsys CLK_ETH_GP1_EN>, 278 <ðsys CLK_ETH_WOCPU1_EN>, 279 <ðsys CLK_ETH_WOCPU0_EN>, 280 <&sgmiisys0 CLK_SGMII0_TX250M_EN>, 281 <&sgmiisys0 CLK_SGMII0_RX250M_EN>, 282 <&sgmiisys0 CLK_SGMII0_CDR_REF>, 283 <&sgmiisys0 CLK_SGMII0_CDR_FB>, 284 <&sgmiisys1 CLK_SGMII1_TX250M_EN>, 285 <&sgmiisys1 CLK_SGMII1_RX250M_EN>, 286 <&sgmiisys1 CLK_SGMII1_CDR_REF>, 287 <&sgmiisys1 CLK_SGMII1_CDR_FB>, 288 <&topckgen CLK_TOP_NETSYS_SEL>, 289 <&topckgen CLK_TOP_NETSYS_500M_SEL>; 290 clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0", 291 "sgmii_tx250m", "sgmii_rx250m", 292 "sgmii_cdr_ref", "sgmii_cdr_fb", 293 "sgmii2_tx250m", "sgmii2_rx250m", 294 "sgmii2_cdr_ref", "sgmii2_cdr_fb", 295 "netsys0", "netsys1"; 296 assigned-clocks = <&topckgen CLK_TOP_NETSYS_2X_SEL>, 297 <&topckgen CLK_TOP_SGM_325M_SEL>; 298 assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>, 299 <&apmixedsys CLK_APMIXED_SGMPLL>; 300 mediatek,ethsys = <ðsys>; 301 mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>; 302 mediatek,wed-pcie = <&wed_pcie>; 303 mediatek,wed = <&wed0>, <&wed1>; 304 #reset-cells = <1>; 305 #address-cells = <1>; 306 #size-cells = <0>; 307 status = "disabled"; 308 }; 309 310 wifi: wifi@18000000 { 311 compatible = "mediatek,mt7986-wmac"; 312 resets = <&watchdog MT7986_TOPRGU_CONSYS_SW_RST>; 313 reset-names = "consys"; 314 clocks = <&topckgen CLK_TOP_CONN_MCUSYS_SEL>, 315 <&topckgen CLK_TOP_AP2CNN_HOST_SEL>; 316 clock-names = "mcu", "ap2conn"; 317 reg = <0 0x18000000 0 0x1000000>, 318 <0 0x10003000 0 0x1000>, 319 <0 0x11d10000 0 0x1000>; 320 interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, 321 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>, 322 <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>, 323 <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>; 324 memory-region = <&wmcpu_emi>; 325 }; 326 }; 327 328}; 329