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