1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd 4 */ 5 6/dts-v1/; 7#include <dt-bindings/gpio/gpio.h> 8#include <dt-bindings/input/rk-input.h> 9#include <dt-bindings/pinctrl/rockchip.h> 10#include <dt-bindings/pwm/pwm.h> 11#include <dt-bindings/sensor-dev.h> 12#include "rk3128.dtsi" 13#include "rk312x-android.dtsi" 14 15/ { 16 model = "Rockchip RK3128 EVB DDR3 V10 Linux Board"; 17 compatible = "rockchip,rk3128"; 18 19 chosen { 20 bootargs = "earlycon=uart8250,mmio32,0x20068000 console=ttyFIQ0 root=PARTUUID=614e0000-0000-4b53-8000-1d28000054a9 rootwait"; 21 }; 22 23 adc-keys { 24 compatible = "adc-keys"; 25 io-channels = <&saradc 1>; 26 io-channel-names = "buttons"; 27 poll-interval = <100>; 28 keyup-threshold-microvolt = <3300000>; 29 30 vol-up-key { 31 label = "volume Up"; 32 linux,code = <KEY_VOLUMEUP>; 33 press-threshold-microvolt = <0>; 34 }; 35 36 vol-down-key{ 37 label = "volume down"; 38 linux,code = <KEY_VOLUMEDOWN>; 39 press-threshold-microvolt = <750000>; 40 }; 41 42 menu-key{ 43 label = "menu"; 44 linux,code = <KEY_MENU>; 45 press-threshold-microvolt = <1240000>; 46 }; 47 48 esc-key { 49 label = "esc"; 50 linux,code = <KEY_ESC>; 51 press-threshold-microvolt = <1980000>; 52 }; 53 }; 54 55 backlight: backlight { 56 compatible = "pwm-backlight"; 57 pwms = <&pwm0 0 25000 0>; 58 brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 59 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 60 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 61 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 62 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 63 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 64 105 106 107 108 109 110 111 112 113 114 115 116 117 65 118 119 120 121 122 123 124 125 126 127 128 129 130 66 131 132 133 134 135 136 137 138 139 140 141 142 143 67 144 145 146 147 148 149 150 151 152 153 154 155 156 68 157 158 159 160 161 162 163 164 165 166 167 168 169 69 170 171 172 173 174 175 176 177 178 179 180 181 182 70 183 184 185 186 187 188 189 190 191 192 193 194 195 71 196 197 198 199 200 201 202 203 204 205 206 207 208 72 209 210 211 212 213 214 215 216 217 218 219 220 221 73 222 223 224 225 226 227 228 229 230 231 232 233 234 74 235 236 237 238 239 240 241 242 243 244 245 246 247 75 248 249 250 251 252 253 254 255>; 76 default-brightness-level = <128>; 77 }; 78 79 sdio_pwrseq: sdio-pwrseq{ 80 compatible = "mmc-pwrseq-simple"; 81 pinctrl-name = "default"; 82 pinctrl-0 = <&wifi_enable_h>; 83 reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>; 84 }; 85 86 codec_sound: codec-sound { 87 compatible = "simple-audio-card"; 88 simple-audio-card,format = "i2s"; 89 simple-audio-card,name = "rockchip,rk312x-codec"; 90 simple-audio-card,mclk-fs = <256>; 91 simple-audio-card,cpu { 92 sound-dai = <&i2s_8ch>; 93 }; 94 simple-audio-card,codec { 95 sound-dai = <&codec>; 96 }; 97 }; 98 99 spdif_out: spdif-out { 100 status = "okay"; 101 compatible = "linux,spdif-dit"; 102 #sound-dai-cells = <0>; 103 }; 104 105 media_sound: media-sound { 106 status = "okay"; 107 compatible = "simple-audio-card"; 108 simple-audio-card,name = "rockchip,hdmi-spdif"; 109 simple-audio-card,mclk-fs = <128>; 110 simple-audio-card,dai-link@0 { 111 format = "spdif"; 112 cpu { 113 sound-dai = <&spdif>; 114 }; 115 116 codec { 117 sound-dai = <&spdif_out>; 118 }; 119 }; 120 121 simple-audio-card,dai-link@1 { 122 format = "spdif"; 123 cpu { 124 sound-dai = <&spdif>; 125 }; 126 127 codec { 128 sound-dai = <&hdmi>; 129 }; 130 }; 131 }; 132 133 wireless-wlan { 134 compatible = "wlan-platdata"; 135 wifi_chip_type = "ap6212"; 136 sdio_vref = <3300>; 137 rockchip,grf = <&grf>; 138 WIFI,host_wake_irq = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>; 139 status = "okay"; 140 }; 141 142 wireless-bluetooth { 143 compatible = "bluetooth-platdata"; 144 clocks = <&rk805 1>; 145 clock-names = "ext_clock"; 146 uart_rts_gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>; 147 pinctrl-names = "default","rts_gpio"; 148 pinctrl-0 = <&uart0_rts>; 149 pinctrl-1 = <&uart0_rts_gpio>; 150 BT,power_gpio = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; 151 BT,wake_gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; 152 BT,wake_host_irq = <&gpio3 RK_PC6 GPIO_ACTIVE_LOW>; 153 status = "okay"; 154 }; 155 156 vcc_phy: vcc-phy-regulator { 157 compatible = "regulator-fixed"; 158 enable-active-high; 159 regulator-name = "vcc_phy"; 160 regulator-always-on; 161 regulator-boot-on; 162 }; 163 164 vcc_2v8_cam: vcc-3v3-cam { 165 compatible = "regulator-fixed"; 166 regulator-name = "vcc_2v8_cam"; 167 gpio = <&gpio2 RK_PB2 GPIO_ACTIVE_LOW>; 168 enable-active-high; 169 regulator-min-microvolt = <3300000>; 170 regulator-max-microvolt = <3300000>; 171 }; 172 173 vcc5v0_sys: vcc-sys { 174 compatible = "regulator-fixed"; 175 regulator-name = "vcc5v0_sys"; 176 regulator-always-on; 177 regulator-boot-on; 178 regulator-min-microvolt = <5000000>; 179 regulator-max-microvolt = <5000000>; 180 }; 181 182 vcc_host_5v: vcc-host-5v-regulator { 183 compatible = "regulator-fixed"; 184 enable-active-high; 185 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_LOW>; 186 pinctrl-names = "default"; 187 pinctrl-0 = <&host_vbus_drv>; 188 regulator-name = "vcc_host_5v"; 189 regulator-always-on; 190 }; 191 192 vcc_hub_5v: vcc-hub-5v-regulator { 193 compatible = "regulator-fixed"; 194 regulator-name = "vcc_hub_5v"; 195 gpio = <&gpio2 RK_PB3 GPIO_ACTIVE_LOW>; 196 pinctrl-names = "default"; 197 pinctrl-0 = <&hub_rst>; 198 enable-active-high; 199 regulator-always-on; 200 }; 201 202 vcc_sdmmc: vcc-sdmmc{ 203 compatible = "regulator-fixed"; 204 gpio = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>; 205 pinctrl-names = "default"; 206 pinctrl-0 = <&sdmmc_pwren>; 207 regulator-name = "vcc_sdmmc"; 208 regulator-min-microvolt = <3300000>; 209 regulator-max-microvolt = <3300000>; 210 }; 211 212 vcc3v3_lcd_n: vcc3v3-lcd-n { 213 compatible = "regulator-fixed"; 214 regulator-name = "vcc3v3_lcd_n"; 215 pinctrl-names = "default"; 216 pinctrl-0 = <&lcd_en>; 217 gpio = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>; 218 enable-active-high; 219 regulator-boot-on; 220 }; 221 222 vccio_wifi: vccio-wifi { 223 compatible = "regulator-fixed"; 224 regulator-name = "vccio_wifi"; 225 pinctrl-names = "default"; 226 pinctrl-0 = <&wifi_pwren_l>; 227 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; 228 regulator-boot-on; 229 regulator-always-on; 230 }; 231 232 xin32k: xin32k { 233 compatible = "fixed-clock"; 234 clock-frequency = <32768>; 235 clock-output-names = "xin32k"; 236 #clock-cells = <0>; 237 }; 238}; 239 240&cif_new { 241 status = "okay"; 242 243 ports { 244 port@0 { 245 cif_in_bcam: endpoint@0 { 246 remote-endpoint = <&gc2145_out>; 247 vsync-active = <0>; 248 hsync-active = <1>; 249 }; 250 }; 251 }; 252}; 253 254&codec{ 255 spk-ctl-gpios = <&gpio0 RK_PD6 GPIO_ACTIVE_HIGH>; 256 hp-ctl-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>; 257 spk-mute-delay = <200>; 258 hp-mute-delay = <100>; 259 rk312x_for_mid = <0>; 260 is_rk3128 = <1>; 261 spk_volume = <25>; 262 hp_volume = <25>; 263 capture_volume = <26>; 264 gpio_debug = <1>; 265 codec_hp_det = <1>; 266 #sound-dai-cells = <0>; 267 pinctrl-names = "default"; 268 pinctrl-0 = <&spk_ctl_h>, <&hp_ctl_h>; 269 status = "okay"; 270}; 271 272&cpu0 { 273 cpu-supply = <&vdd_arm>; 274}; 275 276&display_subsystem { 277 status = "okay"; 278}; 279 280&dmc { 281 center-supply = <&vdd_logic>; 282}; 283 284&dsi { 285 status = "okay"; 286 287 panel@0 { 288 compatible = "sitronix,st7703", "simple-panel-dsi"; 289 reg = <0>; 290 backlight = <&backlight>; 291 power-supply = <&vcc3v3_lcd_n>; 292 reset-gpio = <&gpio0 RK_PD0 GPIO_ACTIVE_LOW>; 293 prepare-delay-ms = <0>; 294 reset-delay-ms = <0>; 295 init-delay-ms = <80>; 296 enable-delay-ms = <0>; 297 disable-delay-ms = <10>; 298 unprepare-delay-ms = <60>; 299 300 width-mm = <68>; 301 height-mm = <121>; 302 303 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | 304 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>; 305 dsi,format = <MIPI_DSI_FMT_RGB888>; 306 dsi,lanes = <4>; 307 308 panel-init-sequence = [ 309 39 00 04 ff 98 81 03 310 15 00 02 01 00 311 15 00 02 02 00 312 15 00 02 03 53 313 15 00 02 04 53 314 15 00 02 05 13 315 15 00 02 06 04 316 15 00 02 07 02 317 15 00 02 08 02 318 15 00 02 09 00 319 15 00 02 0a 00 320 15 00 02 0b 00 321 15 00 02 0c 00 322 15 00 02 0d 00 323 15 00 02 0e 00 324 15 00 02 0f 00 325 326 15 00 02 10 00 327 15 00 02 11 00 328 15 00 02 12 00 329 15 00 02 13 00 330 15 00 02 14 00 331 15 00 02 15 08 332 15 00 02 16 10 333 15 00 02 17 00 334 15 00 02 18 08 335 15 00 02 19 00 336 15 00 02 1a 00 337 15 00 02 1b 00 338 15 00 02 1c 00 339 15 00 02 1d 00 340 15 00 02 1e c0 341 15 00 02 1f 80 342 343 15 00 02 20 02 344 15 00 02 21 09 345 15 00 02 22 00 346 15 00 02 23 00 347 15 00 02 24 00 348 15 00 02 25 00 349 15 00 02 26 00 350 15 00 02 27 00 351 15 00 02 28 55 352 15 00 02 29 03 353 15 00 02 2a 00 354 15 00 02 2b 00 355 15 00 02 2c 00 356 15 00 02 2d 00 357 15 00 02 2e 00 358 15 00 02 2f 00 359 360 15 00 02 30 00 361 15 00 02 31 00 362 15 00 02 32 00 363 15 00 02 33 00 364 15 00 02 34 04 365 15 00 02 35 05 366 15 00 02 36 05 367 15 00 02 37 00 368 15 00 02 38 3c 369 15 00 02 39 35 370 15 00 02 3a 00 371 15 00 02 3b 40 372 15 00 02 3c 00 373 15 00 02 3d 00 374 15 00 02 3e 00 375 15 00 02 3f 00 376 377 15 00 02 40 00 378 15 00 02 41 88 379 15 00 02 42 00 380 15 00 02 43 00 381 15 00 02 44 1f 382 383 15 00 02 50 01 384 15 00 02 51 23 385 15 00 02 52 45 386 15 00 02 53 67 387 15 00 02 54 89 388 15 00 02 55 ab 389 15 00 02 56 01 390 15 00 02 57 23 391 15 00 02 58 45 392 15 00 02 59 67 393 15 00 02 5a 89 394 15 00 02 5b ab 395 15 00 02 5c cd 396 15 00 02 5d ef 397 15 00 02 5e 03 398 15 00 02 5f 14 399 400 15 00 02 60 15 401 15 00 02 61 0c 402 15 00 02 62 0d 403 15 00 02 63 0e 404 15 00 02 64 0f 405 15 00 02 65 10 406 15 00 02 66 11 407 15 00 02 67 08 408 15 00 02 68 02 409 15 00 02 69 0a 410 15 00 02 6a 02 411 15 00 02 6b 02 412 15 00 02 6c 02 413 15 00 02 6d 02 414 15 00 02 6e 02 415 15 00 02 6f 02 416 417 15 00 02 70 02 418 15 00 02 71 02 419 15 00 02 72 06 420 15 00 02 73 02 421 15 00 02 74 02 422 15 00 02 75 14 423 15 00 02 76 15 424 15 00 02 77 0f 425 15 00 02 78 0e 426 15 00 02 79 0d 427 15 00 02 7a 0c 428 15 00 02 7b 11 429 15 00 02 7c 10 430 15 00 02 7d 06 431 15 00 02 7e 02 432 15 00 02 7f 0a 433 434 15 00 02 80 02 435 15 00 02 81 02 436 15 00 02 82 02 437 15 00 02 83 02 438 15 00 02 84 02 439 15 00 02 85 02 440 15 00 02 86 02 441 15 00 02 87 02 442 15 00 02 88 08 443 15 00 02 89 02 444 15 00 02 8a 02 445 446 39 00 04 ff 98 81 04 447 15 00 02 00 80 448 15 00 02 70 00 449 15 00 02 71 00 450 15 00 02 66 fe 451 15 00 02 82 15 452 15 00 02 84 15 453 15 00 02 85 15 454 15 00 02 3a 24 455 15 00 02 32 ac 456 15 00 02 8c 80 457 15 00 02 3c f5 458 15 00 02 88 33 459 460 39 00 04 ff 98 81 01 461 15 00 02 22 0a 462 15 00 02 31 00 463 15 00 02 53 78 464 15 00 02 50 5b 465 15 00 02 51 5b 466 15 00 02 60 20 467 15 00 02 61 00 468 15 00 02 62 0d 469 15 00 02 63 00 470 471 15 00 02 a0 00 472 15 00 02 a1 10 473 15 00 02 a2 1c 474 15 00 02 a3 13 475 15 00 02 a4 15 476 15 00 02 a5 26 477 15 00 02 a6 1a 478 15 00 02 a7 1d 479 15 00 02 a8 67 480 15 00 02 a9 1c 481 15 00 02 aa 29 482 15 00 02 ab 5b 483 15 00 02 ac 26 484 15 00 02 ad 28 485 15 00 02 ae 5c 486 15 00 02 af 30 487 15 00 02 b0 31 488 15 00 02 b1 2e 489 15 00 02 b2 32 490 15 00 02 b3 00 491 492 15 00 02 c0 00 493 15 00 02 c1 10 494 15 00 02 c2 1c 495 15 00 02 c3 13 496 15 00 02 c4 15 497 15 00 02 c5 26 498 15 00 02 c6 1a 499 15 00 02 c7 1d 500 15 00 02 c8 67 501 15 00 02 c9 1c 502 15 00 02 ca 29 503 15 00 02 cb 5b 504 15 00 02 cc 26 505 15 00 02 cd 28 506 15 00 02 ce 5c 507 15 00 02 cf 30 508 15 00 02 d0 31 509 15 00 02 d1 2e 510 15 00 02 d2 32 511 15 00 02 d3 00 512 39 00 04 ff 98 81 00 513 05 00 01 11 514 05 01 01 29 515 ]; 516 517 panel-exit-sequence = [ 518 05 00 01 28 519 05 00 01 10 520 ]; 521 522 display-timings { 523 native-mode = <&timing0>; 524 525 timing0: timing0 { 526 clock-frequency = <65000000>; 527 hactive = <720>; 528 vactive = <1280>; 529 hfront-porch = <40>; 530 hsync-len = <10>; 531 hback-porch = <40>; 532 vfront-porch = <22>; 533 vsync-len = <4>; 534 vback-porch = <11>; 535 hsync-active = <0>; 536 vsync-active = <0>; 537 de-active = <0>; 538 pixelclk-active = <0>; 539 }; 540 }; 541 }; 542}; 543 544&emmc { 545 bus-width = <8>; 546 cap-mmc-highspeed; 547 supports-emmc; 548 disable-wp; 549 non-removable; 550 num-slots = <1>; 551 pinctrl-names = "default"; 552 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; 553 status = "okay"; 554}; 555 556&gmac { 557 assigned-clocks = <&cru SCLK_MAC_SRC>; 558 assigned-clock-rates = <50000000>; 559 clock_in_out = "output"; 560 pinctrl-names = "default"; 561 pinctrl-0 = <&rmii_pins>; 562 phy-supply = <&vcc_phy>; 563 phy-mode = "rmii"; 564 snps,reset-active-low; 565 snps,reset-delays-us = <0 10000 50000>; 566 snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>; 567 status = "okay"; 568}; 569 570&gpu { 571 status = "okay"; 572 mali-supply = <&vdd_logic>; 573}; 574 575&hdmi { 576 rockchip,format = "spdif"; 577 #sound-dai-cells = <0>; 578 status = "okay"; 579}; 580 581&hevc { 582 status = "okay"; 583}; 584 585&hevc_mmu { 586 status = "okay"; 587}; 588 589&i2c0 { 590 status = "okay"; 591 clock-frequency = <400000>; 592 593 rtc@51 { 594 compatible = "rtc,hym8563"; 595 reg = <0x51>; 596 irq_gpio = <&gpio0 RK_PD4 IRQ_TYPE_EDGE_FALLING>; 597 wakeup-source; 598 }; 599 600 rk805: rk805@18 { 601 compatible = "rockchip,rk805"; 602 status = "okay"; 603 reg = <0x18>; 604 interrupt-parent = <&gpio1>; 605 interrupts = <11 IRQ_TYPE_LEVEL_LOW>; 606 pinctrl-names = "default"; 607 pinctrl-0 = <&pmic_int>; 608 rockchip,system-power-controller; 609 wakeup-source; 610 gpio-controller; 611 #gpio-cells = <2>; 612 #clock-cells = <1>; 613 clock-output-names = "rk805-clkout1", "rk805-clkout2"; 614 615 vcc1-supply = <&vcc5v0_sys>; 616 vcc2-supply = <&vcc5v0_sys>; 617 vcc3-supply = <&vcc5v0_sys>; 618 vcc4-supply = <&vcc5v0_sys>; 619 vcc5-supply = <&vcc_io>; 620 vcc6-supply = <&vcc_io>; 621 622 rtc { 623 status = "okay"; 624 }; 625 626 pwrkey { 627 status = "okay"; 628 }; 629 630 gpio { 631 status = "okay"; 632 }; 633 634 regulators { 635 compatible = "rk805-regulator"; 636 status = "okay"; 637 #address-cells = <1>; 638 #size-cells = <0>; 639 640 vdd_arm: DCDC_REG1 { 641 regulator-name = "vdd_arm"; 642 regulator-min-microvolt = <700000>; 643 regulator-max-microvolt = <1500000>; 644 regulator-initial-mode = <0x1>; 645 regulator-initial-state = <3>; 646 regulator-boot-on; 647 regulator-always-on; 648 regulator-state-mem { 649 regulator-state-mode = <0x2>; 650 regulator-state-enabled; 651 regulator-state-uv = <975000>; 652 }; 653 }; 654 655 vdd_logic: DCDC_REG2 { 656 regulator-name = "vdd_logic"; 657 regulator-min-microvolt = <700000>; 658 regulator-max-microvolt = <1500000>; 659 regulator-initial-mode = <0x1>; 660 regulator-ramp-delay = <12500>; 661 regulator-boot-on; 662 regulator-always-on; 663 regulator-state-mem { 664 regulator-mode = <0x2>; 665 regulator-on-in-suspend; 666 regulator-suspend-microvolt = <1000000>; 667 }; 668 }; 669 670 vcc_ddr: DCDC_REG3 { 671 regulator-name = "vcc_ddr"; 672 regulator-initial-mode = <0x1>; 673 regulator-boot-on; 674 regulator-always-on; 675 regulator-state-mem { 676 regulator-mode = <0x2>; 677 regulator-on-in-suspend; 678 }; 679 }; 680 681 vcc_io: DCDC_REG4 { 682 regulator-name = "vcc_io"; 683 regulator-min-microvolt = <3300000>; 684 regulator-max-microvolt = <3300000>; 685 regulator-initial-mode = <0x1>; 686 regulator-boot-on; 687 regulator-always-on; 688 regulator-state-mem { 689 regulator-mode = <0x2>; 690 regulator-on-in-suspend; 691 regulator-suspend-microvolt = <3300000>; 692 }; 693 }; 694 695 vcca_33: LDO_REG1 { 696 regulator-name = "vcca_33"; 697 regulator-min-microvolt = <3300000>; 698 regulator-max-microvolt = <3300000>; 699 regulator-initial-state = <3>; 700 regulator-boot-on; 701 regulator-always-on; 702 regulator-state-mem { 703 regulator-on-in-suspend; 704 regulator-suspend-microvolt = <3300000>; 705 }; 706 }; 707 708 vcc_1v8_cam: LDO_REG2 { 709 regulator-name = "vcc_1v8_cam"; 710 regulator-min-microvolt = <1800000>; 711 regulator-max-microvolt = <1800000>; 712 regulator-boot-on; 713 regulator-always-on; 714 regulator-state-mem { 715 regulator-on-in-suspend; 716 regulator-suspend-microvolt = <1800000>; 717 }; 718 }; 719 720 vdd10_pmu: LDO_REG3 { 721 regulator-name = "vdd10_pmu"; 722 regulator-min-microvolt = <1100000>; 723 regulator-max-microvolt = <1100000>; 724 regulator-boot-on; 725 regulator-always-on; 726 regulator-state-mem { 727 regulator-on-in-suspend; 728 regulator-suspend-microvolt = <1100000>; 729 }; 730 }; 731 }; 732 }; 733}; 734 735&i2c2 { 736 status = "okay"; 737 738 gc2145@3c { 739 status = "okay"; 740 compatible = "galaxycore,gc2145"; 741 reg = <0x3c>; 742 743 clocks = <&cru SCLK_CIF_OUT>; 744 clock-names = "xvclk"; 745 pwdn-gpios = <&gpio3 RK_PD7 GPIO_ACTIVE_HIGH>; 746 747 avdd-supply = <&vcc_2v8_cam>; 748 dovdd-supply = <&vcc_2v8_cam>; 749 dvdd-supply = <&vcc_1v8_cam>; 750 751 rockchip,camera-module-index = <0>; 752 rockchip,camera-module-facing = "back"; 753 rockchip,camera-module-name = "CameraKing"; 754 rockchip,camera-module-lens-name = "Largan"; 755 756 port { 757 gc2145_out: endpoint { 758 remote-endpoint = <&cif_in_bcam>; 759 }; 760 }; 761 }; 762 763 gt1x: gt1x@14 { 764 status = "okay"; 765 compatible = "goodix,gt1x"; 766 reg = <0x14>; 767 power-supply = <&vcc3v3_lcd_n>; 768 pinctrl-names = "default"; 769 pinctrl-0 = <&tp_rst>, <&tp_irq>; 770 goodix,rst-gpio = <&gpio0 RK_PD1 GPIO_ACTIVE_LOW>; 771 goodix,irq-gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; 772 }; 773 774 mma7660: mma7660@4c { 775 status = "okay"; 776 compatible = "gs_mma7660"; 777 reg = <0x4c>; 778 type = <SENSOR_TYPE_ACCEL>; 779 irq-gpio = <&gpio0 RK_PB4 IRQ_TYPE_LEVEL_LOW>; 780 irq_enable = <0>; 781 poll_delay_ms = <30>; 782 layout = <1>; 783 reprobe_en = <1>; 784 }; 785}; 786 787&i2s_8ch{ 788 status = "okay"; 789 #sound-dai-cells = <0>; 790}; 791 792&mpp_srv { 793 status = "okay"; 794}; 795 796&pinctrl { 797 codec{ 798 spk_ctl_h: spk-ctl-h{ 799 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; 800 }; 801 802 hp_ctl_h: hp-ctl-h{ 803 rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; 804 }; 805 }; 806 807 lcd { 808 lcd_en: lcd-en { 809 rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 810 }; 811 812 tp_rst: tp-rst { 813 rockchip,pins = <0 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; 814 }; 815 816 tp_irq: tp-irq { 817 rockchip,pins = <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; 818 }; 819 }; 820 821 pmic { 822 pmic_int: pmic-int { 823 rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_default>; 824 }; 825 826 pmic_sleep: pmic-sleep { 827 rockchip,pins = <3 RK_PC1 2 &pcfg_pull_default>; 828 }; 829 }; 830 831 sensor { 832 mma7660_irq_gpio: mma7660-irq-gpio { 833 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 834 }; 835 }; 836 837 usb2 { 838 host_vbus_drv: host-vbus-drv { 839 rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 840 }; 841 842 hub_rst: hub-rst { 843 rockchip,pins = <2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; 844 }; 845 }; 846 847 uart0{ 848 uart0_rts_gpio: uart0-rts-gpio{ 849 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; 850 }; 851 }; 852 853 wifi{ 854 wifi_enable_h: wifi-enable-h{ 855 rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 856 }; 857 wifi_pwren_l: wifi-pwren-l{ 858 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; 859 }; 860 }; 861}; 862 863&pwm0 { 864 status = "okay"; 865}; 866 867&pwm3{ 868 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; 869 compatible = "rockchip,remotectl-pwm"; 870 pinctrl-names = "default"; 871 remote_pwm_id = <3>; 872 handle_cpu_id = <0>; 873 remote_support_psci = <0>; 874 status = "okay"; 875 ir_key1 { 876 rockchip,usercode = <0xff00>; 877 rockchip,key_table = 878 <0xeb KEY_POWER>, 879 <0xec KEY_COMPOSE>, 880 <0xfe KEY_BACK>, 881 <0xb7 KEY_HOME>, 882 <0xa3 KEY_WWW>, 883 <0xf4 KEY_VOLUMEUP>, 884 <0xa7 KEY_VOLUMEDOWN>, 885 <0xf8 KEY_ENTER>, 886 <0xfc KEY_UP>, 887 <0xfd KEY_DOWN>, 888 <0xf1 KEY_LEFT>, 889 <0xe5 KEY_RIGHT>; 890 }; 891}; 892 893&rga { 894 status = "okay"; 895}; 896 897&route_dsi{ 898 status = "okay"; 899}; 900 901&saradc { 902 status = "okay"; 903 vref-supply = <&vcc_io>; 904}; 905 906&sdio { 907 max-frequency = <50000000>; 908 supports-sdio; 909 disable-wp; 910 cap-sd-highspeed; 911 cap-sdio-irq; 912 keep-power-in-suspend; 913 pinctrl-names = "default"; 914 pinctrl-0 = <&sdio_cmd &sdio_clk &sdio_bus4>; 915 mmc-pwrseq = <&sdio_pwrseq>; 916 non-removable; 917 sd-uhs-sdr104; 918 status = "okay"; 919}; 920 921&sdmmc { 922 cap-mmc-highspeed; 923 cap-sd-highspeed; 924 no-sdio; 925 no-mmc; 926 vmmc-supply = <&vcc_sdmmc>; 927 card-detect-delay = <800>; 928 pinctrl-names = "default"; 929 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4 &sdmmc_det>; 930 rockchip,default-sample-phase=<90>; 931 status = "disabled"; 932}; 933 934&spdif{ 935 compatible = "rockchip,rk3188-spdif"; 936 status = "okay"; 937 i2c-scl-rising-time-ns = <450>; 938 i2c-scl-falling-time-ns = <15>; 939 #sound-dai-cells = <0>; 940}; 941 942&tsadc { 943 status = "okay"; 944}; 945 946&u2phy { 947 status = "okay"; 948 949 u2phy_otg: otg-port { 950 status = "okay"; 951 }; 952 953 u2phy_host: host-port { 954 phy-supply = <&vcc_host_5v>; 955 status = "okay"; 956 }; 957}; 958 959&uart0{ 960 pinctrl-names = "default"; 961 pinctrl-0 = <&uart0_xfer &uart0_cts>; 962 status = "okay"; 963}; 964 965&usb_host_ehci { 966 status = "okay"; 967}; 968 969&usb_host_ohci { 970 status = "okay"; 971}; 972 973&usb_otg { 974 status = "okay"; 975}; 976 977&vdpu { 978 status = "okay"; 979}; 980 981&vepu { 982 status = "okay"; 983}; 984 985&vop { 986 status = "okay"; 987}; 988 989&vop_mmu { 990 status = "okay"; 991}; 992 993&vpu_mmu { 994 status = "okay"; 995}; 996