1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 3#include <dt-bindings/gpio/gpio.h> 4#include <dt-bindings/interrupt-controller/irq.h> 5#include <dt-bindings/interrupt-controller/arm-gic.h> 6#include <dt-bindings/pinctrl/rockchip.h> 7#include <dt-bindings/clock/rk3036-cru.h> 8#include <dt-bindings/soc/rockchip,boot-mode.h> 9 10/ { 11 #address-cells = <1>; 12 #size-cells = <1>; 13 14 compatible = "rockchip,rk3036"; 15 16 interrupt-parent = <&gic>; 17 18 aliases { 19 i2c0 = &i2c0; 20 i2c1 = &i2c1; 21 i2c2 = &i2c2; 22 mshc0 = &emmc; 23 mshc1 = &sdmmc; 24 mshc2 = &sdio; 25 serial0 = &uart0; 26 serial1 = &uart1; 27 serial2 = &uart2; 28 spi = &spi; 29 }; 30 31 cpus { 32 #address-cells = <1>; 33 #size-cells = <0>; 34 enable-method = "rockchip,rk3036-smp"; 35 36 cpu0: cpu@f00 { 37 device_type = "cpu"; 38 compatible = "arm,cortex-a7"; 39 reg = <0xf00>; 40 resets = <&cru SRST_CORE0>; 41 operating-points = < 42 /* KHz uV */ 43 816000 1000000 44 >; 45 clock-latency = <40000>; 46 clocks = <&cru ARMCLK>; 47 }; 48 49 cpu1: cpu@f01 { 50 device_type = "cpu"; 51 compatible = "arm,cortex-a7"; 52 reg = <0xf01>; 53 resets = <&cru SRST_CORE1>; 54 }; 55 }; 56 57 amba: bus { 58 compatible = "simple-bus"; 59 #address-cells = <1>; 60 #size-cells = <1>; 61 ranges; 62 63 pdma: pdma@20078000 { 64 compatible = "arm,pl330", "arm,primecell"; 65 reg = <0x20078000 0x4000>; 66 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, 67 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 68 #dma-cells = <1>; 69 arm,pl330-broken-no-flushp; 70 arm,pl330-periph-burst; 71 clocks = <&cru ACLK_DMAC2>; 72 clock-names = "apb_pclk"; 73 }; 74 }; 75 76 arm-pmu { 77 compatible = "arm,cortex-a7-pmu"; 78 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, 79 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; 80 interrupt-affinity = <&cpu0>, <&cpu1>; 81 }; 82 83 display-subsystem { 84 compatible = "rockchip,display-subsystem"; 85 ports = <&vop_out>; 86 }; 87 88 timer { 89 compatible = "arm,armv7-timer"; 90 arm,cpu-registers-not-fw-configured; 91 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>, 92 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>, 93 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>, 94 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; 95 clock-frequency = <24000000>; 96 }; 97 98 xin24m: oscillator { 99 compatible = "fixed-clock"; 100 clock-frequency = <24000000>; 101 clock-output-names = "xin24m"; 102 #clock-cells = <0>; 103 }; 104 105 bus_intmem: sram@10080000 { 106 compatible = "mmio-sram"; 107 reg = <0x10080000 0x2000>; 108 #address-cells = <1>; 109 #size-cells = <1>; 110 ranges = <0 0x10080000 0x2000>; 111 112 smp-sram@0 { 113 compatible = "rockchip,rk3066-smp-sram"; 114 reg = <0x00 0x10>; 115 }; 116 }; 117 118 gpu: gpu@10090000 { 119 compatible = "rockchip,rk3036-mali", "arm,mali-400"; 120 reg = <0x10090000 0x10000>; 121 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, 122 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, 123 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, 124 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 125 interrupt-names = "gp", 126 "gpmmu", 127 "pp0", 128 "ppmmu0"; 129 assigned-clocks = <&cru SCLK_GPU>; 130 assigned-clock-rates = <100000000>; 131 clocks = <&cru SCLK_GPU>, <&cru SCLK_GPU>; 132 clock-names = "bus", "core"; 133 resets = <&cru SRST_GPU>; 134 status = "disabled"; 135 }; 136 137 vop: vop@10118000 { 138 compatible = "rockchip,rk3036-vop"; 139 reg = <0x10118000 0x19c>; 140 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 141 clocks = <&cru ACLK_LCDC>, <&cru SCLK_LCDC>, <&cru HCLK_LCDC>; 142 clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; 143 resets = <&cru SRST_LCDC1_A>, <&cru SRST_LCDC1_H>, <&cru SRST_LCDC1_D>; 144 reset-names = "axi", "ahb", "dclk"; 145 iommus = <&vop_mmu>; 146 status = "disabled"; 147 148 vop_out: port { 149 #address-cells = <1>; 150 #size-cells = <0>; 151 vop_out_hdmi: endpoint@0 { 152 reg = <0>; 153 remote-endpoint = <&hdmi_in_vop>; 154 }; 155 }; 156 }; 157 158 vop_mmu: iommu@10118300 { 159 compatible = "rockchip,iommu"; 160 reg = <0x10118300 0x100>; 161 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 162 interrupt-names = "vop_mmu"; 163 clocks = <&cru ACLK_LCDC>, <&cru HCLK_LCDC>; 164 clock-names = "aclk", "iface"; 165 #iommu-cells = <0>; 166 status = "disabled"; 167 }; 168 169 gic: interrupt-controller@10139000 { 170 compatible = "arm,gic-400"; 171 interrupt-controller; 172 #interrupt-cells = <3>; 173 #address-cells = <0>; 174 175 reg = <0x10139000 0x1000>, 176 <0x1013a000 0x2000>, 177 <0x1013c000 0x2000>, 178 <0x1013e000 0x2000>; 179 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; 180 }; 181 182 usb_otg: usb@10180000 { 183 compatible = "rockchip,rk3036-usb", "rockchip,rk3066-usb", 184 "snps,dwc2"; 185 reg = <0x10180000 0x40000>; 186 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; 187 clocks = <&cru HCLK_OTG0>; 188 clock-names = "otg"; 189 dr_mode = "otg"; 190 g-np-tx-fifo-size = <16>; 191 g-rx-fifo-size = <275>; 192 g-tx-fifo-size = <256 128 128 64 64 32>; 193 status = "disabled"; 194 }; 195 196 usb_host: usb@101c0000 { 197 compatible = "rockchip,rk3036-usb", "rockchip,rk3066-usb", 198 "snps,dwc2"; 199 reg = <0x101c0000 0x40000>; 200 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; 201 clocks = <&cru HCLK_OTG1>; 202 clock-names = "otg"; 203 dr_mode = "host"; 204 status = "disabled"; 205 }; 206 207 emac: ethernet@10200000 { 208 compatible = "rockchip,rk3036-emac", "snps,arc-emac"; 209 reg = <0x10200000 0x4000>; 210 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 211 #address-cells = <1>; 212 #size-cells = <0>; 213 rockchip,grf = <&grf>; 214 clocks = <&cru HCLK_MAC>, <&cru SCLK_MACREF>, <&cru SCLK_MAC>; 215 clock-names = "hclk", "macref", "macclk"; 216 /* 217 * Fix the emac parent clock is DPLL instead of APLL. 218 * since that will cause some unstable things if the cpufreq 219 * is working. (e.g: the accurate 50MHz what mac_ref need) 220 */ 221 assigned-clocks = <&cru SCLK_MACPLL>; 222 assigned-clock-parents = <&cru PLL_DPLL>; 223 max-speed = <100>; 224 phy-mode = "rmii"; 225 status = "disabled"; 226 }; 227 228 sdmmc: mmc@10214000 { 229 compatible = "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc"; 230 reg = <0x10214000 0x4000>; 231 clock-frequency = <37500000>; 232 max-frequency = <37500000>; 233 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>; 234 clock-names = "biu", "ciu"; 235 fifo-depth = <0x100>; 236 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 237 resets = <&cru SRST_MMC0>; 238 reset-names = "reset"; 239 status = "disabled"; 240 }; 241 242 sdio: mmc@10218000 { 243 compatible = "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc"; 244 reg = <0x10218000 0x4000>; 245 max-frequency = <37500000>; 246 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, 247 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; 248 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 249 fifo-depth = <0x100>; 250 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; 251 resets = <&cru SRST_SDIO>; 252 reset-names = "reset"; 253 status = "disabled"; 254 }; 255 256 emmc: mmc@1021c000 { 257 compatible = "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc"; 258 reg = <0x1021c000 0x4000>; 259 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 260 bus-width = <8>; 261 cap-mmc-highspeed; 262 clock-frequency = <37500000>; 263 max-frequency = <37500000>; 264 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, 265 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; 266 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 267 rockchip,default-sample-phase = <158>; 268 disable-wp; 269 dmas = <&pdma 12>; 270 dma-names = "rx-tx"; 271 fifo-depth = <0x100>; 272 mmc-ddr-1_8v; 273 non-removable; 274 pinctrl-names = "default"; 275 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; 276 resets = <&cru SRST_EMMC>; 277 reset-names = "reset"; 278 status = "disabled"; 279 }; 280 281 i2s: i2s@10220000 { 282 compatible = "rockchip,rk3036-i2s", "rockchip,rk3066-i2s"; 283 reg = <0x10220000 0x4000>; 284 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; 285 clock-names = "i2s_clk", "i2s_hclk"; 286 clocks = <&cru SCLK_I2S>, <&cru HCLK_I2S>; 287 dmas = <&pdma 0>, <&pdma 1>; 288 dma-names = "tx", "rx"; 289 pinctrl-names = "default"; 290 pinctrl-0 = <&i2s_bus>; 291 #sound-dai-cells = <0>; 292 status = "disabled"; 293 }; 294 295 cru: clock-controller@20000000 { 296 compatible = "rockchip,rk3036-cru"; 297 reg = <0x20000000 0x1000>; 298 rockchip,grf = <&grf>; 299 #clock-cells = <1>; 300 #reset-cells = <1>; 301 assigned-clocks = <&cru PLL_GPLL>; 302 assigned-clock-rates = <594000000>; 303 }; 304 305 grf: syscon@20008000 { 306 compatible = "rockchip,rk3036-grf", "syscon", "simple-mfd"; 307 reg = <0x20008000 0x1000>; 308 309 reboot-mode { 310 compatible = "syscon-reboot-mode"; 311 offset = <0x1d8>; 312 mode-normal = <BOOT_NORMAL>; 313 mode-recovery = <BOOT_RECOVERY>; 314 mode-bootloader = <BOOT_FASTBOOT>; 315 mode-loader = <BOOT_BL_DOWNLOAD>; 316 }; 317 }; 318 319 acodec: acodec-ana@20030000 { 320 compatible = "rk3036-codec"; 321 reg = <0x20030000 0x4000>; 322 rockchip,grf = <&grf>; 323 clock-names = "acodec_pclk"; 324 clocks = <&cru PCLK_ACODEC>; 325 status = "disabled"; 326 }; 327 328 hdmi: hdmi@20034000 { 329 compatible = "rockchip,rk3036-inno-hdmi"; 330 reg = <0x20034000 0x4000>; 331 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 332 clocks = <&cru PCLK_HDMI>; 333 clock-names = "pclk"; 334 rockchip,grf = <&grf>; 335 pinctrl-names = "default"; 336 pinctrl-0 = <&hdmi_ctl>; 337 status = "disabled"; 338 339 ports { 340 #address-cells = <1>; 341 #size-cells = <0>; 342 343 hdmi_in: port@0 { 344 reg = <0>; 345 346 hdmi_in_vop: endpoint { 347 remote-endpoint = <&vop_out_hdmi>; 348 }; 349 }; 350 351 hdmi_out: port@1 { 352 reg = <1>; 353 }; 354 }; 355 }; 356 357 timer: timer@20044000 { 358 compatible = "rockchip,rk3036-timer", "rockchip,rk3288-timer"; 359 reg = <0x20044000 0x20>; 360 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; 361 clocks = <&xin24m>, <&cru PCLK_TIMER>; 362 clock-names = "timer", "pclk"; 363 }; 364 365 pwm0: pwm@20050000 { 366 compatible = "rockchip,rk3036-pwm", "rockchip,rk2928-pwm"; 367 reg = <0x20050000 0x10>; 368 #pwm-cells = <3>; 369 clocks = <&cru PCLK_PWM>; 370 clock-names = "pwm"; 371 pinctrl-names = "default"; 372 pinctrl-0 = <&pwm0_pin>; 373 status = "disabled"; 374 }; 375 376 pwm1: pwm@20050010 { 377 compatible = "rockchip,rk3036-pwm", "rockchip,rk2928-pwm"; 378 reg = <0x20050010 0x10>; 379 #pwm-cells = <3>; 380 clocks = <&cru PCLK_PWM>; 381 clock-names = "pwm"; 382 pinctrl-names = "default"; 383 pinctrl-0 = <&pwm1_pin>; 384 status = "disabled"; 385 }; 386 387 pwm2: pwm@20050020 { 388 compatible = "rockchip,rk3036-pwm", "rockchip,rk2928-pwm"; 389 reg = <0x20050020 0x10>; 390 #pwm-cells = <3>; 391 clocks = <&cru PCLK_PWM>; 392 clock-names = "pwm"; 393 pinctrl-names = "default"; 394 pinctrl-0 = <&pwm2_pin>; 395 status = "disabled"; 396 }; 397 398 pwm3: pwm@20050030 { 399 compatible = "rockchip,rk3036-pwm", "rockchip,rk2928-pwm"; 400 reg = <0x20050030 0x10>; 401 #pwm-cells = <2>; 402 clocks = <&cru PCLK_PWM>; 403 clock-names = "pwm"; 404 pinctrl-names = "default"; 405 pinctrl-0 = <&pwm3_pin>; 406 status = "disabled"; 407 }; 408 409 i2c1: i2c@20056000 { 410 compatible = "rockchip,rk3036-i2c", "rockchip,rk3288-i2c"; 411 reg = <0x20056000 0x1000>; 412 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 413 #address-cells = <1>; 414 #size-cells = <0>; 415 clock-names = "i2c"; 416 clocks = <&cru PCLK_I2C1>; 417 pinctrl-names = "default"; 418 pinctrl-0 = <&i2c1_xfer>; 419 status = "disabled"; 420 }; 421 422 i2c2: i2c@2005a000 { 423 compatible = "rockchip,rk3036-i2c", "rockchip,rk3288-i2c"; 424 reg = <0x2005a000 0x1000>; 425 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; 426 #address-cells = <1>; 427 #size-cells = <0>; 428 clock-names = "i2c"; 429 clocks = <&cru PCLK_I2C2>; 430 pinctrl-names = "default"; 431 pinctrl-0 = <&i2c2_xfer>; 432 status = "disabled"; 433 }; 434 435 uart0: serial@20060000 { 436 compatible = "rockchip,rk3036-uart", "snps,dw-apb-uart"; 437 reg = <0x20060000 0x100>; 438 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; 439 reg-shift = <2>; 440 reg-io-width = <4>; 441 clock-frequency = <24000000>; 442 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; 443 clock-names = "baudclk", "apb_pclk"; 444 pinctrl-names = "default"; 445 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 446 status = "disabled"; 447 }; 448 449 uart1: serial@20064000 { 450 compatible = "rockchip,rk3036-uart", "snps,dw-apb-uart"; 451 reg = <0x20064000 0x100>; 452 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 453 reg-shift = <2>; 454 reg-io-width = <4>; 455 clock-frequency = <24000000>; 456 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; 457 clock-names = "baudclk", "apb_pclk"; 458 pinctrl-names = "default"; 459 pinctrl-0 = <&uart1_xfer>; 460 status = "disabled"; 461 }; 462 463 uart2: serial@20068000 { 464 compatible = "rockchip,rk3036-uart", "snps,dw-apb-uart"; 465 reg = <0x20068000 0x100>; 466 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; 467 reg-shift = <2>; 468 reg-io-width = <4>; 469 clock-frequency = <24000000>; 470 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; 471 clock-names = "baudclk", "apb_pclk"; 472 pinctrl-names = "default"; 473 pinctrl-0 = <&uart2_xfer>; 474 status = "disabled"; 475 }; 476 477 i2c0: i2c@20072000 { 478 compatible = "rockchip,rk3036-i2c", "rockchip,rk3288-i2c"; 479 reg = <0x20072000 0x1000>; 480 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; 481 #address-cells = <1>; 482 #size-cells = <0>; 483 clock-names = "i2c"; 484 clocks = <&cru PCLK_I2C0>; 485 pinctrl-names = "default"; 486 pinctrl-0 = <&i2c0_xfer>; 487 status = "disabled"; 488 }; 489 490 spi: spi@20074000 { 491 compatible = "rockchip,rockchip-spi"; 492 reg = <0x20074000 0x1000>; 493 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 494 clocks = <&cru PCLK_SPI>, <&cru SCLK_SPI>; 495 clock-names = "apb-pclk","spi_pclk"; 496 dmas = <&pdma 8>, <&pdma 9>; 497 dma-names = "tx", "rx"; 498 pinctrl-names = "default"; 499 pinctrl-0 = <&spi_txd &spi_rxd &spi_clk &spi_cs0>; 500 #address-cells = <1>; 501 #size-cells = <0>; 502 status = "disabled"; 503 }; 504 505 pinctrl: pinctrl { 506 compatible = "rockchip,rk3036-pinctrl"; 507 rockchip,grf = <&grf>; 508 #address-cells = <1>; 509 #size-cells = <1>; 510 ranges; 511 512 gpio0: gpio0@2007c000 { 513 compatible = "rockchip,gpio-bank"; 514 reg = <0x2007c000 0x100>; 515 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; 516 clocks = <&cru PCLK_GPIO0>; 517 518 gpio-controller; 519 #gpio-cells = <2>; 520 521 interrupt-controller; 522 #interrupt-cells = <2>; 523 }; 524 525 gpio1: gpio1@20080000 { 526 compatible = "rockchip,gpio-bank"; 527 reg = <0x20080000 0x100>; 528 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 529 clocks = <&cru PCLK_GPIO1>; 530 531 gpio-controller; 532 #gpio-cells = <2>; 533 534 interrupt-controller; 535 #interrupt-cells = <2>; 536 }; 537 538 gpio2: gpio2@20084000 { 539 compatible = "rockchip,gpio-bank"; 540 reg = <0x20084000 0x100>; 541 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; 542 clocks = <&cru PCLK_GPIO2>; 543 544 gpio-controller; 545 #gpio-cells = <2>; 546 547 interrupt-controller; 548 #interrupt-cells = <2>; 549 }; 550 551 pcfg_pull_default: pcfg_pull_default { 552 bias-pull-pin-default; 553 }; 554 555 pcfg_pull_none: pcfg-pull-none { 556 bias-disable; 557 }; 558 559 pwm0 { 560 pwm0_pin: pwm0-pin { 561 rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>; 562 }; 563 }; 564 565 pwm1 { 566 pwm1_pin: pwm1-pin { 567 rockchip,pins = <0 RK_PA1 2 &pcfg_pull_none>; 568 }; 569 }; 570 571 pwm2 { 572 pwm2_pin: pwm2-pin { 573 rockchip,pins = <0 RK_PA1 2 &pcfg_pull_none>; 574 }; 575 }; 576 577 pwm3 { 578 pwm3_pin: pwm3-pin { 579 rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>; 580 }; 581 }; 582 583 sdmmc { 584 sdmmc_clk: sdmmc-clk { 585 rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>; 586 }; 587 588 sdmmc_cmd: sdmmc-cmd { 589 rockchip,pins = <1 RK_PB7 1 &pcfg_pull_default>; 590 }; 591 592 sdmmc_cd: sdmmc-cd { 593 rockchip,pins = <1 RK_PC1 1 &pcfg_pull_default>; 594 }; 595 596 sdmmc_bus1: sdmmc-bus1 { 597 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_default>; 598 }; 599 600 sdmmc_bus4: sdmmc-bus4 { 601 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_default>, 602 <1 RK_PC3 1 &pcfg_pull_default>, 603 <1 RK_PC4 1 &pcfg_pull_default>, 604 <1 RK_PC5 1 &pcfg_pull_default>; 605 }; 606 }; 607 608 sdio { 609 sdio_bus1: sdio-bus1 { 610 rockchip,pins = <0 RK_PB3 1 &pcfg_pull_default>; 611 }; 612 613 sdio_bus4: sdio-bus4 { 614 rockchip,pins = <0 RK_PB3 1 &pcfg_pull_default>, 615 <0 RK_PB4 1 &pcfg_pull_default>, 616 <0 RK_PB5 1 &pcfg_pull_default>, 617 <0 RK_PB6 1 &pcfg_pull_default>; 618 }; 619 620 sdio_cmd: sdio-cmd { 621 rockchip,pins = <0 RK_PB0 1 &pcfg_pull_default>; 622 }; 623 624 sdio_clk: sdio-clk { 625 rockchip,pins = <0 RK_PB1 1 &pcfg_pull_none>; 626 }; 627 }; 628 629 emmc { 630 /* 631 * We run eMMC at max speed; bump up drive strength. 632 * We also have external pulls, so disable the internal ones. 633 */ 634 emmc_clk: emmc-clk { 635 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>; 636 }; 637 638 emmc_cmd: emmc-cmd { 639 rockchip,pins = <2 RK_PA1 2 &pcfg_pull_default>; 640 }; 641 642 emmc_bus8: emmc-bus8 { 643 rockchip,pins = <1 RK_PD0 2 &pcfg_pull_default>, 644 <1 RK_PD1 2 &pcfg_pull_default>, 645 <1 RK_PD2 2 &pcfg_pull_default>, 646 <1 RK_PD3 2 &pcfg_pull_default>, 647 <1 RK_PD4 2 &pcfg_pull_default>, 648 <1 RK_PD5 2 &pcfg_pull_default>, 649 <1 RK_PD6 2 &pcfg_pull_default>, 650 <1 RK_PD7 2 &pcfg_pull_default>; 651 }; 652 }; 653 654 emac { 655 emac_xfer: emac-xfer { 656 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_default>, /* crs_dvalid */ 657 <2 RK_PB5 1 &pcfg_pull_default>, /* tx_en */ 658 <2 RK_PB6 1 &pcfg_pull_default>, /* mac_clk */ 659 <2 RK_PB7 1 &pcfg_pull_default>, /* rx_err */ 660 <2 RK_PC0 1 &pcfg_pull_default>, /* rxd1 */ 661 <2 RK_PC1 1 &pcfg_pull_default>, /* rxd0 */ 662 <2 RK_PC2 1 &pcfg_pull_default>, /* txd1 */ 663 <2 RK_PC3 1 &pcfg_pull_default>; /* txd0 */ 664 }; 665 666 emac_mdio: emac-mdio { 667 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_default>, /* mac_md */ 668 <2 RK_PD1 1 &pcfg_pull_default>; /* mac_mdclk */ 669 }; 670 }; 671 672 i2c0 { 673 i2c0_xfer: i2c0-xfer { 674 rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>, 675 <0 RK_PA1 1 &pcfg_pull_none>; 676 }; 677 }; 678 679 i2c1 { 680 i2c1_xfer: i2c1-xfer { 681 rockchip,pins = <0 RK_PA2 1 &pcfg_pull_none>, 682 <0 RK_PA3 1 &pcfg_pull_none>; 683 }; 684 }; 685 686 i2c2 { 687 i2c2_xfer: i2c2-xfer { 688 rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>, 689 <2 RK_PC5 1 &pcfg_pull_none>; 690 }; 691 }; 692 693 i2s { 694 i2s_bus: i2s-bus { 695 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_default>, 696 <1 RK_PA1 1 &pcfg_pull_default>, 697 <1 RK_PA2 1 &pcfg_pull_default>, 698 <1 RK_PA3 1 &pcfg_pull_default>, 699 <1 RK_PA4 1 &pcfg_pull_default>, 700 <1 RK_PA5 1 &pcfg_pull_default>; 701 }; 702 }; 703 704 hdmi { 705 hdmi_ctl: hdmi-ctl { 706 rockchip,pins = <1 RK_PB0 1 &pcfg_pull_none>, 707 <1 RK_PB1 1 &pcfg_pull_none>, 708 <1 RK_PB2 1 &pcfg_pull_none>, 709 <1 RK_PB3 1 &pcfg_pull_none>; 710 }; 711 }; 712 713 uart0 { 714 uart0_xfer: uart0-xfer { 715 rockchip,pins = <0 RK_PC0 1 &pcfg_pull_default>, 716 <0 RK_PC1 1 &pcfg_pull_none>; 717 }; 718 719 uart0_cts: uart0-cts { 720 rockchip,pins = <0 RK_PC2 1 &pcfg_pull_default>; 721 }; 722 723 uart0_rts: uart0-rts { 724 rockchip,pins = <0 RK_PC3 1 &pcfg_pull_none>; 725 }; 726 }; 727 728 uart1 { 729 uart1_xfer: uart1-xfer { 730 rockchip,pins = <2 RK_PC6 1 &pcfg_pull_default>, 731 <2 RK_PC7 1 &pcfg_pull_none>; 732 }; 733 /* no rts / cts for uart1 */ 734 }; 735 736 uart2 { 737 uart2_xfer: uart2-xfer { 738 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_default>, 739 <1 RK_PC3 2 &pcfg_pull_none>; 740 }; 741 /* no rts / cts for uart2 */ 742 }; 743 744 spi-pins { 745 spi_txd:spi-txd { 746 rockchip,pins = <1 RK_PD5 3 &pcfg_pull_default>; 747 }; 748 749 spi_rxd:spi-rxd { 750 rockchip,pins = <1 RK_PD4 3 &pcfg_pull_default>; 751 }; 752 753 spi_clk:spi-clk { 754 rockchip,pins = <2 RK_PA0 2 &pcfg_pull_default>; 755 }; 756 757 spi_cs0:spi-cs0 { 758 rockchip,pins = <1 RK_PD6 3 &pcfg_pull_default>; 759 760 }; 761 762 spi_cs1:spi-cs1 { 763 rockchip,pins = <1 RK_PD7 3 &pcfg_pull_default>; 764 765 }; 766 }; 767 }; 768}; 769