developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020 MediaTek Inc. |
| 3 | * Author: Sam.Shih <sam.shih@mediatek.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | */ |
| 14 | |
| 15 | #include <dt-bindings/interrupt-controller/irq.h> |
| 16 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 17 | #include <dt-bindings/phy/phy.h> |
| 18 | #include <dt-bindings/reset/ti-syscon.h> |
| 19 | #include <dt-bindings/clock/mt7981-clk.h> |
| 20 | / { |
| 21 | compatible = "mediatek,mt7981-rfb"; |
| 22 | interrupt-parent = <&gic>; |
| 23 | #address-cells = <2>; |
| 24 | #size-cells = <2>; |
| 25 | cpus { |
| 26 | #address-cells = <1>; |
| 27 | #size-cells = <0>; |
| 28 | cpu@0 { |
| 29 | device_type = "cpu"; |
| 30 | compatible = "arm,cortex-a53"; |
| 31 | enable-method = "psci"; |
| 32 | reg = <0x0>; |
| 33 | }; |
| 34 | |
| 35 | cpu@1 { |
| 36 | device_type = "cpu"; |
| 37 | compatible = "arm,cortex-a53"; |
| 38 | enable-method = "psci"; |
| 39 | reg = <0x1>; |
| 40 | }; |
| 41 | }; |
| 42 | |
| 43 | auxadc: adc@1100d000 { |
| 44 | compatible = "mediatek,mt7981-auxadc", |
| 45 | "mediatek,mt7622-auxadc"; |
| 46 | reg = <0 0x1100d000 0 0x1000>; |
| 47 | clocks = <&system_clk>; |
| 48 | clock-names = "main"; |
| 49 | #io-channel-cells = <1>; |
| 50 | }; |
| 51 | |
| 52 | wed: wed@15010000 { |
| 53 | compatible = "mediatek,wed"; |
| 54 | wed_num = <2>; |
| 55 | /* add this property for wed get the pci slot number. */ |
| 56 | pci_slot_map = <0>, <1>; |
| 57 | reg = <0 0x15010000 0 0x1000>, |
| 58 | <0 0x15011000 0 0x1000>; |
| 59 | interrupt-parent = <&gic>; |
| 60 | interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>, |
| 61 | <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>; |
| 62 | }; |
| 63 | |
| 64 | wdma: wdma@15104800 { |
| 65 | compatible = "mediatek,wed-wdma"; |
| 66 | reg = <0 0x15104800 0 0x400>, |
| 67 | <0 0x15104c00 0 0x400>; |
| 68 | }; |
| 69 | |
| 70 | ap2woccif: ap2woccif@151A5000 { |
| 71 | compatible = "mediatek,ap2woccif"; |
| 72 | reg = <0 0x151A5000 0 0x1000>, |
| 73 | <0 0x151AD000 0 0x1000>; |
| 74 | interrupt-parent = <&gic>; |
| 75 | interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, |
| 76 | <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>; |
| 77 | }; |
| 78 | |
| 79 | wocpu0_ilm: wocpu0_ilm@151E0000 { |
| 80 | compatible = "mediatek,wocpu0_ilm"; |
| 81 | reg = <0 0x151E0000 0 0x8000>; |
| 82 | }; |
| 83 | |
| 84 | wocpu_dlm: wocpu_dlm@151E8000 { |
| 85 | compatible = "mediatek,wocpu_dlm"; |
| 86 | reg = <0 0x151E8000 0 0x2000>, |
| 87 | <0 0x151F8000 0 0x2000>; |
| 88 | |
| 89 | resets = <ðsysrst 0>; |
| 90 | reset-names = "wocpu_rst"; |
| 91 | }; |
| 92 | |
| 93 | cpu_boot: wocpu_boot@15194000 { |
| 94 | compatible = "mediatek,wocpu_boot"; |
| 95 | reg = <0 0x15194000 0 0x1000>; |
| 96 | }; |
| 97 | |
| 98 | reserved-memory { |
| 99 | #address-cells = <2>; |
| 100 | #size-cells = <2>; |
| 101 | ranges; |
| 102 | |
| 103 | /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ |
| 104 | secmon_reserved: secmon@43000000 { |
| 105 | reg = <0 0x43000000 0 0x30000>; |
| 106 | no-map; |
| 107 | }; |
| 108 | |
| 109 | wmcpu_emi: wmcpu-reserved@47C80000 { |
| 110 | compatible = "mediatek,wmcpu-reserved"; |
| 111 | no-map; |
| 112 | reg = <0 0x47C80000 0 0x00100000>; |
| 113 | }; |
| 114 | |
| 115 | wocpu0_emi: wocpu0_emi@47D80000 { |
| 116 | compatible = "mediatek,wocpu0_emi"; |
| 117 | no-map; |
| 118 | reg = <0 0x47D80000 0 0x40000>; |
| 119 | shared = <0>; |
| 120 | }; |
| 121 | |
| 122 | wocpu_data: wocpu_data@47DC0000 { |
| 123 | compatible = "mediatek,wocpu_data"; |
| 124 | no-map; |
| 125 | reg = <0 0x47DC0000 0 0x240000>; |
| 126 | shared = <1>; |
| 127 | }; |
| 128 | }; |
| 129 | |
| 130 | psci { |
| 131 | compatible = "arm,psci-0.2"; |
| 132 | method = "smc"; |
| 133 | }; |
| 134 | |
| 135 | clk40m: oscillator@0 { |
| 136 | compatible = "fixed-clock"; |
| 137 | #clock-cells = <0>; |
| 138 | clock-frequency = <40000000>; |
| 139 | clock-output-names = "clkxtal"; |
| 140 | }; |
| 141 | |
| 142 | infracfg_ao: infracfg_ao@10001000 { |
| 143 | compatible = "mediatek,mt7981-infracfg_ao", "syscon"; |
| 144 | reg = <0 0x10001000 0 0x30>; |
| 145 | #clock-cells = <1>; |
| 146 | }; |
| 147 | |
| 148 | infracfg: infracfg@10001040 { |
| 149 | compatible = "mediatek,mt7981-infracfg", "syscon"; |
| 150 | reg = <0 0x10001040 0 0x1000>; |
| 151 | #clock-cells = <1>; |
| 152 | }; |
| 153 | |
| 154 | topckgen: topckgen@1001B000 { |
| 155 | compatible = "mediatek,mt7981-topckgen", "syscon"; |
| 156 | reg = <0 0x1001B000 0 0x1000>; |
| 157 | #clock-cells = <1>; |
| 158 | }; |
| 159 | |
| 160 | apmixedsys: apmixedsys@1001E000 { |
| 161 | compatible = "mediatek,mt7981-apmixedsys", "syscon"; |
| 162 | reg = <0 0x1001E000 0 0x1000>; |
| 163 | #clock-cells = <1>; |
| 164 | }; |
| 165 | |
| 166 | system_clk: dummy_system_clk { |
| 167 | compatible = "fixed-clock"; |
| 168 | clock-frequency = <40000000>; |
| 169 | #clock-cells = <0>; |
| 170 | }; |
| 171 | |
| 172 | uart_clk: dummy_uart_clk { |
| 173 | compatible = "fixed-clock"; |
| 174 | clock-frequency = <40000000>; |
| 175 | #clock-cells = <0>; |
| 176 | }; |
| 177 | |
| 178 | gpt_clk: dummy_gpt_clk { |
| 179 | compatible = "fixed-clock"; |
| 180 | clock-frequency = <20000000>; |
| 181 | #clock-cells = <0>; |
| 182 | }; |
| 183 | |
developer | 33b0c63 | 2021-11-11 16:25:17 +0800 | [diff] [blame] | 184 | spi_clk: dummy_spi_clk { |
| 185 | compatible = "fixed-clock"; |
| 186 | clock-frequency = <208000000>; |
| 187 | #clock-cells = <0>; |
| 188 | }; |
| 189 | |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 190 | timer { |
| 191 | compatible = "arm,armv8-timer"; |
| 192 | interrupt-parent = <&gic>; |
developer | 3f7ec6d | 2021-11-12 14:59:41 +0800 | [diff] [blame] | 193 | clock-frequency = <13000000>; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 194 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, |
| 195 | <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, |
| 196 | <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, |
| 197 | <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; |
| 198 | |
| 199 | }; |
| 200 | |
| 201 | watchdog: watchdog@1001c000 { |
| 202 | compatible = "mediatek,mt7622-wdt", |
| 203 | "mediatek,mt6589-wdt"; |
| 204 | reg = <0 0x1001c000 0 0x1000>; |
| 205 | interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; |
| 206 | #reset-cells = <1>; |
| 207 | }; |
| 208 | |
| 209 | gic: interrupt-controller@c000000 { |
| 210 | compatible = "arm,gic-v3"; |
| 211 | #interrupt-cells = <3>; |
| 212 | interrupt-parent = <&gic>; |
| 213 | interrupt-controller; |
| 214 | reg = <0 0x0c000000 0 0x40000>, /* GICD */ |
| 215 | <0 0x0c080000 0 0x200000>; /* GICR */ |
| 216 | |
| 217 | interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; |
| 218 | }; |
| 219 | |
| 220 | uart0: serial@11002000 { |
| 221 | compatible = "mediatek,mt7986-uart", |
| 222 | "mediatek,mt6577-uart"; |
| 223 | reg = <0 0x11002000 0 0x400>; |
| 224 | interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; |
| 225 | clocks = <&uart_clk>; |
| 226 | status = "disabled"; |
| 227 | }; |
| 228 | |
| 229 | uart1: serial@11003000 { |
| 230 | compatible = "mediatek,mt7986-uart", |
| 231 | "mediatek,mt6577-uart"; |
| 232 | reg = <0 0x11003000 0 0x400>; |
| 233 | interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>; |
| 234 | clocks = <&uart_clk>; |
| 235 | status = "disabled"; |
| 236 | }; |
| 237 | |
| 238 | uart2: serial@11004000 { |
| 239 | compatible = "mediatek,mt7986-uart", |
| 240 | "mediatek,mt6577-uart"; |
| 241 | reg = <0 0x11004000 0 0x400>; |
| 242 | interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; |
| 243 | clocks = <&uart_clk>; |
| 244 | status = "disabled"; |
| 245 | }; |
| 246 | |
| 247 | pcie: pcie@11280000 { |
| 248 | compatible = "mediatek,mt7981-pcie", |
| 249 | "mediatek,mt7986-pcie"; |
| 250 | device_type = "pci"; |
| 251 | reg = <0 0x11280000 0 0x4000>; |
| 252 | reg-names = "pcie-mac"; |
| 253 | #address-cells = <3>; |
| 254 | #size-cells = <2>; |
| 255 | interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>; |
| 256 | bus-range = <0x00 0xff>; |
| 257 | ranges = <0x82000000 0 0x20000000 |
| 258 | 0x0 0x20000000 0 0x10000000>; |
| 259 | status = "disabled"; |
| 260 | |
| 261 | phys = <&u3port0 PHY_TYPE_PCIE>; |
| 262 | phy-names = "pcie-phy"; |
| 263 | |
| 264 | #interrupt-cells = <1>; |
| 265 | interrupt-map-mask = <0 0 0 7>; |
| 266 | interrupt-map = <0 0 0 1 &pcie_intc 0>, |
| 267 | <0 0 0 2 &pcie_intc 1>, |
| 268 | <0 0 0 3 &pcie_intc 2>, |
| 269 | <0 0 0 4 &pcie_intc 3>; |
| 270 | pcie_intc: interrupt-controller { |
| 271 | interrupt-controller; |
| 272 | #address-cells = <0>; |
| 273 | #interrupt-cells = <1>; |
| 274 | }; |
| 275 | }; |
| 276 | |
developer | e3c7cd1 | 2021-11-30 14:49:26 +0800 | [diff] [blame] | 277 | crypto: crypto@10320000 { |
| 278 | compatible = "inside-secure,safexcel-eip97"; |
| 279 | reg = <0 0x10320000 0 0x40000>; |
| 280 | interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, |
| 281 | <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, |
| 282 | <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, |
| 283 | <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; |
| 284 | interrupt-names = "ring0", "ring1", "ring2", "ring3"; |
| 285 | clocks = <&topckgen CK_TOP_EIP97B>; |
| 286 | clock-names = "top_eip97_ck"; |
| 287 | assigned-clocks = <&topckgen CK_TOP_EIP97B_SEL>; |
| 288 | assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>; |
| 289 | }; |
| 290 | |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 291 | pio: pinctrl@11d00000 { |
| 292 | compatible = "mediatek,mt7981-pinctrl"; |
| 293 | reg = <0 0x11d00000 0 0x1000>, |
| 294 | <0 0x11c00000 0 0x1000>, |
| 295 | <0 0x11c10000 0 0x1000>, |
| 296 | <0 0x11d20000 0 0x1000>, |
| 297 | <0 0x11e00000 0 0x1000>, |
| 298 | <0 0x11e20000 0 0x1000>, |
| 299 | <0 0x11f00000 0 0x1000>, |
| 300 | <0 0x11f10000 0 0x1000>, |
| 301 | <0 0x1000b000 0 0x1000>; |
| 302 | reg-names = "gpio_base", "iocfg_rt_base", "iocfg_rm_base", |
| 303 | "iocfg_rb_base", "iocfg_lb_base", "iocfg_bl_base", |
| 304 | "iocfg_tm_base", "iocfg_tl_base", "eint"; |
| 305 | gpio-controller; |
| 306 | #gpio-cells = <2>; |
| 307 | gpio-ranges = <&pio 0 0 56>; |
| 308 | interrupt-controller; |
| 309 | interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; |
| 310 | interrupt-parent = <&gic>; |
| 311 | #interrupt-cells = <2>; |
| 312 | }; |
| 313 | |
| 314 | ethsys: syscon@15000000 { |
| 315 | #address-cells = <1>; |
| 316 | #size-cells = <1>; |
developer | 9e9fb4c | 2021-11-30 17:33:04 +0800 | [diff] [blame^] | 317 | compatible = "mediatek,mt7981-ethsys", |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 318 | "syscon"; |
| 319 | reg = <0 0x15000000 0 0x1000>; |
| 320 | #clock-cells = <1>; |
| 321 | #reset-cells = <1>; |
| 322 | |
| 323 | ethsysrst: reset-controller { |
| 324 | compatible = "ti,syscon-reset"; |
| 325 | #reset-cells = <1>; |
| 326 | ti,reset-bits = <0x34 4 0x34 4 0x34 4 (ASSERT_SET | DEASSERT_CLEAR | STATUS_SET)>; |
| 327 | }; |
| 328 | }; |
| 329 | |
| 330 | eth: ethernet@15100000 { |
| 331 | compatible = "mediatek,mt7981-eth"; |
| 332 | reg = <0 0x15100000 0 0x80000>; |
| 333 | interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, |
| 334 | <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, |
| 335 | <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>, |
| 336 | <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; |
developer | 9e9fb4c | 2021-11-30 17:33:04 +0800 | [diff] [blame^] | 337 | clocks = <ðsys CK_ETH_FE_EN>, |
| 338 | <ðsys CK_ETH_GP2_EN>, |
| 339 | <ðsys CK_ETH_GP1_EN>, |
| 340 | <ðsys CK_ETH_WOCPU0_EN>, |
| 341 | <&sgmiisys0 CK_SGM0_TX_EN>, |
| 342 | <&sgmiisys0 CK_SGM0_RX_EN>, |
| 343 | <&sgmiisys0 CK_SGM0_CK0_EN>, |
| 344 | <&sgmiisys0 CK_SGM0_CDR_CK0_EN>, |
| 345 | <&sgmiisys1 CK_SGM1_TX_EN>, |
| 346 | <&sgmiisys1 CK_SGM1_RX_EN>, |
| 347 | <&sgmiisys1 CK_SGM1_CK1_EN>, |
| 348 | <&sgmiisys1 CK_SGM1_CDR_CK1_EN>; |
| 349 | clock-names = "fe", "gp2", "gp1", "wocpu0", |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 350 | "sgmii_tx250m", "sgmii_rx250m", |
| 351 | "sgmii_cdr_ref", "sgmii_cdr_fb", |
| 352 | "sgmii2_tx250m", "sgmii2_rx250m", |
| 353 | "sgmii2_cdr_ref", "sgmii2_cdr_fb"; |
developer | 9e9fb4c | 2021-11-30 17:33:04 +0800 | [diff] [blame^] | 354 | assigned-clocks = <&topckgen CK_TOP_NETSYS_2X_SEL>, |
| 355 | <&topckgen CK_TOP_SGM_325M_SEL>; |
| 356 | assigned-clock-parents = <&topckgen CK_TOP_CB_NET2_800M>, |
| 357 | <&topckgen CK_TOP_CB_SGM_325M>; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 358 | mediatek,ethsys = <ðsys>; |
| 359 | mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>; |
| 360 | mediatek,infracfg = <&topmisc>; |
| 361 | #reset-cells = <1>; |
| 362 | #address-cells = <1>; |
| 363 | #size-cells = <0>; |
| 364 | status = "disabled"; |
| 365 | }; |
| 366 | |
| 367 | hnat: hnat@15000000 { |
| 368 | compatible = "mediatek,mtk-hnat_v4"; |
| 369 | reg = <0 0x15100000 0 0x80000>; |
| 370 | resets = <ðsys 0>; |
| 371 | reset-names = "mtketh"; |
| 372 | status = "disabled"; |
| 373 | }; |
| 374 | |
| 375 | sgmiisys0: syscon@10060000 { |
developer | 9e9fb4c | 2021-11-30 17:33:04 +0800 | [diff] [blame^] | 376 | compatible = "mediatek,mt7981-sgmiisys_0", "syscon"; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 377 | reg = <0 0x10060000 0 0x1000>; |
| 378 | pn_swap; |
| 379 | #clock-cells = <1>; |
| 380 | }; |
| 381 | |
| 382 | sgmiisys1: syscon@10070000 { |
developer | 9e9fb4c | 2021-11-30 17:33:04 +0800 | [diff] [blame^] | 383 | compatible = "mediatek,mt7981-sgmiisys_1", "syscon"; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 384 | reg = <0 0x10070000 0 0x1000>; |
| 385 | #clock-cells = <1>; |
| 386 | }; |
| 387 | |
| 388 | topmisc: topmisc@11d10000 { |
| 389 | compatible = "mediatek,mt7981-topmisc", "syscon"; |
| 390 | reg = <0 0x11d10000 0 0x10000>; |
| 391 | #clock-cells = <1>; |
| 392 | }; |
| 393 | |
| 394 | snand: snfi@11005000 { |
| 395 | compatible = "mediatek,mt7986-snand"; |
| 396 | reg = <0 0x11005000 0 0x1000>, <0 0x11006000 0 0x1000>; |
| 397 | reg-names = "nfi", "ecc"; |
| 398 | interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>; |
developer | af7c350 | 2021-11-10 20:49:31 +0800 | [diff] [blame] | 399 | clocks = <&infracfg_ao CK_INFRA_SPINFI1_CK>, |
| 400 | <&infracfg_ao CK_INFRA_NFI1_CK>, |
| 401 | <&infracfg_ao CK_INFRA_NFI_HCK_CK>; |
| 402 | clock-names = "pad_clk", "nfi_clk", "nfi_hclk"; |
| 403 | assigned-clocks = <&topckgen CK_TOP_SPINFI_SEL>, |
| 404 | <&topckgen CK_TOP_NFI1X_SEL>; |
| 405 | assigned-clock-parents = <&topckgen CK_TOP_CB_M_D8>, |
| 406 | <&topckgen CK_TOP_CB_M_D8>; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 407 | #address-cells = <1>; |
| 408 | #size-cells = <0>; |
| 409 | status = "disabled"; |
| 410 | }; |
| 411 | |
| 412 | mmc0: mmc@11230000 { |
| 413 | compatible = "mediatek,mt7986-mmc"; |
| 414 | reg = <0 0x11230000 0 0x1000>, <0 0x11c20000 0 0x1000>; |
| 415 | interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; |
| 416 | clocks = <&system_clk>, |
| 417 | <&system_clk>, |
| 418 | <&system_clk>; |
| 419 | clock-names = "source", "hclk", "source_cg"; |
| 420 | status = "disabled"; |
| 421 | }; |
| 422 | |
| 423 | wbsys: wbsys@18000000 { |
| 424 | compatible = "mediatek,wbsys"; |
| 425 | reg = <0 0x18000000 0 0x1000000>; |
| 426 | interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, |
| 427 | <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>, |
| 428 | <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>, |
| 429 | <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>; |
| 430 | chip_id = <0x7981>; |
| 431 | }; |
| 432 | |
| 433 | wed_pcie: wed_pcie@10003000 { |
| 434 | compatible = "mediatek,wed_pcie"; |
| 435 | reg = <0 0x10003000 0 0x10>; |
| 436 | }; |
| 437 | |
| 438 | spi0: spi@1100a000 { |
| 439 | compatible = "mediatek,ipm-spi-quad"; |
| 440 | reg = <0 0x1100a000 0 0x100>; |
| 441 | interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; |
developer | 33b0c63 | 2021-11-11 16:25:17 +0800 | [diff] [blame] | 442 | clocks = <&spi_clk>, |
| 443 | <&spi_clk>, |
| 444 | <&spi_clk>, |
| 445 | <&spi_clk>; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 446 | clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk"; |
| 447 | status = "disabled"; |
| 448 | }; |
| 449 | |
| 450 | spi1: spi@1100b000 { |
| 451 | compatible = "mediatek,ipm-spi-single"; |
| 452 | reg = <0 0x1100b000 0 0x100>; |
| 453 | interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>; |
developer | 33b0c63 | 2021-11-11 16:25:17 +0800 | [diff] [blame] | 454 | clocks = <&spi_clk>, |
| 455 | <&spi_clk>, |
| 456 | <&spi_clk>, |
| 457 | <&spi_clk>; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 458 | clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk"; |
| 459 | status = "disabled"; |
| 460 | }; |
| 461 | |
| 462 | spi2: spi@11009000 { |
| 463 | compatible = "mediatek,ipm-spi-quad"; |
| 464 | reg = <0 0x11009000 0 0x100>; |
| 465 | interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>; |
developer | 33b0c63 | 2021-11-11 16:25:17 +0800 | [diff] [blame] | 466 | clocks = <&spi_clk>, |
| 467 | <&spi_clk>, |
| 468 | <&spi_clk>, |
| 469 | <&spi_clk>; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 470 | clock-names = "parent-clk", "sel-clk", "spi-clk", "spi-hclk"; |
| 471 | status = "disabled"; |
| 472 | }; |
| 473 | |
| 474 | |
| 475 | consys: consys@10000000 { |
| 476 | compatible = "mediatek,mt7981-consys"; |
| 477 | reg = <0 0x10000000 0 0x8600000>; |
| 478 | memory-region = <&wmcpu_emi>; |
| 479 | }; |
| 480 | |
| 481 | xhci: xhci@11200000 { |
| 482 | compatible = "mediatek,mt7986-xhci", |
| 483 | "mediatek,mtk-xhci"; |
| 484 | reg = <0 0x11200000 0 0x2e00>, |
| 485 | <0 0x11203e00 0 0x0100>; |
| 486 | reg-names = "mac", "ippc"; |
| 487 | interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>; |
| 488 | phys = <&u2port0 PHY_TYPE_USB2>; |
| 489 | clocks = <&system_clk>, |
| 490 | <&system_clk>, |
| 491 | <&system_clk>, |
| 492 | <&system_clk>, |
| 493 | <&system_clk>; |
| 494 | clock-names = "sys_ck", |
| 495 | "xhci_ck", |
| 496 | "ref_ck", |
| 497 | "mcu_ck", |
| 498 | "dma_ck"; |
| 499 | #address-cells = <2>; |
| 500 | #size-cells = <2>; |
| 501 | mediatek,u3p-dis-msk = <0x01>; |
| 502 | status = "disabled"; |
| 503 | }; |
| 504 | |
| 505 | usbtphy: usb-phy@11e10000 { |
| 506 | compatible = "mediatek,mt7986", |
| 507 | "mediatek,generic-tphy-v2"; |
| 508 | #address-cells = <2>; |
| 509 | #size-cells = <2>; |
| 510 | ranges; |
| 511 | status = "okay"; |
| 512 | |
| 513 | u2port0: usb-phy@11e10000 { |
| 514 | reg = <0 0x11e10000 0 0x700>; |
| 515 | clocks = <&system_clk>; |
| 516 | clock-names = "ref"; |
| 517 | #phy-cells = <1>; |
| 518 | status = "okay"; |
| 519 | }; |
| 520 | |
| 521 | u3port0: usb-phy@11e10700 { |
| 522 | reg = <0 0x11e10700 0 0x900>; |
| 523 | clocks = <&system_clk>; |
| 524 | clock-names = "ref"; |
| 525 | #phy-cells = <1>; |
| 526 | mediatek,syscon-type = <&topmisc 0x218 0>; |
| 527 | status = "okay"; |
| 528 | }; |
| 529 | }; |
| 530 | |
| 531 | reg_3p3v: regulator-3p3v { |
| 532 | compatible = "regulator-fixed"; |
| 533 | regulator-name = "fixed-3.3V"; |
| 534 | regulator-min-microvolt = <3300000>; |
| 535 | regulator-max-microvolt = <3300000>; |
| 536 | regulator-boot-on; |
| 537 | regulator-always-on; |
| 538 | }; |
| 539 | |
| 540 | clkitg: clkitg { |
| 541 | compatible = "simple-bus"; |
| 542 | }; |
developer | a7de8be | 2021-11-15 21:14:31 +0800 | [diff] [blame] | 543 | |
| 544 | efuse: efuse@11f20000 { |
| 545 | compatible = "mediatek,efuse"; |
| 546 | reg = <0 0x11f20000 0 0x1000>; |
| 547 | #address-cells = <1>; |
| 548 | #size-cells = <1>; |
| 549 | |
| 550 | thermal_calibration: calib@274 { |
| 551 | reg = <0x274 0xc>; |
| 552 | }; |
| 553 | |
| 554 | phy_calibration: calib@8dc { |
| 555 | reg = <0x8dc 0x10>; |
| 556 | }; |
| 557 | }; |
developer | e3c7cd1 | 2021-11-30 14:49:26 +0800 | [diff] [blame] | 558 | |
| 559 | afe: audio-controller@11210000 { |
| 560 | compatible = "mediatek,mt79xx-audio"; |
| 561 | reg = <0 0x11210000 0 0x9000>; |
| 562 | interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; |
| 563 | clocks = <&infracfg_ao CK_INFRA_AUD_BUS_CK>, |
| 564 | <&infracfg_ao CK_INFRA_AUD_26M_CK>, |
| 565 | <&infracfg_ao CK_INFRA_AUD_L_CK>, |
| 566 | <&infracfg_ao CK_INFRA_AUD_AUD_CK>, |
| 567 | <&infracfg_ao CK_INFRA_AUD_EG2_CK>; |
| 568 | clock-names = "aud_bus_ck", |
| 569 | "aud_26m_ck", |
| 570 | "aud_l_ck", |
| 571 | "aud_aud_ck", |
| 572 | "aud_eg2_ck"; |
| 573 | assigned-clocks = <&topckgen CK_TOP_AUD_SEL>, |
| 574 | <&topckgen CK_TOP_A1SYS_SEL>, |
| 575 | <&topckgen CK_TOP_AUD_L_SEL>, |
| 576 | <&topckgen CK_TOP_A_TUNER_SEL>; |
| 577 | assigned-clock-parents = <&topckgen CK_TOP_CB_CKSQ_40M>, |
| 578 | <&topckgen CK_TOP_CB_CKSQ_40M>, |
| 579 | <&topckgen CK_TOP_CB_CKSQ_40M>, |
| 580 | <&topckgen CK_TOP_CB_CKSQ_40M>; |
| 581 | status = "disabled"; |
| 582 | }; |
developer | 24455dd | 2021-10-28 10:55:41 +0800 | [diff] [blame] | 583 | }; |
| 584 | #include "mt7981-clkitg.dtsi" |