1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de> 4 */ 5 6#include <dt-bindings/clock/rk3368-cru.h> 7#include <dt-bindings/gpio/gpio.h> 8#include <dt-bindings/interrupt-controller/irq.h> 9#include <dt-bindings/interrupt-controller/arm-gic.h> 10#include <dt-bindings/pinctrl/rockchip.h> 11#include <dt-bindings/power/rk3368-power.h> 12#include <dt-bindings/soc/rockchip,boot-mode.h> 13#include <dt-bindings/thermal/thermal.h> 14 15/ { 16 compatible = "rockchip,rk3368"; 17 interrupt-parent = <&gic>; 18 #address-cells = <2>; 19 #size-cells = <2>; 20 21 aliases { 22 ethernet0 = &gmac; 23 i2c0 = &i2c0; 24 i2c1 = &i2c1; 25 i2c2 = &i2c2; 26 i2c3 = &i2c3; 27 i2c4 = &i2c4; 28 i2c5 = &i2c5; 29 serial0 = &uart0; 30 serial1 = &uart1; 31 serial2 = &uart2; 32 serial3 = &uart3; 33 serial4 = &uart4; 34 spi0 = &spi0; 35 spi1 = &spi1; 36 spi2 = &spi2; 37 }; 38 39 cpus { 40 #address-cells = <0x2>; 41 #size-cells = <0x0>; 42 43 cpu-map { 44 cluster0 { 45 core0 { 46 cpu = <&cpu_b0>; 47 }; 48 core1 { 49 cpu = <&cpu_b1>; 50 }; 51 core2 { 52 cpu = <&cpu_b2>; 53 }; 54 core3 { 55 cpu = <&cpu_b3>; 56 }; 57 }; 58 59 cluster1 { 60 core0 { 61 cpu = <&cpu_l0>; 62 }; 63 core1 { 64 cpu = <&cpu_l1>; 65 }; 66 core2 { 67 cpu = <&cpu_l2>; 68 }; 69 core3 { 70 cpu = <&cpu_l3>; 71 }; 72 }; 73 }; 74 75 cpu_l0: cpu@0 { 76 device_type = "cpu"; 77 compatible = "arm,cortex-a53"; 78 reg = <0x0 0x0>; 79 enable-method = "psci"; 80 #cooling-cells = <2>; /* min followed by max */ 81 }; 82 83 cpu_l1: cpu@1 { 84 device_type = "cpu"; 85 compatible = "arm,cortex-a53"; 86 reg = <0x0 0x1>; 87 enable-method = "psci"; 88 #cooling-cells = <2>; /* min followed by max */ 89 }; 90 91 cpu_l2: cpu@2 { 92 device_type = "cpu"; 93 compatible = "arm,cortex-a53"; 94 reg = <0x0 0x2>; 95 enable-method = "psci"; 96 #cooling-cells = <2>; /* min followed by max */ 97 }; 98 99 cpu_l3: cpu@3 { 100 device_type = "cpu"; 101 compatible = "arm,cortex-a53"; 102 reg = <0x0 0x3>; 103 enable-method = "psci"; 104 #cooling-cells = <2>; /* min followed by max */ 105 }; 106 107 cpu_b0: cpu@100 { 108 device_type = "cpu"; 109 compatible = "arm,cortex-a53"; 110 reg = <0x0 0x100>; 111 enable-method = "psci"; 112 #cooling-cells = <2>; /* min followed by max */ 113 }; 114 115 cpu_b1: cpu@101 { 116 device_type = "cpu"; 117 compatible = "arm,cortex-a53"; 118 reg = <0x0 0x101>; 119 enable-method = "psci"; 120 #cooling-cells = <2>; /* min followed by max */ 121 }; 122 123 cpu_b2: cpu@102 { 124 device_type = "cpu"; 125 compatible = "arm,cortex-a53"; 126 reg = <0x0 0x102>; 127 enable-method = "psci"; 128 #cooling-cells = <2>; /* min followed by max */ 129 }; 130 131 cpu_b3: cpu@103 { 132 device_type = "cpu"; 133 compatible = "arm,cortex-a53"; 134 reg = <0x0 0x103>; 135 enable-method = "psci"; 136 #cooling-cells = <2>; /* min followed by max */ 137 }; 138 }; 139 140 arm-pmu { 141 compatible = "arm,armv8-pmuv3"; 142 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>, 143 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, 144 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>, 145 <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>, 146 <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, 147 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, 148 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, 149 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; 150 interrupt-affinity = <&cpu_l0>, <&cpu_l1>, <&cpu_l2>, 151 <&cpu_l3>, <&cpu_b0>, <&cpu_b1>, 152 <&cpu_b2>, <&cpu_b3>; 153 }; 154 155 psci { 156 compatible = "arm,psci-0.2"; 157 method = "smc"; 158 }; 159 160 timer { 161 compatible = "arm,armv8-timer"; 162 interrupts = <GIC_PPI 13 163 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>, 164 <GIC_PPI 14 165 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>, 166 <GIC_PPI 11 167 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>, 168 <GIC_PPI 10 169 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; 170 }; 171 172 xin24m: oscillator { 173 compatible = "fixed-clock"; 174 clock-frequency = <24000000>; 175 clock-output-names = "xin24m"; 176 #clock-cells = <0>; 177 }; 178 179 sdmmc: mmc@ff0c0000 { 180 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc"; 181 reg = <0x0 0xff0c0000 0x0 0x4000>; 182 max-frequency = <150000000>; 183 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, 184 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; 185 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 186 fifo-depth = <0x100>; 187 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 188 resets = <&cru SRST_MMC0>; 189 reset-names = "reset"; 190 status = "disabled"; 191 }; 192 193 sdio0: mmc@ff0d0000 { 194 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc"; 195 reg = <0x0 0xff0d0000 0x0 0x4000>; 196 max-frequency = <150000000>; 197 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>, 198 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>; 199 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 200 fifo-depth = <0x100>; 201 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; 202 resets = <&cru SRST_SDIO0>; 203 reset-names = "reset"; 204 status = "disabled"; 205 }; 206 207 emmc: mmc@ff0f0000 { 208 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc"; 209 reg = <0x0 0xff0f0000 0x0 0x4000>; 210 max-frequency = <150000000>; 211 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, 212 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; 213 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 214 fifo-depth = <0x100>; 215 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; 216 resets = <&cru SRST_EMMC>; 217 reset-names = "reset"; 218 status = "disabled"; 219 }; 220 221 saradc: saradc@ff100000 { 222 compatible = "rockchip,saradc"; 223 reg = <0x0 0xff100000 0x0 0x100>; 224 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; 225 #io-channel-cells = <1>; 226 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; 227 clock-names = "saradc", "apb_pclk"; 228 resets = <&cru SRST_SARADC>; 229 reset-names = "saradc-apb"; 230 status = "disabled"; 231 }; 232 233 spi0: spi@ff110000 { 234 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi"; 235 reg = <0x0 0xff110000 0x0 0x1000>; 236 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; 237 clock-names = "spiclk", "apb_pclk"; 238 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; 239 pinctrl-names = "default"; 240 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>; 241 #address-cells = <1>; 242 #size-cells = <0>; 243 status = "disabled"; 244 }; 245 246 spi1: spi@ff120000 { 247 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi"; 248 reg = <0x0 0xff120000 0x0 0x1000>; 249 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>; 250 clock-names = "spiclk", "apb_pclk"; 251 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 252 pinctrl-names = "default"; 253 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>; 254 #address-cells = <1>; 255 #size-cells = <0>; 256 status = "disabled"; 257 }; 258 259 spi2: spi@ff130000 { 260 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi"; 261 reg = <0x0 0xff130000 0x0 0x1000>; 262 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>; 263 clock-names = "spiclk", "apb_pclk"; 264 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 265 pinctrl-names = "default"; 266 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>; 267 #address-cells = <1>; 268 #size-cells = <0>; 269 status = "disabled"; 270 }; 271 272 i2c2: i2c@ff140000 { 273 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c"; 274 reg = <0x0 0xff140000 0x0 0x1000>; 275 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 276 #address-cells = <1>; 277 #size-cells = <0>; 278 clock-names = "i2c"; 279 clocks = <&cru PCLK_I2C2>; 280 pinctrl-names = "default"; 281 pinctrl-0 = <&i2c2_xfer>; 282 status = "disabled"; 283 }; 284 285 i2c3: i2c@ff150000 { 286 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c"; 287 reg = <0x0 0xff150000 0x0 0x1000>; 288 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; 289 #address-cells = <1>; 290 #size-cells = <0>; 291 clock-names = "i2c"; 292 clocks = <&cru PCLK_I2C3>; 293 pinctrl-names = "default"; 294 pinctrl-0 = <&i2c3_xfer>; 295 status = "disabled"; 296 }; 297 298 i2c4: i2c@ff160000 { 299 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c"; 300 reg = <0x0 0xff160000 0x0 0x1000>; 301 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>; 302 #address-cells = <1>; 303 #size-cells = <0>; 304 clock-names = "i2c"; 305 clocks = <&cru PCLK_I2C4>; 306 pinctrl-names = "default"; 307 pinctrl-0 = <&i2c4_xfer>; 308 status = "disabled"; 309 }; 310 311 i2c5: i2c@ff170000 { 312 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c"; 313 reg = <0x0 0xff170000 0x0 0x1000>; 314 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; 315 #address-cells = <1>; 316 #size-cells = <0>; 317 clock-names = "i2c"; 318 clocks = <&cru PCLK_I2C5>; 319 pinctrl-names = "default"; 320 pinctrl-0 = <&i2c5_xfer>; 321 status = "disabled"; 322 }; 323 324 uart0: serial@ff180000 { 325 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart"; 326 reg = <0x0 0xff180000 0x0 0x100>; 327 clock-frequency = <24000000>; 328 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; 329 clock-names = "baudclk", "apb_pclk"; 330 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; 331 reg-shift = <2>; 332 reg-io-width = <4>; 333 status = "disabled"; 334 }; 335 336 uart1: serial@ff190000 { 337 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart"; 338 reg = <0x0 0xff190000 0x0 0x100>; 339 clock-frequency = <24000000>; 340 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; 341 clock-names = "baudclk", "apb_pclk"; 342 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; 343 reg-shift = <2>; 344 reg-io-width = <4>; 345 status = "disabled"; 346 }; 347 348 uart3: serial@ff1b0000 { 349 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart"; 350 reg = <0x0 0xff1b0000 0x0 0x100>; 351 clock-frequency = <24000000>; 352 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>; 353 clock-names = "baudclk", "apb_pclk"; 354 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; 355 reg-shift = <2>; 356 reg-io-width = <4>; 357 status = "disabled"; 358 }; 359 360 uart4: serial@ff1c0000 { 361 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart"; 362 reg = <0x0 0xff1c0000 0x0 0x100>; 363 clock-frequency = <24000000>; 364 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>; 365 clock-names = "baudclk", "apb_pclk"; 366 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; 367 reg-shift = <2>; 368 reg-io-width = <4>; 369 status = "disabled"; 370 }; 371 372 dmac_peri: dma-controller@ff250000 { 373 compatible = "arm,pl330", "arm,primecell"; 374 reg = <0x0 0xff250000 0x0 0x4000>; 375 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>, 376 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 377 #dma-cells = <1>; 378 arm,pl330-broken-no-flushp; 379 arm,pl330-periph-burst; 380 clocks = <&cru ACLK_DMAC_PERI>; 381 clock-names = "apb_pclk"; 382 }; 383 384 thermal-zones { 385 cpu_thermal: cpu-thermal { 386 polling-delay-passive = <100>; /* milliseconds */ 387 polling-delay = <5000>; /* milliseconds */ 388 389 thermal-sensors = <&tsadc 0>; 390 391 trips { 392 cpu_alert0: cpu_alert0 { 393 temperature = <75000>; /* millicelsius */ 394 hysteresis = <2000>; /* millicelsius */ 395 type = "passive"; 396 }; 397 cpu_alert1: cpu_alert1 { 398 temperature = <80000>; /* millicelsius */ 399 hysteresis = <2000>; /* millicelsius */ 400 type = "passive"; 401 }; 402 cpu_crit: cpu_crit { 403 temperature = <95000>; /* millicelsius */ 404 hysteresis = <2000>; /* millicelsius */ 405 type = "critical"; 406 }; 407 }; 408 409 cooling-maps { 410 map0 { 411 trip = <&cpu_alert0>; 412 cooling-device = 413 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 414 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 415 <&cpu_b2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 416 <&cpu_b3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 417 }; 418 map1 { 419 trip = <&cpu_alert1>; 420 cooling-device = 421 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 422 <&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 423 <&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 424 <&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 425 }; 426 }; 427 }; 428 429 gpu_thermal: gpu-thermal { 430 polling-delay-passive = <100>; /* milliseconds */ 431 polling-delay = <5000>; /* milliseconds */ 432 433 thermal-sensors = <&tsadc 1>; 434 435 trips { 436 gpu_alert0: gpu_alert0 { 437 temperature = <80000>; /* millicelsius */ 438 hysteresis = <2000>; /* millicelsius */ 439 type = "passive"; 440 }; 441 gpu_crit: gpu_crit { 442 temperature = <115000>; /* millicelsius */ 443 hysteresis = <2000>; /* millicelsius */ 444 type = "critical"; 445 }; 446 }; 447 448 cooling-maps { 449 map0 { 450 trip = <&gpu_alert0>; 451 cooling-device = 452 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 453 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 454 <&cpu_b2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 455 <&cpu_b3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 456 }; 457 }; 458 }; 459 }; 460 461 tsadc: tsadc@ff280000 { 462 compatible = "rockchip,rk3368-tsadc"; 463 reg = <0x0 0xff280000 0x0 0x100>; 464 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 465 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; 466 clock-names = "tsadc", "apb_pclk"; 467 resets = <&cru SRST_TSADC>; 468 reset-names = "tsadc-apb"; 469 pinctrl-names = "init", "default", "sleep"; 470 pinctrl-0 = <&otp_pin>; 471 pinctrl-1 = <&otp_out>; 472 pinctrl-2 = <&otp_pin>; 473 #thermal-sensor-cells = <1>; 474 rockchip,hw-tshut-temp = <95000>; 475 status = "disabled"; 476 }; 477 478 gmac: ethernet@ff290000 { 479 compatible = "rockchip,rk3368-gmac"; 480 reg = <0x0 0xff290000 0x0 0x10000>; 481 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; 482 interrupt-names = "macirq"; 483 rockchip,grf = <&grf>; 484 clocks = <&cru SCLK_MAC>, 485 <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>, 486 <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>, 487 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>; 488 clock-names = "stmmaceth", 489 "mac_clk_rx", "mac_clk_tx", 490 "clk_mac_ref", "clk_mac_refout", 491 "aclk_mac", "pclk_mac"; 492 status = "disabled"; 493 }; 494 495 usb_host0_ehci: usb@ff500000 { 496 compatible = "generic-ehci"; 497 reg = <0x0 0xff500000 0x0 0x100>; 498 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; 499 clocks = <&cru HCLK_HOST0>; 500 status = "disabled"; 501 }; 502 503 usb_otg: usb@ff580000 { 504 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb", 505 "snps,dwc2"; 506 reg = <0x0 0xff580000 0x0 0x40000>; 507 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 508 clocks = <&cru HCLK_OTG0>; 509 clock-names = "otg"; 510 dr_mode = "otg"; 511 g-np-tx-fifo-size = <16>; 512 g-rx-fifo-size = <275>; 513 g-tx-fifo-size = <256 128 128 64 64 32>; 514 status = "disabled"; 515 }; 516 517 dmac_bus: dma-controller@ff600000 { 518 compatible = "arm,pl330", "arm,primecell"; 519 reg = <0x0 0xff600000 0x0 0x4000>; 520 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, 521 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 522 #dma-cells = <1>; 523 arm,pl330-broken-no-flushp; 524 arm,pl330-periph-burst; 525 clocks = <&cru ACLK_DMAC_BUS>; 526 clock-names = "apb_pclk"; 527 }; 528 529 i2c0: i2c@ff650000 { 530 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c"; 531 reg = <0x0 0xff650000 0x0 0x1000>; 532 clocks = <&cru PCLK_I2C0>; 533 clock-names = "i2c"; 534 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; 535 pinctrl-names = "default"; 536 pinctrl-0 = <&i2c0_xfer>; 537 #address-cells = <1>; 538 #size-cells = <0>; 539 status = "disabled"; 540 }; 541 542 i2c1: i2c@ff660000 { 543 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c"; 544 reg = <0x0 0xff660000 0x0 0x1000>; 545 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 546 #address-cells = <1>; 547 #size-cells = <0>; 548 clock-names = "i2c"; 549 clocks = <&cru PCLK_I2C1>; 550 pinctrl-names = "default"; 551 pinctrl-0 = <&i2c1_xfer>; 552 status = "disabled"; 553 }; 554 555 pwm0: pwm@ff680000 { 556 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm"; 557 reg = <0x0 0xff680000 0x0 0x10>; 558 #pwm-cells = <3>; 559 pinctrl-names = "default"; 560 pinctrl-0 = <&pwm0_pin>; 561 clocks = <&cru PCLK_PWM1>; 562 status = "disabled"; 563 }; 564 565 pwm1: pwm@ff680010 { 566 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm"; 567 reg = <0x0 0xff680010 0x0 0x10>; 568 #pwm-cells = <3>; 569 pinctrl-names = "default"; 570 pinctrl-0 = <&pwm1_pin>; 571 clocks = <&cru PCLK_PWM1>; 572 status = "disabled"; 573 }; 574 575 pwm2: pwm@ff680020 { 576 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm"; 577 reg = <0x0 0xff680020 0x0 0x10>; 578 #pwm-cells = <3>; 579 clocks = <&cru PCLK_PWM1>; 580 status = "disabled"; 581 }; 582 583 pwm3: pwm@ff680030 { 584 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm"; 585 reg = <0x0 0xff680030 0x0 0x10>; 586 #pwm-cells = <3>; 587 pinctrl-names = "default"; 588 pinctrl-0 = <&pwm3_pin>; 589 clocks = <&cru PCLK_PWM1>; 590 status = "disabled"; 591 }; 592 593 uart2: serial@ff690000 { 594 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart"; 595 reg = <0x0 0xff690000 0x0 0x100>; 596 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; 597 clock-names = "baudclk", "apb_pclk"; 598 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; 599 pinctrl-names = "default"; 600 pinctrl-0 = <&uart2_xfer>; 601 reg-shift = <2>; 602 reg-io-width = <4>; 603 status = "disabled"; 604 }; 605 606 mbox: mbox@ff6b0000 { 607 compatible = "rockchip,rk3368-mailbox"; 608 reg = <0x0 0xff6b0000 0x0 0x1000>; 609 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>, 610 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>, 611 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>, 612 <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; 613 clocks = <&cru PCLK_MAILBOX>; 614 clock-names = "pclk_mailbox"; 615 #mbox-cells = <1>; 616 status = "disabled"; 617 }; 618 619 pmu: power-management@ff730000 { 620 compatible = "rockchip,rk3368-pmu", "syscon", "simple-mfd"; 621 reg = <0x0 0xff730000 0x0 0x1000>; 622 623 power: power-controller { 624 compatible = "rockchip,rk3368-power-controller"; 625 #power-domain-cells = <1>; 626 #address-cells = <1>; 627 #size-cells = <0>; 628 629 /* 630 * Note: Although SCLK_* are the working clocks 631 * of device without including on the NOC, needed for 632 * synchronous reset. 633 * 634 * The clocks on the which NOC: 635 * ACLK_IEP/ACLK_VIP/ACLK_VOP0 are on ACLK_VIO0_NIU. 636 * ACLK_ISP/ACLK_VOP1 are on ACLK_VIO1_NIU. 637 * ACLK_RGA is on ACLK_RGA_NIU. 638 * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU. 639 * 640 * Which clock are device clocks: 641 * clocks devices 642 * *_IEP IEP:Image Enhancement Processor 643 * *_ISP ISP:Image Signal Processing 644 * *_VIP VIP:Video Input Processor 645 * *_VOP* VOP:Visual Output Processor 646 * *_RGA RGA 647 * *_EDP* EDP 648 * *_DPHY* LVDS 649 * *_HDMI HDMI 650 * *_MIPI_* MIPI 651 */ 652 power-domain@RK3368_PD_VIO { 653 reg = <RK3368_PD_VIO>; 654 clocks = <&cru ACLK_IEP>, 655 <&cru ACLK_ISP>, 656 <&cru ACLK_VIP>, 657 <&cru ACLK_RGA>, 658 <&cru ACLK_VOP>, 659 <&cru ACLK_VOP_IEP>, 660 <&cru DCLK_VOP>, 661 <&cru HCLK_IEP>, 662 <&cru HCLK_ISP>, 663 <&cru HCLK_RGA>, 664 <&cru HCLK_VIP>, 665 <&cru HCLK_VOP>, 666 <&cru HCLK_VIO_HDCPMMU>, 667 <&cru PCLK_EDP_CTRL>, 668 <&cru PCLK_HDMI_CTRL>, 669 <&cru PCLK_HDCP>, 670 <&cru PCLK_ISP>, 671 <&cru PCLK_VIP>, 672 <&cru PCLK_DPHYRX>, 673 <&cru PCLK_DPHYTX0>, 674 <&cru PCLK_MIPI_CSI>, 675 <&cru PCLK_MIPI_DSI0>, 676 <&cru SCLK_VOP0_PWM>, 677 <&cru SCLK_EDP_24M>, 678 <&cru SCLK_EDP>, 679 <&cru SCLK_HDCP>, 680 <&cru SCLK_ISP>, 681 <&cru SCLK_RGA>, 682 <&cru SCLK_HDMI_CEC>, 683 <&cru SCLK_HDMI_HDCP>; 684 pm_qos = <&qos_iep>, 685 <&qos_isp_r0>, 686 <&qos_isp_r1>, 687 <&qos_isp_w0>, 688 <&qos_isp_w1>, 689 <&qos_vip>, 690 <&qos_vop>, 691 <&qos_rga_r>, 692 <&qos_rga_w>; 693 #power-domain-cells = <0>; 694 }; 695 696 /* 697 * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC 698 * (video endecoder & decoder) clocks that on the 699 * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC). 700 */ 701 power-domain@RK3368_PD_VIDEO { 702 reg = <RK3368_PD_VIDEO>; 703 clocks = <&cru ACLK_VIDEO>, 704 <&cru HCLK_VIDEO>, 705 <&cru SCLK_HEVC_CABAC>, 706 <&cru SCLK_HEVC_CORE>; 707 pm_qos = <&qos_hevc_r>, 708 <&qos_vpu_r>, 709 <&qos_vpu_w>; 710 #power-domain-cells = <0>; 711 }; 712 713 /* 714 * Note: ACLK_GPU is the GPU clock, 715 * and on the ACLK_GPU_NIU (NOC). 716 */ 717 power-domain@RK3368_PD_GPU_1 { 718 reg = <RK3368_PD_GPU_1>; 719 clocks = <&cru ACLK_GPU_CFG>, 720 <&cru ACLK_GPU_MEM>, 721 <&cru SCLK_GPU_CORE>; 722 pm_qos = <&qos_gpu>; 723 #power-domain-cells = <0>; 724 }; 725 }; 726 }; 727 728 pmugrf: syscon@ff738000 { 729 compatible = "rockchip,rk3368-pmugrf", "syscon", "simple-mfd"; 730 reg = <0x0 0xff738000 0x0 0x1000>; 731 732 pmu_io_domains: io-domains { 733 compatible = "rockchip,rk3368-pmu-io-voltage-domain"; 734 status = "disabled"; 735 }; 736 737 reboot-mode { 738 compatible = "syscon-reboot-mode"; 739 offset = <0x200>; 740 mode-normal = <BOOT_NORMAL>; 741 mode-recovery = <BOOT_RECOVERY>; 742 mode-bootloader = <BOOT_FASTBOOT>; 743 mode-loader = <BOOT_BL_DOWNLOAD>; 744 }; 745 }; 746 747 cru: clock-controller@ff760000 { 748 compatible = "rockchip,rk3368-cru"; 749 reg = <0x0 0xff760000 0x0 0x1000>; 750 clocks = <&xin24m>; 751 clock-names = "xin24m"; 752 rockchip,grf = <&grf>; 753 #clock-cells = <1>; 754 #reset-cells = <1>; 755 }; 756 757 grf: syscon@ff770000 { 758 compatible = "rockchip,rk3368-grf", "syscon", "simple-mfd"; 759 reg = <0x0 0xff770000 0x0 0x1000>; 760 761 io_domains: io-domains { 762 compatible = "rockchip,rk3368-io-voltage-domain"; 763 status = "disabled"; 764 }; 765 }; 766 767 wdt: watchdog@ff800000 { 768 compatible = "rockchip,rk3368-wdt", "snps,dw-wdt"; 769 reg = <0x0 0xff800000 0x0 0x100>; 770 clocks = <&cru PCLK_WDT>; 771 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; 772 status = "disabled"; 773 }; 774 775 timer0: timer@ff810000 { 776 compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer"; 777 reg = <0x0 0xff810000 0x0 0x20>; 778 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; 779 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>; 780 clock-names = "pclk", "timer"; 781 }; 782 783 spdif: spdif@ff880000 { 784 compatible = "rockchip,rk3368-spdif"; 785 reg = <0x0 0xff880000 0x0 0x1000>; 786 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; 787 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>; 788 clock-names = "mclk", "hclk"; 789 dmas = <&dmac_bus 3>; 790 dma-names = "tx"; 791 pinctrl-names = "default"; 792 pinctrl-0 = <&spdif_tx>; 793 #sound-dai-cells = <0>; 794 status = "disabled"; 795 }; 796 797 i2s_2ch: i2s-2ch@ff890000 { 798 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s"; 799 reg = <0x0 0xff890000 0x0 0x1000>; 800 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 801 clock-names = "i2s_clk", "i2s_hclk"; 802 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>; 803 dmas = <&dmac_bus 6>, <&dmac_bus 7>; 804 dma-names = "tx", "rx"; 805 #sound-dai-cells = <0>; 806 status = "disabled"; 807 }; 808 809 i2s_8ch: i2s-8ch@ff898000 { 810 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s"; 811 reg = <0x0 0xff898000 0x0 0x1000>; 812 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; 813 clock-names = "i2s_clk", "i2s_hclk"; 814 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>; 815 dmas = <&dmac_bus 0>, <&dmac_bus 1>; 816 dma-names = "tx", "rx"; 817 pinctrl-names = "default"; 818 pinctrl-0 = <&i2s_8ch_bus>; 819 #sound-dai-cells = <0>; 820 status = "disabled"; 821 }; 822 823 iep_mmu: iommu@ff900800 { 824 compatible = "rockchip,iommu"; 825 reg = <0x0 0xff900800 0x0 0x100>; 826 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 827 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>; 828 clock-names = "aclk", "iface"; 829 power-domains = <&power RK3368_PD_VIO>; 830 #iommu-cells = <0>; 831 status = "disabled"; 832 }; 833 834 isp_mmu: iommu@ff914000 { 835 compatible = "rockchip,iommu"; 836 reg = <0x0 0xff914000 0x0 0x100>, 837 <0x0 0xff915000 0x0 0x100>; 838 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 839 clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>; 840 clock-names = "aclk", "iface"; 841 #iommu-cells = <0>; 842 power-domains = <&power RK3368_PD_VIO>; 843 rockchip,disable-mmu-reset; 844 status = "disabled"; 845 }; 846 847 vop_mmu: iommu@ff930300 { 848 compatible = "rockchip,iommu"; 849 reg = <0x0 0xff930300 0x0 0x100>; 850 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; 851 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>; 852 clock-names = "aclk", "iface"; 853 power-domains = <&power RK3368_PD_VIO>; 854 #iommu-cells = <0>; 855 status = "disabled"; 856 }; 857 858 hevc_mmu: iommu@ff9a0440 { 859 compatible = "rockchip,iommu"; 860 reg = <0x0 0xff9a0440 0x0 0x40>, 861 <0x0 0xff9a0480 0x0 0x40>; 862 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 863 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>; 864 clock-names = "aclk", "iface"; 865 #iommu-cells = <0>; 866 status = "disabled"; 867 }; 868 869 vpu_mmu: iommu@ff9a0800 { 870 compatible = "rockchip,iommu"; 871 reg = <0x0 0xff9a0800 0x0 0x100>; 872 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, 873 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; 874 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>; 875 clock-names = "aclk", "iface"; 876 #iommu-cells = <0>; 877 status = "disabled"; 878 }; 879 880 qos_iep: qos@ffad0000 { 881 compatible = "rockchip,rk3368-qos", "syscon"; 882 reg = <0x0 0xffad0000 0x0 0x20>; 883 }; 884 885 qos_isp_r0: qos@ffad0080 { 886 compatible = "rockchip,rk3368-qos", "syscon"; 887 reg = <0x0 0xffad0080 0x0 0x20>; 888 }; 889 890 qos_isp_r1: qos@ffad0100 { 891 compatible = "rockchip,rk3368-qos", "syscon"; 892 reg = <0x0 0xffad0100 0x0 0x20>; 893 }; 894 895 qos_isp_w0: qos@ffad0180 { 896 compatible = "rockchip,rk3368-qos", "syscon"; 897 reg = <0x0 0xffad0180 0x0 0x20>; 898 }; 899 900 qos_isp_w1: qos@ffad0200 { 901 compatible = "rockchip,rk3368-qos", "syscon"; 902 reg = <0x0 0xffad0200 0x0 0x20>; 903 }; 904 905 qos_vip: qos@ffad0280 { 906 compatible = "rockchip,rk3368-qos", "syscon"; 907 reg = <0x0 0xffad0280 0x0 0x20>; 908 }; 909 910 qos_vop: qos@ffad0300 { 911 compatible = "rockchip,rk3368-qos", "syscon"; 912 reg = <0x0 0xffad0300 0x0 0x20>; 913 }; 914 915 qos_rga_r: qos@ffad0380 { 916 compatible = "rockchip,rk3368-qos", "syscon"; 917 reg = <0x0 0xffad0380 0x0 0x20>; 918 }; 919 920 qos_rga_w: qos@ffad0400 { 921 compatible = "rockchip,rk3368-qos", "syscon"; 922 reg = <0x0 0xffad0400 0x0 0x20>; 923 }; 924 925 qos_hevc_r: qos@ffae0000 { 926 compatible = "rockchip,rk3368-qos", "syscon"; 927 reg = <0x0 0xffae0000 0x0 0x20>; 928 }; 929 930 qos_vpu_r: qos@ffae0100 { 931 compatible = "rockchip,rk3368-qos", "syscon"; 932 reg = <0x0 0xffae0100 0x0 0x20>; 933 }; 934 935 qos_vpu_w: qos@ffae0180 { 936 compatible = "rockchip,rk3368-qos", "syscon"; 937 reg = <0x0 0xffae0180 0x0 0x20>; 938 }; 939 940 qos_gpu: qos@ffaf0000 { 941 compatible = "rockchip,rk3368-qos", "syscon"; 942 reg = <0x0 0xffaf0000 0x0 0x20>; 943 }; 944 945 efuse256: efuse@ffb00000 { 946 compatible = "rockchip,rk3368-efuse"; 947 reg = <0x0 0xffb00000 0x0 0x20>; 948 #address-cells = <1>; 949 #size-cells = <1>; 950 clocks = <&cru PCLK_EFUSE256>; 951 clock-names = "pclk_efuse"; 952 953 cpu_leakage: cpu-leakage@17 { 954 reg = <0x17 0x1>; 955 }; 956 temp_adjust: temp-adjust@1f { 957 reg = <0x1f 0x1>; 958 }; 959 }; 960 961 gic: interrupt-controller@ffb71000 { 962 compatible = "arm,gic-400"; 963 interrupt-controller; 964 #interrupt-cells = <3>; 965 #address-cells = <0>; 966 967 reg = <0x0 0xffb71000 0x0 0x1000>, 968 <0x0 0xffb72000 0x0 0x2000>, 969 <0x0 0xffb74000 0x0 0x2000>, 970 <0x0 0xffb76000 0x0 0x2000>; 971 interrupts = <GIC_PPI 9 972 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; 973 }; 974 975 pinctrl: pinctrl { 976 compatible = "rockchip,rk3368-pinctrl"; 977 rockchip,grf = <&grf>; 978 rockchip,pmu = <&pmugrf>; 979 #address-cells = <0x2>; 980 #size-cells = <0x2>; 981 ranges; 982 983 gpio0: gpio@ff750000 { 984 compatible = "rockchip,gpio-bank"; 985 reg = <0x0 0xff750000 0x0 0x100>; 986 clocks = <&cru PCLK_GPIO0>; 987 interrupts = <GIC_SPI 0x51 IRQ_TYPE_LEVEL_HIGH>; 988 989 gpio-controller; 990 #gpio-cells = <0x2>; 991 992 interrupt-controller; 993 #interrupt-cells = <0x2>; 994 }; 995 996 gpio1: gpio@ff780000 { 997 compatible = "rockchip,gpio-bank"; 998 reg = <0x0 0xff780000 0x0 0x100>; 999 clocks = <&cru PCLK_GPIO1>; 1000 interrupts = <GIC_SPI 0x52 IRQ_TYPE_LEVEL_HIGH>; 1001 1002 gpio-controller; 1003 #gpio-cells = <0x2>; 1004 1005 interrupt-controller; 1006 #interrupt-cells = <0x2>; 1007 }; 1008 1009 gpio2: gpio@ff790000 { 1010 compatible = "rockchip,gpio-bank"; 1011 reg = <0x0 0xff790000 0x0 0x100>; 1012 clocks = <&cru PCLK_GPIO2>; 1013 interrupts = <GIC_SPI 0x53 IRQ_TYPE_LEVEL_HIGH>; 1014 1015 gpio-controller; 1016 #gpio-cells = <0x2>; 1017 1018 interrupt-controller; 1019 #interrupt-cells = <0x2>; 1020 }; 1021 1022 gpio3: gpio@ff7a0000 { 1023 compatible = "rockchip,gpio-bank"; 1024 reg = <0x0 0xff7a0000 0x0 0x100>; 1025 clocks = <&cru PCLK_GPIO3>; 1026 interrupts = <GIC_SPI 0x54 IRQ_TYPE_LEVEL_HIGH>; 1027 1028 gpio-controller; 1029 #gpio-cells = <0x2>; 1030 1031 interrupt-controller; 1032 #interrupt-cells = <0x2>; 1033 }; 1034 1035 pcfg_pull_up: pcfg-pull-up { 1036 bias-pull-up; 1037 }; 1038 1039 pcfg_pull_down: pcfg-pull-down { 1040 bias-pull-down; 1041 }; 1042 1043 pcfg_pull_none: pcfg-pull-none { 1044 bias-disable; 1045 }; 1046 1047 pcfg_pull_none_12ma: pcfg-pull-none-12ma { 1048 bias-disable; 1049 drive-strength = <12>; 1050 }; 1051 1052 emmc { 1053 emmc_clk: emmc-clk { 1054 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>; 1055 }; 1056 1057 emmc_cmd: emmc-cmd { 1058 rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up>; 1059 }; 1060 1061 emmc_pwr: emmc-pwr { 1062 rockchip,pins = <1 RK_PD3 2 &pcfg_pull_up>; 1063 }; 1064 1065 emmc_bus1: emmc-bus1 { 1066 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>; 1067 }; 1068 1069 emmc_bus4: emmc-bus4 { 1070 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>, 1071 <1 RK_PC3 2 &pcfg_pull_up>, 1072 <1 RK_PC4 2 &pcfg_pull_up>, 1073 <1 RK_PC5 2 &pcfg_pull_up>; 1074 }; 1075 1076 emmc_bus8: emmc-bus8 { 1077 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>, 1078 <1 RK_PC3 2 &pcfg_pull_up>, 1079 <1 RK_PC4 2 &pcfg_pull_up>, 1080 <1 RK_PC5 2 &pcfg_pull_up>, 1081 <1 RK_PC6 2 &pcfg_pull_up>, 1082 <1 RK_PC7 2 &pcfg_pull_up>, 1083 <1 RK_PD0 2 &pcfg_pull_up>, 1084 <1 RK_PD1 2 &pcfg_pull_up>; 1085 }; 1086 }; 1087 1088 gmac { 1089 rgmii_pins: rgmii-pins { 1090 rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>, 1091 <3 RK_PD0 1 &pcfg_pull_none>, 1092 <3 RK_PC3 1 &pcfg_pull_none>, 1093 <3 RK_PB0 1 &pcfg_pull_none_12ma>, 1094 <3 RK_PB1 1 &pcfg_pull_none_12ma>, 1095 <3 RK_PB2 1 &pcfg_pull_none_12ma>, 1096 <3 RK_PB6 1 &pcfg_pull_none_12ma>, 1097 <3 RK_PD4 1 &pcfg_pull_none_12ma>, 1098 <3 RK_PB5 1 &pcfg_pull_none_12ma>, 1099 <3 RK_PB7 1 &pcfg_pull_none>, 1100 <3 RK_PC0 1 &pcfg_pull_none>, 1101 <3 RK_PC1 1 &pcfg_pull_none>, 1102 <3 RK_PC2 1 &pcfg_pull_none>, 1103 <3 RK_PD1 1 &pcfg_pull_none>, 1104 <3 RK_PC4 1 &pcfg_pull_none>; 1105 }; 1106 1107 rmii_pins: rmii-pins { 1108 rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>, 1109 <3 RK_PD0 1 &pcfg_pull_none>, 1110 <3 RK_PC3 1 &pcfg_pull_none>, 1111 <3 RK_PB0 1 &pcfg_pull_none_12ma>, 1112 <3 RK_PB1 1 &pcfg_pull_none_12ma>, 1113 <3 RK_PB5 1 &pcfg_pull_none_12ma>, 1114 <3 RK_PB7 1 &pcfg_pull_none>, 1115 <3 RK_PC0 1 &pcfg_pull_none>, 1116 <3 RK_PC4 1 &pcfg_pull_none>, 1117 <3 RK_PC5 1 &pcfg_pull_none>; 1118 }; 1119 }; 1120 1121 i2c0 { 1122 i2c0_xfer: i2c0-xfer { 1123 rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>, 1124 <0 RK_PA7 1 &pcfg_pull_none>; 1125 }; 1126 }; 1127 1128 i2c1 { 1129 i2c1_xfer: i2c1-xfer { 1130 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>, 1131 <2 RK_PC6 1 &pcfg_pull_none>; 1132 }; 1133 }; 1134 1135 i2c2 { 1136 i2c2_xfer: i2c2-xfer { 1137 rockchip,pins = <0 RK_PB1 2 &pcfg_pull_none>, 1138 <3 RK_PD7 2 &pcfg_pull_none>; 1139 }; 1140 }; 1141 1142 i2c3 { 1143 i2c3_xfer: i2c3-xfer { 1144 rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>, 1145 <1 RK_PC1 1 &pcfg_pull_none>; 1146 }; 1147 }; 1148 1149 i2c4 { 1150 i2c4_xfer: i2c4-xfer { 1151 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_none>, 1152 <3 RK_PD1 2 &pcfg_pull_none>; 1153 }; 1154 }; 1155 1156 i2c5 { 1157 i2c5_xfer: i2c5-xfer { 1158 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_none>, 1159 <3 RK_PD3 2 &pcfg_pull_none>; 1160 }; 1161 }; 1162 1163 i2s { 1164 i2s_8ch_bus: i2s-8ch-bus { 1165 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_none>, 1166 <2 RK_PB5 1 &pcfg_pull_none>, 1167 <2 RK_PB6 1 &pcfg_pull_none>, 1168 <2 RK_PB7 1 &pcfg_pull_none>, 1169 <2 RK_PC0 1 &pcfg_pull_none>, 1170 <2 RK_PC1 1 &pcfg_pull_none>, 1171 <2 RK_PC2 1 &pcfg_pull_none>, 1172 <2 RK_PC3 1 &pcfg_pull_none>, 1173 <2 RK_PC4 1 &pcfg_pull_none>; 1174 }; 1175 }; 1176 1177 pwm0 { 1178 pwm0_pin: pwm0-pin { 1179 rockchip,pins = <3 RK_PB0 2 &pcfg_pull_none>; 1180 }; 1181 }; 1182 1183 pwm1 { 1184 pwm1_pin: pwm1-pin { 1185 rockchip,pins = <0 RK_PB0 2 &pcfg_pull_none>; 1186 }; 1187 }; 1188 1189 pwm3 { 1190 pwm3_pin: pwm3-pin { 1191 rockchip,pins = <3 RK_PD5 3 &pcfg_pull_none>; 1192 }; 1193 }; 1194 1195 sdio0 { 1196 sdio0_bus1: sdio0-bus1 { 1197 rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>; 1198 }; 1199 1200 sdio0_bus4: sdio0-bus4 { 1201 rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>, 1202 <2 RK_PD5 1 &pcfg_pull_up>, 1203 <2 RK_PD6 1 &pcfg_pull_up>, 1204 <2 RK_PD7 1 &pcfg_pull_up>; 1205 }; 1206 1207 sdio0_cmd: sdio0-cmd { 1208 rockchip,pins = <3 RK_PA0 1 &pcfg_pull_up>; 1209 }; 1210 1211 sdio0_clk: sdio0-clk { 1212 rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none>; 1213 }; 1214 1215 sdio0_cd: sdio0-cd { 1216 rockchip,pins = <3 RK_PA2 1 &pcfg_pull_up>; 1217 }; 1218 1219 sdio0_wp: sdio0-wp { 1220 rockchip,pins = <3 RK_PA3 1 &pcfg_pull_up>; 1221 }; 1222 1223 sdio0_pwr: sdio0-pwr { 1224 rockchip,pins = <3 RK_PA4 1 &pcfg_pull_up>; 1225 }; 1226 1227 sdio0_bkpwr: sdio0-bkpwr { 1228 rockchip,pins = <3 RK_PA5 1 &pcfg_pull_up>; 1229 }; 1230 1231 sdio0_int: sdio0-int { 1232 rockchip,pins = <3 RK_PA6 1 &pcfg_pull_up>; 1233 }; 1234 }; 1235 1236 sdmmc { 1237 sdmmc_clk: sdmmc-clk { 1238 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_none>; 1239 }; 1240 1241 sdmmc_cmd: sdmmc-cmd { 1242 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>; 1243 }; 1244 1245 sdmmc_cd: sdmmc-cd { 1246 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>; 1247 }; 1248 1249 sdmmc_bus1: sdmmc-bus1 { 1250 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>; 1251 }; 1252 1253 sdmmc_bus4: sdmmc-bus4 { 1254 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>, 1255 <2 RK_PA6 1 &pcfg_pull_up>, 1256 <2 RK_PA7 1 &pcfg_pull_up>, 1257 <2 RK_PB0 1 &pcfg_pull_up>; 1258 }; 1259 }; 1260 1261 spdif { 1262 spdif_tx: spdif-tx { 1263 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>; 1264 }; 1265 }; 1266 1267 spi0 { 1268 spi0_clk: spi0-clk { 1269 rockchip,pins = <1 RK_PD5 2 &pcfg_pull_up>; 1270 }; 1271 spi0_cs0: spi0-cs0 { 1272 rockchip,pins = <1 RK_PD0 3 &pcfg_pull_up>; 1273 }; 1274 spi0_cs1: spi0-cs1 { 1275 rockchip,pins = <1 RK_PD1 3 &pcfg_pull_up>; 1276 }; 1277 spi0_tx: spi0-tx { 1278 rockchip,pins = <1 RK_PC7 3 &pcfg_pull_up>; 1279 }; 1280 spi0_rx: spi0-rx { 1281 rockchip,pins = <1 RK_PC6 3 &pcfg_pull_up>; 1282 }; 1283 }; 1284 1285 spi1 { 1286 spi1_clk: spi1-clk { 1287 rockchip,pins = <1 RK_PB6 2 &pcfg_pull_up>; 1288 }; 1289 spi1_cs0: spi1-cs0 { 1290 rockchip,pins = <1 RK_PB7 2 &pcfg_pull_up>; 1291 }; 1292 spi1_cs1: spi1-cs1 { 1293 rockchip,pins = <3 RK_PD4 2 &pcfg_pull_up>; 1294 }; 1295 spi1_rx: spi1-rx { 1296 rockchip,pins = <1 RK_PC0 2 &pcfg_pull_up>; 1297 }; 1298 spi1_tx: spi1-tx { 1299 rockchip,pins = <1 RK_PC1 2 &pcfg_pull_up>; 1300 }; 1301 }; 1302 1303 spi2 { 1304 spi2_clk: spi2-clk { 1305 rockchip,pins = <0 RK_PB4 2 &pcfg_pull_up>; 1306 }; 1307 spi2_cs0: spi2-cs0 { 1308 rockchip,pins = <0 RK_PB5 2 &pcfg_pull_up>; 1309 }; 1310 spi2_rx: spi2-rx { 1311 rockchip,pins = <0 RK_PB2 2 &pcfg_pull_up>; 1312 }; 1313 spi2_tx: spi2-tx { 1314 rockchip,pins = <0 RK_PB3 2 &pcfg_pull_up>; 1315 }; 1316 }; 1317 1318 tsadc { 1319 otp_pin: otp-pin { 1320 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 1321 }; 1322 1323 otp_out: otp-out { 1324 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>; 1325 }; 1326 }; 1327 1328 uart0 { 1329 uart0_xfer: uart0-xfer { 1330 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_up>, 1331 <2 RK_PD1 1 &pcfg_pull_none>; 1332 }; 1333 1334 uart0_cts: uart0-cts { 1335 rockchip,pins = <2 RK_PD2 1 &pcfg_pull_none>; 1336 }; 1337 1338 uart0_rts: uart0-rts { 1339 rockchip,pins = <2 RK_PD3 1 &pcfg_pull_none>; 1340 }; 1341 }; 1342 1343 uart1 { 1344 uart1_xfer: uart1-xfer { 1345 rockchip,pins = <0 RK_PC4 3 &pcfg_pull_up>, 1346 <0 RK_PC5 3 &pcfg_pull_none>; 1347 }; 1348 1349 uart1_cts: uart1-cts { 1350 rockchip,pins = <0 RK_PC6 3 &pcfg_pull_none>; 1351 }; 1352 1353 uart1_rts: uart1-rts { 1354 rockchip,pins = <0 RK_PC7 3 &pcfg_pull_none>; 1355 }; 1356 }; 1357 1358 uart2 { 1359 uart2_xfer: uart2-xfer { 1360 rockchip,pins = <2 RK_PA6 2 &pcfg_pull_up>, 1361 <2 RK_PA5 2 &pcfg_pull_none>; 1362 }; 1363 /* no rts / cts for uart2 */ 1364 }; 1365 1366 uart3 { 1367 uart3_xfer: uart3-xfer { 1368 rockchip,pins = <3 RK_PD5 2 &pcfg_pull_up>, 1369 <3 RK_PD6 3 &pcfg_pull_none>; 1370 }; 1371 1372 uart3_cts: uart3-cts { 1373 rockchip,pins = <3 RK_PC0 2 &pcfg_pull_none>; 1374 }; 1375 1376 uart3_rts: uart3-rts { 1377 rockchip,pins = <3 RK_PC1 2 &pcfg_pull_none>; 1378 }; 1379 }; 1380 1381 uart4 { 1382 uart4_xfer: uart4-xfer { 1383 rockchip,pins = <0 RK_PD3 3 &pcfg_pull_up>, 1384 <0 RK_PD2 3 &pcfg_pull_none>; 1385 }; 1386 1387 uart4_cts: uart4-cts { 1388 rockchip,pins = <0 RK_PD0 3 &pcfg_pull_none>; 1389 }; 1390 1391 uart4_rts: uart4-rts { 1392 rockchip,pins = <0 RK_PD1 3 &pcfg_pull_none>; 1393 }; 1394 }; 1395 }; 1396}; 1397