1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd 4 */ 5 6#include <dt-bindings/clock/rk3328-cru.h> 7#include <dt-bindings/gpio/gpio.h> 8#include <dt-bindings/interrupt-controller/arm-gic.h> 9#include <dt-bindings/interrupt-controller/irq.h> 10#include <dt-bindings/pinctrl/rockchip.h> 11#include <dt-bindings/power/rk3328-power.h> 12#include <dt-bindings/soc/rockchip,boot-mode.h> 13#include <dt-bindings/thermal/thermal.h> 14 15/ { 16 compatible = "rockchip,rk3328"; 17 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; 21 22 aliases { 23 serial0 = &uart0; 24 serial1 = &uart1; 25 serial2 = &uart2; 26 i2c0 = &i2c0; 27 i2c1 = &i2c1; 28 i2c2 = &i2c2; 29 i2c3 = &i2c3; 30 ethernet0 = &gmac2io; 31 ethernet1 = &gmac2phy; 32 }; 33 34 cpus { 35 #address-cells = <2>; 36 #size-cells = <0>; 37 38 cpu0: cpu@0 { 39 device_type = "cpu"; 40 compatible = "arm,cortex-a53"; 41 reg = <0x0 0x0>; 42 clocks = <&cru ARMCLK>; 43 #cooling-cells = <2>; 44 cpu-idle-states = <&CPU_SLEEP>; 45 dynamic-power-coefficient = <120>; 46 enable-method = "psci"; 47 next-level-cache = <&l2>; 48 operating-points-v2 = <&cpu0_opp_table>; 49 }; 50 51 cpu1: cpu@1 { 52 device_type = "cpu"; 53 compatible = "arm,cortex-a53"; 54 reg = <0x0 0x1>; 55 clocks = <&cru ARMCLK>; 56 #cooling-cells = <2>; 57 cpu-idle-states = <&CPU_SLEEP>; 58 dynamic-power-coefficient = <120>; 59 enable-method = "psci"; 60 next-level-cache = <&l2>; 61 operating-points-v2 = <&cpu0_opp_table>; 62 }; 63 64 cpu2: cpu@2 { 65 device_type = "cpu"; 66 compatible = "arm,cortex-a53"; 67 reg = <0x0 0x2>; 68 clocks = <&cru ARMCLK>; 69 #cooling-cells = <2>; 70 cpu-idle-states = <&CPU_SLEEP>; 71 dynamic-power-coefficient = <120>; 72 enable-method = "psci"; 73 next-level-cache = <&l2>; 74 operating-points-v2 = <&cpu0_opp_table>; 75 }; 76 77 cpu3: cpu@3 { 78 device_type = "cpu"; 79 compatible = "arm,cortex-a53"; 80 reg = <0x0 0x3>; 81 clocks = <&cru ARMCLK>; 82 #cooling-cells = <2>; 83 cpu-idle-states = <&CPU_SLEEP>; 84 dynamic-power-coefficient = <120>; 85 enable-method = "psci"; 86 next-level-cache = <&l2>; 87 operating-points-v2 = <&cpu0_opp_table>; 88 }; 89 90 idle-states { 91 entry-method = "psci"; 92 93 CPU_SLEEP: cpu-sleep { 94 compatible = "arm,idle-state"; 95 local-timer-stop; 96 arm,psci-suspend-param = <0x0010000>; 97 entry-latency-us = <120>; 98 exit-latency-us = <250>; 99 min-residency-us = <900>; 100 }; 101 }; 102 103 l2: l2-cache0 { 104 compatible = "cache"; 105 cache-level = <2>; 106 cache-unified; 107 }; 108 }; 109 110 cpu0_opp_table: opp-table-0 { 111 compatible = "operating-points-v2"; 112 opp-shared; 113 114 opp-408000000 { 115 opp-hz = /bits/ 64 <408000000>; 116 opp-microvolt = <950000>; 117 clock-latency-ns = <40000>; 118 opp-suspend; 119 }; 120 opp-600000000 { 121 opp-hz = /bits/ 64 <600000000>; 122 opp-microvolt = <950000>; 123 clock-latency-ns = <40000>; 124 }; 125 opp-816000000 { 126 opp-hz = /bits/ 64 <816000000>; 127 opp-microvolt = <1000000>; 128 clock-latency-ns = <40000>; 129 }; 130 opp-1008000000 { 131 opp-hz = /bits/ 64 <1008000000>; 132 opp-microvolt = <1100000>; 133 clock-latency-ns = <40000>; 134 }; 135 opp-1200000000 { 136 opp-hz = /bits/ 64 <1200000000>; 137 opp-microvolt = <1225000>; 138 clock-latency-ns = <40000>; 139 }; 140 opp-1296000000 { 141 opp-hz = /bits/ 64 <1296000000>; 142 opp-microvolt = <1300000>; 143 clock-latency-ns = <40000>; 144 }; 145 }; 146 147 analog_sound: analog-sound { 148 compatible = "simple-audio-card"; 149 simple-audio-card,format = "i2s"; 150 simple-audio-card,mclk-fs = <256>; 151 simple-audio-card,name = "Analog"; 152 status = "disabled"; 153 154 simple-audio-card,cpu { 155 sound-dai = <&i2s1>; 156 }; 157 158 simple-audio-card,codec { 159 sound-dai = <&codec>; 160 }; 161 }; 162 163 arm-pmu { 164 compatible = "arm,cortex-a53-pmu"; 165 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, 166 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>, 167 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, 168 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; 169 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 170 }; 171 172 display_subsystem: display-subsystem { 173 compatible = "rockchip,display-subsystem"; 174 ports = <&vop_out>; 175 }; 176 177 hdmi_sound: hdmi-sound { 178 compatible = "simple-audio-card"; 179 simple-audio-card,format = "i2s"; 180 simple-audio-card,mclk-fs = <128>; 181 simple-audio-card,name = "HDMI"; 182 status = "disabled"; 183 184 simple-audio-card,cpu { 185 sound-dai = <&i2s0>; 186 }; 187 188 simple-audio-card,codec { 189 sound-dai = <&hdmi>; 190 }; 191 }; 192 193 psci { 194 compatible = "arm,psci-1.0", "arm,psci-0.2"; 195 method = "smc"; 196 }; 197 198 timer { 199 compatible = "arm,armv8-timer"; 200 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 201 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 202 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 203 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; 204 }; 205 206 xin24m: xin24m { 207 compatible = "fixed-clock"; 208 #clock-cells = <0>; 209 clock-frequency = <24000000>; 210 clock-output-names = "xin24m"; 211 }; 212 213 i2s0: i2s@ff000000 { 214 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s"; 215 reg = <0x0 0xff000000 0x0 0x1000>; 216 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; 217 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>; 218 clock-names = "i2s_clk", "i2s_hclk"; 219 dmas = <&dmac 11>, <&dmac 12>; 220 dma-names = "tx", "rx"; 221 #sound-dai-cells = <0>; 222 status = "disabled"; 223 }; 224 225 i2s1: i2s@ff010000 { 226 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s"; 227 reg = <0x0 0xff010000 0x0 0x1000>; 228 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; 229 clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>; 230 clock-names = "i2s_clk", "i2s_hclk"; 231 dmas = <&dmac 14>, <&dmac 15>; 232 dma-names = "tx", "rx"; 233 #sound-dai-cells = <0>; 234 status = "disabled"; 235 }; 236 237 i2s2: i2s@ff020000 { 238 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s"; 239 reg = <0x0 0xff020000 0x0 0x1000>; 240 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; 241 clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>; 242 clock-names = "i2s_clk", "i2s_hclk"; 243 dmas = <&dmac 0>, <&dmac 1>; 244 dma-names = "tx", "rx"; 245 #sound-dai-cells = <0>; 246 status = "disabled"; 247 }; 248 249 spdif: spdif@ff030000 { 250 compatible = "rockchip,rk3328-spdif"; 251 reg = <0x0 0xff030000 0x0 0x1000>; 252 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 253 clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>; 254 clock-names = "mclk", "hclk"; 255 dmas = <&dmac 10>; 256 dma-names = "tx"; 257 pinctrl-names = "default"; 258 pinctrl-0 = <&spdifm2_tx>; 259 #sound-dai-cells = <0>; 260 status = "disabled"; 261 }; 262 263 pdm: pdm@ff040000 { 264 compatible = "rockchip,pdm"; 265 reg = <0x0 0xff040000 0x0 0x1000>; 266 clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>; 267 clock-names = "pdm_clk", "pdm_hclk"; 268 dmas = <&dmac 16>; 269 dma-names = "rx"; 270 pinctrl-names = "default", "sleep"; 271 pinctrl-0 = <&pdmm0_clk 272 &pdmm0_sdi0 273 &pdmm0_sdi1 274 &pdmm0_sdi2 275 &pdmm0_sdi3>; 276 pinctrl-1 = <&pdmm0_clk_sleep 277 &pdmm0_sdi0_sleep 278 &pdmm0_sdi1_sleep 279 &pdmm0_sdi2_sleep 280 &pdmm0_sdi3_sleep>; 281 status = "disabled"; 282 }; 283 284 grf: syscon@ff100000 { 285 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd"; 286 reg = <0x0 0xff100000 0x0 0x1000>; 287 288 io_domains: io-domains { 289 compatible = "rockchip,rk3328-io-voltage-domain"; 290 status = "disabled"; 291 }; 292 293 grf_gpio: gpio { 294 compatible = "rockchip,rk3328-grf-gpio"; 295 gpio-controller; 296 #gpio-cells = <2>; 297 }; 298 299 power: power-controller { 300 compatible = "rockchip,rk3328-power-controller"; 301 #power-domain-cells = <1>; 302 #address-cells = <1>; 303 #size-cells = <0>; 304 305 power-domain@RK3328_PD_HEVC { 306 reg = <RK3328_PD_HEVC>; 307 #power-domain-cells = <0>; 308 }; 309 power-domain@RK3328_PD_VIDEO { 310 reg = <RK3328_PD_VIDEO>; 311 clocks = <&cru ACLK_RKVDEC>, 312 <&cru HCLK_RKVDEC>, 313 <&cru SCLK_VDEC_CABAC>, 314 <&cru SCLK_VDEC_CORE>; 315 #power-domain-cells = <0>; 316 }; 317 power-domain@RK3328_PD_VPU { 318 reg = <RK3328_PD_VPU>; 319 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; 320 #power-domain-cells = <0>; 321 }; 322 }; 323 324 reboot-mode { 325 compatible = "syscon-reboot-mode"; 326 offset = <0x5c8>; 327 mode-normal = <BOOT_NORMAL>; 328 mode-recovery = <BOOT_RECOVERY>; 329 mode-bootloader = <BOOT_FASTBOOT>; 330 mode-loader = <BOOT_BL_DOWNLOAD>; 331 }; 332 }; 333 334 uart0: serial@ff110000 { 335 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart"; 336 reg = <0x0 0xff110000 0x0 0x100>; 337 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; 338 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; 339 clock-names = "baudclk", "apb_pclk"; 340 dmas = <&dmac 2>, <&dmac 3>; 341 dma-names = "tx", "rx"; 342 pinctrl-names = "default"; 343 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 344 reg-io-width = <4>; 345 reg-shift = <2>; 346 status = "disabled"; 347 }; 348 349 uart1: serial@ff120000 { 350 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart"; 351 reg = <0x0 0xff120000 0x0 0x100>; 352 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; 353 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; 354 clock-names = "baudclk", "apb_pclk"; 355 dmas = <&dmac 4>, <&dmac 5>; 356 dma-names = "tx", "rx"; 357 pinctrl-names = "default"; 358 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>; 359 reg-io-width = <4>; 360 reg-shift = <2>; 361 status = "disabled"; 362 }; 363 364 uart2: serial@ff130000 { 365 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart"; 366 reg = <0x0 0xff130000 0x0 0x100>; 367 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; 368 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; 369 clock-names = "baudclk", "apb_pclk"; 370 dmas = <&dmac 6>, <&dmac 7>; 371 dma-names = "tx", "rx"; 372 pinctrl-names = "default"; 373 pinctrl-0 = <&uart2m1_xfer>; 374 reg-io-width = <4>; 375 reg-shift = <2>; 376 status = "disabled"; 377 }; 378 379 i2c0: i2c@ff150000 { 380 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c"; 381 reg = <0x0 0xff150000 0x0 0x1000>; 382 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; 383 #address-cells = <1>; 384 #size-cells = <0>; 385 clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>; 386 clock-names = "i2c", "pclk"; 387 pinctrl-names = "default"; 388 pinctrl-0 = <&i2c0_xfer>; 389 status = "disabled"; 390 }; 391 392 i2c1: i2c@ff160000 { 393 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c"; 394 reg = <0x0 0xff160000 0x0 0x1000>; 395 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 396 #address-cells = <1>; 397 #size-cells = <0>; 398 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>; 399 clock-names = "i2c", "pclk"; 400 pinctrl-names = "default"; 401 pinctrl-0 = <&i2c1_xfer>; 402 status = "disabled"; 403 }; 404 405 i2c2: i2c@ff170000 { 406 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c"; 407 reg = <0x0 0xff170000 0x0 0x1000>; 408 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; 409 #address-cells = <1>; 410 #size-cells = <0>; 411 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>; 412 clock-names = "i2c", "pclk"; 413 pinctrl-names = "default"; 414 pinctrl-0 = <&i2c2_xfer>; 415 status = "disabled"; 416 }; 417 418 i2c3: i2c@ff180000 { 419 compatible = "rockchip,rk3328-i2c", "rockchip,rk3399-i2c"; 420 reg = <0x0 0xff180000 0x0 0x1000>; 421 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 422 #address-cells = <1>; 423 #size-cells = <0>; 424 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>; 425 clock-names = "i2c", "pclk"; 426 pinctrl-names = "default"; 427 pinctrl-0 = <&i2c3_xfer>; 428 status = "disabled"; 429 }; 430 431 spi0: spi@ff190000 { 432 compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi"; 433 reg = <0x0 0xff190000 0x0 0x1000>; 434 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; 435 #address-cells = <1>; 436 #size-cells = <0>; 437 clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>; 438 clock-names = "spiclk", "apb_pclk"; 439 dmas = <&dmac 8>, <&dmac 9>; 440 dma-names = "tx", "rx"; 441 pinctrl-names = "default"; 442 pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>; 443 status = "disabled"; 444 }; 445 446 wdt: watchdog@ff1a0000 { 447 compatible = "rockchip,rk3328-wdt", "snps,dw-wdt"; 448 reg = <0x0 0xff1a0000 0x0 0x100>; 449 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 450 clocks = <&cru PCLK_WDT>; 451 }; 452 453 pwm0: pwm@ff1b0000 { 454 compatible = "rockchip,rk3328-pwm"; 455 reg = <0x0 0xff1b0000 0x0 0x10>; 456 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; 457 clock-names = "pwm", "pclk"; 458 pinctrl-names = "default"; 459 pinctrl-0 = <&pwm0_pin>; 460 #pwm-cells = <3>; 461 status = "disabled"; 462 }; 463 464 pwm1: pwm@ff1b0010 { 465 compatible = "rockchip,rk3328-pwm"; 466 reg = <0x0 0xff1b0010 0x0 0x10>; 467 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; 468 clock-names = "pwm", "pclk"; 469 pinctrl-names = "default"; 470 pinctrl-0 = <&pwm1_pin>; 471 #pwm-cells = <3>; 472 status = "disabled"; 473 }; 474 475 pwm2: pwm@ff1b0020 { 476 compatible = "rockchip,rk3328-pwm"; 477 reg = <0x0 0xff1b0020 0x0 0x10>; 478 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; 479 clock-names = "pwm", "pclk"; 480 pinctrl-names = "default"; 481 pinctrl-0 = <&pwm2_pin>; 482 #pwm-cells = <3>; 483 status = "disabled"; 484 }; 485 486 pwm3: pwm@ff1b0030 { 487 compatible = "rockchip,rk3328-pwm"; 488 reg = <0x0 0xff1b0030 0x0 0x10>; 489 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; 490 clocks = <&cru SCLK_PWM>, <&cru PCLK_PWM>; 491 clock-names = "pwm", "pclk"; 492 pinctrl-names = "default"; 493 pinctrl-0 = <&pwmir_pin>; 494 #pwm-cells = <3>; 495 status = "disabled"; 496 }; 497 498 dmac: dma-controller@ff1f0000 { 499 compatible = "arm,pl330", "arm,primecell"; 500 reg = <0x0 0xff1f0000 0x0 0x4000>; 501 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, 502 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 503 arm,pl330-periph-burst; 504 clocks = <&cru ACLK_DMAC>; 505 clock-names = "apb_pclk"; 506 #dma-cells = <1>; 507 }; 508 509 thermal-zones { 510 soc_thermal: soc-thermal { 511 polling-delay-passive = <20>; 512 polling-delay = <1000>; 513 sustainable-power = <1000>; 514 515 thermal-sensors = <&tsadc 0>; 516 517 trips { 518 threshold: trip-point0 { 519 temperature = <70000>; 520 hysteresis = <2000>; 521 type = "passive"; 522 }; 523 target: trip-point1 { 524 temperature = <85000>; 525 hysteresis = <2000>; 526 type = "passive"; 527 }; 528 soc_crit: soc-crit { 529 temperature = <95000>; 530 hysteresis = <2000>; 531 type = "critical"; 532 }; 533 }; 534 535 cooling-maps { 536 map0 { 537 trip = <&target>; 538 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 539 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 540 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 541 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 542 contribution = <4096>; 543 }; 544 }; 545 }; 546 547 }; 548 549 tsadc: tsadc@ff250000 { 550 compatible = "rockchip,rk3328-tsadc"; 551 reg = <0x0 0xff250000 0x0 0x100>; 552 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; 553 assigned-clocks = <&cru SCLK_TSADC>; 554 assigned-clock-rates = <50000>; 555 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; 556 clock-names = "tsadc", "apb_pclk"; 557 pinctrl-names = "init", "default", "sleep"; 558 pinctrl-0 = <&otp_pin>; 559 pinctrl-1 = <&otp_out>; 560 pinctrl-2 = <&otp_pin>; 561 resets = <&cru SRST_TSADC>; 562 reset-names = "tsadc-apb"; 563 rockchip,grf = <&grf>; 564 rockchip,hw-tshut-temp = <100000>; 565 #thermal-sensor-cells = <1>; 566 status = "disabled"; 567 }; 568 569 efuse: efuse@ff260000 { 570 compatible = "rockchip,rk3328-efuse"; 571 reg = <0x0 0xff260000 0x0 0x50>; 572 #address-cells = <1>; 573 #size-cells = <1>; 574 clocks = <&cru SCLK_EFUSE>; 575 clock-names = "pclk_efuse"; 576 rockchip,efuse-size = <0x20>; 577 578 /* Data cells */ 579 efuse_id: id@7 { 580 reg = <0x07 0x10>; 581 }; 582 cpu_leakage: cpu-leakage@17 { 583 reg = <0x17 0x1>; 584 }; 585 logic_leakage: logic-leakage@19 { 586 reg = <0x19 0x1>; 587 }; 588 efuse_cpu_version: cpu-version@1a { 589 reg = <0x1a 0x1>; 590 bits = <3 3>; 591 }; 592 }; 593 594 saradc: adc@ff280000 { 595 compatible = "rockchip,rk3328-saradc", "rockchip,rk3399-saradc"; 596 reg = <0x0 0xff280000 0x0 0x100>; 597 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; 598 #io-channel-cells = <1>; 599 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; 600 clock-names = "saradc", "apb_pclk"; 601 resets = <&cru SRST_SARADC_P>; 602 reset-names = "saradc-apb"; 603 status = "disabled"; 604 }; 605 606 gpu: gpu@ff300000 { 607 compatible = "rockchip,rk3328-mali", "arm,mali-450"; 608 reg = <0x0 0xff300000 0x0 0x30000>; 609 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>, 610 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>, 611 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>, 612 <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, 613 <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>, 614 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>, 615 <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; 616 interrupt-names = "gp", 617 "gpmmu", 618 "pp", 619 "pp0", 620 "ppmmu0", 621 "pp1", 622 "ppmmu1"; 623 clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>; 624 clock-names = "bus", "core"; 625 resets = <&cru SRST_GPU_A>; 626 }; 627 628 h265e_mmu: iommu@ff330200 { 629 compatible = "rockchip,iommu"; 630 reg = <0x0 0xff330200 0 0x100>; 631 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; 632 clocks = <&cru ACLK_H265>, <&cru PCLK_H265>; 633 clock-names = "aclk", "iface"; 634 #iommu-cells = <0>; 635 status = "disabled"; 636 }; 637 638 vepu_mmu: iommu@ff340800 { 639 compatible = "rockchip,iommu"; 640 reg = <0x0 0xff340800 0x0 0x40>; 641 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; 642 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; 643 clock-names = "aclk", "iface"; 644 #iommu-cells = <0>; 645 status = "disabled"; 646 }; 647 648 vpu: video-codec@ff350000 { 649 compatible = "rockchip,rk3328-vpu"; 650 reg = <0x0 0xff350000 0x0 0x800>; 651 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; 652 interrupt-names = "vdpu"; 653 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; 654 clock-names = "aclk", "hclk"; 655 iommus = <&vpu_mmu>; 656 power-domains = <&power RK3328_PD_VPU>; 657 }; 658 659 vpu_mmu: iommu@ff350800 { 660 compatible = "rockchip,iommu"; 661 reg = <0x0 0xff350800 0x0 0x40>; 662 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; 663 clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; 664 clock-names = "aclk", "iface"; 665 #iommu-cells = <0>; 666 power-domains = <&power RK3328_PD_VPU>; 667 }; 668 669 vdec: video-codec@ff360000 { 670 compatible = "rockchip,rk3328-vdec", "rockchip,rk3399-vdec"; 671 reg = <0x0 0xff360000 0x0 0x480>; 672 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 673 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>, 674 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>; 675 clock-names = "axi", "ahb", "cabac", "core"; 676 assigned-clocks = <&cru ACLK_RKVDEC>, <&cru SCLK_VDEC_CABAC>, 677 <&cru SCLK_VDEC_CORE>; 678 assigned-clock-rates = <400000000>, <400000000>, <300000000>; 679 iommus = <&vdec_mmu>; 680 power-domains = <&power RK3328_PD_VIDEO>; 681 }; 682 683 vdec_mmu: iommu@ff360480 { 684 compatible = "rockchip,iommu"; 685 reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>; 686 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 687 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>; 688 clock-names = "aclk", "iface"; 689 #iommu-cells = <0>; 690 power-domains = <&power RK3328_PD_VIDEO>; 691 }; 692 693 vop: vop@ff370000 { 694 compatible = "rockchip,rk3328-vop"; 695 reg = <0x0 0xff370000 0x0 0x3efc>; 696 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 697 clocks = <&cru ACLK_VOP>, <&cru DCLK_LCDC>, <&cru HCLK_VOP>; 698 clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; 699 resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>; 700 reset-names = "axi", "ahb", "dclk"; 701 iommus = <&vop_mmu>; 702 status = "disabled"; 703 704 vop_out: port { 705 #address-cells = <1>; 706 #size-cells = <0>; 707 708 vop_out_hdmi: endpoint@0 { 709 reg = <0>; 710 remote-endpoint = <&hdmi_in_vop>; 711 }; 712 }; 713 }; 714 715 vop_mmu: iommu@ff373f00 { 716 compatible = "rockchip,iommu"; 717 reg = <0x0 0xff373f00 0x0 0x100>; 718 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 719 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>; 720 clock-names = "aclk", "iface"; 721 #iommu-cells = <0>; 722 status = "disabled"; 723 }; 724 725 hdmi: hdmi@ff3c0000 { 726 compatible = "rockchip,rk3328-dw-hdmi"; 727 reg = <0x0 0xff3c0000 0x0 0x20000>; 728 reg-io-width = <4>; 729 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; 730 clocks = <&cru PCLK_HDMI>, 731 <&cru SCLK_HDMI_SFC>, 732 <&cru SCLK_RTC32K>; 733 clock-names = "iahb", 734 "isfr", 735 "cec"; 736 phys = <&hdmiphy>; 737 phy-names = "hdmi"; 738 pinctrl-names = "default"; 739 pinctrl-0 = <&hdmi_cec &hdmii2c_xfer &hdmi_hpd>; 740 rockchip,grf = <&grf>; 741 #sound-dai-cells = <0>; 742 status = "disabled"; 743 744 ports { 745 #address-cells = <1>; 746 #size-cells = <0>; 747 748 hdmi_in: port@0 { 749 reg = <0>; 750 751 hdmi_in_vop: endpoint { 752 remote-endpoint = <&vop_out_hdmi>; 753 }; 754 }; 755 756 hdmi_out: port@1 { 757 reg = <1>; 758 }; 759 }; 760 }; 761 762 codec: codec@ff410000 { 763 compatible = "rockchip,rk3328-codec"; 764 reg = <0x0 0xff410000 0x0 0x1000>; 765 clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>; 766 clock-names = "pclk", "mclk"; 767 rockchip,grf = <&grf>; 768 #sound-dai-cells = <0>; 769 status = "disabled"; 770 }; 771 772 hdmiphy: phy@ff430000 { 773 compatible = "rockchip,rk3328-hdmi-phy"; 774 reg = <0x0 0xff430000 0x0 0x10000>; 775 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; 776 clocks = <&cru PCLK_HDMIPHY>, <&xin24m>, <&cru DCLK_HDMIPHY>; 777 clock-names = "sysclk", "refoclk", "refpclk"; 778 clock-output-names = "hdmi_phy"; 779 #clock-cells = <0>; 780 nvmem-cells = <&efuse_cpu_version>; 781 nvmem-cell-names = "cpu-version"; 782 #phy-cells = <0>; 783 status = "disabled"; 784 }; 785 786 cru: clock-controller@ff440000 { 787 compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon"; 788 reg = <0x0 0xff440000 0x0 0x1000>; 789 rockchip,grf = <&grf>; 790 #clock-cells = <1>; 791 #reset-cells = <1>; 792 assigned-clocks = 793 /* 794 * CPLL should run at 1200, but that is to high for 795 * the initial dividers of most of its children. 796 * We need set cpll child clk div first, 797 * and then set the cpll frequency. 798 */ 799 <&cru DCLK_LCDC>, <&cru SCLK_PDM>, 800 <&cru SCLK_RTC32K>, <&cru SCLK_UART0>, 801 <&cru SCLK_UART1>, <&cru SCLK_UART2>, 802 <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>, 803 <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>, 804 <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>, 805 <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>, 806 <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>, 807 <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>, 808 <&cru SCLK_SDIO>, <&cru SCLK_TSP>, 809 <&cru SCLK_WIFI>, <&cru ARMCLK>, 810 <&cru PLL_GPLL>, <&cru PLL_CPLL>, 811 <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>, 812 <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>, 813 <&cru HCLK_PERI>, <&cru PCLK_PERI>, 814 <&cru SCLK_RTC32K>; 815 assigned-clock-parents = 816 <&cru HDMIPHY>, <&cru PLL_APLL>, 817 <&cru PLL_GPLL>, <&xin24m>, 818 <&xin24m>, <&xin24m>; 819 assigned-clock-rates = 820 <0>, <61440000>, 821 <0>, <24000000>, 822 <24000000>, <24000000>, 823 <15000000>, <15000000>, 824 <300000000>, <100000000>, 825 <400000000>, <100000000>, 826 <50000000>, <100000000>, 827 <100000000>, <100000000>, 828 <50000000>, <50000000>, 829 <50000000>, <50000000>, 830 <24000000>, <600000000>, 831 <491520000>, <1200000000>, 832 <150000000>, <75000000>, 833 <75000000>, <150000000>, 834 <75000000>, <75000000>, 835 <32768>; 836 }; 837 838 usb2phy_grf: syscon@ff450000 { 839 compatible = "rockchip,rk3328-usb2phy-grf", "syscon", 840 "simple-mfd"; 841 reg = <0x0 0xff450000 0x0 0x10000>; 842 #address-cells = <1>; 843 #size-cells = <1>; 844 845 u2phy: usb2phy@100 { 846 compatible = "rockchip,rk3328-usb2phy"; 847 reg = <0x100 0x10>; 848 clocks = <&xin24m>; 849 clock-names = "phyclk"; 850 clock-output-names = "usb480m_phy"; 851 #clock-cells = <0>; 852 assigned-clocks = <&cru USB480M>; 853 assigned-clock-parents = <&u2phy>; 854 status = "disabled"; 855 856 u2phy_otg: otg-port { 857 #phy-cells = <0>; 858 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, 859 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, 860 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 861 interrupt-names = "otg-bvalid", "otg-id", 862 "linestate"; 863 status = "disabled"; 864 }; 865 866 u2phy_host: host-port { 867 #phy-cells = <0>; 868 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 869 interrupt-names = "linestate"; 870 status = "disabled"; 871 }; 872 }; 873 }; 874 875 sdmmc: mmc@ff500000 { 876 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc"; 877 reg = <0x0 0xff500000 0x0 0x4000>; 878 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 879 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, 880 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; 881 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 882 fifo-depth = <0x100>; 883 max-frequency = <150000000>; 884 status = "disabled"; 885 }; 886 887 sdio: mmc@ff510000 { 888 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc"; 889 reg = <0x0 0xff510000 0x0 0x4000>; 890 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 891 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, 892 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; 893 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 894 fifo-depth = <0x100>; 895 max-frequency = <150000000>; 896 status = "disabled"; 897 }; 898 899 emmc: mmc@ff520000 { 900 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc"; 901 reg = <0x0 0xff520000 0x0 0x4000>; 902 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 903 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, 904 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; 905 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 906 fifo-depth = <0x100>; 907 max-frequency = <150000000>; 908 status = "disabled"; 909 }; 910 911 gmac2io: ethernet@ff540000 { 912 compatible = "rockchip,rk3328-gmac"; 913 reg = <0x0 0xff540000 0x0 0x10000>; 914 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; 915 interrupt-names = "macirq"; 916 clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_RX>, 917 <&cru SCLK_MAC2IO_TX>, <&cru SCLK_MAC2IO_REF>, 918 <&cru SCLK_MAC2IO_REFOUT>, <&cru ACLK_MAC2IO>, 919 <&cru PCLK_MAC2IO>; 920 clock-names = "stmmaceth", "mac_clk_rx", 921 "mac_clk_tx", "clk_mac_ref", 922 "clk_mac_refout", "aclk_mac", 923 "pclk_mac"; 924 resets = <&cru SRST_GMAC2IO_A>; 925 reset-names = "stmmaceth"; 926 rockchip,grf = <&grf>; 927 snps,txpbl = <0x4>; 928 status = "disabled"; 929 }; 930 931 gmac2phy: ethernet@ff550000 { 932 compatible = "rockchip,rk3328-gmac"; 933 reg = <0x0 0xff550000 0x0 0x10000>; 934 rockchip,grf = <&grf>; 935 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 936 interrupt-names = "macirq"; 937 clocks = <&cru SCLK_MAC2PHY_SRC>, <&cru SCLK_MAC2PHY_RXTX>, 938 <&cru SCLK_MAC2PHY_RXTX>, <&cru SCLK_MAC2PHY_REF>, 939 <&cru ACLK_MAC2PHY>, <&cru PCLK_MAC2PHY>, 940 <&cru SCLK_MAC2PHY_OUT>; 941 clock-names = "stmmaceth", "mac_clk_rx", 942 "mac_clk_tx", "clk_mac_ref", 943 "aclk_mac", "pclk_mac", 944 "clk_macphy"; 945 resets = <&cru SRST_GMAC2PHY_A>; 946 reset-names = "stmmaceth"; 947 phy-mode = "rmii"; 948 phy-handle = <&phy>; 949 snps,txpbl = <0x4>; 950 clock_in_out = "output"; 951 status = "disabled"; 952 953 mdio { 954 compatible = "snps,dwmac-mdio"; 955 #address-cells = <1>; 956 #size-cells = <0>; 957 958 phy: ethernet-phy@0 { 959 compatible = "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22"; 960 reg = <0>; 961 clocks = <&cru SCLK_MAC2PHY_OUT>; 962 resets = <&cru SRST_MACPHY>; 963 pinctrl-names = "default"; 964 pinctrl-0 = <&fephyled_rxm1 &fephyled_linkm1>; 965 phy-is-integrated; 966 }; 967 }; 968 }; 969 970 usb20_otg: usb@ff580000 { 971 compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb", 972 "snps,dwc2"; 973 reg = <0x0 0xff580000 0x0 0x40000>; 974 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 975 clocks = <&cru HCLK_OTG>; 976 clock-names = "otg"; 977 dr_mode = "otg"; 978 g-np-tx-fifo-size = <16>; 979 g-rx-fifo-size = <280>; 980 g-tx-fifo-size = <256 128 128 64 32 16>; 981 phys = <&u2phy_otg>; 982 phy-names = "usb2-phy"; 983 status = "disabled"; 984 }; 985 986 usb_host0_ehci: usb@ff5c0000 { 987 compatible = "generic-ehci"; 988 reg = <0x0 0xff5c0000 0x0 0x10000>; 989 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 990 clocks = <&cru HCLK_HOST0>, <&u2phy>; 991 phys = <&u2phy_host>; 992 phy-names = "usb"; 993 status = "disabled"; 994 }; 995 996 usb_host0_ohci: usb@ff5d0000 { 997 compatible = "generic-ohci"; 998 reg = <0x0 0xff5d0000 0x0 0x10000>; 999 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 1000 clocks = <&cru HCLK_HOST0>, <&u2phy>; 1001 phys = <&u2phy_host>; 1002 phy-names = "usb"; 1003 status = "disabled"; 1004 }; 1005 1006 usbdrd3: usb@ff600000 { 1007 compatible = "rockchip,rk3328-dwc3", "snps,dwc3"; 1008 reg = <0x0 0xff600000 0x0 0x100000>; 1009 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; 1010 clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>, 1011 <&cru ACLK_USB3OTG>; 1012 clock-names = "ref_clk", "suspend_clk", 1013 "bus_clk"; 1014 dr_mode = "otg"; 1015 phy_type = "utmi_wide"; 1016 snps,dis-del-phy-power-chg-quirk; 1017 snps,dis_enblslpm_quirk; 1018 snps,dis-tx-ipgap-linecheck-quirk; 1019 snps,dis-u2-freeclk-exists-quirk; 1020 snps,dis_u2_susphy_quirk; 1021 snps,dis_u3_susphy_quirk; 1022 status = "disabled"; 1023 }; 1024 1025 gic: interrupt-controller@ff811000 { 1026 compatible = "arm,gic-400"; 1027 #interrupt-cells = <3>; 1028 #address-cells = <0>; 1029 interrupt-controller; 1030 reg = <0x0 0xff811000 0 0x1000>, 1031 <0x0 0xff812000 0 0x2000>, 1032 <0x0 0xff814000 0 0x2000>, 1033 <0x0 0xff816000 0 0x2000>; 1034 interrupts = <GIC_PPI 9 1035 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 1036 }; 1037 1038 crypto: crypto@ff060000 { 1039 compatible = "rockchip,rk3328-crypto"; 1040 reg = <0x0 0xff060000 0x0 0x4000>; 1041 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; 1042 clocks = <&cru HCLK_CRYPTO_MST>, <&cru HCLK_CRYPTO_SLV>, 1043 <&cru SCLK_CRYPTO>; 1044 clock-names = "hclk_master", "hclk_slave", "sclk"; 1045 resets = <&cru SRST_CRYPTO>; 1046 reset-names = "crypto-rst"; 1047 }; 1048 1049 pinctrl: pinctrl { 1050 compatible = "rockchip,rk3328-pinctrl"; 1051 rockchip,grf = <&grf>; 1052 #address-cells = <2>; 1053 #size-cells = <2>; 1054 ranges; 1055 1056 gpio0: gpio@ff210000 { 1057 compatible = "rockchip,gpio-bank"; 1058 reg = <0x0 0xff210000 0x0 0x100>; 1059 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; 1060 clocks = <&cru PCLK_GPIO0>; 1061 1062 gpio-controller; 1063 #gpio-cells = <2>; 1064 1065 interrupt-controller; 1066 #interrupt-cells = <2>; 1067 }; 1068 1069 gpio1: gpio@ff220000 { 1070 compatible = "rockchip,gpio-bank"; 1071 reg = <0x0 0xff220000 0x0 0x100>; 1072 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; 1073 clocks = <&cru PCLK_GPIO1>; 1074 1075 gpio-controller; 1076 #gpio-cells = <2>; 1077 1078 interrupt-controller; 1079 #interrupt-cells = <2>; 1080 }; 1081 1082 gpio2: gpio@ff230000 { 1083 compatible = "rockchip,gpio-bank"; 1084 reg = <0x0 0xff230000 0x0 0x100>; 1085 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; 1086 clocks = <&cru PCLK_GPIO2>; 1087 1088 gpio-controller; 1089 #gpio-cells = <2>; 1090 1091 interrupt-controller; 1092 #interrupt-cells = <2>; 1093 }; 1094 1095 gpio3: gpio@ff240000 { 1096 compatible = "rockchip,gpio-bank"; 1097 reg = <0x0 0xff240000 0x0 0x100>; 1098 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; 1099 clocks = <&cru PCLK_GPIO3>; 1100 1101 gpio-controller; 1102 #gpio-cells = <2>; 1103 1104 interrupt-controller; 1105 #interrupt-cells = <2>; 1106 }; 1107 1108 pcfg_pull_up: pcfg-pull-up { 1109 bias-pull-up; 1110 }; 1111 1112 pcfg_pull_down: pcfg-pull-down { 1113 bias-pull-down; 1114 }; 1115 1116 pcfg_pull_none: pcfg-pull-none { 1117 bias-disable; 1118 }; 1119 1120 pcfg_pull_none_2ma: pcfg-pull-none-2ma { 1121 bias-disable; 1122 drive-strength = <2>; 1123 }; 1124 1125 pcfg_pull_up_2ma: pcfg-pull-up-2ma { 1126 bias-pull-up; 1127 drive-strength = <2>; 1128 }; 1129 1130 pcfg_pull_up_4ma: pcfg-pull-up-4ma { 1131 bias-pull-up; 1132 drive-strength = <4>; 1133 }; 1134 1135 pcfg_pull_none_4ma: pcfg-pull-none-4ma { 1136 bias-disable; 1137 drive-strength = <4>; 1138 }; 1139 1140 pcfg_pull_down_4ma: pcfg-pull-down-4ma { 1141 bias-pull-down; 1142 drive-strength = <4>; 1143 }; 1144 1145 pcfg_pull_none_8ma: pcfg-pull-none-8ma { 1146 bias-disable; 1147 drive-strength = <8>; 1148 }; 1149 1150 pcfg_pull_up_8ma: pcfg-pull-up-8ma { 1151 bias-pull-up; 1152 drive-strength = <8>; 1153 }; 1154 1155 pcfg_pull_none_12ma: pcfg-pull-none-12ma { 1156 bias-disable; 1157 drive-strength = <12>; 1158 }; 1159 1160 pcfg_pull_up_12ma: pcfg-pull-up-12ma { 1161 bias-pull-up; 1162 drive-strength = <12>; 1163 }; 1164 1165 pcfg_output_high: pcfg-output-high { 1166 output-high; 1167 }; 1168 1169 pcfg_output_low: pcfg-output-low { 1170 output-low; 1171 }; 1172 1173 pcfg_input_high: pcfg-input-high { 1174 bias-pull-up; 1175 input-enable; 1176 }; 1177 1178 pcfg_input: pcfg-input { 1179 input-enable; 1180 }; 1181 1182 i2c0 { 1183 i2c0_xfer: i2c0-xfer { 1184 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_none>, 1185 <2 RK_PD1 1 &pcfg_pull_none>; 1186 }; 1187 }; 1188 1189 i2c1 { 1190 i2c1_xfer: i2c1-xfer { 1191 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>, 1192 <2 RK_PA5 2 &pcfg_pull_none>; 1193 }; 1194 }; 1195 1196 i2c2 { 1197 i2c2_xfer: i2c2-xfer { 1198 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>, 1199 <2 RK_PB6 1 &pcfg_pull_none>; 1200 }; 1201 }; 1202 1203 i2c3 { 1204 i2c3_xfer: i2c3-xfer { 1205 rockchip,pins = <0 RK_PA5 2 &pcfg_pull_none>, 1206 <0 RK_PA6 2 &pcfg_pull_none>; 1207 }; 1208 i2c3_pins: i2c3-pins { 1209 rockchip,pins = 1210 <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>, 1211 <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 1212 }; 1213 }; 1214 1215 hdmi_i2c { 1216 hdmii2c_xfer: hdmii2c-xfer { 1217 rockchip,pins = <0 RK_PA5 1 &pcfg_pull_none>, 1218 <0 RK_PA6 1 &pcfg_pull_none>; 1219 }; 1220 }; 1221 1222 pdm-0 { 1223 pdmm0_clk: pdmm0-clk { 1224 rockchip,pins = <2 RK_PC2 2 &pcfg_pull_none>; 1225 }; 1226 1227 pdmm0_fsync: pdmm0-fsync { 1228 rockchip,pins = <2 RK_PC7 2 &pcfg_pull_none>; 1229 }; 1230 1231 pdmm0_sdi0: pdmm0-sdi0 { 1232 rockchip,pins = <2 RK_PC3 2 &pcfg_pull_none>; 1233 }; 1234 1235 pdmm0_sdi1: pdmm0-sdi1 { 1236 rockchip,pins = <2 RK_PC4 2 &pcfg_pull_none>; 1237 }; 1238 1239 pdmm0_sdi2: pdmm0-sdi2 { 1240 rockchip,pins = <2 RK_PC5 2 &pcfg_pull_none>; 1241 }; 1242 1243 pdmm0_sdi3: pdmm0-sdi3 { 1244 rockchip,pins = <2 RK_PC6 2 &pcfg_pull_none>; 1245 }; 1246 1247 pdmm0_clk_sleep: pdmm0-clk-sleep { 1248 rockchip,pins = 1249 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>; 1250 }; 1251 1252 pdmm0_sdi0_sleep: pdmm0-sdi0-sleep { 1253 rockchip,pins = 1254 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>; 1255 }; 1256 1257 pdmm0_sdi1_sleep: pdmm0-sdi1-sleep { 1258 rockchip,pins = 1259 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>; 1260 }; 1261 1262 pdmm0_sdi2_sleep: pdmm0-sdi2-sleep { 1263 rockchip,pins = 1264 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>; 1265 }; 1266 1267 pdmm0_sdi3_sleep: pdmm0-sdi3-sleep { 1268 rockchip,pins = 1269 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>; 1270 }; 1271 1272 pdmm0_fsync_sleep: pdmm0-fsync-sleep { 1273 rockchip,pins = 1274 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>; 1275 }; 1276 }; 1277 1278 tsadc { 1279 otp_pin: otp-pin { 1280 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 1281 }; 1282 1283 otp_out: otp-out { 1284 rockchip,pins = <2 RK_PB5 1 &pcfg_pull_none>; 1285 }; 1286 }; 1287 1288 uart0 { 1289 uart0_xfer: uart0-xfer { 1290 rockchip,pins = <1 RK_PB1 1 &pcfg_pull_none>, 1291 <1 RK_PB0 1 &pcfg_pull_up>; 1292 }; 1293 1294 uart0_cts: uart0-cts { 1295 rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>; 1296 }; 1297 1298 uart0_rts: uart0-rts { 1299 rockchip,pins = <1 RK_PB2 1 &pcfg_pull_none>; 1300 }; 1301 1302 uart0_rts_pin: uart0-rts-pin { 1303 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 1304 }; 1305 }; 1306 1307 uart1 { 1308 uart1_xfer: uart1-xfer { 1309 rockchip,pins = <3 RK_PA4 4 &pcfg_pull_none>, 1310 <3 RK_PA6 4 &pcfg_pull_up>; 1311 }; 1312 1313 uart1_cts: uart1-cts { 1314 rockchip,pins = <3 RK_PA7 4 &pcfg_pull_none>; 1315 }; 1316 1317 uart1_rts: uart1-rts { 1318 rockchip,pins = <3 RK_PA5 4 &pcfg_pull_none>; 1319 }; 1320 1321 uart1_rts_pin: uart1-rts-pin { 1322 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 1323 }; 1324 }; 1325 1326 uart2-0 { 1327 uart2m0_xfer: uart2m0-xfer { 1328 rockchip,pins = <1 RK_PA0 2 &pcfg_pull_none>, 1329 <1 RK_PA1 2 &pcfg_pull_up>; 1330 }; 1331 }; 1332 1333 uart2-1 { 1334 uart2m1_xfer: uart2m1-xfer { 1335 rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>, 1336 <2 RK_PA1 1 &pcfg_pull_up>; 1337 }; 1338 }; 1339 1340 spi0-0 { 1341 spi0m0_clk: spi0m0-clk { 1342 rockchip,pins = <2 RK_PB0 1 &pcfg_pull_up>; 1343 }; 1344 1345 spi0m0_cs0: spi0m0-cs0 { 1346 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>; 1347 }; 1348 1349 spi0m0_tx: spi0m0-tx { 1350 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_up>; 1351 }; 1352 1353 spi0m0_rx: spi0m0-rx { 1354 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>; 1355 }; 1356 1357 spi0m0_cs1: spi0m0-cs1 { 1358 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_up>; 1359 }; 1360 }; 1361 1362 spi0-1 { 1363 spi0m1_clk: spi0m1-clk { 1364 rockchip,pins = <3 RK_PC7 2 &pcfg_pull_up>; 1365 }; 1366 1367 spi0m1_cs0: spi0m1-cs0 { 1368 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_up>; 1369 }; 1370 1371 spi0m1_tx: spi0m1-tx { 1372 rockchip,pins = <3 RK_PD1 2 &pcfg_pull_up>; 1373 }; 1374 1375 spi0m1_rx: spi0m1-rx { 1376 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_up>; 1377 }; 1378 1379 spi0m1_cs1: spi0m1-cs1 { 1380 rockchip,pins = <3 RK_PD3 2 &pcfg_pull_up>; 1381 }; 1382 }; 1383 1384 spi0-2 { 1385 spi0m2_clk: spi0m2-clk { 1386 rockchip,pins = <3 RK_PA0 4 &pcfg_pull_up>; 1387 }; 1388 1389 spi0m2_cs0: spi0m2-cs0 { 1390 rockchip,pins = <3 RK_PB0 3 &pcfg_pull_up>; 1391 }; 1392 1393 spi0m2_tx: spi0m2-tx { 1394 rockchip,pins = <3 RK_PA1 4 &pcfg_pull_up>; 1395 }; 1396 1397 spi0m2_rx: spi0m2-rx { 1398 rockchip,pins = <3 RK_PA2 4 &pcfg_pull_up>; 1399 }; 1400 }; 1401 1402 i2s1 { 1403 i2s1_mclk: i2s1-mclk { 1404 rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>; 1405 }; 1406 1407 i2s1_sclk: i2s1-sclk { 1408 rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>; 1409 }; 1410 1411 i2s1_lrckrx: i2s1-lrckrx { 1412 rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>; 1413 }; 1414 1415 i2s1_lrcktx: i2s1-lrcktx { 1416 rockchip,pins = <2 RK_PC1 1 &pcfg_pull_none>; 1417 }; 1418 1419 i2s1_sdi: i2s1-sdi { 1420 rockchip,pins = <2 RK_PC3 1 &pcfg_pull_none>; 1421 }; 1422 1423 i2s1_sdo: i2s1-sdo { 1424 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>; 1425 }; 1426 1427 i2s1_sdio1: i2s1-sdio1 { 1428 rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>; 1429 }; 1430 1431 i2s1_sdio2: i2s1-sdio2 { 1432 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>; 1433 }; 1434 1435 i2s1_sdio3: i2s1-sdio3 { 1436 rockchip,pins = <2 RK_PC6 1 &pcfg_pull_none>; 1437 }; 1438 1439 i2s1_sleep: i2s1-sleep { 1440 rockchip,pins = 1441 <2 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>, 1442 <2 RK_PC0 RK_FUNC_GPIO &pcfg_input_high>, 1443 <2 RK_PC1 RK_FUNC_GPIO &pcfg_input_high>, 1444 <2 RK_PC2 RK_FUNC_GPIO &pcfg_input_high>, 1445 <2 RK_PC3 RK_FUNC_GPIO &pcfg_input_high>, 1446 <2 RK_PC4 RK_FUNC_GPIO &pcfg_input_high>, 1447 <2 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>, 1448 <2 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>, 1449 <2 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>; 1450 }; 1451 }; 1452 1453 i2s2-0 { 1454 i2s2m0_mclk: i2s2m0-mclk { 1455 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>; 1456 }; 1457 1458 i2s2m0_sclk: i2s2m0-sclk { 1459 rockchip,pins = <1 RK_PC6 1 &pcfg_pull_none>; 1460 }; 1461 1462 i2s2m0_lrckrx: i2s2m0-lrckrx { 1463 rockchip,pins = <1 RK_PD2 1 &pcfg_pull_none>; 1464 }; 1465 1466 i2s2m0_lrcktx: i2s2m0-lrcktx { 1467 rockchip,pins = <1 RK_PC7 1 &pcfg_pull_none>; 1468 }; 1469 1470 i2s2m0_sdi: i2s2m0-sdi { 1471 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>; 1472 }; 1473 1474 i2s2m0_sdo: i2s2m0-sdo { 1475 rockchip,pins = <1 RK_PD1 1 &pcfg_pull_none>; 1476 }; 1477 1478 i2s2m0_sleep: i2s2m0-sleep { 1479 rockchip,pins = 1480 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>, 1481 <1 RK_PC6 RK_FUNC_GPIO &pcfg_input_high>, 1482 <1 RK_PD2 RK_FUNC_GPIO &pcfg_input_high>, 1483 <1 RK_PC7 RK_FUNC_GPIO &pcfg_input_high>, 1484 <1 RK_PD0 RK_FUNC_GPIO &pcfg_input_high>, 1485 <1 RK_PD1 RK_FUNC_GPIO &pcfg_input_high>; 1486 }; 1487 }; 1488 1489 i2s2-1 { 1490 i2s2m1_mclk: i2s2m1-mclk { 1491 rockchip,pins = <1 RK_PC5 1 &pcfg_pull_none>; 1492 }; 1493 1494 i2s2m1_sclk: i2s2m1-sclk { 1495 rockchip,pins = <3 RK_PA0 6 &pcfg_pull_none>; 1496 }; 1497 1498 i2s2m1_lrckrx: i2sm1-lrckrx { 1499 rockchip,pins = <3 RK_PB0 6 &pcfg_pull_none>; 1500 }; 1501 1502 i2s2m1_lrcktx: i2s2m1-lrcktx { 1503 rockchip,pins = <3 RK_PB0 4 &pcfg_pull_none>; 1504 }; 1505 1506 i2s2m1_sdi: i2s2m1-sdi { 1507 rockchip,pins = <3 RK_PA2 6 &pcfg_pull_none>; 1508 }; 1509 1510 i2s2m1_sdo: i2s2m1-sdo { 1511 rockchip,pins = <3 RK_PA1 6 &pcfg_pull_none>; 1512 }; 1513 1514 i2s2m1_sleep: i2s2m1-sleep { 1515 rockchip,pins = 1516 <1 RK_PC5 RK_FUNC_GPIO &pcfg_input_high>, 1517 <3 RK_PA0 RK_FUNC_GPIO &pcfg_input_high>, 1518 <3 RK_PB0 RK_FUNC_GPIO &pcfg_input_high>, 1519 <3 RK_PA2 RK_FUNC_GPIO &pcfg_input_high>, 1520 <3 RK_PA1 RK_FUNC_GPIO &pcfg_input_high>; 1521 }; 1522 }; 1523 1524 spdif-0 { 1525 spdifm0_tx: spdifm0-tx { 1526 rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>; 1527 }; 1528 }; 1529 1530 spdif-1 { 1531 spdifm1_tx: spdifm1-tx { 1532 rockchip,pins = <2 RK_PC1 2 &pcfg_pull_none>; 1533 }; 1534 }; 1535 1536 spdif-2 { 1537 spdifm2_tx: spdifm2-tx { 1538 rockchip,pins = <0 RK_PA2 2 &pcfg_pull_none>; 1539 }; 1540 }; 1541 1542 sdmmc0-0 { 1543 sdmmc0m0_pwren: sdmmc0m0-pwren { 1544 rockchip,pins = <2 RK_PA7 1 &pcfg_pull_up_4ma>; 1545 }; 1546 1547 sdmmc0m0_pin: sdmmc0m0-pin { 1548 rockchip,pins = <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>; 1549 }; 1550 }; 1551 1552 sdmmc0-1 { 1553 sdmmc0m1_pwren: sdmmc0m1-pwren { 1554 rockchip,pins = <0 RK_PD6 3 &pcfg_pull_up_4ma>; 1555 }; 1556 1557 sdmmc0m1_pin: sdmmc0m1-pin { 1558 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up_4ma>; 1559 }; 1560 }; 1561 1562 sdmmc0 { 1563 sdmmc0_clk: sdmmc0-clk { 1564 rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none_8ma>; 1565 }; 1566 1567 sdmmc0_cmd: sdmmc0-cmd { 1568 rockchip,pins = <1 RK_PA4 1 &pcfg_pull_up_8ma>; 1569 }; 1570 1571 sdmmc0_dectn: sdmmc0-dectn { 1572 rockchip,pins = <1 RK_PA5 1 &pcfg_pull_up_4ma>; 1573 }; 1574 1575 sdmmc0_wrprt: sdmmc0-wrprt { 1576 rockchip,pins = <1 RK_PA7 1 &pcfg_pull_up_4ma>; 1577 }; 1578 1579 sdmmc0_bus1: sdmmc0-bus1 { 1580 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>; 1581 }; 1582 1583 sdmmc0_bus4: sdmmc0-bus4 { 1584 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_up_8ma>, 1585 <1 RK_PA1 1 &pcfg_pull_up_8ma>, 1586 <1 RK_PA2 1 &pcfg_pull_up_8ma>, 1587 <1 RK_PA3 1 &pcfg_pull_up_8ma>; 1588 }; 1589 1590 sdmmc0_pins: sdmmc0-pins { 1591 rockchip,pins = 1592 <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1593 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1594 <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1595 <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1596 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1597 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1598 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1599 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>; 1600 }; 1601 }; 1602 1603 sdmmc0ext { 1604 sdmmc0ext_clk: sdmmc0ext-clk { 1605 rockchip,pins = <3 RK_PA2 3 &pcfg_pull_none_4ma>; 1606 }; 1607 1608 sdmmc0ext_cmd: sdmmc0ext-cmd { 1609 rockchip,pins = <3 RK_PA0 3 &pcfg_pull_up_4ma>; 1610 }; 1611 1612 sdmmc0ext_wrprt: sdmmc0ext-wrprt { 1613 rockchip,pins = <3 RK_PA3 3 &pcfg_pull_up_4ma>; 1614 }; 1615 1616 sdmmc0ext_dectn: sdmmc0ext-dectn { 1617 rockchip,pins = <3 RK_PA1 3 &pcfg_pull_up_4ma>; 1618 }; 1619 1620 sdmmc0ext_bus1: sdmmc0ext-bus1 { 1621 rockchip,pins = <3 RK_PA4 3 &pcfg_pull_up_4ma>; 1622 }; 1623 1624 sdmmc0ext_bus4: sdmmc0ext-bus4 { 1625 rockchip,pins = 1626 <3 RK_PA4 3 &pcfg_pull_up_4ma>, 1627 <3 RK_PA5 3 &pcfg_pull_up_4ma>, 1628 <3 RK_PA6 3 &pcfg_pull_up_4ma>, 1629 <3 RK_PA7 3 &pcfg_pull_up_4ma>; 1630 }; 1631 1632 sdmmc0ext_pins: sdmmc0ext-pins { 1633 rockchip,pins = 1634 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1635 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1636 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1637 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1638 <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1639 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1640 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1641 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up_4ma>; 1642 }; 1643 }; 1644 1645 sdmmc1 { 1646 sdmmc1_clk: sdmmc1-clk { 1647 rockchip,pins = <1 RK_PB4 1 &pcfg_pull_none_8ma>; 1648 }; 1649 1650 sdmmc1_cmd: sdmmc1-cmd { 1651 rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_8ma>; 1652 }; 1653 1654 sdmmc1_pwren: sdmmc1-pwren { 1655 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_up_8ma>; 1656 }; 1657 1658 sdmmc1_wrprt: sdmmc1-wrprt { 1659 rockchip,pins = <1 RK_PC4 1 &pcfg_pull_up_8ma>; 1660 }; 1661 1662 sdmmc1_dectn: sdmmc1-dectn { 1663 rockchip,pins = <1 RK_PC3 1 &pcfg_pull_up_8ma>; 1664 }; 1665 1666 sdmmc1_bus1: sdmmc1-bus1 { 1667 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>; 1668 }; 1669 1670 sdmmc1_bus4: sdmmc1-bus4 { 1671 rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_8ma>, 1672 <1 RK_PB7 1 &pcfg_pull_up_8ma>, 1673 <1 RK_PC0 1 &pcfg_pull_up_8ma>, 1674 <1 RK_PC1 1 &pcfg_pull_up_8ma>; 1675 }; 1676 1677 sdmmc1_pins: sdmmc1-pins { 1678 rockchip,pins = 1679 <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1680 <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1681 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1682 <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1683 <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1684 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1685 <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1686 <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up_4ma>, 1687 <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up_4ma>; 1688 }; 1689 }; 1690 1691 emmc { 1692 emmc_clk: emmc-clk { 1693 rockchip,pins = <3 RK_PC5 2 &pcfg_pull_none_12ma>; 1694 }; 1695 1696 emmc_cmd: emmc-cmd { 1697 rockchip,pins = <3 RK_PC3 2 &pcfg_pull_up_12ma>; 1698 }; 1699 1700 emmc_pwren: emmc-pwren { 1701 rockchip,pins = <3 RK_PC6 2 &pcfg_pull_none>; 1702 }; 1703 1704 emmc_rstnout: emmc-rstnout { 1705 rockchip,pins = <3 RK_PC4 2 &pcfg_pull_none>; 1706 }; 1707 1708 emmc_bus1: emmc-bus1 { 1709 rockchip,pins = <0 RK_PA7 2 &pcfg_pull_up_12ma>; 1710 }; 1711 1712 emmc_bus4: emmc-bus4 { 1713 rockchip,pins = 1714 <0 RK_PA7 2 &pcfg_pull_up_12ma>, 1715 <2 RK_PD4 2 &pcfg_pull_up_12ma>, 1716 <2 RK_PD5 2 &pcfg_pull_up_12ma>, 1717 <2 RK_PD6 2 &pcfg_pull_up_12ma>; 1718 }; 1719 1720 emmc_bus8: emmc-bus8 { 1721 rockchip,pins = 1722 <0 RK_PA7 2 &pcfg_pull_up_12ma>, 1723 <2 RK_PD4 2 &pcfg_pull_up_12ma>, 1724 <2 RK_PD5 2 &pcfg_pull_up_12ma>, 1725 <2 RK_PD6 2 &pcfg_pull_up_12ma>, 1726 <2 RK_PD7 2 &pcfg_pull_up_12ma>, 1727 <3 RK_PC0 2 &pcfg_pull_up_12ma>, 1728 <3 RK_PC1 2 &pcfg_pull_up_12ma>, 1729 <3 RK_PC2 2 &pcfg_pull_up_12ma>; 1730 }; 1731 }; 1732 1733 pwm0 { 1734 pwm0_pin: pwm0-pin { 1735 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>; 1736 }; 1737 }; 1738 1739 pwm1 { 1740 pwm1_pin: pwm1-pin { 1741 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_none>; 1742 }; 1743 }; 1744 1745 pwm2 { 1746 pwm2_pin: pwm2-pin { 1747 rockchip,pins = <2 RK_PA6 1 &pcfg_pull_none>; 1748 }; 1749 }; 1750 1751 pwmir { 1752 pwmir_pin: pwmir-pin { 1753 rockchip,pins = <2 RK_PA2 1 &pcfg_pull_none>; 1754 }; 1755 }; 1756 1757 gmac-1 { 1758 rgmiim1_pins: rgmiim1-pins { 1759 rockchip,pins = 1760 /* mac_txclk */ 1761 <1 RK_PB4 2 &pcfg_pull_none_8ma>, 1762 /* mac_rxclk */ 1763 <1 RK_PB5 2 &pcfg_pull_none_4ma>, 1764 /* mac_mdio */ 1765 <1 RK_PC3 2 &pcfg_pull_none_4ma>, 1766 /* mac_txen */ 1767 <1 RK_PD1 2 &pcfg_pull_none_8ma>, 1768 /* mac_clk */ 1769 <1 RK_PC5 2 &pcfg_pull_none_4ma>, 1770 /* mac_rxdv */ 1771 <1 RK_PC6 2 &pcfg_pull_none_4ma>, 1772 /* mac_mdc */ 1773 <1 RK_PC7 2 &pcfg_pull_none_4ma>, 1774 /* mac_rxd1 */ 1775 <1 RK_PB2 2 &pcfg_pull_none_4ma>, 1776 /* mac_rxd0 */ 1777 <1 RK_PB3 2 &pcfg_pull_none_4ma>, 1778 /* mac_txd1 */ 1779 <1 RK_PB0 2 &pcfg_pull_none_8ma>, 1780 /* mac_txd0 */ 1781 <1 RK_PB1 2 &pcfg_pull_none_8ma>, 1782 /* mac_rxd3 */ 1783 <1 RK_PB6 2 &pcfg_pull_none_4ma>, 1784 /* mac_rxd2 */ 1785 <1 RK_PB7 2 &pcfg_pull_none_4ma>, 1786 /* mac_txd3 */ 1787 <1 RK_PC0 2 &pcfg_pull_none_8ma>, 1788 /* mac_txd2 */ 1789 <1 RK_PC1 2 &pcfg_pull_none_8ma>, 1790 1791 /* mac_txclk */ 1792 <0 RK_PB0 1 &pcfg_pull_none_8ma>, 1793 /* mac_txen */ 1794 <0 RK_PB4 1 &pcfg_pull_none_8ma>, 1795 /* mac_clk */ 1796 <0 RK_PD0 1 &pcfg_pull_none_4ma>, 1797 /* mac_txd1 */ 1798 <0 RK_PC0 1 &pcfg_pull_none_8ma>, 1799 /* mac_txd0 */ 1800 <0 RK_PC1 1 &pcfg_pull_none_8ma>, 1801 /* mac_txd3 */ 1802 <0 RK_PC7 1 &pcfg_pull_none_8ma>, 1803 /* mac_txd2 */ 1804 <0 RK_PC6 1 &pcfg_pull_none_8ma>; 1805 }; 1806 1807 rmiim1_pins: rmiim1-pins { 1808 rockchip,pins = 1809 /* mac_mdio */ 1810 <1 RK_PC3 2 &pcfg_pull_none_2ma>, 1811 /* mac_txen */ 1812 <1 RK_PD1 2 &pcfg_pull_none_12ma>, 1813 /* mac_clk */ 1814 <1 RK_PC5 2 &pcfg_pull_none_2ma>, 1815 /* mac_rxer */ 1816 <1 RK_PD0 2 &pcfg_pull_none_2ma>, 1817 /* mac_rxdv */ 1818 <1 RK_PC6 2 &pcfg_pull_none_2ma>, 1819 /* mac_mdc */ 1820 <1 RK_PC7 2 &pcfg_pull_none_2ma>, 1821 /* mac_rxd1 */ 1822 <1 RK_PB2 2 &pcfg_pull_none_2ma>, 1823 /* mac_rxd0 */ 1824 <1 RK_PB3 2 &pcfg_pull_none_2ma>, 1825 /* mac_txd1 */ 1826 <1 RK_PB0 2 &pcfg_pull_none_12ma>, 1827 /* mac_txd0 */ 1828 <1 RK_PB1 2 &pcfg_pull_none_12ma>, 1829 1830 /* mac_mdio */ 1831 <0 RK_PB3 1 &pcfg_pull_none>, 1832 /* mac_txen */ 1833 <0 RK_PB4 1 &pcfg_pull_none>, 1834 /* mac_clk */ 1835 <0 RK_PD0 1 &pcfg_pull_none>, 1836 /* mac_mdc */ 1837 <0 RK_PC3 1 &pcfg_pull_none>, 1838 /* mac_txd1 */ 1839 <0 RK_PC0 1 &pcfg_pull_none>, 1840 /* mac_txd0 */ 1841 <0 RK_PC1 1 &pcfg_pull_none>; 1842 }; 1843 }; 1844 1845 gmac2phy { 1846 fephyled_speed10: fephyled-speed10 { 1847 rockchip,pins = <0 RK_PD6 1 &pcfg_pull_none>; 1848 }; 1849 1850 fephyled_duplex: fephyled-duplex { 1851 rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>; 1852 }; 1853 1854 fephyled_rxm1: fephyled-rxm1 { 1855 rockchip,pins = <2 RK_PD1 2 &pcfg_pull_none>; 1856 }; 1857 1858 fephyled_txm1: fephyled-txm1 { 1859 rockchip,pins = <2 RK_PD1 3 &pcfg_pull_none>; 1860 }; 1861 1862 fephyled_linkm1: fephyled-linkm1 { 1863 rockchip,pins = <2 RK_PD0 2 &pcfg_pull_none>; 1864 }; 1865 }; 1866 1867 tsadc_pin { 1868 tsadc_int: tsadc-int { 1869 rockchip,pins = <2 RK_PB5 2 &pcfg_pull_none>; 1870 }; 1871 tsadc_pin: tsadc-pin { 1872 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 1873 }; 1874 }; 1875 1876 hdmi_pin { 1877 hdmi_cec: hdmi-cec { 1878 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>; 1879 }; 1880 1881 hdmi_hpd: hdmi-hpd { 1882 rockchip,pins = <0 RK_PA4 1 &pcfg_pull_down>; 1883 }; 1884 }; 1885 1886 cif-0 { 1887 dvp_d2d9_m0:dvp-d2d9-m0 { 1888 rockchip,pins = 1889 /* cif_d0 */ 1890 <3 RK_PA4 2 &pcfg_pull_none>, 1891 /* cif_d1 */ 1892 <3 RK_PA5 2 &pcfg_pull_none>, 1893 /* cif_d2 */ 1894 <3 RK_PA6 2 &pcfg_pull_none>, 1895 /* cif_d3 */ 1896 <3 RK_PA7 2 &pcfg_pull_none>, 1897 /* cif_d4 */ 1898 <3 RK_PB0 2 &pcfg_pull_none>, 1899 /* cif_d5m0 */ 1900 <3 RK_PB1 2 &pcfg_pull_none>, 1901 /* cif_d6m0 */ 1902 <3 RK_PB2 2 &pcfg_pull_none>, 1903 /* cif_d7m0 */ 1904 <3 RK_PB3 2 &pcfg_pull_none>, 1905 /* cif_href */ 1906 <3 RK_PA1 2 &pcfg_pull_none>, 1907 /* cif_vsync */ 1908 <3 RK_PA0 2 &pcfg_pull_none>, 1909 /* cif_clkoutm0 */ 1910 <3 RK_PA3 2 &pcfg_pull_none>, 1911 /* cif_clkin */ 1912 <3 RK_PA2 2 &pcfg_pull_none>; 1913 }; 1914 }; 1915 1916 cif-1 { 1917 dvp_d2d9_m1:dvp-d2d9-m1 { 1918 rockchip,pins = 1919 /* cif_d0 */ 1920 <3 RK_PA4 2 &pcfg_pull_none>, 1921 /* cif_d1 */ 1922 <3 RK_PA5 2 &pcfg_pull_none>, 1923 /* cif_d2 */ 1924 <3 RK_PA6 2 &pcfg_pull_none>, 1925 /* cif_d3 */ 1926 <3 RK_PA7 2 &pcfg_pull_none>, 1927 /* cif_d4 */ 1928 <3 RK_PB0 2 &pcfg_pull_none>, 1929 /* cif_d5m1 */ 1930 <2 RK_PC0 4 &pcfg_pull_none>, 1931 /* cif_d6m1 */ 1932 <2 RK_PC1 4 &pcfg_pull_none>, 1933 /* cif_d7m1 */ 1934 <2 RK_PC2 4 &pcfg_pull_none>, 1935 /* cif_href */ 1936 <3 RK_PA1 2 &pcfg_pull_none>, 1937 /* cif_vsync */ 1938 <3 RK_PA0 2 &pcfg_pull_none>, 1939 /* cif_clkoutm1 */ 1940 <2 RK_PB7 4 &pcfg_pull_none>, 1941 /* cif_clkin */ 1942 <3 RK_PA2 2 &pcfg_pull_none>; 1943 }; 1944 }; 1945 }; 1946}; 1947