1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * (C) Copyright 2017 Rockchip Electronics Co., Ltd 4 */ 5 6#include <dt-bindings/clock/rk3128-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 12/ { 13 compatible = "rockchip,rk3128"; 14 interrupt-parent = <&gic>; 15 #address-cells = <1>; 16 #size-cells = <1>; 17 18 arm-pmu { 19 compatible = "arm,cortex-a7-pmu"; 20 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, 21 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, 22 <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>, 23 <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; 24 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 25 }; 26 27 cpus { 28 #address-cells = <1>; 29 #size-cells = <0>; 30 31 cpu0: cpu@f00 { 32 device_type = "cpu"; 33 compatible = "arm,cortex-a7"; 34 reg = <0xf00>; 35 clock-latency = <40000>; 36 clocks = <&cru ARMCLK>; 37 operating-points = < 38 /* KHz uV */ 39 816000 1000000 40 >; 41 #cooling-cells = <2>; /* min followed by max */ 42 }; 43 44 cpu1: cpu@f01 { 45 device_type = "cpu"; 46 compatible = "arm,cortex-a7"; 47 reg = <0xf01>; 48 }; 49 50 cpu2: cpu@f02 { 51 device_type = "cpu"; 52 compatible = "arm,cortex-a7"; 53 reg = <0xf02>; 54 }; 55 56 cpu3: cpu@f03 { 57 device_type = "cpu"; 58 compatible = "arm,cortex-a7"; 59 reg = <0xf03>; 60 }; 61 }; 62 63 timer { 64 compatible = "arm,armv7-timer"; 65 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 66 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 67 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 68 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 69 arm,cpu-registers-not-fw-configured; 70 clock-frequency = <24000000>; 71 }; 72 73 xin24m: oscillator { 74 compatible = "fixed-clock"; 75 clock-frequency = <24000000>; 76 clock-output-names = "xin24m"; 77 #clock-cells = <0>; 78 }; 79 80 pmu: syscon@100a0000 { 81 compatible = "rockchip,rk3128-pmu", "syscon", "simple-mfd"; 82 reg = <0x100a0000 0x1000>; 83 }; 84 85 gic: interrupt-controller@10139000 { 86 compatible = "arm,cortex-a7-gic"; 87 reg = <0x10139000 0x1000>, 88 <0x1013a000 0x1000>, 89 <0x1013c000 0x2000>, 90 <0x1013e000 0x2000>; 91 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 92 interrupt-controller; 93 #interrupt-cells = <3>; 94 #address-cells = <0>; 95 }; 96 97 usb_otg: usb@10180000 { 98 compatible = "rockchip,rk3128-usb", "rockchip,rk3066-usb", "snps,dwc2"; 99 reg = <0x10180000 0x40000>; 100 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; 101 clocks = <&cru HCLK_OTG>; 102 clock-names = "otg"; 103 dr_mode = "otg"; 104 phys = <&usb2phy_otg>; 105 phy-names = "usb2-phy"; 106 status = "disabled"; 107 }; 108 109 usb_host_ehci: usb@101c0000 { 110 compatible = "generic-ehci"; 111 reg = <0x101c0000 0x20000>; 112 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; 113 phys = <&usb2phy_host>; 114 phy-names = "usb"; 115 status = "disabled"; 116 }; 117 118 usb_host_ohci: usb@101e0000 { 119 compatible = "generic-ohci"; 120 reg = <0x101e0000 0x20000>; 121 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 122 phys = <&usb2phy_host>; 123 phy-names = "usb"; 124 status = "disabled"; 125 }; 126 127 sdmmc: mmc@10214000 { 128 compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc"; 129 reg = <0x10214000 0x4000>; 130 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 131 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, 132 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; 133 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 134 dmas = <&pdma 10>; 135 dma-names = "rx-tx"; 136 fifo-depth = <256>; 137 max-frequency = <150000000>; 138 resets = <&cru SRST_SDMMC>; 139 reset-names = "reset"; 140 status = "disabled"; 141 }; 142 143 sdio: mmc@10218000 { 144 compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc"; 145 reg = <0x10218000 0x4000>; 146 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; 147 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, 148 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; 149 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 150 dmas = <&pdma 11>; 151 dma-names = "rx-tx"; 152 fifo-depth = <256>; 153 max-frequency = <150000000>; 154 resets = <&cru SRST_SDIO>; 155 reset-names = "reset"; 156 status = "disabled"; 157 }; 158 159 emmc: mmc@1021c000 { 160 compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc"; 161 reg = <0x1021c000 0x4000>; 162 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 163 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, 164 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; 165 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 166 dmas = <&pdma 12>; 167 dma-names = "rx-tx"; 168 fifo-depth = <256>; 169 max-frequency = <150000000>; 170 resets = <&cru SRST_EMMC>; 171 reset-names = "reset"; 172 status = "disabled"; 173 }; 174 175 nfc: nand-controller@10500000 { 176 compatible = "rockchip,rk3128-nfc", "rockchip,rk2928-nfc"; 177 reg = <0x10500000 0x4000>; 178 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; 179 clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>; 180 clock-names = "ahb", "nfc"; 181 pinctrl-names = "default"; 182 pinctrl-0 = <&flash_ale &flash_bus8 &flash_cle &flash_cs0 183 &flash_dqs &flash_rdn &flash_rdy &flash_wrn>; 184 status = "disabled"; 185 }; 186 187 cru: clock-controller@20000000 { 188 compatible = "rockchip,rk3128-cru"; 189 reg = <0x20000000 0x1000>; 190 clocks = <&xin24m>; 191 clock-names = "xin24m"; 192 rockchip,grf = <&grf>; 193 #clock-cells = <1>; 194 #reset-cells = <1>; 195 assigned-clocks = <&cru PLL_GPLL>; 196 assigned-clock-rates = <594000000>; 197 }; 198 199 grf: syscon@20008000 { 200 compatible = "rockchip,rk3128-grf", "syscon", "simple-mfd"; 201 reg = <0x20008000 0x1000>; 202 #address-cells = <1>; 203 #size-cells = <1>; 204 205 usb2phy: usb2phy@17c { 206 compatible = "rockchip,rk3128-usb2phy"; 207 reg = <0x017c 0x0c>; 208 clocks = <&cru SCLK_OTGPHY0>; 209 clock-names = "phyclk"; 210 clock-output-names = "usb480m_phy"; 211 #clock-cells = <0>; 212 status = "disabled"; 213 214 usb2phy_host: host-port { 215 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; 216 interrupt-names = "linestate"; 217 #phy-cells = <0>; 218 status = "disabled"; 219 }; 220 221 usb2phy_otg: otg-port { 222 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>, 223 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, 224 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; 225 interrupt-names = "otg-bvalid", "otg-id", 226 "linestate"; 227 #phy-cells = <0>; 228 status = "disabled"; 229 }; 230 }; 231 }; 232 233 timer0: timer@20044000 { 234 compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; 235 reg = <0x20044000 0x20>; 236 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; 237 clocks = <&cru PCLK_TIMER>, <&xin24m>; 238 clock-names = "pclk", "timer"; 239 }; 240 241 timer1: timer@20044020 { 242 compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; 243 reg = <0x20044020 0x20>; 244 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 245 clocks = <&cru PCLK_TIMER>, <&xin24m>; 246 clock-names = "pclk", "timer"; 247 }; 248 249 timer2: timer@20044040 { 250 compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; 251 reg = <0x20044040 0x20>; 252 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; 253 clocks = <&cru PCLK_TIMER>, <&xin24m>; 254 clock-names = "pclk", "timer"; 255 }; 256 257 timer3: timer@20044060 { 258 compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; 259 reg = <0x20044060 0x20>; 260 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; 261 clocks = <&cru PCLK_TIMER>, <&xin24m>; 262 clock-names = "pclk", "timer"; 263 }; 264 265 timer4: timer@20044080 { 266 compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; 267 reg = <0x20044080 0x20>; 268 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 269 clocks = <&cru PCLK_TIMER>, <&xin24m>; 270 clock-names = "pclk", "timer"; 271 }; 272 273 timer5: timer@200440a0 { 274 compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; 275 reg = <0x200440a0 0x20>; 276 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 277 clocks = <&cru PCLK_TIMER>, <&xin24m>; 278 clock-names = "pclk", "timer"; 279 }; 280 281 watchdog: watchdog@2004c000 { 282 compatible = "rockchip,rk3128-wdt", "snps,dw-wdt"; 283 reg = <0x2004c000 0x100>; 284 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; 285 clocks = <&cru PCLK_WDT>; 286 status = "disabled"; 287 }; 288 289 pwm0: pwm@20050000 { 290 compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm"; 291 reg = <0x20050000 0x10>; 292 clocks = <&cru PCLK_PWM>; 293 pinctrl-names = "default"; 294 pinctrl-0 = <&pwm0_pin>; 295 #pwm-cells = <3>; 296 status = "disabled"; 297 }; 298 299 pwm1: pwm@20050010 { 300 compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm"; 301 reg = <0x20050010 0x10>; 302 clocks = <&cru PCLK_PWM>; 303 pinctrl-names = "default"; 304 pinctrl-0 = <&pwm1_pin>; 305 #pwm-cells = <3>; 306 status = "disabled"; 307 }; 308 309 pwm2: pwm@20050020 { 310 compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm"; 311 reg = <0x20050020 0x10>; 312 clocks = <&cru PCLK_PWM>; 313 pinctrl-names = "default"; 314 pinctrl-0 = <&pwm2_pin>; 315 #pwm-cells = <3>; 316 status = "disabled"; 317 }; 318 319 pwm3: pwm@20050030 { 320 compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm"; 321 reg = <0x20050030 0x10>; 322 clocks = <&cru PCLK_PWM>; 323 pinctrl-names = "default"; 324 pinctrl-0 = <&pwm3_pin>; 325 #pwm-cells = <3>; 326 status = "disabled"; 327 }; 328 329 i2c1: i2c@20056000 { 330 compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; 331 reg = <0x20056000 0x1000>; 332 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 333 clock-names = "i2c"; 334 clocks = <&cru PCLK_I2C1>; 335 pinctrl-names = "default"; 336 pinctrl-0 = <&i2c1_xfer>; 337 #address-cells = <1>; 338 #size-cells = <0>; 339 status = "disabled"; 340 }; 341 342 i2c2: i2c@2005a000 { 343 compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; 344 reg = <0x2005a000 0x1000>; 345 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; 346 clock-names = "i2c"; 347 clocks = <&cru PCLK_I2C2>; 348 pinctrl-names = "default"; 349 pinctrl-0 = <&i2c2_xfer>; 350 #address-cells = <1>; 351 #size-cells = <0>; 352 status = "disabled"; 353 }; 354 355 i2c3: i2c@2005e000 { 356 compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; 357 reg = <0x2005e000 0x1000>; 358 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; 359 clock-names = "i2c"; 360 clocks = <&cru PCLK_I2C3>; 361 pinctrl-names = "default"; 362 pinctrl-0 = <&i2c3_xfer>; 363 #address-cells = <1>; 364 #size-cells = <0>; 365 status = "disabled"; 366 }; 367 368 uart0: serial@20060000 { 369 compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart"; 370 reg = <0x20060000 0x100>; 371 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; 372 clock-frequency = <24000000>; 373 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; 374 clock-names = "baudclk", "apb_pclk"; 375 dmas = <&pdma 2>, <&pdma 3>; 376 dma-names = "tx", "rx"; 377 pinctrl-names = "default"; 378 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 379 reg-io-width = <4>; 380 reg-shift = <2>; 381 status = "disabled"; 382 }; 383 384 uart1: serial@20064000 { 385 compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart"; 386 reg = <0x20064000 0x100>; 387 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 388 clock-frequency = <24000000>; 389 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; 390 clock-names = "baudclk", "apb_pclk"; 391 dmas = <&pdma 4>, <&pdma 5>; 392 dma-names = "tx", "rx"; 393 pinctrl-names = "default"; 394 pinctrl-0 = <&uart1_xfer>; 395 reg-io-width = <4>; 396 reg-shift = <2>; 397 status = "disabled"; 398 }; 399 400 uart2: serial@20068000 { 401 compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart"; 402 reg = <0x20068000 0x100>; 403 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; 404 clock-frequency = <24000000>; 405 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; 406 clock-names = "baudclk", "apb_pclk"; 407 dmas = <&pdma 6>, <&pdma 7>; 408 dma-names = "tx", "rx"; 409 pinctrl-names = "default"; 410 pinctrl-0 = <&uart2_xfer>; 411 reg-io-width = <4>; 412 reg-shift = <2>; 413 status = "disabled"; 414 }; 415 416 saradc: saradc@2006c000 { 417 compatible = "rockchip,saradc"; 418 reg = <0x2006c000 0x100>; 419 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 420 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; 421 clock-names = "saradc", "apb_pclk"; 422 resets = <&cru SRST_SARADC>; 423 reset-names = "saradc-apb"; 424 #io-channel-cells = <1>; 425 status = "disabled"; 426 }; 427 428 i2c0: i2c@20072000 { 429 compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; 430 reg = <0x20072000 0x1000>; 431 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; 432 clock-names = "i2c"; 433 clocks = <&cru PCLK_I2C0>; 434 pinctrl-names = "default"; 435 pinctrl-0 = <&i2c0_xfer>; 436 #address-cells = <1>; 437 #size-cells = <0>; 438 status = "disabled"; 439 }; 440 441 spi0: spi@20074000 { 442 compatible = "rockchip,rk3128-spi", "rockchip,rk3066-spi"; 443 reg = <0x20074000 0x1000>; 444 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 445 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; 446 clock-names = "spiclk", "apb_pclk"; 447 dmas = <&pdma 8>, <&pdma 9>; 448 dma-names = "tx", "rx"; 449 pinctrl-names = "default"; 450 pinctrl-0 = <&spi0_tx &spi0_rx &spi0_clk &spi0_cs0 &spi0_cs1>; 451 #address-cells = <1>; 452 #size-cells = <0>; 453 status = "disabled"; 454 }; 455 456 pdma: dma-controller@20078000 { 457 compatible = "arm,pl330", "arm,primecell"; 458 reg = <0x20078000 0x4000>; 459 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, 460 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 461 arm,pl330-broken-no-flushp; 462 clocks = <&cru ACLK_DMAC>; 463 clock-names = "apb_pclk"; 464 #dma-cells = <1>; 465 }; 466 467 pinctrl: pinctrl { 468 compatible = "rockchip,rk3128-pinctrl"; 469 rockchip,grf = <&grf>; 470 #address-cells = <1>; 471 #size-cells = <1>; 472 ranges; 473 474 gpio0: gpio@2007c000 { 475 compatible = "rockchip,gpio-bank"; 476 reg = <0x2007c000 0x100>; 477 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; 478 clocks = <&cru PCLK_GPIO0>; 479 gpio-controller; 480 #gpio-cells = <2>; 481 interrupt-controller; 482 #interrupt-cells = <2>; 483 }; 484 485 gpio1: gpio@20080000 { 486 compatible = "rockchip,gpio-bank"; 487 reg = <0x20080000 0x100>; 488 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 489 clocks = <&cru PCLK_GPIO1>; 490 gpio-controller; 491 #gpio-cells = <2>; 492 interrupt-controller; 493 #interrupt-cells = <2>; 494 }; 495 496 gpio2: gpio@20084000 { 497 compatible = "rockchip,gpio-bank"; 498 reg = <0x20084000 0x100>; 499 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; 500 clocks = <&cru PCLK_GPIO2>; 501 gpio-controller; 502 #gpio-cells = <2>; 503 interrupt-controller; 504 #interrupt-cells = <2>; 505 }; 506 507 gpio3: gpio@20088000 { 508 compatible = "rockchip,gpio-bank"; 509 reg = <0x20088000 0x100>; 510 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 511 clocks = <&cru PCLK_GPIO3>; 512 gpio-controller; 513 #gpio-cells = <2>; 514 interrupt-controller; 515 #interrupt-cells = <2>; 516 }; 517 518 pcfg_pull_default: pcfg-pull-default { 519 bias-pull-pin-default; 520 }; 521 522 pcfg_pull_none: pcfg-pull-none { 523 bias-disable; 524 }; 525 526 emmc { 527 emmc_clk: emmc-clk { 528 rockchip,pins = <2 RK_PA7 2 &pcfg_pull_none>; 529 }; 530 531 emmc_cmd: emmc-cmd { 532 rockchip,pins = <1 RK_PC6 2 &pcfg_pull_default>; 533 }; 534 535 emmc_cmd1: emmc-cmd1 { 536 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_default>; 537 }; 538 539 emmc_pwr: emmc-pwr { 540 rockchip,pins = <2 RK_PA5 2 &pcfg_pull_default>; 541 }; 542 543 emmc_bus1: emmc-bus1 { 544 rockchip,pins = <1 RK_PD0 2 &pcfg_pull_default>; 545 }; 546 547 emmc_bus4: emmc-bus4 { 548 rockchip,pins = <1 RK_PD0 2 &pcfg_pull_default>, 549 <1 RK_PD1 2 &pcfg_pull_default>, 550 <1 RK_PD2 2 &pcfg_pull_default>, 551 <1 RK_PD3 2 &pcfg_pull_default>; 552 }; 553 554 emmc_bus8: emmc-bus8 { 555 rockchip,pins = <1 RK_PD0 2 &pcfg_pull_default>, 556 <1 RK_PD1 2 &pcfg_pull_default>, 557 <1 RK_PD2 2 &pcfg_pull_default>, 558 <1 RK_PD3 2 &pcfg_pull_default>, 559 <1 RK_PD4 2 &pcfg_pull_default>, 560 <1 RK_PD5 2 &pcfg_pull_default>, 561 <1 RK_PD6 2 &pcfg_pull_default>, 562 <1 RK_PD7 2 &pcfg_pull_default>; 563 }; 564 }; 565 566 gmac { 567 rgmii_pins: rgmii-pins { 568 rockchip,pins = <2 RK_PB0 3 &pcfg_pull_default>, 569 <2 RK_PB1 3 &pcfg_pull_default>, 570 <2 RK_PB3 3 &pcfg_pull_default>, 571 <2 RK_PB4 3 &pcfg_pull_default>, 572 <2 RK_PB5 3 &pcfg_pull_default>, 573 <2 RK_PB6 3 &pcfg_pull_default>, 574 <2 RK_PC0 3 &pcfg_pull_default>, 575 <2 RK_PC1 3 &pcfg_pull_default>, 576 <2 RK_PC2 3 &pcfg_pull_default>, 577 <2 RK_PC3 3 &pcfg_pull_default>, 578 <2 RK_PD1 3 &pcfg_pull_default>, 579 <2 RK_PC4 4 &pcfg_pull_default>, 580 <2 RK_PC5 4 &pcfg_pull_default>, 581 <2 RK_PC6 4 &pcfg_pull_default>, 582 <2 RK_PC7 4 &pcfg_pull_default>; 583 }; 584 585 rmii_pins: rmii-pins { 586 rockchip,pins = <2 RK_PB0 3 &pcfg_pull_default>, 587 <2 RK_PB4 3 &pcfg_pull_default>, 588 <2 RK_PB5 3 &pcfg_pull_default>, 589 <2 RK_PB6 3 &pcfg_pull_default>, 590 <2 RK_PB7 3 &pcfg_pull_default>, 591 <2 RK_PC0 3 &pcfg_pull_default>, 592 <2 RK_PC1 3 &pcfg_pull_default>, 593 <2 RK_PC2 3 &pcfg_pull_default>, 594 <2 RK_PC3 3 &pcfg_pull_default>, 595 <2 RK_PD1 3 &pcfg_pull_default>; 596 }; 597 }; 598 599 hdmi { 600 hdmii2c_xfer: hdmii2c-xfer { 601 rockchip,pins = <0 RK_PA6 2 &pcfg_pull_none>, 602 <0 RK_PA7 2 &pcfg_pull_none>; 603 }; 604 605 hdmi_hpd: hdmi-hpd { 606 rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>; 607 }; 608 609 hdmi_cec: hdmi-cec { 610 rockchip,pins = <0 RK_PC4 1 &pcfg_pull_none>; 611 }; 612 }; 613 614 i2c0 { 615 i2c0_xfer: i2c0-xfer { 616 rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>, 617 <0 RK_PA1 1 &pcfg_pull_none>; 618 }; 619 }; 620 621 i2c1 { 622 i2c1_xfer: i2c1-xfer { 623 rockchip,pins = <0 RK_PA2 1 &pcfg_pull_none>, 624 <0 RK_PA3 1 &pcfg_pull_none>; 625 }; 626 }; 627 628 i2c2 { 629 i2c2_xfer: i2c2-xfer { 630 rockchip,pins = <2 RK_PC4 3 &pcfg_pull_none>, 631 <2 RK_PC5 3 &pcfg_pull_none>; 632 }; 633 }; 634 635 i2c3 { 636 i2c3_xfer: i2c3-xfer { 637 rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>, 638 <0 RK_PA7 1 &pcfg_pull_none>; 639 }; 640 }; 641 642 i2s { 643 i2s_bus: i2s-bus { 644 rockchip,pins = <0 RK_PB0 1 &pcfg_pull_none>, 645 <0 RK_PB1 1 &pcfg_pull_none>, 646 <0 RK_PB3 1 &pcfg_pull_none>, 647 <0 RK_PB4 1 &pcfg_pull_none>, 648 <0 RK_PB5 1 &pcfg_pull_none>, 649 <0 RK_PB6 1 &pcfg_pull_none>; 650 }; 651 652 i2s1_bus: i2s1-bus { 653 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_none>, 654 <1 RK_PA1 1 &pcfg_pull_none>, 655 <1 RK_PA2 1 &pcfg_pull_none>, 656 <1 RK_PA3 1 &pcfg_pull_none>, 657 <1 RK_PA4 1 &pcfg_pull_none>, 658 <1 RK_PA5 1 &pcfg_pull_none>; 659 }; 660 }; 661 662 lcdc { 663 lcdc_dclk: lcdc-dclk { 664 rockchip,pins = <2 RK_PB0 1 &pcfg_pull_none>; 665 }; 666 667 lcdc_den: lcdc-den { 668 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_none>; 669 }; 670 671 lcdc_hsync: lcdc-hsync { 672 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_none>; 673 }; 674 675 lcdc_vsync: lcdc-vsync { 676 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_none>; 677 }; 678 679 lcdc_rgb24: lcdc-rgb24 { 680 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_none>, 681 <2 RK_PB5 1 &pcfg_pull_none>, 682 <2 RK_PB6 1 &pcfg_pull_none>, 683 <2 RK_PB7 1 &pcfg_pull_none>, 684 <2 RK_PC0 1 &pcfg_pull_none>, 685 <2 RK_PC1 1 &pcfg_pull_none>, 686 <2 RK_PC2 1 &pcfg_pull_none>, 687 <2 RK_PC3 1 &pcfg_pull_none>, 688 <2 RK_PC4 1 &pcfg_pull_none>, 689 <2 RK_PC5 1 &pcfg_pull_none>, 690 <2 RK_PC6 1 &pcfg_pull_none>, 691 <2 RK_PC7 1 &pcfg_pull_none>, 692 <2 RK_PD0 1 &pcfg_pull_none>, 693 <2 RK_PD1 1 &pcfg_pull_none>; 694 }; 695 }; 696 697 nfc { 698 flash_ale: flash-ale { 699 rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>; 700 }; 701 702 flash_cle: flash-cle { 703 rockchip,pins = <2 RK_PA1 1 &pcfg_pull_none>; 704 }; 705 706 flash_wrn: flash-wrn { 707 rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>; 708 }; 709 710 flash_rdn: flash-rdn { 711 rockchip,pins = <2 RK_PA3 1 &pcfg_pull_none>; 712 }; 713 714 flash_rdy: flash-rdy { 715 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>; 716 }; 717 718 flash_cs0: flash-cs0 { 719 rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>; 720 }; 721 722 flash_dqs: flash-dqs { 723 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_none>; 724 }; 725 726 flash_bus8: flash-bus8 { 727 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>, 728 <1 RK_PD1 1 &pcfg_pull_none>, 729 <1 RK_PD2 1 &pcfg_pull_none>, 730 <1 RK_PD3 1 &pcfg_pull_none>, 731 <1 RK_PD4 1 &pcfg_pull_none>, 732 <1 RK_PD5 1 &pcfg_pull_none>, 733 <1 RK_PD6 1 &pcfg_pull_none>, 734 <1 RK_PD7 1 &pcfg_pull_none>; 735 }; 736 }; 737 738 pwm0 { 739 pwm0_pin: pwm0-pin { 740 rockchip,pins = <0 RK_PD2 1 &pcfg_pull_none>; 741 }; 742 }; 743 744 pwm1 { 745 pwm1_pin: pwm1-pin { 746 rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>; 747 }; 748 }; 749 750 pwm2 { 751 pwm2_pin: pwm2-pin { 752 rockchip,pins = <0 RK_PD4 1 &pcfg_pull_none>; 753 }; 754 }; 755 756 pwm3 { 757 pwm3_pin: pwm3-pin { 758 rockchip,pins = <3 RK_PD2 1 &pcfg_pull_none>; 759 }; 760 }; 761 762 sdio { 763 sdio_clk: sdio-clk { 764 rockchip,pins = <1 RK_PA0 2 &pcfg_pull_none>; 765 }; 766 767 sdio_cmd: sdio-cmd { 768 rockchip,pins = <0 RK_PA3 2 &pcfg_pull_default>; 769 }; 770 771 sdio_pwren: sdio-pwren { 772 rockchip,pins = <0 RK_PD6 1 &pcfg_pull_default>; 773 }; 774 775 sdio_bus4: sdio-bus4 { 776 rockchip,pins = <1 RK_PA1 2 &pcfg_pull_default>, 777 <1 RK_PA2 2 &pcfg_pull_default>, 778 <1 RK_PA4 2 &pcfg_pull_default>, 779 <1 RK_PA5 2 &pcfg_pull_default>; 780 }; 781 }; 782 783 sdmmc { 784 sdmmc_clk: sdmmc-clk { 785 rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>; 786 }; 787 788 sdmmc_cmd: sdmmc-cmd { 789 rockchip,pins = <1 RK_PB7 1 &pcfg_pull_default>; 790 }; 791 792 sdmmc_wp: sdmmc-wp { 793 rockchip,pins = <1 RK_PA7 1 &pcfg_pull_default>; 794 }; 795 796 sdmmc_pwren: sdmmc-pwren { 797 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_default>; 798 }; 799 800 sdmmc_bus4: sdmmc-bus4 { 801 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_default>, 802 <1 RK_PC3 1 &pcfg_pull_default>, 803 <1 RK_PC4 1 &pcfg_pull_default>, 804 <1 RK_PC5 1 &pcfg_pull_default>; 805 }; 806 }; 807 808 spdif { 809 spdif_tx: spdif-tx { 810 rockchip,pins = <3 RK_PD3 1 &pcfg_pull_none>; 811 }; 812 }; 813 814 spi0 { 815 spi0_clk: spi0-clk { 816 rockchip,pins = <1 RK_PB0 1 &pcfg_pull_default>; 817 }; 818 819 spi0_cs0: spi0-cs0 { 820 rockchip,pins = <1 RK_PB3 1 &pcfg_pull_default>; 821 }; 822 823 spi0_tx: spi0-tx { 824 rockchip,pins = <1 RK_PB1 1 &pcfg_pull_default>; 825 }; 826 827 spi0_rx: spi0-rx { 828 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_default>; 829 }; 830 831 spi0_cs1: spi0-cs1 { 832 rockchip,pins = <1 RK_PB4 1 &pcfg_pull_default>; 833 }; 834 835 spi1_clk: spi1-clk { 836 rockchip,pins = <2 RK_PA0 2 &pcfg_pull_default>; 837 }; 838 839 spi1_cs0: spi1-cs0 { 840 rockchip,pins = <1 RK_PD6 3 &pcfg_pull_default>; 841 }; 842 843 spi1_tx: spi1-tx { 844 rockchip,pins = <1 RK_PD5 3 &pcfg_pull_default>; 845 }; 846 847 spi1_rx: spi1-rx { 848 rockchip,pins = <1 RK_PD4 3 &pcfg_pull_default>; 849 }; 850 851 spi1_cs1: spi1-cs1 { 852 rockchip,pins = <1 RK_PD7 3 &pcfg_pull_default>; 853 }; 854 855 spi2_clk: spi2-clk { 856 rockchip,pins = <0 RK_PB1 2 &pcfg_pull_default>; 857 }; 858 859 spi2_cs0: spi2-cs0 { 860 rockchip,pins = <0 RK_PB6 2 &pcfg_pull_default>; 861 }; 862 863 spi2_tx: spi2-tx { 864 rockchip,pins = <0 RK_PB3 2 &pcfg_pull_default>; 865 }; 866 867 spi2_rx: spi2-rx { 868 rockchip,pins = <0 RK_PB5 2 &pcfg_pull_default>; 869 }; 870 }; 871 872 uart0 { 873 uart0_xfer: uart0-xfer { 874 rockchip,pins = <2 RK_PD2 2 &pcfg_pull_default>, 875 <2 RK_PD3 2 &pcfg_pull_none>; 876 }; 877 878 uart0_cts: uart0-cts { 879 rockchip,pins = <2 RK_PD5 2 &pcfg_pull_none>; 880 }; 881 882 uart0_rts: uart0-rts { 883 rockchip,pins = <0 RK_PC1 2 &pcfg_pull_none>; 884 }; 885 }; 886 887 uart1 { 888 uart1_xfer: uart1-xfer { 889 rockchip,pins = <1 RK_PB1 2 &pcfg_pull_default>, 890 <1 RK_PB2 2 &pcfg_pull_default>; 891 }; 892 893 uart1_cts: uart1-cts { 894 rockchip,pins = <1 RK_PB0 2 &pcfg_pull_none>; 895 }; 896 897 uart1_rts: uart1-rts { 898 rockchip,pins = <1 RK_PB3 2 &pcfg_pull_none>; 899 }; 900 }; 901 902 uart2 { 903 uart2_xfer: uart2-xfer { 904 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_default>, 905 <1 RK_PC3 2 &pcfg_pull_none>; 906 }; 907 908 uart2_cts: uart2-cts { 909 rockchip,pins = <0 RK_PD1 1 &pcfg_pull_none>; 910 }; 911 912 uart2_rts: uart2-rts { 913 rockchip,pins = <0 RK_PD0 1 &pcfg_pull_none>; 914 }; 915 }; 916 }; 917}; 918