1// SPDX-License-Identifier: GPL-2.0-only OR MIT 2 3#include <dt-bindings/clock/mediatek,mt7988-clk.h> 4#include <dt-bindings/interrupt-controller/arm-gic.h> 5#include <dt-bindings/phy/phy.h> 6#include <dt-bindings/pinctrl/mt65xx.h> 7#include <dt-bindings/reset/mediatek,mt7988-resets.h> 8 9/ { 10 compatible = "mediatek,mt7988a"; 11 interrupt-parent = <&gic>; 12 #address-cells = <2>; 13 #size-cells = <2>; 14 15 cci: cci { 16 compatible = "mediatek,mt7988-cci", "mediatek,mt8183-cci"; 17 clocks = <&mcusys CLK_MCU_BUS_DIV_SEL>, 18 <&topckgen CLK_TOP_XTAL>; 19 clock-names = "cci", "intermediate"; 20 operating-points-v2 = <&cci_opp>; 21 }; 22 23 cci_opp: opp-table-cci { 24 compatible = "operating-points-v2"; 25 opp-shared; 26 opp-480000000 { 27 opp-hz = /bits/ 64 <480000000>; 28 opp-microvolt = <850000>; 29 }; 30 opp-660000000 { 31 opp-hz = /bits/ 64 <660000000>; 32 opp-microvolt = <850000>; 33 }; 34 opp-900000000 { 35 opp-hz = /bits/ 64 <900000000>; 36 opp-microvolt = <850000>; 37 }; 38 opp-1080000000 { 39 opp-hz = /bits/ 64 <1080000000>; 40 opp-microvolt = <900000>; 41 }; 42 }; 43 44 cpus { 45 #address-cells = <1>; 46 #size-cells = <0>; 47 48 cpu0: cpu@0 { 49 compatible = "arm,cortex-a73"; 50 reg = <0x0>; 51 device_type = "cpu"; 52 enable-method = "psci"; 53 clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, 54 <&topckgen CLK_TOP_XTAL>; 55 clock-names = "cpu", "intermediate"; 56 operating-points-v2 = <&cluster0_opp>; 57 mediatek,cci = <&cci>; 58 }; 59 60 cpu1: cpu@1 { 61 compatible = "arm,cortex-a73"; 62 reg = <0x1>; 63 device_type = "cpu"; 64 enable-method = "psci"; 65 clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, 66 <&topckgen CLK_TOP_XTAL>; 67 clock-names = "cpu", "intermediate"; 68 operating-points-v2 = <&cluster0_opp>; 69 mediatek,cci = <&cci>; 70 }; 71 72 cpu2: cpu@2 { 73 compatible = "arm,cortex-a73"; 74 reg = <0x2>; 75 device_type = "cpu"; 76 enable-method = "psci"; 77 clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, 78 <&topckgen CLK_TOP_XTAL>; 79 clock-names = "cpu", "intermediate"; 80 operating-points-v2 = <&cluster0_opp>; 81 mediatek,cci = <&cci>; 82 }; 83 84 cpu3: cpu@3 { 85 compatible = "arm,cortex-a73"; 86 reg = <0x3>; 87 device_type = "cpu"; 88 enable-method = "psci"; 89 clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, 90 <&topckgen CLK_TOP_XTAL>; 91 clock-names = "cpu", "intermediate"; 92 operating-points-v2 = <&cluster0_opp>; 93 mediatek,cci = <&cci>; 94 }; 95 96 cluster0_opp: opp-table-0 { 97 compatible = "operating-points-v2"; 98 opp-shared; 99 100 opp-800000000 { 101 opp-hz = /bits/ 64 <800000000>; 102 opp-microvolt = <850000>; 103 }; 104 opp-1100000000 { 105 opp-hz = /bits/ 64 <1100000000>; 106 opp-microvolt = <850000>; 107 }; 108 opp-1500000000 { 109 opp-hz = /bits/ 64 <1500000000>; 110 opp-microvolt = <850000>; 111 }; 112 opp-1800000000 { 113 opp-hz = /bits/ 64 <1800000000>; 114 opp-microvolt = <900000>; 115 }; 116 }; 117 }; 118 119 oscillator-40m { 120 compatible = "fixed-clock"; 121 clock-frequency = <40000000>; 122 #clock-cells = <0>; 123 clock-output-names = "clkxtal"; 124 }; 125 126 pmu { 127 compatible = "arm,cortex-a73-pmu"; 128 interrupt-parent = <&gic>; 129 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW>; 130 }; 131 132 psci { 133 compatible = "arm,psci-0.2"; 134 method = "smc"; 135 }; 136 137 reserved-memory { 138 #address-cells = <2>; 139 #size-cells = <2>; 140 ranges; 141 142 /* 320 KiB reserved for ARM Trusted Firmware (BL31 and BL32) */ 143 secmon@43000000 { 144 reg = <0 0x43000000 0 0x50000>; 145 no-map; 146 }; 147 }; 148 149 soc { 150 compatible = "simple-bus"; 151 ranges; 152 #address-cells = <2>; 153 #size-cells = <2>; 154 155 gic: interrupt-controller@c000000 { 156 compatible = "arm,gic-v3"; 157 reg = <0 0x0c000000 0 0x40000>, /* GICD */ 158 <0 0x0c080000 0 0x200000>, /* GICR */ 159 <0 0x0c400000 0 0x2000>, /* GICC */ 160 <0 0x0c410000 0 0x1000>, /* GICH */ 161 <0 0x0c420000 0 0x2000>; /* GICV */ 162 interrupt-parent = <&gic>; 163 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; 164 interrupt-controller; 165 #interrupt-cells = <3>; 166 }; 167 168 infracfg: clock-controller@10001000 { 169 compatible = "mediatek,mt7988-infracfg", "syscon"; 170 reg = <0 0x10001000 0 0x1000>; 171 #clock-cells = <1>; 172 #reset-cells = <1>; 173 }; 174 175 topckgen: clock-controller@1001b000 { 176 compatible = "mediatek,mt7988-topckgen", "syscon"; 177 reg = <0 0x1001b000 0 0x1000>; 178 #clock-cells = <1>; 179 }; 180 181 watchdog: watchdog@1001c000 { 182 compatible = "mediatek,mt7988-wdt"; 183 reg = <0 0x1001c000 0 0x1000>; 184 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; 185 #reset-cells = <1>; 186 }; 187 188 apmixedsys: clock-controller@1001e000 { 189 compatible = "mediatek,mt7988-apmixedsys"; 190 reg = <0 0x1001e000 0 0x1000>; 191 #clock-cells = <1>; 192 }; 193 194 pio: pinctrl@1001f000 { 195 compatible = "mediatek,mt7988-pinctrl"; 196 reg = <0 0x1001f000 0 0x1000>, 197 <0 0x11c10000 0 0x1000>, 198 <0 0x11d00000 0 0x1000>, 199 <0 0x11d20000 0 0x1000>, 200 <0 0x11e00000 0 0x1000>, 201 <0 0x11f00000 0 0x1000>, 202 <0 0x1000b000 0 0x1000>; 203 reg-names = "gpio", "iocfg_tr", 204 "iocfg_br", "iocfg_rb", 205 "iocfg_lb", "iocfg_tl", "eint"; 206 gpio-controller; 207 #gpio-cells = <2>; 208 gpio-ranges = <&pio 0 0 84>; 209 interrupt-controller; 210 interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>; 211 interrupt-parent = <&gic>; 212 #interrupt-cells = <2>; 213 214 pcie0_pins: pcie0-pins { 215 mux { 216 function = "pcie"; 217 groups = "pcie_2l_0_pereset", "pcie_clk_req_n0_0", 218 "pcie_wake_n0_0"; 219 }; 220 }; 221 222 pcie1_pins: pcie1-pins { 223 mux { 224 function = "pcie"; 225 groups = "pcie_2l_1_pereset", "pcie_clk_req_n1", 226 "pcie_wake_n1_0"; 227 }; 228 }; 229 230 pcie2_pins: pcie2-pins { 231 mux { 232 function = "pcie"; 233 groups = "pcie_1l_0_pereset", "pcie_clk_req_n2_0", 234 "pcie_wake_n2_0"; 235 }; 236 }; 237 238 pcie3_pins: pcie3-pins { 239 mux { 240 function = "pcie"; 241 groups = "pcie_1l_1_pereset", "pcie_clk_req_n3", 242 "pcie_wake_n3_0"; 243 }; 244 }; 245 246 spi1_pins: spi1-pins { 247 mux { 248 function = "spi"; 249 groups = "spi1"; 250 }; 251 }; 252 253 uart0_pins: uart0-pins { 254 mux { 255 function = "uart"; 256 groups = "uart0"; 257 }; 258 }; 259 }; 260 261 pwm: pwm@10048000 { 262 compatible = "mediatek,mt7988-pwm"; 263 reg = <0 0x10048000 0 0x1000>; 264 clocks = <&infracfg CLK_INFRA_66M_PWM_BCK>, 265 <&infracfg CLK_INFRA_66M_PWM_HCK>, 266 <&infracfg CLK_INFRA_66M_PWM_CK1>, 267 <&infracfg CLK_INFRA_66M_PWM_CK2>, 268 <&infracfg CLK_INFRA_66M_PWM_CK3>, 269 <&infracfg CLK_INFRA_66M_PWM_CK4>, 270 <&infracfg CLK_INFRA_66M_PWM_CK5>, 271 <&infracfg CLK_INFRA_66M_PWM_CK6>, 272 <&infracfg CLK_INFRA_66M_PWM_CK7>, 273 <&infracfg CLK_INFRA_66M_PWM_CK8>; 274 clock-names = "top", "main", "pwm1", "pwm2", "pwm3", 275 "pwm4", "pwm5", "pwm6", "pwm7", "pwm8"; 276 #pwm-cells = <2>; 277 status = "disabled"; 278 }; 279 280 mcusys: mcusys@100e0000 { 281 compatible = "mediatek,mt7988-mcusys", "syscon"; 282 reg = <0 0x100e0000 0 0x1000>; 283 #clock-cells = <1>; 284 }; 285 286 serial0: serial@11000000 { 287 compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; 288 reg = <0 0x11000000 0 0x100>; 289 interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; 290 interrupt-names = "uart", "wakeup"; 291 clocks = <&topckgen CLK_TOP_UART_SEL>, 292 <&infracfg CLK_INFRA_52M_UART0_CK>; 293 clock-names = "baud", "bus"; 294 pinctrl-names = "default"; 295 pinctrl-0 = <&uart0_pins>; 296 status = "disabled"; 297 }; 298 299 serial@11000100 { 300 compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; 301 reg = <0 0x11000100 0 0x100>; 302 interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>; 303 interrupt-names = "uart", "wakeup"; 304 clocks = <&topckgen CLK_TOP_UART_SEL>, 305 <&infracfg CLK_INFRA_52M_UART1_CK>; 306 clock-names = "baud", "bus"; 307 status = "disabled"; 308 }; 309 310 serial@11000200 { 311 compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; 312 reg = <0 0x11000200 0 0x100>; 313 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; 314 interrupt-names = "uart", "wakeup"; 315 clocks = <&topckgen CLK_TOP_UART_SEL>, 316 <&infracfg CLK_INFRA_52M_UART2_CK>; 317 clock-names = "baud", "bus"; 318 status = "disabled"; 319 }; 320 321 i2c0: i2c@11003000 { 322 compatible = "mediatek,mt7981-i2c"; 323 reg = <0 0x11003000 0 0x1000>, 324 <0 0x10217080 0 0x80>; 325 interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; 326 clock-div = <1>; 327 clocks = <&infracfg CLK_INFRA_I2C_BCK>, 328 <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; 329 clock-names = "main", "dma"; 330 #address-cells = <1>; 331 #size-cells = <0>; 332 status = "disabled"; 333 }; 334 335 i2c1: i2c@11004000 { 336 compatible = "mediatek,mt7981-i2c"; 337 reg = <0 0x11004000 0 0x1000>, 338 <0 0x10217100 0 0x80>; 339 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>; 340 clock-div = <1>; 341 clocks = <&infracfg CLK_INFRA_I2C_BCK>, 342 <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; 343 clock-names = "main", "dma"; 344 #address-cells = <1>; 345 #size-cells = <0>; 346 status = "disabled"; 347 }; 348 349 i2c2: i2c@11005000 { 350 compatible = "mediatek,mt7981-i2c"; 351 reg = <0 0x11005000 0 0x1000>, 352 <0 0x10217180 0 0x80>; 353 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; 354 clock-div = <1>; 355 clocks = <&infracfg CLK_INFRA_I2C_BCK>, 356 <&infracfg CLK_INFRA_66M_AP_DMA_BCK>; 357 clock-names = "main", "dma"; 358 #address-cells = <1>; 359 #size-cells = <0>; 360 status = "disabled"; 361 }; 362 363 spi0: spi@11007000 { 364 compatible = "mediatek,mt7988-spi-quad", "mediatek,spi-ipm"; 365 reg = <0 0x11007000 0 0x100>; 366 interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; 367 clocks = <&topckgen CLK_TOP_MPLL_D2>, 368 <&topckgen CLK_TOP_SPI_SEL>, 369 <&infracfg CLK_INFRA_104M_SPI0>, 370 <&infracfg CLK_INFRA_66M_SPI0_HCK>; 371 clock-names = "parent-clk", "sel-clk", "spi-clk", 372 "hclk"; 373 #address-cells = <1>; 374 #size-cells = <0>; 375 status = "disabled"; 376 }; 377 378 spi1: spi@11008000 { 379 compatible = "mediatek,mt7988-spi-single", "mediatek,spi-ipm"; 380 reg = <0 0x11008000 0 0x100>; 381 interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>; 382 clocks = <&topckgen CLK_TOP_MPLL_D2>, 383 <&topckgen CLK_TOP_SPIM_MST_SEL>, 384 <&infracfg CLK_INFRA_104M_SPI1>, 385 <&infracfg CLK_INFRA_66M_SPI1_HCK>; 386 clock-names = "parent-clk", "sel-clk", "spi-clk", 387 "hclk"; 388 #address-cells = <1>; 389 #size-cells = <0>; 390 pinctrl-names = "default"; 391 pinctrl-0 = <&spi1_pins>; 392 status = "disabled"; 393 }; 394 395 spi2: spi@11009000 { 396 compatible = "mediatek,mt7988-spi-quad", "mediatek,spi-ipm"; 397 reg = <0 0x11009000 0 0x100>; 398 interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>; 399 clocks = <&topckgen CLK_TOP_MPLL_D2>, 400 <&topckgen CLK_TOP_SPI_SEL>, 401 <&infracfg CLK_INFRA_104M_SPI2_BCK>, 402 <&infracfg CLK_INFRA_66M_SPI2_HCK>; 403 clock-names = "parent-clk", "sel-clk", "spi-clk", 404 "hclk"; 405 #address-cells = <1>; 406 #size-cells = <0>; 407 status = "disabled"; 408 }; 409 410 lvts: lvts@1100a000 { 411 compatible = "mediatek,mt7988-lvts-ap"; 412 #thermal-sensor-cells = <1>; 413 reg = <0 0x1100a000 0 0x1000>; 414 clocks = <&infracfg CLK_INFRA_26M_THERM_SYSTEM>; 415 interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>; 416 resets = <&infracfg MT7988_INFRA_RST1_THERM_CTRL_SWRST>; 417 nvmem-cells = <&lvts_calibration>; 418 nvmem-cell-names = "lvts-calib-data-1"; 419 }; 420 421 usb@11190000 { 422 compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; 423 reg = <0 0x11190000 0 0x2e00>, 424 <0 0x11193e00 0 0x0100>; 425 reg-names = "mac", "ippc"; 426 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>; 427 clocks = <&infracfg CLK_INFRA_USB_SYS>, 428 <&infracfg CLK_INFRA_USB_REF>, 429 <&infracfg CLK_INFRA_66M_USB_HCK>, 430 <&infracfg CLK_INFRA_133M_USB_HCK>, 431 <&infracfg CLK_INFRA_USB_XHCI>; 432 clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; 433 phys = <&xphyu2port0 PHY_TYPE_USB2>, 434 <&xphyu3port0 PHY_TYPE_USB3>; 435 status = "disabled"; 436 }; 437 438 ssusb1: usb@11200000 { 439 compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; 440 reg = <0 0x11200000 0 0x2e00>, 441 <0 0x11203e00 0 0x0100>; 442 reg-names = "mac", "ippc"; 443 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>; 444 clocks = <&infracfg CLK_INFRA_USB_SYS_CK_P1>, 445 <&infracfg CLK_INFRA_USB_CK_P1>, 446 <&infracfg CLK_INFRA_66M_USB_HCK_CK_P1>, 447 <&infracfg CLK_INFRA_133M_USB_HCK_CK_P1>, 448 <&infracfg CLK_INFRA_USB_XHCI_CK_P1>; 449 clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; 450 phys = <&tphyu2port0 PHY_TYPE_USB2>, 451 <&tphyu3port0 PHY_TYPE_USB3>; 452 status = "disabled"; 453 }; 454 455 mmc0: mmc@11230000 { 456 compatible = "mediatek,mt7988-mmc"; 457 reg = <0 0x11230000 0 0x1000>, 458 <0 0x11D60000 0 0x1000>; 459 interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; 460 clocks = <&infracfg CLK_INFRA_MSDC400>, 461 <&infracfg CLK_INFRA_MSDC2_HCK>, 462 <&infracfg CLK_INFRA_66M_MSDC_0_HCK>, 463 <&infracfg CLK_INFRA_133M_MSDC_0_HCK>; 464 assigned-clocks = <&topckgen CLK_TOP_EMMC_250M_SEL>, 465 <&topckgen CLK_TOP_EMMC_400M_SEL>; 466 assigned-clock-parents = <&topckgen CLK_TOP_NET1PLL_D5_D2>, 467 <&apmixedsys CLK_APMIXED_MSDCPLL>; 468 clock-names = "source", "hclk", "axi_cg", "ahb_cg"; 469 #address-cells = <1>; 470 #size-cells = <0>; 471 status = "disabled"; 472 }; 473 474 pcie2: pcie@11280000 { 475 compatible = "mediatek,mt7986-pcie", 476 "mediatek,mt8192-pcie"; 477 device_type = "pci"; 478 #address-cells = <3>; 479 #size-cells = <2>; 480 reg = <0 0x11280000 0 0x2000>; 481 reg-names = "pcie-mac"; 482 linux,pci-domain = <3>; 483 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>; 484 bus-range = <0x00 0xff>; 485 ranges = <0x81000000 0x00 0x20000000 0x00 486 0x20000000 0x00 0x00200000>, 487 <0x82000000 0x00 0x20200000 0x00 488 0x20200000 0x00 0x07e00000>; 489 clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P2>, 490 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P2>, 491 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P2>, 492 <&infracfg CLK_INFRA_133M_PCIE_CK_P2>; 493 clock-names = "pl_250m", "tl_26m", "peri_26m", 494 "top_133m"; 495 pinctrl-names = "default"; 496 pinctrl-0 = <&pcie2_pins>; 497 status = "disabled"; 498 499 phys = <&xphyu3port0 PHY_TYPE_PCIE>; 500 phy-names = "pcie-phy"; 501 502 #interrupt-cells = <1>; 503 interrupt-map-mask = <0 0 0 0x7>; 504 interrupt-map = <0 0 0 1 &pcie_intc2 0>, 505 <0 0 0 2 &pcie_intc2 1>, 506 <0 0 0 3 &pcie_intc2 2>, 507 <0 0 0 4 &pcie_intc2 3>; 508 pcie_intc2: interrupt-controller { 509 #address-cells = <0>; 510 #interrupt-cells = <1>; 511 interrupt-controller; 512 }; 513 }; 514 515 pcie3: pcie@11290000 { 516 compatible = "mediatek,mt7986-pcie", 517 "mediatek,mt8192-pcie"; 518 device_type = "pci"; 519 #address-cells = <3>; 520 #size-cells = <2>; 521 reg = <0 0x11290000 0 0x2000>; 522 reg-names = "pcie-mac"; 523 linux,pci-domain = <2>; 524 interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>; 525 bus-range = <0x00 0xff>; 526 ranges = <0x81000000 0x00 0x28000000 0x00 527 0x28000000 0x00 0x00200000>, 528 <0x82000000 0x00 0x28200000 0x00 529 0x28200000 0x00 0x07e00000>; 530 clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P3>, 531 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P3>, 532 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P3>, 533 <&infracfg CLK_INFRA_133M_PCIE_CK_P3>; 534 clock-names = "pl_250m", "tl_26m", "peri_26m", 535 "top_133m"; 536 pinctrl-names = "default"; 537 pinctrl-0 = <&pcie3_pins>; 538 status = "disabled"; 539 540 #interrupt-cells = <1>; 541 interrupt-map-mask = <0 0 0 0x7>; 542 interrupt-map = <0 0 0 1 &pcie_intc3 0>, 543 <0 0 0 2 &pcie_intc3 1>, 544 <0 0 0 3 &pcie_intc3 2>, 545 <0 0 0 4 &pcie_intc3 3>; 546 pcie_intc3: interrupt-controller { 547 #address-cells = <0>; 548 #interrupt-cells = <1>; 549 interrupt-controller; 550 }; 551 }; 552 553 pcie0: pcie@11300000 { 554 compatible = "mediatek,mt7986-pcie", 555 "mediatek,mt8192-pcie"; 556 device_type = "pci"; 557 #address-cells = <3>; 558 #size-cells = <2>; 559 reg = <0 0x11300000 0 0x2000>; 560 reg-names = "pcie-mac"; 561 linux,pci-domain = <0>; 562 interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>; 563 bus-range = <0x00 0xff>; 564 ranges = <0x81000000 0x00 0x30000000 0x00 565 0x30000000 0x00 0x00200000>, 566 <0x82000000 0x00 0x30200000 0x00 567 0x30200000 0x00 0x07e00000>; 568 clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P0>, 569 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P0>, 570 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P0>, 571 <&infracfg CLK_INFRA_133M_PCIE_CK_P0>; 572 clock-names = "pl_250m", "tl_26m", "peri_26m", 573 "top_133m"; 574 pinctrl-names = "default"; 575 pinctrl-0 = <&pcie0_pins>; 576 status = "disabled"; 577 578 #interrupt-cells = <1>; 579 interrupt-map-mask = <0 0 0 0x7>; 580 interrupt-map = <0 0 0 1 &pcie_intc0 0>, 581 <0 0 0 2 &pcie_intc0 1>, 582 <0 0 0 3 &pcie_intc0 2>, 583 <0 0 0 4 &pcie_intc0 3>; 584 pcie_intc0: interrupt-controller { 585 #address-cells = <0>; 586 #interrupt-cells = <1>; 587 interrupt-controller; 588 }; 589 }; 590 591 pcie1: pcie@11310000 { 592 compatible = "mediatek,mt7986-pcie", 593 "mediatek,mt8192-pcie"; 594 device_type = "pci"; 595 #address-cells = <3>; 596 #size-cells = <2>; 597 reg = <0 0x11310000 0 0x2000>; 598 reg-names = "pcie-mac"; 599 linux,pci-domain = <1>; 600 interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; 601 bus-range = <0x00 0xff>; 602 ranges = <0x81000000 0x00 0x38000000 0x00 603 0x38000000 0x00 0x00200000>, 604 <0x82000000 0x00 0x38200000 0x00 605 0x38200000 0x00 0x07e00000>; 606 clocks = <&infracfg CLK_INFRA_PCIE_PIPE_P1>, 607 <&infracfg CLK_INFRA_PCIE_GFMUX_TL_P1>, 608 <&infracfg CLK_INFRA_PCIE_PERI_26M_CK_P1>, 609 <&infracfg CLK_INFRA_133M_PCIE_CK_P1>; 610 clock-names = "pl_250m", "tl_26m", "peri_26m", 611 "top_133m"; 612 pinctrl-names = "default"; 613 pinctrl-0 = <&pcie1_pins>; 614 status = "disabled"; 615 616 #interrupt-cells = <1>; 617 interrupt-map-mask = <0 0 0 0x7>; 618 interrupt-map = <0 0 0 1 &pcie_intc1 0>, 619 <0 0 0 2 &pcie_intc1 1>, 620 <0 0 0 3 &pcie_intc1 2>, 621 <0 0 0 4 &pcie_intc1 3>; 622 pcie_intc1: interrupt-controller { 623 #address-cells = <0>; 624 #interrupt-cells = <1>; 625 interrupt-controller; 626 }; 627 }; 628 629 tphy: t-phy@11c50000 { 630 compatible = "mediatek,mt7986-tphy", 631 "mediatek,generic-tphy-v2"; 632 #address-cells = <2>; 633 #size-cells = <2>; 634 ranges; 635 status = "disabled"; 636 637 tphyu2port0: usb-phy@11c50000 { 638 reg = <0 0x11c50000 0 0x700>; 639 clocks = <&infracfg CLK_INFRA_USB_UTMI_CK_P1>; 640 clock-names = "ref"; 641 #phy-cells = <1>; 642 }; 643 644 tphyu3port0: usb-phy@11c50700 { 645 reg = <0 0x11c50700 0 0x900>; 646 clocks = <&infracfg CLK_INFRA_USB_PIPE_CK_P1>; 647 clock-names = "ref"; 648 #phy-cells = <1>; 649 }; 650 }; 651 652 653 topmisc: system-controller@11d10084 { 654 compatible = "mediatek,mt7988-topmisc", 655 "syscon"; 656 reg = <0 0x11d10084 0 0xff80>; 657 }; 658 659 xsphy: xs-phy@11e10000 { 660 compatible = "mediatek,mt7988-xsphy", 661 "mediatek,xsphy"; 662 #address-cells = <2>; 663 #size-cells = <2>; 664 ranges; 665 status = "disabled"; 666 667 xphyu2port0: usb-phy@11e10000 { 668 reg = <0 0x11e10000 0 0x400>; 669 clocks = <&infracfg CLK_INFRA_USB_UTMI>; 670 clock-names = "ref"; 671 #phy-cells = <1>; 672 }; 673 674 xphyu3port0: usb-phy@11e13000 { 675 reg = <0 0x11e13400 0 0x500>; 676 clocks = <&infracfg CLK_INFRA_USB_PIPE>; 677 clock-names = "ref"; 678 #phy-cells = <1>; 679 mediatek,syscon-type = <&topmisc 0x194 0>; 680 }; 681 }; 682 683 clock-controller@11f40000 { 684 compatible = "mediatek,mt7988-xfi-pll"; 685 reg = <0 0x11f40000 0 0x1000>; 686 resets = <&watchdog 16>; 687 #clock-cells = <1>; 688 }; 689 690 efuse@11f50000 { 691 compatible = "mediatek,mt7988-efuse", "mediatek,efuse"; 692 reg = <0 0x11f50000 0 0x1000>; 693 #address-cells = <1>; 694 #size-cells = <1>; 695 696 lvts_calibration: calib@918 { 697 reg = <0x918 0x28>; 698 }; 699 700 phy_calibration_p0: calib@940 { 701 reg = <0x940 0x10>; 702 }; 703 704 phy_calibration_p1: calib@954 { 705 reg = <0x954 0x10>; 706 }; 707 708 phy_calibration_p2: calib@968 { 709 reg = <0x968 0x10>; 710 }; 711 712 phy_calibration_p3: calib@97c { 713 reg = <0x97c 0x10>; 714 }; 715 }; 716 717 clock-controller@15000000 { 718 compatible = "mediatek,mt7988-ethsys", "syscon"; 719 reg = <0 0x15000000 0 0x1000>; 720 #clock-cells = <1>; 721 #reset-cells = <1>; 722 }; 723 724 clock-controller@15031000 { 725 compatible = "mediatek,mt7988-ethwarp"; 726 reg = <0 0x15031000 0 0x1000>; 727 #clock-cells = <1>; 728 #reset-cells = <1>; 729 }; 730 }; 731 732 thermal-zones { 733 cpu_thermal: cpu-thermal { 734 polling-delay-passive = <1000>; 735 polling-delay = <1000>; 736 thermal-sensors = <&lvts 0>; 737 trips { 738 cpu_trip_crit: crit { 739 temperature = <125000>; 740 hysteresis = <2000>; 741 type = "critical"; 742 }; 743 }; 744 }; 745 }; 746 747 timer { 748 compatible = "arm,armv8-timer"; 749 interrupt-parent = <&gic>; 750 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, 751 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, 752 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, 753 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; 754 }; 755}; 756