1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd 4 */ 5 6 #include <dt-bindings/clock/rk3399-cru.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 11 #include <dt-bindings/power/rk3399-power.h> 12 #include <dt-bindings/thermal/thermal.h> 13 14 / { 15 compatible = "rockchip,rk3399"; 16 17 interrupt-parent = <&gic>; 18 #address-cells = <2>; 19 #size-cells = <2>; 20 21 aliases { 22 gpio0 = &gpio0; 23 gpio1 = &gpio1; 24 gpio2 = &gpio2; 25 gpio3 = &gpio3; 26 gpio4 = &gpio4; 27 i2c0 = &i2c0; 28 i2c1 = &i2c1; 29 i2c2 = &i2c2; 30 i2c3 = &i2c3; 31 i2c4 = &i2c4; 32 i2c5 = &i2c5; 33 i2c6 = &i2c6; 34 i2c7 = &i2c7; 35 i2c8 = &i2c8; 36 serial0 = &uart0; 37 serial1 = &uart1; 38 serial2 = &uart2; 39 serial3 = &uart3; 40 serial4 = &uart4; 41 spi0 = &spi0; 42 spi1 = &spi1; 43 spi2 = &spi2; 44 spi3 = &spi3; 45 spi4 = &spi4; 46 spi5 = &spi5; 47 }; 48 49 cpus { 50 #address-cells = <2>; 51 #size-cells = <0>; 52 53 cpu-map { 54 cluster0 { /* Cortex-A53 */ 55 core0 { 56 cpu = <&cpu_l0>; 57 }; 58 core1 { 59 cpu = <&cpu_l1>; 60 }; 61 core2 { 62 cpu = <&cpu_l2>; 63 }; 64 core3 { 65 cpu = <&cpu_l3>; 66 }; 67 }; 68 69 cluster1 { /* Cortex-A72 */ 70 core0 { 71 cpu = <&cpu_b0>; 72 }; 73 core1 { 74 cpu = <&cpu_b1>; 75 }; 76 }; 77 }; 78 79 cpu_l0: cpu@0 { 80 device_type = "cpu"; 81 compatible = "arm,cortex-a53"; 82 reg = <0x0 0x0>; 83 enable-method = "psci"; 84 capacity-dmips-mhz = <485>; 85 clocks = <&cru ARMCLKL>; 86 #cooling-cells = <2>; /* min followed by max */ 87 dynamic-power-coefficient = <100>; 88 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 89 i-cache-size = <0x8000>; 90 i-cache-line-size = <64>; 91 i-cache-sets = <256>; 92 d-cache-size = <0x8000>; 93 d-cache-line-size = <64>; 94 d-cache-sets = <128>; 95 next-level-cache = <&l2_cache_l>; 96 }; 97 98 cpu_l1: cpu@1 { 99 device_type = "cpu"; 100 compatible = "arm,cortex-a53"; 101 reg = <0x0 0x1>; 102 enable-method = "psci"; 103 capacity-dmips-mhz = <485>; 104 clocks = <&cru ARMCLKL>; 105 #cooling-cells = <2>; /* min followed by max */ 106 dynamic-power-coefficient = <100>; 107 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 108 i-cache-size = <0x8000>; 109 i-cache-line-size = <64>; 110 i-cache-sets = <256>; 111 d-cache-size = <0x8000>; 112 d-cache-line-size = <64>; 113 d-cache-sets = <128>; 114 next-level-cache = <&l2_cache_l>; 115 }; 116 117 cpu_l2: cpu@2 { 118 device_type = "cpu"; 119 compatible = "arm,cortex-a53"; 120 reg = <0x0 0x2>; 121 enable-method = "psci"; 122 capacity-dmips-mhz = <485>; 123 clocks = <&cru ARMCLKL>; 124 #cooling-cells = <2>; /* min followed by max */ 125 dynamic-power-coefficient = <100>; 126 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 127 i-cache-size = <0x8000>; 128 i-cache-line-size = <64>; 129 i-cache-sets = <256>; 130 d-cache-size = <0x8000>; 131 d-cache-line-size = <64>; 132 d-cache-sets = <128>; 133 next-level-cache = <&l2_cache_l>; 134 }; 135 136 cpu_l3: cpu@3 { 137 device_type = "cpu"; 138 compatible = "arm,cortex-a53"; 139 reg = <0x0 0x3>; 140 enable-method = "psci"; 141 capacity-dmips-mhz = <485>; 142 clocks = <&cru ARMCLKL>; 143 #cooling-cells = <2>; /* min followed by max */ 144 dynamic-power-coefficient = <100>; 145 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 146 i-cache-size = <0x8000>; 147 i-cache-line-size = <64>; 148 i-cache-sets = <256>; 149 d-cache-size = <0x8000>; 150 d-cache-line-size = <64>; 151 d-cache-sets = <128>; 152 next-level-cache = <&l2_cache_l>; 153 }; 154 155 cpu_b0: cpu@100 { 156 device_type = "cpu"; 157 compatible = "arm,cortex-a72"; 158 reg = <0x0 0x100>; 159 enable-method = "psci"; 160 capacity-dmips-mhz = <1024>; 161 clocks = <&cru ARMCLKB>; 162 #cooling-cells = <2>; /* min followed by max */ 163 dynamic-power-coefficient = <436>; 164 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 165 i-cache-size = <0xC000>; 166 i-cache-line-size = <64>; 167 i-cache-sets = <256>; 168 d-cache-size = <0x8000>; 169 d-cache-line-size = <64>; 170 d-cache-sets = <256>; 171 next-level-cache = <&l2_cache_b>; 172 173 thermal-idle { 174 #cooling-cells = <2>; 175 duration-us = <10000>; 176 exit-latency-us = <500>; 177 }; 178 }; 179 180 cpu_b1: cpu@101 { 181 device_type = "cpu"; 182 compatible = "arm,cortex-a72"; 183 reg = <0x0 0x101>; 184 enable-method = "psci"; 185 capacity-dmips-mhz = <1024>; 186 clocks = <&cru ARMCLKB>; 187 #cooling-cells = <2>; /* min followed by max */ 188 dynamic-power-coefficient = <436>; 189 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 190 i-cache-size = <0xC000>; 191 i-cache-line-size = <64>; 192 i-cache-sets = <256>; 193 d-cache-size = <0x8000>; 194 d-cache-line-size = <64>; 195 d-cache-sets = <256>; 196 next-level-cache = <&l2_cache_b>; 197 198 thermal-idle { 199 #cooling-cells = <2>; 200 duration-us = <10000>; 201 exit-latency-us = <500>; 202 }; 203 }; 204 205 l2_cache_l: l2-cache-cluster0 { 206 compatible = "cache"; 207 cache-level = <2>; 208 cache-unified; 209 cache-size = <0x80000>; 210 cache-line-size = <64>; 211 cache-sets = <512>; 212 }; 213 214 l2_cache_b: l2-cache-cluster1 { 215 compatible = "cache"; 216 cache-level = <2>; 217 cache-unified; 218 cache-size = <0x100000>; 219 cache-line-size = <64>; 220 cache-sets = <1024>; 221 }; 222 223 idle-states { 224 entry-method = "psci"; 225 226 CPU_SLEEP: cpu-sleep { 227 compatible = "arm,idle-state"; 228 local-timer-stop; 229 arm,psci-suspend-param = <0x0010000>; 230 entry-latency-us = <120>; 231 exit-latency-us = <250>; 232 min-residency-us = <900>; 233 }; 234 235 CLUSTER_SLEEP: cluster-sleep { 236 compatible = "arm,idle-state"; 237 local-timer-stop; 238 arm,psci-suspend-param = <0x1010000>; 239 entry-latency-us = <400>; 240 exit-latency-us = <500>; 241 min-residency-us = <2000>; 242 }; 243 }; 244 }; 245 246 display-subsystem { 247 compatible = "rockchip,display-subsystem"; 248 ports = <&vopl_out>, <&vopb_out>; 249 }; 250 251 dmc: memory-controller { 252 compatible = "rockchip,rk3399-dmc"; 253 rockchip,pmu = <&pmugrf>; 254 devfreq-events = <&dfi>; 255 clocks = <&cru SCLK_DDRC>; 256 clock-names = "dmc_clk"; 257 status = "disabled"; 258 }; 259 260 pmu_a53 { 261 compatible = "arm,cortex-a53-pmu"; 262 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster0>; 263 }; 264 265 pmu_a72 { 266 compatible = "arm,cortex-a72-pmu"; 267 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster1>; 268 }; 269 270 psci { 271 compatible = "arm,psci-1.0"; 272 method = "smc"; 273 }; 274 275 timer { 276 compatible = "arm,armv8-timer"; 277 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>, 278 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>, 279 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>, 280 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>; 281 arm,no-tick-in-suspend; 282 }; 283 284 xin24m: xin24m { 285 compatible = "fixed-clock"; 286 clock-frequency = <24000000>; 287 clock-output-names = "xin24m"; 288 #clock-cells = <0>; 289 }; 290 291 pcie0: pcie@f8000000 { 292 compatible = "rockchip,rk3399-pcie"; 293 reg = <0x0 0xf8000000 0x0 0x2000000>, 294 <0x0 0xfd000000 0x0 0x1000000>; 295 reg-names = "axi-base", "apb-base"; 296 device_type = "pci"; 297 #address-cells = <3>; 298 #size-cells = <2>; 299 #interrupt-cells = <1>; 300 aspm-no-l0s; 301 bus-range = <0x0 0x1f>; 302 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>, 303 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>; 304 clock-names = "aclk", "aclk-perf", 305 "hclk", "pm"; 306 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>, 307 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>, 308 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>; 309 interrupt-names = "sys", "legacy", "client"; 310 interrupt-map-mask = <0 0 0 7>; 311 interrupt-map = <0 0 0 1 &pcie0_intc 0>, 312 <0 0 0 2 &pcie0_intc 1>, 313 <0 0 0 3 &pcie0_intc 2>, 314 <0 0 0 4 &pcie0_intc 3>; 315 max-link-speed = <1>; 316 msi-map = <0x0 &its 0x0 0x1000>; 317 phys = <&pcie_phy 0>, <&pcie_phy 1>, 318 <&pcie_phy 2>, <&pcie_phy 3>; 319 phy-names = "pcie-phy-0", "pcie-phy-1", 320 "pcie-phy-2", "pcie-phy-3"; 321 ranges = <0x82000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x1e00000>, 322 <0x81000000 0x0 0xfbe00000 0x0 0xfbe00000 0x0 0x100000>; 323 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>, 324 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>, 325 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, 326 <&cru SRST_A_PCIE>; 327 reset-names = "core", "mgmt", "mgmt-sticky", "pipe", 328 "pm", "pclk", "aclk"; 329 status = "disabled"; 330 331 pcie0_intc: interrupt-controller { 332 interrupt-controller; 333 #address-cells = <0>; 334 #interrupt-cells = <1>; 335 }; 336 }; 337 338 pcie0_ep: pcie-ep@f8000000 { 339 compatible = "rockchip,rk3399-pcie-ep"; 340 reg = <0x0 0xfd000000 0x0 0x1000000>, 341 <0x0 0xfa000000 0x0 0x2000000>; 342 reg-names = "apb-base", "mem-base"; 343 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>, 344 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>; 345 clock-names = "aclk", "aclk-perf", 346 "hclk", "pm"; 347 max-functions = /bits/ 8 <8>; 348 num-lanes = <4>; 349 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>, 350 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>, 351 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, 352 <&cru SRST_A_PCIE>; 353 reset-names = "core", "mgmt", "mgmt-sticky", "pipe", 354 "pm", "pclk", "aclk"; 355 phys = <&pcie_phy 0>, <&pcie_phy 1>, 356 <&pcie_phy 2>, <&pcie_phy 3>; 357 phy-names = "pcie-phy-0", "pcie-phy-1", 358 "pcie-phy-2", "pcie-phy-3"; 359 rockchip,max-outbound-regions = <32>; 360 pinctrl-names = "default"; 361 pinctrl-0 = <&pcie_clkreqnb_cpm>; 362 status = "disabled"; 363 }; 364 365 gmac: ethernet@fe300000 { 366 compatible = "rockchip,rk3399-gmac"; 367 reg = <0x0 0xfe300000 0x0 0x10000>; 368 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>; 369 interrupt-names = "macirq"; 370 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>, 371 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>, 372 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>, 373 <&cru PCLK_GMAC>; 374 clock-names = "stmmaceth", "mac_clk_rx", 375 "mac_clk_tx", "clk_mac_ref", 376 "clk_mac_refout", "aclk_mac", 377 "pclk_mac"; 378 power-domains = <&power RK3399_PD_GMAC>; 379 resets = <&cru SRST_A_GMAC>; 380 reset-names = "stmmaceth"; 381 rockchip,grf = <&grf>; 382 snps,txpbl = <0x4>; 383 status = "disabled"; 384 }; 385 386 sdio0: mmc@fe310000 { 387 compatible = "rockchip,rk3399-dw-mshc", 388 "rockchip,rk3288-dw-mshc"; 389 reg = <0x0 0xfe310000 0x0 0x4000>; 390 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH 0>; 391 max-frequency = <150000000>; 392 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, 393 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; 394 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 395 fifo-depth = <0x100>; 396 power-domains = <&power RK3399_PD_SDIOAUDIO>; 397 resets = <&cru SRST_SDIO0>; 398 reset-names = "reset"; 399 status = "disabled"; 400 }; 401 402 sdmmc: mmc@fe320000 { 403 compatible = "rockchip,rk3399-dw-mshc", 404 "rockchip,rk3288-dw-mshc"; 405 reg = <0x0 0xfe320000 0x0 0x4000>; 406 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>; 407 max-frequency = <150000000>; 408 assigned-clocks = <&cru HCLK_SD>; 409 assigned-clock-rates = <200000000>; 410 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, 411 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; 412 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 413 fifo-depth = <0x100>; 414 power-domains = <&power RK3399_PD_SD>; 415 resets = <&cru SRST_SDMMC>; 416 reset-names = "reset"; 417 status = "disabled"; 418 }; 419 420 sdhci: mmc@fe330000 { 421 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1"; 422 reg = <0x0 0xfe330000 0x0 0x10000>; 423 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>; 424 arasan,soc-ctl-syscon = <&grf>; 425 assigned-clocks = <&cru SCLK_EMMC>; 426 assigned-clock-rates = <200000000>; 427 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>; 428 clock-names = "clk_xin", "clk_ahb"; 429 clock-output-names = "emmc_cardclock"; 430 #clock-cells = <0>; 431 phys = <&emmc_phy>; 432 phy-names = "phy_arasan"; 433 power-domains = <&power RK3399_PD_EMMC>; 434 disable-cqe-dcmd; 435 status = "disabled"; 436 }; 437 438 usb_host0_ehci: usb@fe380000 { 439 compatible = "generic-ehci"; 440 reg = <0x0 0xfe380000 0x0 0x20000>; 441 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>; 442 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>, 443 <&u2phy0>; 444 phys = <&u2phy0_host>; 445 phy-names = "usb"; 446 status = "disabled"; 447 }; 448 449 usb_host0_ohci: usb@fe3a0000 { 450 compatible = "generic-ohci"; 451 reg = <0x0 0xfe3a0000 0x0 0x20000>; 452 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>; 453 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>, 454 <&u2phy0>; 455 phys = <&u2phy0_host>; 456 phy-names = "usb"; 457 status = "disabled"; 458 }; 459 460 usb_host1_ehci: usb@fe3c0000 { 461 compatible = "generic-ehci"; 462 reg = <0x0 0xfe3c0000 0x0 0x20000>; 463 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>; 464 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>, 465 <&u2phy1>; 466 phys = <&u2phy1_host>; 467 phy-names = "usb"; 468 status = "disabled"; 469 }; 470 471 usb_host1_ohci: usb@fe3e0000 { 472 compatible = "generic-ohci"; 473 reg = <0x0 0xfe3e0000 0x0 0x20000>; 474 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>; 475 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>, 476 <&u2phy1>; 477 phys = <&u2phy1_host>; 478 phy-names = "usb"; 479 status = "disabled"; 480 }; 481 482 debug@fe430000 { 483 compatible = "arm,coresight-cpu-debug", "arm,primecell"; 484 reg = <0 0xfe430000 0 0x1000>; 485 clocks = <&cru PCLK_COREDBG_L>; 486 clock-names = "apb_pclk"; 487 cpu = <&cpu_l0>; 488 }; 489 490 debug@fe432000 { 491 compatible = "arm,coresight-cpu-debug", "arm,primecell"; 492 reg = <0 0xfe432000 0 0x1000>; 493 clocks = <&cru PCLK_COREDBG_L>; 494 clock-names = "apb_pclk"; 495 cpu = <&cpu_l1>; 496 }; 497 498 debug@fe434000 { 499 compatible = "arm,coresight-cpu-debug", "arm,primecell"; 500 reg = <0 0xfe434000 0 0x1000>; 501 clocks = <&cru PCLK_COREDBG_L>; 502 clock-names = "apb_pclk"; 503 cpu = <&cpu_l2>; 504 }; 505 506 debug@fe436000 { 507 compatible = "arm,coresight-cpu-debug", "arm,primecell"; 508 reg = <0 0xfe436000 0 0x1000>; 509 clocks = <&cru PCLK_COREDBG_L>; 510 clock-names = "apb_pclk"; 511 cpu = <&cpu_l3>; 512 }; 513 514 debug@fe610000 { 515 compatible = "arm,coresight-cpu-debug", "arm,primecell"; 516 reg = <0 0xfe610000 0 0x1000>; 517 clocks = <&cru PCLK_COREDBG_B>; 518 clock-names = "apb_pclk"; 519 cpu = <&cpu_b0>; 520 }; 521 522 debug@fe710000 { 523 compatible = "arm,coresight-cpu-debug", "arm,primecell"; 524 reg = <0 0xfe710000 0 0x1000>; 525 clocks = <&cru PCLK_COREDBG_B>; 526 clock-names = "apb_pclk"; 527 cpu = <&cpu_b1>; 528 }; 529 530 usbdrd3_0: usb@fe800000 { 531 compatible = "rockchip,rk3399-dwc3"; 532 #address-cells = <2>; 533 #size-cells = <2>; 534 ranges; 535 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>, 536 <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_RKSOC_AXI_PERF>, 537 <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>; 538 clock-names = "ref_clk", "suspend_clk", 539 "bus_clk", "aclk_usb3_rksoc_axi_perf", 540 "aclk_usb3", "grf_clk"; 541 resets = <&cru SRST_A_USB3_OTG0>; 542 reset-names = "usb3-otg"; 543 status = "disabled"; 544 545 usbdrd_dwc3_0: usb@fe800000 { 546 compatible = "snps,dwc3"; 547 reg = <0x0 0xfe800000 0x0 0x100000>; 548 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>; 549 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru ACLK_USB3OTG0>, 550 <&cru SCLK_USB3OTG0_SUSPEND>; 551 clock-names = "ref", "bus_early", "suspend"; 552 dr_mode = "otg"; 553 phys = <&u2phy0_otg>, <&tcphy0_usb3>; 554 phy-names = "usb2-phy", "usb3-phy"; 555 phy_type = "utmi_wide"; 556 snps,dis_enblslpm_quirk; 557 snps,dis-u2-freeclk-exists-quirk; 558 snps,dis_u2_susphy_quirk; 559 snps,dis-del-phy-power-chg-quirk; 560 snps,dis-tx-ipgap-linecheck-quirk; 561 power-domains = <&power RK3399_PD_USB3>; 562 status = "disabled"; 563 }; 564 }; 565 566 usbdrd3_1: usb@fe900000 { 567 compatible = "rockchip,rk3399-dwc3"; 568 #address-cells = <2>; 569 #size-cells = <2>; 570 ranges; 571 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>, 572 <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_RKSOC_AXI_PERF>, 573 <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>; 574 clock-names = "ref_clk", "suspend_clk", 575 "bus_clk", "aclk_usb3_rksoc_axi_perf", 576 "aclk_usb3", "grf_clk"; 577 resets = <&cru SRST_A_USB3_OTG1>; 578 reset-names = "usb3-otg"; 579 status = "disabled"; 580 581 usbdrd_dwc3_1: usb@fe900000 { 582 compatible = "snps,dwc3"; 583 reg = <0x0 0xfe900000 0x0 0x100000>; 584 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>; 585 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru ACLK_USB3OTG1>, 586 <&cru SCLK_USB3OTG1_SUSPEND>; 587 clock-names = "ref", "bus_early", "suspend"; 588 dr_mode = "otg"; 589 phys = <&u2phy1_otg>, <&tcphy1_usb3>; 590 phy-names = "usb2-phy", "usb3-phy"; 591 phy_type = "utmi_wide"; 592 snps,dis_enblslpm_quirk; 593 snps,dis-u2-freeclk-exists-quirk; 594 snps,dis_u2_susphy_quirk; 595 snps,dis-del-phy-power-chg-quirk; 596 snps,dis-tx-ipgap-linecheck-quirk; 597 power-domains = <&power RK3399_PD_USB3>; 598 status = "disabled"; 599 }; 600 }; 601 602 cdn_dp: dp@fec00000 { 603 compatible = "rockchip,rk3399-cdn-dp"; 604 reg = <0x0 0xfec00000 0x0 0x100000>; 605 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH 0>; 606 assigned-clocks = <&cru SCLK_DP_CORE>, <&cru SCLK_SPDIF_REC_DPTX>; 607 assigned-clock-rates = <100000000>, <200000000>; 608 clocks = <&cru SCLK_DP_CORE>, <&cru PCLK_DP_CTRL>, 609 <&cru SCLK_SPDIF_REC_DPTX>, <&cru PCLK_VIO_GRF>; 610 clock-names = "core-clk", "pclk", "spdif", "grf"; 611 phys = <&tcphy0_dp>, <&tcphy1_dp>; 612 power-domains = <&power RK3399_PD_HDCP>; 613 resets = <&cru SRST_DPTX_SPDIF_REC>, <&cru SRST_P_UPHY0_DPTX>, 614 <&cru SRST_P_UPHY0_APB>, <&cru SRST_DP_CORE>; 615 reset-names = "spdif", "dptx", "apb", "core"; 616 rockchip,grf = <&grf>; 617 #sound-dai-cells = <1>; 618 status = "disabled"; 619 620 ports { 621 dp_in: port { 622 #address-cells = <1>; 623 #size-cells = <0>; 624 625 dp_in_vopb: endpoint@0 { 626 reg = <0>; 627 remote-endpoint = <&vopb_out_dp>; 628 }; 629 630 dp_in_vopl: endpoint@1 { 631 reg = <1>; 632 remote-endpoint = <&vopl_out_dp>; 633 }; 634 }; 635 }; 636 }; 637 638 gic: interrupt-controller@fee00000 { 639 compatible = "arm,gic-v3"; 640 #interrupt-cells = <4>; 641 #address-cells = <2>; 642 #size-cells = <2>; 643 ranges; 644 interrupt-controller; 645 646 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */ 647 <0x0 0xfef00000 0 0xc0000>, /* GICR */ 648 <0x0 0xfff00000 0 0x10000>, /* GICC */ 649 <0x0 0xfff10000 0 0x10000>, /* GICH */ 650 <0x0 0xfff20000 0 0x10000>; /* GICV */ 651 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>; 652 its: msi-controller@fee20000 { 653 compatible = "arm,gic-v3-its"; 654 msi-controller; 655 #msi-cells = <1>; 656 reg = <0x0 0xfee20000 0x0 0x20000>; 657 }; 658 659 ppi-partitions { 660 ppi_cluster0: interrupt-partition-0 { 661 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>; 662 }; 663 664 ppi_cluster1: interrupt-partition-1 { 665 affinity = <&cpu_b0 &cpu_b1>; 666 }; 667 }; 668 }; 669 670 saradc: saradc@ff100000 { 671 compatible = "rockchip,rk3399-saradc"; 672 reg = <0x0 0xff100000 0x0 0x100>; 673 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>; 674 #io-channel-cells = <1>; 675 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; 676 clock-names = "saradc", "apb_pclk"; 677 resets = <&cru SRST_P_SARADC>; 678 reset-names = "saradc-apb"; 679 status = "disabled"; 680 }; 681 682 crypto0: crypto@ff8b0000 { 683 compatible = "rockchip,rk3399-crypto"; 684 reg = <0x0 0xff8b0000 0x0 0x4000>; 685 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH 0>; 686 clocks = <&cru HCLK_M_CRYPTO0>, <&cru HCLK_S_CRYPTO0>, <&cru SCLK_CRYPTO0>; 687 clock-names = "hclk_master", "hclk_slave", "sclk"; 688 resets = <&cru SRST_CRYPTO0>, <&cru SRST_CRYPTO0_S>, <&cru SRST_CRYPTO0_M>; 689 reset-names = "master", "slave", "crypto-rst"; 690 }; 691 692 crypto1: crypto@ff8b8000 { 693 compatible = "rockchip,rk3399-crypto"; 694 reg = <0x0 0xff8b8000 0x0 0x4000>; 695 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH 0>; 696 clocks = <&cru HCLK_M_CRYPTO1>, <&cru HCLK_S_CRYPTO1>, <&cru SCLK_CRYPTO1>; 697 clock-names = "hclk_master", "hclk_slave", "sclk"; 698 resets = <&cru SRST_CRYPTO1>, <&cru SRST_CRYPTO1_S>, <&cru SRST_CRYPTO1_M>; 699 reset-names = "master", "slave", "crypto-rst"; 700 }; 701 702 i2c1: i2c@ff110000 { 703 compatible = "rockchip,rk3399-i2c"; 704 reg = <0x0 0xff110000 0x0 0x1000>; 705 assigned-clocks = <&cru SCLK_I2C1>; 706 assigned-clock-rates = <200000000>; 707 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>; 708 clock-names = "i2c", "pclk"; 709 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>; 710 pinctrl-names = "default"; 711 pinctrl-0 = <&i2c1_xfer>; 712 #address-cells = <1>; 713 #size-cells = <0>; 714 status = "disabled"; 715 }; 716 717 i2c2: i2c@ff120000 { 718 compatible = "rockchip,rk3399-i2c"; 719 reg = <0x0 0xff120000 0x0 0x1000>; 720 assigned-clocks = <&cru SCLK_I2C2>; 721 assigned-clock-rates = <200000000>; 722 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>; 723 clock-names = "i2c", "pclk"; 724 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>; 725 pinctrl-names = "default"; 726 pinctrl-0 = <&i2c2_xfer>; 727 #address-cells = <1>; 728 #size-cells = <0>; 729 status = "disabled"; 730 }; 731 732 i2c3: i2c@ff130000 { 733 compatible = "rockchip,rk3399-i2c"; 734 reg = <0x0 0xff130000 0x0 0x1000>; 735 assigned-clocks = <&cru SCLK_I2C3>; 736 assigned-clock-rates = <200000000>; 737 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>; 738 clock-names = "i2c", "pclk"; 739 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>; 740 pinctrl-names = "default"; 741 pinctrl-0 = <&i2c3_xfer>; 742 #address-cells = <1>; 743 #size-cells = <0>; 744 status = "disabled"; 745 }; 746 747 i2c5: i2c@ff140000 { 748 compatible = "rockchip,rk3399-i2c"; 749 reg = <0x0 0xff140000 0x0 0x1000>; 750 assigned-clocks = <&cru SCLK_I2C5>; 751 assigned-clock-rates = <200000000>; 752 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>; 753 clock-names = "i2c", "pclk"; 754 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>; 755 pinctrl-names = "default"; 756 pinctrl-0 = <&i2c5_xfer>; 757 #address-cells = <1>; 758 #size-cells = <0>; 759 status = "disabled"; 760 }; 761 762 i2c6: i2c@ff150000 { 763 compatible = "rockchip,rk3399-i2c"; 764 reg = <0x0 0xff150000 0x0 0x1000>; 765 assigned-clocks = <&cru SCLK_I2C6>; 766 assigned-clock-rates = <200000000>; 767 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>; 768 clock-names = "i2c", "pclk"; 769 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>; 770 pinctrl-names = "default"; 771 pinctrl-0 = <&i2c6_xfer>; 772 #address-cells = <1>; 773 #size-cells = <0>; 774 status = "disabled"; 775 }; 776 777 i2c7: i2c@ff160000 { 778 compatible = "rockchip,rk3399-i2c"; 779 reg = <0x0 0xff160000 0x0 0x1000>; 780 assigned-clocks = <&cru SCLK_I2C7>; 781 assigned-clock-rates = <200000000>; 782 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>; 783 clock-names = "i2c", "pclk"; 784 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>; 785 pinctrl-names = "default"; 786 pinctrl-0 = <&i2c7_xfer>; 787 #address-cells = <1>; 788 #size-cells = <0>; 789 status = "disabled"; 790 }; 791 792 uart0: serial@ff180000 { 793 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; 794 reg = <0x0 0xff180000 0x0 0x100>; 795 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; 796 clock-names = "baudclk", "apb_pclk"; 797 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>; 798 reg-shift = <2>; 799 reg-io-width = <4>; 800 pinctrl-names = "default"; 801 pinctrl-0 = <&uart0_xfer>; 802 status = "disabled"; 803 }; 804 805 uart1: serial@ff190000 { 806 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; 807 reg = <0x0 0xff190000 0x0 0x100>; 808 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; 809 clock-names = "baudclk", "apb_pclk"; 810 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>; 811 reg-shift = <2>; 812 reg-io-width = <4>; 813 pinctrl-names = "default"; 814 pinctrl-0 = <&uart1_xfer>; 815 status = "disabled"; 816 }; 817 818 uart2: serial@ff1a0000 { 819 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; 820 reg = <0x0 0xff1a0000 0x0 0x100>; 821 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; 822 clock-names = "baudclk", "apb_pclk"; 823 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>; 824 reg-shift = <2>; 825 reg-io-width = <4>; 826 pinctrl-names = "default"; 827 pinctrl-0 = <&uart2c_xfer>; 828 status = "disabled"; 829 }; 830 831 uart3: serial@ff1b0000 { 832 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; 833 reg = <0x0 0xff1b0000 0x0 0x100>; 834 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>; 835 clock-names = "baudclk", "apb_pclk"; 836 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>; 837 reg-shift = <2>; 838 reg-io-width = <4>; 839 pinctrl-names = "default"; 840 pinctrl-0 = <&uart3_xfer>; 841 status = "disabled"; 842 }; 843 844 spi0: spi@ff1c0000 { 845 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; 846 reg = <0x0 0xff1c0000 0x0 0x1000>; 847 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; 848 clock-names = "spiclk", "apb_pclk"; 849 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>; 850 dmas = <&dmac_peri 10>, <&dmac_peri 11>; 851 dma-names = "tx", "rx"; 852 pinctrl-names = "default"; 853 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>; 854 #address-cells = <1>; 855 #size-cells = <0>; 856 status = "disabled"; 857 }; 858 859 spi1: spi@ff1d0000 { 860 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; 861 reg = <0x0 0xff1d0000 0x0 0x1000>; 862 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>; 863 clock-names = "spiclk", "apb_pclk"; 864 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>; 865 dmas = <&dmac_peri 12>, <&dmac_peri 13>; 866 dma-names = "tx", "rx"; 867 pinctrl-names = "default"; 868 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>; 869 #address-cells = <1>; 870 #size-cells = <0>; 871 status = "disabled"; 872 }; 873 874 spi2: spi@ff1e0000 { 875 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; 876 reg = <0x0 0xff1e0000 0x0 0x1000>; 877 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>; 878 clock-names = "spiclk", "apb_pclk"; 879 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>; 880 dmas = <&dmac_peri 14>, <&dmac_peri 15>; 881 dma-names = "tx", "rx"; 882 pinctrl-names = "default"; 883 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>; 884 #address-cells = <1>; 885 #size-cells = <0>; 886 status = "disabled"; 887 }; 888 889 spi4: spi@ff1f0000 { 890 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; 891 reg = <0x0 0xff1f0000 0x0 0x1000>; 892 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>; 893 clock-names = "spiclk", "apb_pclk"; 894 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>; 895 dmas = <&dmac_peri 18>, <&dmac_peri 19>; 896 dma-names = "tx", "rx"; 897 pinctrl-names = "default"; 898 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>; 899 #address-cells = <1>; 900 #size-cells = <0>; 901 status = "disabled"; 902 }; 903 904 spi5: spi@ff200000 { 905 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; 906 reg = <0x0 0xff200000 0x0 0x1000>; 907 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>; 908 clock-names = "spiclk", "apb_pclk"; 909 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>; 910 dmas = <&dmac_bus 8>, <&dmac_bus 9>; 911 dma-names = "tx", "rx"; 912 pinctrl-names = "default"; 913 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>; 914 power-domains = <&power RK3399_PD_SDIOAUDIO>; 915 #address-cells = <1>; 916 #size-cells = <0>; 917 status = "disabled"; 918 }; 919 920 thermal_zones: thermal-zones { 921 cpu_thermal: cpu-thermal { 922 polling-delay-passive = <100>; 923 polling-delay = <1000>; 924 925 thermal-sensors = <&tsadc 0>; 926 927 trips { 928 cpu_alert0: cpu_alert0 { 929 temperature = <70000>; 930 hysteresis = <2000>; 931 type = "passive"; 932 }; 933 cpu_alert1: cpu_alert1 { 934 temperature = <75000>; 935 hysteresis = <2000>; 936 type = "passive"; 937 }; 938 cpu_crit: cpu_crit { 939 temperature = <95000>; 940 hysteresis = <2000>; 941 type = "critical"; 942 }; 943 }; 944 945 cooling-maps { 946 map0 { 947 trip = <&cpu_alert0>; 948 cooling-device = 949 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 950 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 951 }; 952 map1 { 953 trip = <&cpu_alert1>; 954 cooling-device = 955 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 956 <&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 957 <&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 958 <&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 959 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 960 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 961 }; 962 }; 963 }; 964 965 gpu_thermal: gpu-thermal { 966 polling-delay-passive = <100>; 967 polling-delay = <1000>; 968 969 thermal-sensors = <&tsadc 1>; 970 971 trips { 972 gpu_alert0: gpu_alert0 { 973 temperature = <75000>; 974 hysteresis = <2000>; 975 type = "passive"; 976 }; 977 gpu_crit: gpu_crit { 978 temperature = <95000>; 979 hysteresis = <2000>; 980 type = "critical"; 981 }; 982 }; 983 984 cooling-maps { 985 map0 { 986 trip = <&gpu_alert0>; 987 cooling-device = 988 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 989 }; 990 }; 991 }; 992 }; 993 994 tsadc: tsadc@ff260000 { 995 compatible = "rockchip,rk3399-tsadc"; 996 reg = <0x0 0xff260000 0x0 0x100>; 997 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>; 998 assigned-clocks = <&cru SCLK_TSADC>; 999 assigned-clock-rates = <750000>; 1000 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; 1001 clock-names = "tsadc", "apb_pclk"; 1002 resets = <&cru SRST_TSADC>; 1003 reset-names = "tsadc-apb"; 1004 rockchip,grf = <&grf>; 1005 rockchip,hw-tshut-temp = <95000>; 1006 pinctrl-names = "init", "default", "sleep"; 1007 pinctrl-0 = <&otp_pin>; 1008 pinctrl-1 = <&otp_out>; 1009 pinctrl-2 = <&otp_pin>; 1010 #thermal-sensor-cells = <1>; 1011 status = "disabled"; 1012 }; 1013 1014 qos_emmc: qos@ffa58000 { 1015 compatible = "rockchip,rk3399-qos", "syscon"; 1016 reg = <0x0 0xffa58000 0x0 0x20>; 1017 }; 1018 1019 qos_gmac: qos@ffa5c000 { 1020 compatible = "rockchip,rk3399-qos", "syscon"; 1021 reg = <0x0 0xffa5c000 0x0 0x20>; 1022 }; 1023 1024 qos_pcie: qos@ffa60080 { 1025 compatible = "rockchip,rk3399-qos", "syscon"; 1026 reg = <0x0 0xffa60080 0x0 0x20>; 1027 }; 1028 1029 qos_usb_host0: qos@ffa60100 { 1030 compatible = "rockchip,rk3399-qos", "syscon"; 1031 reg = <0x0 0xffa60100 0x0 0x20>; 1032 }; 1033 1034 qos_usb_host1: qos@ffa60180 { 1035 compatible = "rockchip,rk3399-qos", "syscon"; 1036 reg = <0x0 0xffa60180 0x0 0x20>; 1037 }; 1038 1039 qos_usb_otg0: qos@ffa70000 { 1040 compatible = "rockchip,rk3399-qos", "syscon"; 1041 reg = <0x0 0xffa70000 0x0 0x20>; 1042 }; 1043 1044 qos_usb_otg1: qos@ffa70080 { 1045 compatible = "rockchip,rk3399-qos", "syscon"; 1046 reg = <0x0 0xffa70080 0x0 0x20>; 1047 }; 1048 1049 qos_sd: qos@ffa74000 { 1050 compatible = "rockchip,rk3399-qos", "syscon"; 1051 reg = <0x0 0xffa74000 0x0 0x20>; 1052 }; 1053 1054 qos_sdioaudio: qos@ffa76000 { 1055 compatible = "rockchip,rk3399-qos", "syscon"; 1056 reg = <0x0 0xffa76000 0x0 0x20>; 1057 }; 1058 1059 qos_hdcp: qos@ffa90000 { 1060 compatible = "rockchip,rk3399-qos", "syscon"; 1061 reg = <0x0 0xffa90000 0x0 0x20>; 1062 }; 1063 1064 qos_iep: qos@ffa98000 { 1065 compatible = "rockchip,rk3399-qos", "syscon"; 1066 reg = <0x0 0xffa98000 0x0 0x20>; 1067 }; 1068 1069 qos_isp0_m0: qos@ffaa0000 { 1070 compatible = "rockchip,rk3399-qos", "syscon"; 1071 reg = <0x0 0xffaa0000 0x0 0x20>; 1072 }; 1073 1074 qos_isp0_m1: qos@ffaa0080 { 1075 compatible = "rockchip,rk3399-qos", "syscon"; 1076 reg = <0x0 0xffaa0080 0x0 0x20>; 1077 }; 1078 1079 qos_isp1_m0: qos@ffaa8000 { 1080 compatible = "rockchip,rk3399-qos", "syscon"; 1081 reg = <0x0 0xffaa8000 0x0 0x20>; 1082 }; 1083 1084 qos_isp1_m1: qos@ffaa8080 { 1085 compatible = "rockchip,rk3399-qos", "syscon"; 1086 reg = <0x0 0xffaa8080 0x0 0x20>; 1087 }; 1088 1089 qos_rga_r: qos@ffab0000 { 1090 compatible = "rockchip,rk3399-qos", "syscon"; 1091 reg = <0x0 0xffab0000 0x0 0x20>; 1092 }; 1093 1094 qos_rga_w: qos@ffab0080 { 1095 compatible = "rockchip,rk3399-qos", "syscon"; 1096 reg = <0x0 0xffab0080 0x0 0x20>; 1097 }; 1098 1099 qos_video_m0: qos@ffab8000 { 1100 compatible = "rockchip,rk3399-qos", "syscon"; 1101 reg = <0x0 0xffab8000 0x0 0x20>; 1102 }; 1103 1104 qos_video_m1_r: qos@ffac0000 { 1105 compatible = "rockchip,rk3399-qos", "syscon"; 1106 reg = <0x0 0xffac0000 0x0 0x20>; 1107 }; 1108 1109 qos_video_m1_w: qos@ffac0080 { 1110 compatible = "rockchip,rk3399-qos", "syscon"; 1111 reg = <0x0 0xffac0080 0x0 0x20>; 1112 }; 1113 1114 qos_vop_big_r: qos@ffac8000 { 1115 compatible = "rockchip,rk3399-qos", "syscon"; 1116 reg = <0x0 0xffac8000 0x0 0x20>; 1117 }; 1118 1119 qos_vop_big_w: qos@ffac8080 { 1120 compatible = "rockchip,rk3399-qos", "syscon"; 1121 reg = <0x0 0xffac8080 0x0 0x20>; 1122 }; 1123 1124 qos_vop_little: qos@ffad0000 { 1125 compatible = "rockchip,rk3399-qos", "syscon"; 1126 reg = <0x0 0xffad0000 0x0 0x20>; 1127 }; 1128 1129 qos_perihp: qos@ffad8080 { 1130 compatible = "rockchip,rk3399-qos", "syscon"; 1131 reg = <0x0 0xffad8080 0x0 0x20>; 1132 }; 1133 1134 qos_gpu: qos@ffae0000 { 1135 compatible = "rockchip,rk3399-qos", "syscon"; 1136 reg = <0x0 0xffae0000 0x0 0x20>; 1137 }; 1138 1139 pmu: power-management@ff310000 { 1140 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd"; 1141 reg = <0x0 0xff310000 0x0 0x1000>; 1142 1143 /* 1144 * Note: RK3399 supports 6 voltage domains including VD_CORE_L, 1145 * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU. 1146 * Some of the power domains are grouped together for every 1147 * voltage domain. 1148 * The detail contents as below. 1149 */ 1150 power: power-controller { 1151 compatible = "rockchip,rk3399-power-controller"; 1152 #power-domain-cells = <1>; 1153 #address-cells = <1>; 1154 #size-cells = <0>; 1155 1156 /* These power domains are grouped by VD_CENTER */ 1157 power-domain@RK3399_PD_IEP { 1158 reg = <RK3399_PD_IEP>; 1159 clocks = <&cru ACLK_IEP>, 1160 <&cru HCLK_IEP>; 1161 pm_qos = <&qos_iep>; 1162 #power-domain-cells = <0>; 1163 }; 1164 power-domain@RK3399_PD_RGA { 1165 reg = <RK3399_PD_RGA>; 1166 clocks = <&cru ACLK_RGA>, 1167 <&cru HCLK_RGA>; 1168 pm_qos = <&qos_rga_r>, 1169 <&qos_rga_w>; 1170 #power-domain-cells = <0>; 1171 }; 1172 power-domain@RK3399_PD_VCODEC { 1173 reg = <RK3399_PD_VCODEC>; 1174 clocks = <&cru ACLK_VCODEC>, 1175 <&cru HCLK_VCODEC>; 1176 pm_qos = <&qos_video_m0>; 1177 #power-domain-cells = <0>; 1178 }; 1179 power-domain@RK3399_PD_VDU { 1180 reg = <RK3399_PD_VDU>; 1181 clocks = <&cru ACLK_VDU>, 1182 <&cru HCLK_VDU>, 1183 <&cru SCLK_VDU_CA>, 1184 <&cru SCLK_VDU_CORE>; 1185 pm_qos = <&qos_video_m1_r>, 1186 <&qos_video_m1_w>; 1187 #power-domain-cells = <0>; 1188 }; 1189 1190 /* These power domains are grouped by VD_GPU */ 1191 power-domain@RK3399_PD_GPU { 1192 reg = <RK3399_PD_GPU>; 1193 clocks = <&cru ACLK_GPU>; 1194 pm_qos = <&qos_gpu>; 1195 #power-domain-cells = <0>; 1196 }; 1197 1198 /* These power domains are grouped by VD_LOGIC */ 1199 power-domain@RK3399_PD_EDP { 1200 reg = <RK3399_PD_EDP>; 1201 clocks = <&cru PCLK_EDP_CTRL>; 1202 #power-domain-cells = <0>; 1203 }; 1204 power-domain@RK3399_PD_EMMC { 1205 reg = <RK3399_PD_EMMC>; 1206 clocks = <&cru ACLK_EMMC>; 1207 pm_qos = <&qos_emmc>; 1208 #power-domain-cells = <0>; 1209 }; 1210 power-domain@RK3399_PD_GMAC { 1211 reg = <RK3399_PD_GMAC>; 1212 clocks = <&cru ACLK_GMAC>, 1213 <&cru PCLK_GMAC>; 1214 pm_qos = <&qos_gmac>; 1215 #power-domain-cells = <0>; 1216 }; 1217 power-domain@RK3399_PD_SD { 1218 reg = <RK3399_PD_SD>; 1219 clocks = <&cru HCLK_SDMMC>, 1220 <&cru SCLK_SDMMC>; 1221 pm_qos = <&qos_sd>; 1222 #power-domain-cells = <0>; 1223 }; 1224 power-domain@RK3399_PD_SDIOAUDIO { 1225 reg = <RK3399_PD_SDIOAUDIO>; 1226 clocks = <&cru HCLK_SDIO>; 1227 pm_qos = <&qos_sdioaudio>; 1228 #power-domain-cells = <0>; 1229 }; 1230 power-domain@RK3399_PD_TCPD0 { 1231 reg = <RK3399_PD_TCPD0>; 1232 clocks = <&cru SCLK_UPHY0_TCPDCORE>, 1233 <&cru SCLK_UPHY0_TCPDPHY_REF>; 1234 #power-domain-cells = <0>; 1235 }; 1236 power-domain@RK3399_PD_TCPD1 { 1237 reg = <RK3399_PD_TCPD1>; 1238 clocks = <&cru SCLK_UPHY1_TCPDCORE>, 1239 <&cru SCLK_UPHY1_TCPDPHY_REF>; 1240 #power-domain-cells = <0>; 1241 }; 1242 power-domain@RK3399_PD_USB3 { 1243 reg = <RK3399_PD_USB3>; 1244 clocks = <&cru ACLK_USB3>; 1245 pm_qos = <&qos_usb_otg0>, 1246 <&qos_usb_otg1>; 1247 #power-domain-cells = <0>; 1248 }; 1249 power-domain@RK3399_PD_VIO { 1250 reg = <RK3399_PD_VIO>; 1251 #power-domain-cells = <1>; 1252 #address-cells = <1>; 1253 #size-cells = <0>; 1254 1255 power-domain@RK3399_PD_HDCP { 1256 reg = <RK3399_PD_HDCP>; 1257 clocks = <&cru ACLK_HDCP>, 1258 <&cru HCLK_HDCP>, 1259 <&cru PCLK_HDCP>; 1260 pm_qos = <&qos_hdcp>; 1261 #power-domain-cells = <0>; 1262 }; 1263 power-domain@RK3399_PD_ISP0 { 1264 reg = <RK3399_PD_ISP0>; 1265 clocks = <&cru ACLK_ISP0>, 1266 <&cru HCLK_ISP0>; 1267 pm_qos = <&qos_isp0_m0>, 1268 <&qos_isp0_m1>; 1269 #power-domain-cells = <0>; 1270 }; 1271 power-domain@RK3399_PD_ISP1 { 1272 reg = <RK3399_PD_ISP1>; 1273 clocks = <&cru ACLK_ISP1>, 1274 <&cru HCLK_ISP1>; 1275 pm_qos = <&qos_isp1_m0>, 1276 <&qos_isp1_m1>; 1277 #power-domain-cells = <0>; 1278 }; 1279 power-domain@RK3399_PD_VO { 1280 reg = <RK3399_PD_VO>; 1281 #power-domain-cells = <1>; 1282 #address-cells = <1>; 1283 #size-cells = <0>; 1284 1285 power-domain@RK3399_PD_VOPB { 1286 reg = <RK3399_PD_VOPB>; 1287 clocks = <&cru ACLK_VOP0>, 1288 <&cru HCLK_VOP0>; 1289 pm_qos = <&qos_vop_big_r>, 1290 <&qos_vop_big_w>; 1291 #power-domain-cells = <0>; 1292 }; 1293 power-domain@RK3399_PD_VOPL { 1294 reg = <RK3399_PD_VOPL>; 1295 clocks = <&cru ACLK_VOP1>, 1296 <&cru HCLK_VOP1>; 1297 pm_qos = <&qos_vop_little>; 1298 #power-domain-cells = <0>; 1299 }; 1300 }; 1301 }; 1302 }; 1303 }; 1304 1305 pmugrf: syscon@ff320000 { 1306 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd"; 1307 reg = <0x0 0xff320000 0x0 0x1000>; 1308 1309 pmu_io_domains: io-domains { 1310 compatible = "rockchip,rk3399-pmu-io-voltage-domain"; 1311 status = "disabled"; 1312 }; 1313 }; 1314 1315 spi3: spi@ff350000 { 1316 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi"; 1317 reg = <0x0 0xff350000 0x0 0x1000>; 1318 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>; 1319 clock-names = "spiclk", "apb_pclk"; 1320 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>; 1321 pinctrl-names = "default"; 1322 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>; 1323 #address-cells = <1>; 1324 #size-cells = <0>; 1325 status = "disabled"; 1326 }; 1327 1328 uart4: serial@ff370000 { 1329 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart"; 1330 reg = <0x0 0xff370000 0x0 0x100>; 1331 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>; 1332 clock-names = "baudclk", "apb_pclk"; 1333 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>; 1334 reg-shift = <2>; 1335 reg-io-width = <4>; 1336 pinctrl-names = "default"; 1337 pinctrl-0 = <&uart4_xfer>; 1338 status = "disabled"; 1339 }; 1340 1341 i2c0: i2c@ff3c0000 { 1342 compatible = "rockchip,rk3399-i2c"; 1343 reg = <0x0 0xff3c0000 0x0 0x1000>; 1344 assigned-clocks = <&pmucru SCLK_I2C0_PMU>; 1345 assigned-clock-rates = <200000000>; 1346 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>; 1347 clock-names = "i2c", "pclk"; 1348 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>; 1349 pinctrl-names = "default"; 1350 pinctrl-0 = <&i2c0_xfer>; 1351 #address-cells = <1>; 1352 #size-cells = <0>; 1353 status = "disabled"; 1354 }; 1355 1356 i2c4: i2c@ff3d0000 { 1357 compatible = "rockchip,rk3399-i2c"; 1358 reg = <0x0 0xff3d0000 0x0 0x1000>; 1359 assigned-clocks = <&pmucru SCLK_I2C4_PMU>; 1360 assigned-clock-rates = <200000000>; 1361 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>; 1362 clock-names = "i2c", "pclk"; 1363 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>; 1364 pinctrl-names = "default"; 1365 pinctrl-0 = <&i2c4_xfer>; 1366 #address-cells = <1>; 1367 #size-cells = <0>; 1368 status = "disabled"; 1369 }; 1370 1371 i2c8: i2c@ff3e0000 { 1372 compatible = "rockchip,rk3399-i2c"; 1373 reg = <0x0 0xff3e0000 0x0 0x1000>; 1374 assigned-clocks = <&pmucru SCLK_I2C8_PMU>; 1375 assigned-clock-rates = <200000000>; 1376 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>; 1377 clock-names = "i2c", "pclk"; 1378 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>; 1379 pinctrl-names = "default"; 1380 pinctrl-0 = <&i2c8_xfer>; 1381 #address-cells = <1>; 1382 #size-cells = <0>; 1383 status = "disabled"; 1384 }; 1385 1386 pwm0: pwm@ff420000 { 1387 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm"; 1388 reg = <0x0 0xff420000 0x0 0x10>; 1389 #pwm-cells = <3>; 1390 pinctrl-names = "default"; 1391 pinctrl-0 = <&pwm0_pin>; 1392 clocks = <&pmucru PCLK_RKPWM_PMU>; 1393 status = "disabled"; 1394 }; 1395 1396 pwm1: pwm@ff420010 { 1397 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm"; 1398 reg = <0x0 0xff420010 0x0 0x10>; 1399 #pwm-cells = <3>; 1400 pinctrl-names = "default"; 1401 pinctrl-0 = <&pwm1_pin>; 1402 clocks = <&pmucru PCLK_RKPWM_PMU>; 1403 status = "disabled"; 1404 }; 1405 1406 pwm2: pwm@ff420020 { 1407 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm"; 1408 reg = <0x0 0xff420020 0x0 0x10>; 1409 #pwm-cells = <3>; 1410 pinctrl-names = "default"; 1411 pinctrl-0 = <&pwm2_pin>; 1412 clocks = <&pmucru PCLK_RKPWM_PMU>; 1413 status = "disabled"; 1414 }; 1415 1416 pwm3: pwm@ff420030 { 1417 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm"; 1418 reg = <0x0 0xff420030 0x0 0x10>; 1419 #pwm-cells = <3>; 1420 pinctrl-names = "default"; 1421 pinctrl-0 = <&pwm3a_pin>; 1422 clocks = <&pmucru PCLK_RKPWM_PMU>; 1423 status = "disabled"; 1424 }; 1425 1426 dfi: dfi@ff630000 { 1427 reg = <0x00 0xff630000 0x00 0x4000>; 1428 compatible = "rockchip,rk3399-dfi"; 1429 rockchip,pmu = <&pmugrf>; 1430 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>; 1431 clocks = <&cru PCLK_DDR_MON>; 1432 clock-names = "pclk_ddr_mon"; 1433 }; 1434 1435 vpu: video-codec@ff650000 { 1436 compatible = "rockchip,rk3399-vpu"; 1437 reg = <0x0 0xff650000 0x0 0x800>; 1438 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH 0>, 1439 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH 0>; 1440 interrupt-names = "vepu", "vdpu"; 1441 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>; 1442 clock-names = "aclk", "hclk"; 1443 iommus = <&vpu_mmu>; 1444 power-domains = <&power RK3399_PD_VCODEC>; 1445 }; 1446 1447 vpu_mmu: iommu@ff650800 { 1448 compatible = "rockchip,iommu"; 1449 reg = <0x0 0xff650800 0x0 0x40>; 1450 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH 0>; 1451 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>; 1452 clock-names = "aclk", "iface"; 1453 #iommu-cells = <0>; 1454 power-domains = <&power RK3399_PD_VCODEC>; 1455 }; 1456 1457 vdec: video-codec@ff660000 { 1458 compatible = "rockchip,rk3399-vdec"; 1459 reg = <0x0 0xff660000 0x0 0x480>; 1460 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>; 1461 clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>, 1462 <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>; 1463 clock-names = "axi", "ahb", "cabac", "core"; 1464 iommus = <&vdec_mmu>; 1465 power-domains = <&power RK3399_PD_VDU>; 1466 }; 1467 1468 vdec_mmu: iommu@ff660480 { 1469 compatible = "rockchip,iommu"; 1470 reg = <0x0 0xff660480 0x0 0x40>, <0x0 0xff6604c0 0x0 0x40>; 1471 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH 0>; 1472 clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>; 1473 clock-names = "aclk", "iface"; 1474 power-domains = <&power RK3399_PD_VDU>; 1475 #iommu-cells = <0>; 1476 }; 1477 1478 iep_mmu: iommu@ff670800 { 1479 compatible = "rockchip,iommu"; 1480 reg = <0x0 0xff670800 0x0 0x40>; 1481 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH 0>; 1482 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>; 1483 clock-names = "aclk", "iface"; 1484 #iommu-cells = <0>; 1485 status = "disabled"; 1486 }; 1487 1488 rga: rga@ff680000 { 1489 compatible = "rockchip,rk3399-rga"; 1490 reg = <0x0 0xff680000 0x0 0x10000>; 1491 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH 0>; 1492 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>; 1493 clock-names = "aclk", "hclk", "sclk"; 1494 resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>; 1495 reset-names = "core", "axi", "ahb"; 1496 power-domains = <&power RK3399_PD_RGA>; 1497 }; 1498 1499 efuse0: efuse@ff690000 { 1500 compatible = "rockchip,rk3399-efuse"; 1501 reg = <0x0 0xff690000 0x0 0x80>; 1502 #address-cells = <1>; 1503 #size-cells = <1>; 1504 clocks = <&cru PCLK_EFUSE1024NS>; 1505 clock-names = "pclk_efuse"; 1506 1507 /* Data cells */ 1508 cpu_id: cpu-id@7 { 1509 reg = <0x07 0x10>; 1510 }; 1511 cpub_leakage: cpu-leakage@17 { 1512 reg = <0x17 0x1>; 1513 }; 1514 gpu_leakage: gpu-leakage@18 { 1515 reg = <0x18 0x1>; 1516 }; 1517 center_leakage: center-leakage@19 { 1518 reg = <0x19 0x1>; 1519 }; 1520 cpul_leakage: cpu-leakage@1a { 1521 reg = <0x1a 0x1>; 1522 }; 1523 logic_leakage: logic-leakage@1b { 1524 reg = <0x1b 0x1>; 1525 }; 1526 wafer_info: wafer-info@1c { 1527 reg = <0x1c 0x1>; 1528 }; 1529 }; 1530 1531 dmac_bus: dma-controller@ff6d0000 { 1532 compatible = "arm,pl330", "arm,primecell"; 1533 reg = <0x0 0xff6d0000 0x0 0x4000>; 1534 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>, 1535 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>; 1536 #dma-cells = <1>; 1537 arm,pl330-periph-burst; 1538 clocks = <&cru ACLK_DMAC0_PERILP>; 1539 clock-names = "apb_pclk"; 1540 }; 1541 1542 dmac_peri: dma-controller@ff6e0000 { 1543 compatible = "arm,pl330", "arm,primecell"; 1544 reg = <0x0 0xff6e0000 0x0 0x4000>; 1545 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>, 1546 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>; 1547 #dma-cells = <1>; 1548 arm,pl330-periph-burst; 1549 clocks = <&cru ACLK_DMAC1_PERILP>; 1550 clock-names = "apb_pclk"; 1551 }; 1552 1553 pmucru: clock-controller@ff750000 { 1554 compatible = "rockchip,rk3399-pmucru"; 1555 reg = <0x0 0xff750000 0x0 0x1000>; 1556 clocks = <&xin24m>; 1557 clock-names = "xin24m"; 1558 rockchip,grf = <&pmugrf>; 1559 #clock-cells = <1>; 1560 #reset-cells = <1>; 1561 assigned-clocks = <&pmucru PLL_PPLL>; 1562 assigned-clock-rates = <676000000>; 1563 }; 1564 1565 cru: clock-controller@ff760000 { 1566 compatible = "rockchip,rk3399-cru"; 1567 reg = <0x0 0xff760000 0x0 0x1000>; 1568 clocks = <&xin24m>; 1569 clock-names = "xin24m"; 1570 rockchip,grf = <&grf>; 1571 #clock-cells = <1>; 1572 #reset-cells = <1>; 1573 assigned-clocks = 1574 <&cru PLL_GPLL>, <&cru PLL_CPLL>, 1575 <&cru PLL_NPLL>, 1576 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>, 1577 <&cru PCLK_PERIHP>, 1578 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>, 1579 <&cru PCLK_PERILP0>, <&cru ACLK_CCI>, 1580 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>, 1581 <&cru ACLK_VIO>, <&cru ACLK_HDCP>, 1582 <&cru ACLK_GIC_PRE>, 1583 <&cru PCLK_DDR>, 1584 <&cru ACLK_VDU>; 1585 assigned-clock-rates = 1586 <594000000>, <800000000>, 1587 <1000000000>, 1588 <150000000>, <75000000>, 1589 <37500000>, 1590 <100000000>, <100000000>, 1591 <50000000>, <600000000>, 1592 <100000000>, <50000000>, 1593 <400000000>, <400000000>, 1594 <200000000>, 1595 <200000000>, 1596 <400000000>; 1597 }; 1598 1599 grf: syscon@ff770000 { 1600 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; 1601 reg = <0x0 0xff770000 0x0 0x10000>; 1602 #address-cells = <1>; 1603 #size-cells = <1>; 1604 1605 io_domains: io-domains { 1606 compatible = "rockchip,rk3399-io-voltage-domain"; 1607 status = "disabled"; 1608 }; 1609 1610 mipi_dphy_rx0: mipi-dphy-rx0 { 1611 compatible = "rockchip,rk3399-mipi-dphy-rx0"; 1612 clocks = <&cru SCLK_MIPIDPHY_REF>, 1613 <&cru SCLK_DPHY_RX0_CFG>, 1614 <&cru PCLK_VIO_GRF>; 1615 clock-names = "dphy-ref", "dphy-cfg", "grf"; 1616 power-domains = <&power RK3399_PD_VIO>; 1617 #phy-cells = <0>; 1618 status = "disabled"; 1619 }; 1620 1621 u2phy0: usb2phy@e450 { 1622 compatible = "rockchip,rk3399-usb2phy"; 1623 reg = <0xe450 0x10>; 1624 clocks = <&cru SCLK_USB2PHY0_REF>; 1625 clock-names = "phyclk"; 1626 #clock-cells = <0>; 1627 clock-output-names = "clk_usbphy0_480m"; 1628 status = "disabled"; 1629 1630 u2phy0_host: host-port { 1631 #phy-cells = <0>; 1632 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>; 1633 interrupt-names = "linestate"; 1634 status = "disabled"; 1635 }; 1636 1637 u2phy0_otg: otg-port { 1638 #phy-cells = <0>; 1639 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>, 1640 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>, 1641 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>; 1642 interrupt-names = "otg-bvalid", "otg-id", 1643 "linestate"; 1644 status = "disabled"; 1645 }; 1646 }; 1647 1648 u2phy1: usb2phy@e460 { 1649 compatible = "rockchip,rk3399-usb2phy"; 1650 reg = <0xe460 0x10>; 1651 clocks = <&cru SCLK_USB2PHY1_REF>; 1652 clock-names = "phyclk"; 1653 #clock-cells = <0>; 1654 clock-output-names = "clk_usbphy1_480m"; 1655 status = "disabled"; 1656 1657 u2phy1_host: host-port { 1658 #phy-cells = <0>; 1659 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>; 1660 interrupt-names = "linestate"; 1661 status = "disabled"; 1662 }; 1663 1664 u2phy1_otg: otg-port { 1665 #phy-cells = <0>; 1666 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>, 1667 <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>, 1668 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>; 1669 interrupt-names = "otg-bvalid", "otg-id", 1670 "linestate"; 1671 status = "disabled"; 1672 }; 1673 }; 1674 1675 emmc_phy: phy@f780 { 1676 compatible = "rockchip,rk3399-emmc-phy"; 1677 reg = <0xf780 0x24>; 1678 clocks = <&sdhci>; 1679 clock-names = "emmcclk"; 1680 drive-impedance-ohm = <50>; 1681 #phy-cells = <0>; 1682 status = "disabled"; 1683 }; 1684 1685 pcie_phy: pcie-phy { 1686 compatible = "rockchip,rk3399-pcie-phy"; 1687 clocks = <&cru SCLK_PCIEPHY_REF>; 1688 clock-names = "refclk"; 1689 #phy-cells = <1>; 1690 resets = <&cru SRST_PCIEPHY>; 1691 reset-names = "phy"; 1692 status = "disabled"; 1693 }; 1694 }; 1695 1696 tcphy0: phy@ff7c0000 { 1697 compatible = "rockchip,rk3399-typec-phy"; 1698 reg = <0x0 0xff7c0000 0x0 0x40000>; 1699 clocks = <&cru SCLK_UPHY0_TCPDCORE>, 1700 <&cru SCLK_UPHY0_TCPDPHY_REF>; 1701 clock-names = "tcpdcore", "tcpdphy-ref"; 1702 assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>; 1703 assigned-clock-rates = <50000000>; 1704 power-domains = <&power RK3399_PD_TCPD0>; 1705 resets = <&cru SRST_UPHY0>, 1706 <&cru SRST_UPHY0_PIPE_L00>, 1707 <&cru SRST_P_UPHY0_TCPHY>; 1708 reset-names = "uphy", "uphy-pipe", "uphy-tcphy"; 1709 rockchip,grf = <&grf>; 1710 status = "disabled"; 1711 1712 tcphy0_dp: dp-port { 1713 #phy-cells = <0>; 1714 }; 1715 1716 tcphy0_usb3: usb3-port { 1717 #phy-cells = <0>; 1718 }; 1719 }; 1720 1721 tcphy1: phy@ff800000 { 1722 compatible = "rockchip,rk3399-typec-phy"; 1723 reg = <0x0 0xff800000 0x0 0x40000>; 1724 clocks = <&cru SCLK_UPHY1_TCPDCORE>, 1725 <&cru SCLK_UPHY1_TCPDPHY_REF>; 1726 clock-names = "tcpdcore", "tcpdphy-ref"; 1727 assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>; 1728 assigned-clock-rates = <50000000>; 1729 power-domains = <&power RK3399_PD_TCPD1>; 1730 resets = <&cru SRST_UPHY1>, 1731 <&cru SRST_UPHY1_PIPE_L00>, 1732 <&cru SRST_P_UPHY1_TCPHY>; 1733 reset-names = "uphy", "uphy-pipe", "uphy-tcphy"; 1734 rockchip,grf = <&grf>; 1735 status = "disabled"; 1736 1737 tcphy1_dp: dp-port { 1738 #phy-cells = <0>; 1739 }; 1740 1741 tcphy1_usb3: usb3-port { 1742 #phy-cells = <0>; 1743 }; 1744 }; 1745 1746 watchdog@ff848000 { 1747 compatible = "rockchip,rk3399-wdt", "snps,dw-wdt"; 1748 reg = <0x0 0xff848000 0x0 0x100>; 1749 clocks = <&cru PCLK_WDT>; 1750 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>; 1751 }; 1752 1753 rktimer: rktimer@ff850000 { 1754 compatible = "rockchip,rk3399-timer"; 1755 reg = <0x0 0xff850000 0x0 0x1000>; 1756 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>; 1757 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>; 1758 clock-names = "pclk", "timer"; 1759 }; 1760 1761 spdif: spdif@ff870000 { 1762 compatible = "rockchip,rk3399-spdif"; 1763 reg = <0x0 0xff870000 0x0 0x1000>; 1764 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>; 1765 dmas = <&dmac_bus 7>; 1766 dma-names = "tx"; 1767 clock-names = "mclk", "hclk"; 1768 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>; 1769 pinctrl-names = "default"; 1770 pinctrl-0 = <&spdif_bus>; 1771 power-domains = <&power RK3399_PD_SDIOAUDIO>; 1772 #sound-dai-cells = <0>; 1773 status = "disabled"; 1774 }; 1775 1776 i2s0: i2s@ff880000 { 1777 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s"; 1778 reg = <0x0 0xff880000 0x0 0x1000>; 1779 rockchip,grf = <&grf>; 1780 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>; 1781 dmas = <&dmac_bus 0>, <&dmac_bus 1>; 1782 dma-names = "tx", "rx"; 1783 clock-names = "i2s_clk", "i2s_hclk"; 1784 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>; 1785 pinctrl-names = "bclk_on", "bclk_off"; 1786 pinctrl-0 = <&i2s0_8ch_bus>; 1787 pinctrl-1 = <&i2s0_8ch_bus_bclk_off>; 1788 power-domains = <&power RK3399_PD_SDIOAUDIO>; 1789 #sound-dai-cells = <0>; 1790 status = "disabled"; 1791 }; 1792 1793 i2s1: i2s@ff890000 { 1794 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s"; 1795 reg = <0x0 0xff890000 0x0 0x1000>; 1796 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>; 1797 dmas = <&dmac_bus 2>, <&dmac_bus 3>; 1798 dma-names = "tx", "rx"; 1799 clock-names = "i2s_clk", "i2s_hclk"; 1800 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>; 1801 pinctrl-names = "default"; 1802 pinctrl-0 = <&i2s1_2ch_bus>; 1803 power-domains = <&power RK3399_PD_SDIOAUDIO>; 1804 #sound-dai-cells = <0>; 1805 status = "disabled"; 1806 }; 1807 1808 i2s2: i2s@ff8a0000 { 1809 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s"; 1810 reg = <0x0 0xff8a0000 0x0 0x1000>; 1811 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>; 1812 dmas = <&dmac_bus 4>, <&dmac_bus 5>; 1813 dma-names = "tx", "rx"; 1814 clock-names = "i2s_clk", "i2s_hclk"; 1815 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>; 1816 power-domains = <&power RK3399_PD_SDIOAUDIO>; 1817 #sound-dai-cells = <0>; 1818 status = "disabled"; 1819 }; 1820 1821 vopl: vop@ff8f0000 { 1822 compatible = "rockchip,rk3399-vop-lit"; 1823 reg = <0x0 0xff8f0000 0x0 0x2000>, <0x0 0xff8f2000 0x0 0x400>; 1824 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>; 1825 assigned-clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; 1826 assigned-clock-rates = <400000000>, <100000000>; 1827 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>; 1828 clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; 1829 iommus = <&vopl_mmu>; 1830 power-domains = <&power RK3399_PD_VOPL>; 1831 resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>; 1832 reset-names = "axi", "ahb", "dclk"; 1833 status = "disabled"; 1834 1835 vopl_out: port { 1836 #address-cells = <1>; 1837 #size-cells = <0>; 1838 1839 vopl_out_mipi: endpoint@0 { 1840 reg = <0>; 1841 remote-endpoint = <&mipi_in_vopl>; 1842 }; 1843 1844 vopl_out_edp: endpoint@1 { 1845 reg = <1>; 1846 remote-endpoint = <&edp_in_vopl>; 1847 }; 1848 1849 vopl_out_hdmi: endpoint@2 { 1850 reg = <2>; 1851 remote-endpoint = <&hdmi_in_vopl>; 1852 }; 1853 1854 vopl_out_mipi1: endpoint@3 { 1855 reg = <3>; 1856 remote-endpoint = <&mipi1_in_vopl>; 1857 }; 1858 1859 vopl_out_dp: endpoint@4 { 1860 reg = <4>; 1861 remote-endpoint = <&dp_in_vopl>; 1862 }; 1863 }; 1864 }; 1865 1866 vopl_mmu: iommu@ff8f3f00 { 1867 compatible = "rockchip,iommu"; 1868 reg = <0x0 0xff8f3f00 0x0 0x100>; 1869 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>; 1870 clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; 1871 clock-names = "aclk", "iface"; 1872 power-domains = <&power RK3399_PD_VOPL>; 1873 #iommu-cells = <0>; 1874 status = "disabled"; 1875 }; 1876 1877 vopb: vop@ff900000 { 1878 compatible = "rockchip,rk3399-vop-big"; 1879 reg = <0x0 0xff900000 0x0 0x2000>, <0x0 0xff902000 0x0 0x1000>; 1880 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>; 1881 assigned-clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; 1882 assigned-clock-rates = <400000000>, <100000000>; 1883 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>; 1884 clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; 1885 iommus = <&vopb_mmu>; 1886 power-domains = <&power RK3399_PD_VOPB>; 1887 resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>; 1888 reset-names = "axi", "ahb", "dclk"; 1889 status = "disabled"; 1890 1891 vopb_out: port { 1892 #address-cells = <1>; 1893 #size-cells = <0>; 1894 1895 vopb_out_edp: endpoint@0 { 1896 reg = <0>; 1897 remote-endpoint = <&edp_in_vopb>; 1898 }; 1899 1900 vopb_out_mipi: endpoint@1 { 1901 reg = <1>; 1902 remote-endpoint = <&mipi_in_vopb>; 1903 }; 1904 1905 vopb_out_hdmi: endpoint@2 { 1906 reg = <2>; 1907 remote-endpoint = <&hdmi_in_vopb>; 1908 }; 1909 1910 vopb_out_mipi1: endpoint@3 { 1911 reg = <3>; 1912 remote-endpoint = <&mipi1_in_vopb>; 1913 }; 1914 1915 vopb_out_dp: endpoint@4 { 1916 reg = <4>; 1917 remote-endpoint = <&dp_in_vopb>; 1918 }; 1919 }; 1920 }; 1921 1922 vopb_mmu: iommu@ff903f00 { 1923 compatible = "rockchip,iommu"; 1924 reg = <0x0 0xff903f00 0x0 0x100>; 1925 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>; 1926 clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>; 1927 clock-names = "aclk", "iface"; 1928 power-domains = <&power RK3399_PD_VOPB>; 1929 #iommu-cells = <0>; 1930 status = "disabled"; 1931 }; 1932 1933 isp0: isp0@ff910000 { 1934 compatible = "rockchip,rk3399-cif-isp"; 1935 reg = <0x0 0xff910000 0x0 0x4000>; 1936 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH 0>; 1937 clocks = <&cru SCLK_ISP0>, 1938 <&cru ACLK_ISP0_WRAPPER>, 1939 <&cru HCLK_ISP0_WRAPPER>; 1940 clock-names = "isp", "aclk", "hclk"; 1941 iommus = <&isp0_mmu>; 1942 phys = <&mipi_dphy_rx0>; 1943 phy-names = "dphy"; 1944 power-domains = <&power RK3399_PD_ISP0>; 1945 status = "disabled"; 1946 1947 ports { 1948 #address-cells = <1>; 1949 #size-cells = <0>; 1950 1951 port@0 { 1952 reg = <0>; 1953 #address-cells = <1>; 1954 #size-cells = <0>; 1955 }; 1956 }; 1957 }; 1958 1959 isp0_mmu: iommu@ff914000 { 1960 compatible = "rockchip,iommu"; 1961 reg = <0x0 0xff914000 0x0 0x100>, <0x0 0xff915000 0x0 0x100>; 1962 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH 0>; 1963 clocks = <&cru ACLK_ISP0_WRAPPER>, <&cru HCLK_ISP0_WRAPPER>; 1964 clock-names = "aclk", "iface"; 1965 #iommu-cells = <0>; 1966 power-domains = <&power RK3399_PD_ISP0>; 1967 rockchip,disable-mmu-reset; 1968 }; 1969 1970 isp1: isp1@ff920000 { 1971 compatible = "rockchip,rk3399-cif-isp"; 1972 reg = <0x0 0xff920000 0x0 0x4000>; 1973 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH 0>; 1974 clocks = <&cru SCLK_ISP1>, 1975 <&cru ACLK_ISP1_WRAPPER>, 1976 <&cru HCLK_ISP1_WRAPPER>; 1977 clock-names = "isp", "aclk", "hclk"; 1978 iommus = <&isp1_mmu>; 1979 phys = <&mipi_dsi1>; 1980 phy-names = "dphy"; 1981 power-domains = <&power RK3399_PD_ISP1>; 1982 status = "disabled"; 1983 1984 ports { 1985 #address-cells = <1>; 1986 #size-cells = <0>; 1987 1988 port@0 { 1989 reg = <0>; 1990 #address-cells = <1>; 1991 #size-cells = <0>; 1992 }; 1993 }; 1994 }; 1995 1996 isp1_mmu: iommu@ff924000 { 1997 compatible = "rockchip,iommu"; 1998 reg = <0x0 0xff924000 0x0 0x100>, <0x0 0xff925000 0x0 0x100>; 1999 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH 0>; 2000 clocks = <&cru ACLK_ISP1_WRAPPER>, <&cru HCLK_ISP1_WRAPPER>; 2001 clock-names = "aclk", "iface"; 2002 #iommu-cells = <0>; 2003 power-domains = <&power RK3399_PD_ISP1>; 2004 rockchip,disable-mmu-reset; 2005 }; 2006 2007 hdmi_sound: hdmi-sound { 2008 compatible = "simple-audio-card"; 2009 simple-audio-card,format = "i2s"; 2010 simple-audio-card,mclk-fs = <256>; 2011 simple-audio-card,name = "hdmi-sound"; 2012 status = "disabled"; 2013 2014 simple-audio-card,cpu { 2015 sound-dai = <&i2s2>; 2016 }; 2017 simple-audio-card,codec { 2018 sound-dai = <&hdmi>; 2019 }; 2020 }; 2021 2022 hdmi: hdmi@ff940000 { 2023 compatible = "rockchip,rk3399-dw-hdmi"; 2024 reg = <0x0 0xff940000 0x0 0x20000>; 2025 reg-io-width = <4>; 2026 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>; 2027 clocks = <&cru PCLK_HDMI_CTRL>, 2028 <&cru SCLK_HDMI_SFR>, 2029 <&cru SCLK_HDMI_CEC>, 2030 <&cru PCLK_VIO_GRF>, 2031 <&cru PLL_VPLL>; 2032 clock-names = "iahb", "isfr", "cec", "grf", "ref"; 2033 power-domains = <&power RK3399_PD_HDCP>; 2034 rockchip,grf = <&grf>; 2035 #sound-dai-cells = <0>; 2036 status = "disabled"; 2037 2038 ports { 2039 #address-cells = <1>; 2040 #size-cells = <0>; 2041 2042 hdmi_in: port@0 { 2043 reg = <0>; 2044 #address-cells = <1>; 2045 #size-cells = <0>; 2046 2047 hdmi_in_vopb: endpoint@0 { 2048 reg = <0>; 2049 remote-endpoint = <&vopb_out_hdmi>; 2050 }; 2051 hdmi_in_vopl: endpoint@1 { 2052 reg = <1>; 2053 remote-endpoint = <&vopl_out_hdmi>; 2054 }; 2055 }; 2056 2057 hdmi_out: port@1 { 2058 reg = <1>; 2059 }; 2060 }; 2061 }; 2062 2063 mipi_dsi: dsi@ff960000 { 2064 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; 2065 reg = <0x0 0xff960000 0x0 0x8000>; 2066 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>; 2067 clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI0>, 2068 <&cru SCLK_DPHY_TX0_CFG>, <&cru PCLK_VIO_GRF>; 2069 clock-names = "ref", "pclk", "phy_cfg", "grf"; 2070 power-domains = <&power RK3399_PD_VIO>; 2071 resets = <&cru SRST_P_MIPI_DSI0>; 2072 reset-names = "apb"; 2073 rockchip,grf = <&grf>; 2074 #address-cells = <1>; 2075 #size-cells = <0>; 2076 status = "disabled"; 2077 2078 ports { 2079 #address-cells = <1>; 2080 #size-cells = <0>; 2081 2082 mipi_in: port@0 { 2083 reg = <0>; 2084 #address-cells = <1>; 2085 #size-cells = <0>; 2086 2087 mipi_in_vopb: endpoint@0 { 2088 reg = <0>; 2089 remote-endpoint = <&vopb_out_mipi>; 2090 }; 2091 2092 mipi_in_vopl: endpoint@1 { 2093 reg = <1>; 2094 remote-endpoint = <&vopl_out_mipi>; 2095 }; 2096 }; 2097 2098 mipi_out: port@1 { 2099 reg = <1>; 2100 }; 2101 }; 2102 }; 2103 2104 mipi_dsi1: dsi@ff968000 { 2105 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"; 2106 reg = <0x0 0xff968000 0x0 0x8000>; 2107 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH 0>; 2108 clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI1>, 2109 <&cru SCLK_DPHY_TX1RX1_CFG>, <&cru PCLK_VIO_GRF>; 2110 clock-names = "ref", "pclk", "phy_cfg", "grf"; 2111 power-domains = <&power RK3399_PD_VIO>; 2112 resets = <&cru SRST_P_MIPI_DSI1>; 2113 reset-names = "apb"; 2114 rockchip,grf = <&grf>; 2115 #address-cells = <1>; 2116 #size-cells = <0>; 2117 #phy-cells = <0>; 2118 status = "disabled"; 2119 2120 ports { 2121 #address-cells = <1>; 2122 #size-cells = <0>; 2123 2124 mipi1_in: port@0 { 2125 reg = <0>; 2126 #address-cells = <1>; 2127 #size-cells = <0>; 2128 2129 mipi1_in_vopb: endpoint@0 { 2130 reg = <0>; 2131 remote-endpoint = <&vopb_out_mipi1>; 2132 }; 2133 2134 mipi1_in_vopl: endpoint@1 { 2135 reg = <1>; 2136 remote-endpoint = <&vopl_out_mipi1>; 2137 }; 2138 }; 2139 2140 mipi1_out: port@1 { 2141 reg = <1>; 2142 }; 2143 }; 2144 }; 2145 2146 edp: dp@ff970000 { 2147 compatible = "rockchip,rk3399-edp"; 2148 reg = <0x0 0xff970000 0x0 0x8000>; 2149 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>; 2150 clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>, <&cru PCLK_VIO_GRF>; 2151 clock-names = "dp", "pclk", "grf"; 2152 pinctrl-names = "default"; 2153 pinctrl-0 = <&edp_hpd>; 2154 power-domains = <&power RK3399_PD_EDP>; 2155 resets = <&cru SRST_P_EDP_CTRL>; 2156 reset-names = "dp"; 2157 rockchip,grf = <&grf>; 2158 status = "disabled"; 2159 2160 ports { 2161 #address-cells = <1>; 2162 #size-cells = <0>; 2163 2164 edp_in: port@0 { 2165 reg = <0>; 2166 #address-cells = <1>; 2167 #size-cells = <0>; 2168 2169 edp_in_vopb: endpoint@0 { 2170 reg = <0>; 2171 remote-endpoint = <&vopb_out_edp>; 2172 }; 2173 2174 edp_in_vopl: endpoint@1 { 2175 reg = <1>; 2176 remote-endpoint = <&vopl_out_edp>; 2177 }; 2178 }; 2179 2180 edp_out: port@1 { 2181 reg = <1>; 2182 }; 2183 }; 2184 }; 2185 2186 gpu: gpu@ff9a0000 { 2187 compatible = "rockchip,rk3399-mali", "arm,mali-t860"; 2188 reg = <0x0 0xff9a0000 0x0 0x10000>; 2189 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>, 2190 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>, 2191 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>; 2192 interrupt-names = "job", "mmu", "gpu"; 2193 clocks = <&cru ACLK_GPU>; 2194 #cooling-cells = <2>; 2195 dynamic-power-coefficient = <2640>; 2196 power-domains = <&power RK3399_PD_GPU>; 2197 status = "disabled"; 2198 }; 2199 2200 pinctrl: pinctrl { 2201 compatible = "rockchip,rk3399-pinctrl"; 2202 rockchip,grf = <&grf>; 2203 rockchip,pmu = <&pmugrf>; 2204 #address-cells = <2>; 2205 #size-cells = <2>; 2206 ranges; 2207 2208 gpio0: gpio@ff720000 { 2209 compatible = "rockchip,gpio-bank"; 2210 reg = <0x0 0xff720000 0x0 0x100>; 2211 clocks = <&pmucru PCLK_GPIO0_PMU>; 2212 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>; 2213 2214 gpio-controller; 2215 #gpio-cells = <0x2>; 2216 2217 interrupt-controller; 2218 #interrupt-cells = <0x2>; 2219 }; 2220 2221 gpio1: gpio@ff730000 { 2222 compatible = "rockchip,gpio-bank"; 2223 reg = <0x0 0xff730000 0x0 0x100>; 2224 clocks = <&pmucru PCLK_GPIO1_PMU>; 2225 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>; 2226 2227 gpio-controller; 2228 #gpio-cells = <0x2>; 2229 2230 interrupt-controller; 2231 #interrupt-cells = <0x2>; 2232 }; 2233 2234 gpio2: gpio@ff780000 { 2235 compatible = "rockchip,gpio-bank"; 2236 reg = <0x0 0xff780000 0x0 0x100>; 2237 clocks = <&cru PCLK_GPIO2>; 2238 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>; 2239 2240 gpio-controller; 2241 #gpio-cells = <0x2>; 2242 2243 interrupt-controller; 2244 #interrupt-cells = <0x2>; 2245 }; 2246 2247 gpio3: gpio@ff788000 { 2248 compatible = "rockchip,gpio-bank"; 2249 reg = <0x0 0xff788000 0x0 0x100>; 2250 clocks = <&cru PCLK_GPIO3>; 2251 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>; 2252 2253 gpio-controller; 2254 #gpio-cells = <0x2>; 2255 2256 interrupt-controller; 2257 #interrupt-cells = <0x2>; 2258 }; 2259 2260 gpio4: gpio@ff790000 { 2261 compatible = "rockchip,gpio-bank"; 2262 reg = <0x0 0xff790000 0x0 0x100>; 2263 clocks = <&cru PCLK_GPIO4>; 2264 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>; 2265 2266 gpio-controller; 2267 #gpio-cells = <0x2>; 2268 2269 interrupt-controller; 2270 #interrupt-cells = <0x2>; 2271 }; 2272 2273 pcfg_pull_up: pcfg-pull-up { 2274 bias-pull-up; 2275 }; 2276 2277 pcfg_pull_down: pcfg-pull-down { 2278 bias-pull-down; 2279 }; 2280 2281 pcfg_pull_none: pcfg-pull-none { 2282 bias-disable; 2283 }; 2284 2285 pcfg_pull_none_12ma: pcfg-pull-none-12ma { 2286 bias-disable; 2287 drive-strength = <12>; 2288 }; 2289 2290 pcfg_pull_none_13ma: pcfg-pull-none-13ma { 2291 bias-disable; 2292 drive-strength = <13>; 2293 }; 2294 2295 pcfg_pull_none_18ma: pcfg-pull-none-18ma { 2296 bias-disable; 2297 drive-strength = <18>; 2298 }; 2299 2300 pcfg_pull_none_20ma: pcfg-pull-none-20ma { 2301 bias-disable; 2302 drive-strength = <20>; 2303 }; 2304 2305 pcfg_pull_up_2ma: pcfg-pull-up-2ma { 2306 bias-pull-up; 2307 drive-strength = <2>; 2308 }; 2309 2310 pcfg_pull_up_8ma: pcfg-pull-up-8ma { 2311 bias-pull-up; 2312 drive-strength = <8>; 2313 }; 2314 2315 pcfg_pull_up_18ma: pcfg-pull-up-18ma { 2316 bias-pull-up; 2317 drive-strength = <18>; 2318 }; 2319 2320 pcfg_pull_up_20ma: pcfg-pull-up-20ma { 2321 bias-pull-up; 2322 drive-strength = <20>; 2323 }; 2324 2325 pcfg_pull_down_4ma: pcfg-pull-down-4ma { 2326 bias-pull-down; 2327 drive-strength = <4>; 2328 }; 2329 2330 pcfg_pull_down_8ma: pcfg-pull-down-8ma { 2331 bias-pull-down; 2332 drive-strength = <8>; 2333 }; 2334 2335 pcfg_pull_down_12ma: pcfg-pull-down-12ma { 2336 bias-pull-down; 2337 drive-strength = <12>; 2338 }; 2339 2340 pcfg_pull_down_18ma: pcfg-pull-down-18ma { 2341 bias-pull-down; 2342 drive-strength = <18>; 2343 }; 2344 2345 pcfg_pull_down_20ma: pcfg-pull-down-20ma { 2346 bias-pull-down; 2347 drive-strength = <20>; 2348 }; 2349 2350 pcfg_output_high: pcfg-output-high { 2351 output-high; 2352 }; 2353 2354 pcfg_output_low: pcfg-output-low { 2355 output-low; 2356 }; 2357 2358 pcfg_input_enable: pcfg-input-enable { 2359 input-enable; 2360 }; 2361 2362 pcfg_input_pull_up: pcfg-input-pull-up { 2363 input-enable; 2364 bias-pull-up; 2365 }; 2366 2367 pcfg_input_pull_down: pcfg-input-pull-down { 2368 input-enable; 2369 bias-pull-down; 2370 }; 2371 2372 clock { 2373 clk_32k: clk-32k { 2374 rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>; 2375 }; 2376 }; 2377 2378 cif { 2379 cif_clkin: cif-clkin { 2380 rockchip,pins = 2381 <2 RK_PB2 3 &pcfg_pull_none>; 2382 }; 2383 2384 cif_clkouta: cif-clkouta { 2385 rockchip,pins = 2386 <2 RK_PB3 3 &pcfg_pull_none>; 2387 }; 2388 }; 2389 2390 edp { 2391 edp_hpd: edp-hpd { 2392 rockchip,pins = 2393 <4 RK_PC7 2 &pcfg_pull_none>; 2394 }; 2395 }; 2396 2397 gmac { 2398 rgmii_pins: rgmii-pins { 2399 rockchip,pins = 2400 /* mac_txclk */ 2401 <3 RK_PC1 1 &pcfg_pull_none_13ma>, 2402 /* mac_rxclk */ 2403 <3 RK_PB6 1 &pcfg_pull_none>, 2404 /* mac_mdio */ 2405 <3 RK_PB5 1 &pcfg_pull_none>, 2406 /* mac_txen */ 2407 <3 RK_PB4 1 &pcfg_pull_none_13ma>, 2408 /* mac_clk */ 2409 <3 RK_PB3 1 &pcfg_pull_none>, 2410 /* mac_rxdv */ 2411 <3 RK_PB1 1 &pcfg_pull_none>, 2412 /* mac_mdc */ 2413 <3 RK_PB0 1 &pcfg_pull_none>, 2414 /* mac_rxd1 */ 2415 <3 RK_PA7 1 &pcfg_pull_none>, 2416 /* mac_rxd0 */ 2417 <3 RK_PA6 1 &pcfg_pull_none>, 2418 /* mac_txd1 */ 2419 <3 RK_PA5 1 &pcfg_pull_none_13ma>, 2420 /* mac_txd0 */ 2421 <3 RK_PA4 1 &pcfg_pull_none_13ma>, 2422 /* mac_rxd3 */ 2423 <3 RK_PA3 1 &pcfg_pull_none>, 2424 /* mac_rxd2 */ 2425 <3 RK_PA2 1 &pcfg_pull_none>, 2426 /* mac_txd3 */ 2427 <3 RK_PA1 1 &pcfg_pull_none_13ma>, 2428 /* mac_txd2 */ 2429 <3 RK_PA0 1 &pcfg_pull_none_13ma>; 2430 }; 2431 2432 rmii_pins: rmii-pins { 2433 rockchip,pins = 2434 /* mac_mdio */ 2435 <3 RK_PB5 1 &pcfg_pull_none>, 2436 /* mac_txen */ 2437 <3 RK_PB4 1 &pcfg_pull_none_13ma>, 2438 /* mac_clk */ 2439 <3 RK_PB3 1 &pcfg_pull_none>, 2440 /* mac_rxer */ 2441 <3 RK_PB2 1 &pcfg_pull_none>, 2442 /* mac_rxdv */ 2443 <3 RK_PB1 1 &pcfg_pull_none>, 2444 /* mac_mdc */ 2445 <3 RK_PB0 1 &pcfg_pull_none>, 2446 /* mac_rxd1 */ 2447 <3 RK_PA7 1 &pcfg_pull_none>, 2448 /* mac_rxd0 */ 2449 <3 RK_PA6 1 &pcfg_pull_none>, 2450 /* mac_txd1 */ 2451 <3 RK_PA5 1 &pcfg_pull_none_13ma>, 2452 /* mac_txd0 */ 2453 <3 RK_PA4 1 &pcfg_pull_none_13ma>; 2454 }; 2455 }; 2456 2457 i2c0 { 2458 i2c0_xfer: i2c0-xfer { 2459 rockchip,pins = 2460 <1 RK_PB7 2 &pcfg_pull_none>, 2461 <1 RK_PC0 2 &pcfg_pull_none>; 2462 }; 2463 }; 2464 2465 i2c1 { 2466 i2c1_xfer: i2c1-xfer { 2467 rockchip,pins = 2468 <4 RK_PA2 1 &pcfg_pull_none>, 2469 <4 RK_PA1 1 &pcfg_pull_none>; 2470 }; 2471 }; 2472 2473 i2c2 { 2474 i2c2_xfer: i2c2-xfer { 2475 rockchip,pins = 2476 <2 RK_PA1 2 &pcfg_pull_none_12ma>, 2477 <2 RK_PA0 2 &pcfg_pull_none_12ma>; 2478 }; 2479 }; 2480 2481 i2c3 { 2482 i2c3_xfer: i2c3-xfer { 2483 rockchip,pins = 2484 <4 RK_PC1 1 &pcfg_pull_none>, 2485 <4 RK_PC0 1 &pcfg_pull_none>; 2486 }; 2487 }; 2488 2489 i2c4 { 2490 i2c4_xfer: i2c4-xfer { 2491 rockchip,pins = 2492 <1 RK_PB4 1 &pcfg_pull_none>, 2493 <1 RK_PB3 1 &pcfg_pull_none>; 2494 }; 2495 }; 2496 2497 i2c5 { 2498 i2c5_xfer: i2c5-xfer { 2499 rockchip,pins = 2500 <3 RK_PB3 2 &pcfg_pull_none>, 2501 <3 RK_PB2 2 &pcfg_pull_none>; 2502 }; 2503 }; 2504 2505 i2c6 { 2506 i2c6_xfer: i2c6-xfer { 2507 rockchip,pins = 2508 <2 RK_PB2 2 &pcfg_pull_none>, 2509 <2 RK_PB1 2 &pcfg_pull_none>; 2510 }; 2511 }; 2512 2513 i2c7 { 2514 i2c7_xfer: i2c7-xfer { 2515 rockchip,pins = 2516 <2 RK_PB0 2 &pcfg_pull_none>, 2517 <2 RK_PA7 2 &pcfg_pull_none>; 2518 }; 2519 }; 2520 2521 i2c8 { 2522 i2c8_xfer: i2c8-xfer { 2523 rockchip,pins = 2524 <1 RK_PC5 1 &pcfg_pull_none>, 2525 <1 RK_PC4 1 &pcfg_pull_none>; 2526 }; 2527 }; 2528 2529 i2s0 { 2530 i2s0_2ch_bus: i2s0-2ch-bus { 2531 rockchip,pins = 2532 <3 RK_PD0 1 &pcfg_pull_none>, 2533 <3 RK_PD1 1 &pcfg_pull_none>, 2534 <3 RK_PD2 1 &pcfg_pull_none>, 2535 <3 RK_PD3 1 &pcfg_pull_none>, 2536 <3 RK_PD7 1 &pcfg_pull_none>, 2537 <4 RK_PA0 1 &pcfg_pull_none>; 2538 }; 2539 2540 i2s0_2ch_bus_bclk_off: i2s0-2ch-bus-bclk-off { 2541 rockchip,pins = 2542 <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>, 2543 <3 RK_PD1 1 &pcfg_pull_none>, 2544 <3 RK_PD2 1 &pcfg_pull_none>, 2545 <3 RK_PD3 1 &pcfg_pull_none>, 2546 <3 RK_PD7 1 &pcfg_pull_none>, 2547 <4 RK_PA0 1 &pcfg_pull_none>; 2548 }; 2549 2550 i2s0_8ch_bus: i2s0-8ch-bus { 2551 rockchip,pins = 2552 <3 RK_PD0 1 &pcfg_pull_none>, 2553 <3 RK_PD1 1 &pcfg_pull_none>, 2554 <3 RK_PD2 1 &pcfg_pull_none>, 2555 <3 RK_PD3 1 &pcfg_pull_none>, 2556 <3 RK_PD4 1 &pcfg_pull_none>, 2557 <3 RK_PD5 1 &pcfg_pull_none>, 2558 <3 RK_PD6 1 &pcfg_pull_none>, 2559 <3 RK_PD7 1 &pcfg_pull_none>, 2560 <4 RK_PA0 1 &pcfg_pull_none>; 2561 }; 2562 2563 i2s0_8ch_bus_bclk_off: i2s0-8ch-bus-bclk-off { 2564 rockchip,pins = 2565 <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>, 2566 <3 RK_PD1 1 &pcfg_pull_none>, 2567 <3 RK_PD2 1 &pcfg_pull_none>, 2568 <3 RK_PD3 1 &pcfg_pull_none>, 2569 <3 RK_PD4 1 &pcfg_pull_none>, 2570 <3 RK_PD5 1 &pcfg_pull_none>, 2571 <3 RK_PD6 1 &pcfg_pull_none>, 2572 <3 RK_PD7 1 &pcfg_pull_none>, 2573 <4 RK_PA0 1 &pcfg_pull_none>; 2574 }; 2575 }; 2576 2577 i2s1 { 2578 i2s1_2ch_bus: i2s1-2ch-bus { 2579 rockchip,pins = 2580 <4 RK_PA3 1 &pcfg_pull_none>, 2581 <4 RK_PA4 1 &pcfg_pull_none>, 2582 <4 RK_PA5 1 &pcfg_pull_none>, 2583 <4 RK_PA6 1 &pcfg_pull_none>, 2584 <4 RK_PA7 1 &pcfg_pull_none>; 2585 }; 2586 2587 i2s1_2ch_bus_bclk_off: i2s1-2ch-bus-bclk-off { 2588 rockchip,pins = 2589 <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>, 2590 <4 RK_PA4 1 &pcfg_pull_none>, 2591 <4 RK_PA5 1 &pcfg_pull_none>, 2592 <4 RK_PA6 1 &pcfg_pull_none>, 2593 <4 RK_PA7 1 &pcfg_pull_none>; 2594 }; 2595 }; 2596 2597 sdio0 { 2598 sdio0_bus1: sdio0-bus1 { 2599 rockchip,pins = 2600 <2 RK_PC4 1 &pcfg_pull_up>; 2601 }; 2602 2603 sdio0_bus4: sdio0-bus4 { 2604 rockchip,pins = 2605 <2 RK_PC4 1 &pcfg_pull_up>, 2606 <2 RK_PC5 1 &pcfg_pull_up>, 2607 <2 RK_PC6 1 &pcfg_pull_up>, 2608 <2 RK_PC7 1 &pcfg_pull_up>; 2609 }; 2610 2611 sdio0_cmd: sdio0-cmd { 2612 rockchip,pins = 2613 <2 RK_PD0 1 &pcfg_pull_up>; 2614 }; 2615 2616 sdio0_clk: sdio0-clk { 2617 rockchip,pins = 2618 <2 RK_PD1 1 &pcfg_pull_none>; 2619 }; 2620 2621 sdio0_cd: sdio0-cd { 2622 rockchip,pins = 2623 <2 RK_PD2 1 &pcfg_pull_up>; 2624 }; 2625 2626 sdio0_pwr: sdio0-pwr { 2627 rockchip,pins = 2628 <2 RK_PD3 1 &pcfg_pull_up>; 2629 }; 2630 2631 sdio0_bkpwr: sdio0-bkpwr { 2632 rockchip,pins = 2633 <2 RK_PD4 1 &pcfg_pull_up>; 2634 }; 2635 2636 sdio0_wp: sdio0-wp { 2637 rockchip,pins = 2638 <0 RK_PA3 1 &pcfg_pull_up>; 2639 }; 2640 2641 sdio0_int: sdio0-int { 2642 rockchip,pins = 2643 <0 RK_PA4 1 &pcfg_pull_up>; 2644 }; 2645 }; 2646 2647 sdmmc { 2648 sdmmc_bus1: sdmmc-bus1 { 2649 rockchip,pins = 2650 <4 RK_PB0 1 &pcfg_pull_up>; 2651 }; 2652 2653 sdmmc_bus4: sdmmc-bus4 { 2654 rockchip,pins = 2655 <4 RK_PB0 1 &pcfg_pull_up>, 2656 <4 RK_PB1 1 &pcfg_pull_up>, 2657 <4 RK_PB2 1 &pcfg_pull_up>, 2658 <4 RK_PB3 1 &pcfg_pull_up>; 2659 }; 2660 2661 sdmmc_clk: sdmmc-clk { 2662 rockchip,pins = 2663 <4 RK_PB4 1 &pcfg_pull_none>; 2664 }; 2665 2666 sdmmc_cmd: sdmmc-cmd { 2667 rockchip,pins = 2668 <4 RK_PB5 1 &pcfg_pull_up>; 2669 }; 2670 2671 sdmmc_cd: sdmmc-cd { 2672 rockchip,pins = 2673 <0 RK_PA7 1 &pcfg_pull_up>; 2674 }; 2675 2676 sdmmc_wp: sdmmc-wp { 2677 rockchip,pins = 2678 <0 RK_PB0 1 &pcfg_pull_up>; 2679 }; 2680 }; 2681 2682 suspend { 2683 ap_pwroff: ap-pwroff { 2684 rockchip,pins = <1 RK_PA5 1 &pcfg_pull_none>; 2685 }; 2686 2687 ddrio_pwroff: ddrio-pwroff { 2688 rockchip,pins = <0 RK_PA1 1 &pcfg_pull_none>; 2689 }; 2690 }; 2691 2692 spdif { 2693 spdif_bus: spdif-bus { 2694 rockchip,pins = 2695 <4 RK_PC5 1 &pcfg_pull_none>; 2696 }; 2697 2698 spdif_bus_1: spdif-bus-1 { 2699 rockchip,pins = 2700 <3 RK_PC0 3 &pcfg_pull_none>; 2701 }; 2702 }; 2703 2704 spi0 { 2705 spi0_clk: spi0-clk { 2706 rockchip,pins = 2707 <3 RK_PA6 2 &pcfg_pull_up>; 2708 }; 2709 spi0_cs0: spi0-cs0 { 2710 rockchip,pins = 2711 <3 RK_PA7 2 &pcfg_pull_up>; 2712 }; 2713 spi0_cs1: spi0-cs1 { 2714 rockchip,pins = 2715 <3 RK_PB0 2 &pcfg_pull_up>; 2716 }; 2717 spi0_tx: spi0-tx { 2718 rockchip,pins = 2719 <3 RK_PA5 2 &pcfg_pull_up>; 2720 }; 2721 spi0_rx: spi0-rx { 2722 rockchip,pins = 2723 <3 RK_PA4 2 &pcfg_pull_up>; 2724 }; 2725 }; 2726 2727 spi1 { 2728 spi1_clk: spi1-clk { 2729 rockchip,pins = 2730 <1 RK_PB1 2 &pcfg_pull_up>; 2731 }; 2732 spi1_cs0: spi1-cs0 { 2733 rockchip,pins = 2734 <1 RK_PB2 2 &pcfg_pull_up>; 2735 }; 2736 spi1_rx: spi1-rx { 2737 rockchip,pins = 2738 <1 RK_PA7 2 &pcfg_pull_up>; 2739 }; 2740 spi1_tx: spi1-tx { 2741 rockchip,pins = 2742 <1 RK_PB0 2 &pcfg_pull_up>; 2743 }; 2744 }; 2745 2746 spi2 { 2747 spi2_clk: spi2-clk { 2748 rockchip,pins = 2749 <2 RK_PB3 1 &pcfg_pull_up>; 2750 }; 2751 spi2_cs0: spi2-cs0 { 2752 rockchip,pins = 2753 <2 RK_PB4 1 &pcfg_pull_up>; 2754 }; 2755 spi2_rx: spi2-rx { 2756 rockchip,pins = 2757 <2 RK_PB1 1 &pcfg_pull_up>; 2758 }; 2759 spi2_tx: spi2-tx { 2760 rockchip,pins = 2761 <2 RK_PB2 1 &pcfg_pull_up>; 2762 }; 2763 }; 2764 2765 spi3 { 2766 spi3_clk: spi3-clk { 2767 rockchip,pins = 2768 <1 RK_PC1 1 &pcfg_pull_up>; 2769 }; 2770 spi3_cs0: spi3-cs0 { 2771 rockchip,pins = 2772 <1 RK_PC2 1 &pcfg_pull_up>; 2773 }; 2774 spi3_rx: spi3-rx { 2775 rockchip,pins = 2776 <1 RK_PB7 1 &pcfg_pull_up>; 2777 }; 2778 spi3_tx: spi3-tx { 2779 rockchip,pins = 2780 <1 RK_PC0 1 &pcfg_pull_up>; 2781 }; 2782 }; 2783 2784 spi4 { 2785 spi4_clk: spi4-clk { 2786 rockchip,pins = 2787 <3 RK_PA2 2 &pcfg_pull_up>; 2788 }; 2789 spi4_cs0: spi4-cs0 { 2790 rockchip,pins = 2791 <3 RK_PA3 2 &pcfg_pull_up>; 2792 }; 2793 spi4_rx: spi4-rx { 2794 rockchip,pins = 2795 <3 RK_PA0 2 &pcfg_pull_up>; 2796 }; 2797 spi4_tx: spi4-tx { 2798 rockchip,pins = 2799 <3 RK_PA1 2 &pcfg_pull_up>; 2800 }; 2801 }; 2802 2803 spi5 { 2804 spi5_clk: spi5-clk { 2805 rockchip,pins = 2806 <2 RK_PC6 2 &pcfg_pull_up>; 2807 }; 2808 spi5_cs0: spi5-cs0 { 2809 rockchip,pins = 2810 <2 RK_PC7 2 &pcfg_pull_up>; 2811 }; 2812 spi5_rx: spi5-rx { 2813 rockchip,pins = 2814 <2 RK_PC4 2 &pcfg_pull_up>; 2815 }; 2816 spi5_tx: spi5-tx { 2817 rockchip,pins = 2818 <2 RK_PC5 2 &pcfg_pull_up>; 2819 }; 2820 }; 2821 2822 testclk { 2823 test_clkout0: test-clkout0 { 2824 rockchip,pins = 2825 <0 RK_PA0 1 &pcfg_pull_none>; 2826 }; 2827 2828 test_clkout1: test-clkout1 { 2829 rockchip,pins = 2830 <2 RK_PD1 2 &pcfg_pull_none>; 2831 }; 2832 2833 test_clkout2: test-clkout2 { 2834 rockchip,pins = 2835 <0 RK_PB0 3 &pcfg_pull_none>; 2836 }; 2837 }; 2838 2839 tsadc { 2840 otp_pin: otp-pin { 2841 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 2842 }; 2843 2844 otp_out: otp-out { 2845 rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none>; 2846 }; 2847 }; 2848 2849 uart0 { 2850 uart0_xfer: uart0-xfer { 2851 rockchip,pins = 2852 <2 RK_PC0 1 &pcfg_pull_up>, 2853 <2 RK_PC1 1 &pcfg_pull_none>; 2854 }; 2855 2856 uart0_cts: uart0-cts { 2857 rockchip,pins = 2858 <2 RK_PC2 1 &pcfg_pull_none>; 2859 }; 2860 2861 uart0_rts: uart0-rts { 2862 rockchip,pins = 2863 <2 RK_PC3 1 &pcfg_pull_none>; 2864 }; 2865 }; 2866 2867 uart1 { 2868 uart1_xfer: uart1-xfer { 2869 rockchip,pins = 2870 <3 RK_PB4 2 &pcfg_pull_up>, 2871 <3 RK_PB5 2 &pcfg_pull_none>; 2872 }; 2873 }; 2874 2875 uart2a { 2876 uart2a_xfer: uart2a-xfer { 2877 rockchip,pins = 2878 <4 RK_PB0 2 &pcfg_pull_up>, 2879 <4 RK_PB1 2 &pcfg_pull_none>; 2880 }; 2881 }; 2882 2883 uart2b { 2884 uart2b_xfer: uart2b-xfer { 2885 rockchip,pins = 2886 <4 RK_PC0 2 &pcfg_pull_up>, 2887 <4 RK_PC1 2 &pcfg_pull_none>; 2888 }; 2889 }; 2890 2891 uart2c { 2892 uart2c_xfer: uart2c-xfer { 2893 rockchip,pins = 2894 <4 RK_PC3 1 &pcfg_pull_up>, 2895 <4 RK_PC4 1 &pcfg_pull_none>; 2896 }; 2897 }; 2898 2899 uart3 { 2900 uart3_xfer: uart3-xfer { 2901 rockchip,pins = 2902 <3 RK_PB6 2 &pcfg_pull_up>, 2903 <3 RK_PB7 2 &pcfg_pull_none>; 2904 }; 2905 2906 uart3_cts: uart3-cts { 2907 rockchip,pins = 2908 <3 RK_PC0 2 &pcfg_pull_none>; 2909 }; 2910 2911 uart3_rts: uart3-rts { 2912 rockchip,pins = 2913 <3 RK_PC1 2 &pcfg_pull_none>; 2914 }; 2915 }; 2916 2917 uart4 { 2918 uart4_xfer: uart4-xfer { 2919 rockchip,pins = 2920 <1 RK_PA7 1 &pcfg_pull_up>, 2921 <1 RK_PB0 1 &pcfg_pull_none>; 2922 }; 2923 }; 2924 2925 uarthdcp { 2926 uarthdcp_xfer: uarthdcp-xfer { 2927 rockchip,pins = 2928 <4 RK_PC5 2 &pcfg_pull_up>, 2929 <4 RK_PC6 2 &pcfg_pull_none>; 2930 }; 2931 }; 2932 2933 pwm0 { 2934 pwm0_pin: pwm0-pin { 2935 rockchip,pins = 2936 <4 RK_PC2 1 &pcfg_pull_none>; 2937 }; 2938 2939 pwm0_pin_pull_down: pwm0-pin-pull-down { 2940 rockchip,pins = 2941 <4 RK_PC2 1 &pcfg_pull_down>; 2942 }; 2943 2944 vop0_pwm_pin: vop0-pwm-pin { 2945 rockchip,pins = 2946 <4 RK_PC2 2 &pcfg_pull_none>; 2947 }; 2948 2949 vop1_pwm_pin: vop1-pwm-pin { 2950 rockchip,pins = 2951 <4 RK_PC2 3 &pcfg_pull_none>; 2952 }; 2953 }; 2954 2955 pwm1 { 2956 pwm1_pin: pwm1-pin { 2957 rockchip,pins = 2958 <4 RK_PC6 1 &pcfg_pull_none>; 2959 }; 2960 2961 pwm1_pin_pull_down: pwm1-pin-pull-down { 2962 rockchip,pins = 2963 <4 RK_PC6 1 &pcfg_pull_down>; 2964 }; 2965 }; 2966 2967 pwm2 { 2968 pwm2_pin: pwm2-pin { 2969 rockchip,pins = 2970 <1 RK_PC3 1 &pcfg_pull_none>; 2971 }; 2972 2973 pwm2_pin_pull_down: pwm2-pin-pull-down { 2974 rockchip,pins = 2975 <1 RK_PC3 1 &pcfg_pull_down>; 2976 }; 2977 }; 2978 2979 pwm3a { 2980 pwm3a_pin: pwm3a-pin { 2981 rockchip,pins = 2982 <0 RK_PA6 1 &pcfg_pull_none>; 2983 }; 2984 }; 2985 2986 pwm3b { 2987 pwm3b_pin: pwm3b-pin { 2988 rockchip,pins = 2989 <1 RK_PB6 1 &pcfg_pull_none>; 2990 }; 2991 }; 2992 2993 hdmi { 2994 hdmi_i2c_xfer: hdmi-i2c-xfer { 2995 rockchip,pins = 2996 <4 RK_PC1 3 &pcfg_pull_none>, 2997 <4 RK_PC0 3 &pcfg_pull_none>; 2998 }; 2999 3000 hdmi_cec: hdmi-cec { 3001 rockchip,pins = 3002 <4 RK_PC7 1 &pcfg_pull_none>; 3003 }; 3004 }; 3005 3006 pcie { 3007 pcie_clkreqn_cpm: pci-clkreqn-cpm { 3008 rockchip,pins = 3009 <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 3010 }; 3011 3012 pcie_clkreqnb_cpm: pci-clkreqnb-cpm { 3013 rockchip,pins = 3014 <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 3015 }; 3016 }; 3017 3018 }; 3019 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.