1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7/dts-v1/; 8#include <dt-bindings/input/input.h> 9#include <dt-bindings/pwm/pwm.h> 10#include <dt-bindings/sensor-dev.h> 11#include "rk3368.dtsi" 12#include "rk3368-android.dtsi" 13 14/ { 15 es8316-sound { 16 compatible = "simple-audio-card"; 17 simple-audio-card,format = "i2s"; 18 simple-audio-card,name = "rockchip,rk-es8316-codec"; 19 simple-audio-card,mclk-fs = <256>; 20 simple-audio-card,widgets = 21 "Microphone", "Mic Jack", 22 "Headphone", "Headphone Jack"; 23 simple-audio-card,routing = 24 "Mic Jack", "MICBIAS1", 25 "IN1P", "Mic Jack", 26 "Headphone Jack", "HPOL", 27 "Headphone Jack", "HPOR"; 28 simple-audio-card,cpu { 29 sound-dai = <&i2s_8ch>; 30 }; 31 simple-audio-card,codec { 32 sound-dai = <&es8316>; 33 }; 34 }; 35 36 sdio_pwrseq: sdio-pwrseq { 37 compatible = "mmc-pwrseq-simple"; 38 clocks = <&rk818 1>; 39 clock-names = "ext_clock"; 40 pinctrl-names = "default"; 41 pinctrl-0 = <&wifi_enable_h>; 42 43 /* 44 * On the module itself this is one of these (depending 45 * on the actual card populated): 46 * - SDIO_RESET_L_WL_REG_ON 47 * - PDN (power down when low) 48 */ 49 reset-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* GPIO3_A4 */ 50 }; 51 52 backlight: backlight { 53 compatible = "pwm-backlight"; 54 pwms = <&pwm0 0 25000 0>; 55 brightness-levels = < 56 0 1 2 3 4 5 6 7 57 8 9 10 11 12 13 14 15 58 16 17 18 19 20 21 22 23 59 24 25 26 27 28 29 30 31 60 32 33 34 35 36 37 38 39 61 40 41 42 43 44 45 46 47 62 48 49 50 51 52 53 54 55 63 56 57 58 59 60 61 62 63 64 64 65 66 67 68 69 70 71 65 72 73 74 75 76 77 78 79 66 80 81 82 83 84 85 86 87 67 88 89 90 91 92 93 94 95 68 96 97 98 99 100 101 102 103 69 104 105 106 107 108 109 110 111 70 112 113 114 115 116 117 118 119 71 120 121 122 123 124 125 126 127 72 128 129 130 131 132 133 134 135 73 136 137 138 139 140 141 142 143 74 144 145 146 147 148 149 150 151 75 152 153 154 155 156 157 158 159 76 160 161 162 163 164 165 166 167 77 168 169 170 171 172 173 174 175 78 176 177 178 179 180 181 182 183 79 184 185 186 187 188 189 190 191 80 192 193 194 195 196 197 198 199 81 200 201 202 203 204 205 206 207 82 208 209 210 211 212 213 214 215 83 216 217 218 219 220 221 222 223 84 224 225 226 227 228 229 230 231 85 232 233 234 235 236 237 238 239 86 240 241 242 243 244 245 246 247 87 248 249 250 251 252 253 254 255>; 88 default-brightness-level = <200>; 89 }; 90 91 charge-animation { 92 compatible = "rockchip,uboot-charge"; 93 rockchip,uboot-charge-on = <1>; 94 rockchip,android-charge-on = <0>; 95 rockchip,uboot-low-power-voltage = <3500>; 96 rockchip,screen-on-voltage = <3600>; 97 status = "okay"; 98 }; 99 100 gpio_keys: gpio-keys { 101 compatible = "gpio-keys"; 102 autorepeat; 103 104 power { 105 debounce-interval = <100>; 106 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; 107 label = "GPIO Key Power"; 108 linux,code = <KEY_POWER>; 109 wakeup-source; 110 }; 111 }; 112 113 adc_keys: adc-keys { 114 compatible = "adc-keys"; 115 io-channels = <&saradc 1>; 116 io-channel-names = "buttons"; 117 keyup-threshold-microvolt = <1024000>; 118 poll-interval = <100>; 119 120 vol-up-key { 121 label = "volume up"; 122 linux,code = <KEY_VOLUMEUP>; 123 press-threshold-microvolt = <1000>; 124 }; 125 126 vol-down-key { 127 label = "volume down"; 128 linux,code = <KEY_VOLUMEDOWN>; 129 press-threshold-microvolt = <170000>; 130 }; 131 }; 132 133 wireless-wlan { 134 compatible = "wlan-platdata"; 135 rockchip,grf = <&grf>; 136 /* wifi_chip_type - wifi chip define 137 * ap6210, ap6330, ap6335 138 * rtl8188eu, rtl8723bs, rtl8723bu 139 * esp8089 140 */ 141 wifi_chip_type = "ap6255"; 142 sdio_vref = <1800>; //1800mv or 3300mv 143 WIFI,host_wake_irq = <&gpio3 6 GPIO_ACTIVE_HIGH>; 144 status = "okay"; 145 }; 146 147 wireless-bluetooth { 148 compatible = "bluetooth-platdata"; 149 clocks = <&rk818 1>; 150 clock-names = "ext_clock"; 151 uart_rts_gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; 152 pinctrl-names = "default","rts_gpio"; 153 pinctrl-0 = <&uart0_rts>; 154 pinctrl-1 = <&uart0_rts_gpio>; 155 156 //BT,power_gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>; 157 BT,reset_gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>; 158 BT,wake_gpio = <&gpio3 2 GPIO_ACTIVE_HIGH>; 159 BT,wake_host_irq = <&gpio3 7 GPIO_ACTIVE_HIGH>; 160 161 status = "okay"; 162 }; 163 164 vcc_sys: vcc-sys { 165 compatible = "regulator-fixed"; 166 regulator-name = "vcc_sys"; 167 regulator-always-on; 168 regulator-boot-on; 169 regulator-min-microvolt = <3800000>; 170 regulator-max-microvolt = <3800000>; 171 }; 172 173 vcc_host: vcc-host { 174 compatible = "regulator-fixed"; 175 enable-active-high; 176 gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>; 177 pinctrl-names = "default"; 178 pinctrl-0 = <&host_vbus_drv>; 179 regulator-name = "vcc_host"; 180 regulator-always-on; 181 }; 182 183 xin32k: xin32k { 184 compatible = "fixed-clock"; 185 clock-frequency = <32768>; 186 clock-output-names = "xin32k"; 187 #clock-cells = <0>; 188 }; 189}; 190 191&cpu_l0 { 192 cpu-supply = <&syr827>; 193}; 194 195&cpu_l1 { 196 cpu-supply = <&syr827>; 197}; 198 199&cpu_l2 { 200 cpu-supply = <&syr827>; 201}; 202 203&cpu_l3 { 204 cpu-supply = <&syr827>; 205}; 206 207&cpu_b0 { 208 cpu-supply = <&syr827>; 209}; 210 211&cpu_b1 { 212 cpu-supply = <&syr827>; 213}; 214 215&cpu_b2 { 216 cpu-supply = <&syr827>; 217}; 218 219&cpu_b3 { 220 cpu-supply = <&syr827>; 221}; 222 223&gpu { 224 logic-supply = <&vdd_logic>; 225}; 226 227&dfi { 228 status = "okay"; 229}; 230 231&dmc { 232 status = "okay"; 233 center-supply = <&vdd_logic>; 234 devfreq-events = <&dfi>; 235 upthreshold = <60>; 236 downdifferential = <20>; 237 system-status-freq = < 238 /*system status freq(KHz)*/ 239 SYS_STATUS_NORMAL 600000 240 SYS_STATUS_REBOOT 600000 241 SYS_STATUS_SUSPEND 240000 242 SYS_STATUS_VIDEO_1080P 396000 243 SYS_STATUS_VIDEO_4K 600000 244 SYS_STATUS_PERFORMANCE 600000 245 SYS_STATUS_BOOST 396000 246 SYS_STATUS_DUALVIEW 600000 247 SYS_STATUS_ISP 528000 248 >; 249 vop-bw-dmc-freq = < 250 /* min_bw(MB/s) max_bw(MB/s) freq(KHz) */ 251 0 582 240000 252 583 99999 396000 253 >; 254 auto-min-freq = <240000>; 255 auto-freq-en = <1>; 256}; 257 258&rockchip_suspend { 259 status = "okay"; 260 rockchip,sleep-mode-config = < 261 (0 262 | RKPM_SLP_ARMOFF 263 | RKPM_SLP_PMU_PLLS_PWRDN 264 | RKPM_SLP_PMU_PMUALIVE_32K 265 | RKPM_SLP_SFT_PLLS_DEEP 266 | RKPM_SLP_PMU_DIS_OSC 267 | RKPM_SLP_SFT_PD_NBSCUS 268 ) 269 >; 270 rockchip,wakeup-config = < 271 (0 272 | RKPM_GPIO_WKUP_EN 273 | RKPM_USB_WKUP_EN 274 | RKPM_CLUSTER_L_WKUP_EN 275 ) 276 >; 277}; 278 279&emmc { 280 bus-width = <8>; 281 cap-mmc-highspeed; 282 mmc-hs200-1_8v; 283 no-sdio; 284 no-sd; 285 disable-wp; 286 non-removable; 287 num-slots = <1>; 288 status = "okay"; 289}; 290 291&nandc0 { 292 status = "okay"; 293}; 294 295&sdmmc { 296 clock-frequency = <37500000>; 297 clock-freq-min-max = <400000 37500000>; 298 no-sdio; 299 no-mmc; 300 cap-mmc-highspeed; 301 cap-sd-highspeed; 302 card-detect-delay = <200>; 303 disable-wp; 304 num-slots = <1>; 305 pinctrl-names = "default"; 306 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; 307 status = "disabled"; 308}; 309 310&sdio0 { 311 clock-frequency = <100000000>; 312 clock-freq-min-max = <200000 100000000>; 313 no-sd; 314 no-mmc; 315 bus-width = <4>; 316 disable-wp; 317 cap-sd-highspeed; 318 cap-sdio-irq; 319 keep-power-in-suspend; 320 mmc-pwrseq = <&sdio_pwrseq>; 321 non-removable; 322 num-slots = <1>; 323 pinctrl-names = "default"; 324 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 325 sd-uhs-sdr104; 326 status = "okay"; 327}; 328 329&i2c0 { 330 status = "okay"; 331 332 syr827: syr827@40 { 333 compatible = "silergy,syr827"; 334 status = "okay"; 335 reg = <0x40>; 336 337 regulator-compatible = "fan53555-reg"; 338 regulator-name = "vdd_arm"; 339 regulator-min-microvolt = <712500>; 340 regulator-max-microvolt = <1500000>; 341 regulator-ramp-delay = <1000>; 342 fcs,suspend-voltage-selector = <1>; 343 pinctrl-0 = <&vsel_gpio>; 344 vsel-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 345 regulator-always-on; 346 regulator-boot-on; 347 regulator-initial-state = <3>; 348 regulator-state-mem { 349 regulator-off-in-suspend; 350 regulator-suspend-microvolt = <900000>; 351 }; 352 }; 353 354 rk818: pmic@1c { 355 compatible = "rockchip,rk818"; 356 status = "okay"; 357 reg = <0x1c>; 358 clock-output-names = "rk818-clkout1", "wifibt_32kin"; 359 interrupt-parent = <&gpio0>; 360 interrupts = <1 IRQ_TYPE_LEVEL_LOW>; 361 pinctrl-names = "default"; 362 pinctrl-0 = <&pmic_int_l>; 363 rockchip,system-power-controller; 364 wakeup-source; 365 extcon = <&u2phy>; 366 #clock-cells = <1>; 367 368 vcc1-supply = <&vcc_sys>; 369 vcc2-supply = <&vcc_sys>; 370 vcc3-supply = <&vcc_sys>; 371 vcc4-supply = <&vcc_sys>; 372 vcc6-supply = <&vcc_sys>; 373 vcc7-supply = <&vcc_sys>; 374 vcc8-supply = <&vcc_sys>; 375 vcc9-supply = <&vcc_io>; 376 377 regulators { 378 vdd_logic: DCDC_REG1 { 379 regulator-name = "vdd_logic"; 380 regulator-always-on; 381 regulator-boot-on; 382 regulator-min-microvolt = <750000>; 383 regulator-max-microvolt = <1450000>; 384 regulator-ramp-delay = <6001>; 385 regulator-state-mem { 386 regulator-on-in-suspend; 387 regulator-suspend-microvolt = <1000000>; 388 }; 389 }; 390 391 vdd_gpu: DCDC_REG2 { 392 regulator-name = "vdd_gpu"; 393 regulator-always-on; 394 regulator-boot-on; 395 regulator-min-microvolt = <800000>; 396 regulator-max-microvolt = <1250000>; 397 regulator-ramp-delay = <6001>; 398 regulator-state-mem { 399 regulator-on-in-suspend; 400 regulator-suspend-microvolt = <1000000>; 401 }; 402 }; 403 404 vcc_ddr: DCDC_REG3 { 405 regulator-always-on; 406 regulator-boot-on; 407 regulator-name = "vcc_ddr"; 408 regulator-state-mem { 409 regulator-on-in-suspend; 410 }; 411 }; 412 413 vcc_io: DCDC_REG4 { 414 regulator-always-on; 415 regulator-boot-on; 416 regulator-min-microvolt = <3300000>; 417 regulator-max-microvolt = <3300000>; 418 regulator-name = "vcc_io"; 419 regulator-state-mem { 420 regulator-on-in-suspend; 421 regulator-suspend-microvolt = <3300000>; 422 }; 423 }; 424 425 vcca_codec: LDO_REG1 { 426 regulator-always-on; 427 regulator-boot-on; 428 regulator-min-microvolt = <3300000>; 429 regulator-max-microvolt = <3300000>; 430 regulator-name = "vcca_codec"; 431 regulator-state-mem { 432 regulator-on-in-suspend; 433 regulator-suspend-microvolt = <3300000>; 434 }; 435 }; 436 437 vcc_tp: LDO_REG2 { 438 regulator-boot-on; 439 regulator-min-microvolt = <3000000>; 440 regulator-max-microvolt = <3000000>; 441 regulator-name = "vcc_tp"; 442 regulator-state-mem { 443 regulator-off-in-suspend; 444 }; 445 }; 446 447 vdd_10: LDO_REG3 { 448 regulator-always-on; 449 regulator-boot-on; 450 regulator-min-microvolt = <1000000>; 451 regulator-max-microvolt = <1000000>; 452 regulator-name = "vdd_10"; 453 regulator-state-mem { 454 regulator-on-in-suspend; 455 regulator-suspend-microvolt = <1000000>; 456 }; 457 }; 458 459 vcc18_lcd: LDO_REG4 { 460 regulator-always-on; 461 regulator-boot-on; 462 regulator-min-microvolt = <1800000>; 463 regulator-max-microvolt = <1800000>; 464 regulator-name = "vcc18_lcd"; 465 regulator-state-mem { 466 regulator-on-in-suspend; 467 regulator-suspend-microvolt = <1800000>; 468 }; 469 }; 470 471 vccio_pmu: LDO_REG5 { 472 regulator-always-on; 473 regulator-boot-on; 474 regulator-min-microvolt = <1800000>; 475 regulator-max-microvolt = <1800000>; 476 regulator-name = "vccio_pmu"; 477 regulator-state-mem { 478 regulator-on-in-suspend; 479 regulator-suspend-microvolt = <1800000>; 480 }; 481 }; 482 483 vdd10_lcd: LDO_REG6 { 484 regulator-always-on; 485 regulator-boot-on; 486 regulator-min-microvolt = <1000000>; 487 regulator-max-microvolt = <1000000>; 488 regulator-name = "vdd10_lcd"; 489 regulator-state-mem { 490 regulator-on-in-suspend; 491 regulator-suspend-microvolt = <1000000>; 492 }; 493 }; 494 495 vcc_18: LDO_REG7 { 496 regulator-always-on; 497 regulator-boot-on; 498 regulator-min-microvolt = <1800000>; 499 regulator-max-microvolt = <1800000>; 500 regulator-name = "vcc_18"; 501 regulator-state-mem { 502 regulator-on-in-suspend; 503 regulator-suspend-microvolt = <1800000>; 504 }; 505 }; 506 507 vccio_wl: LDO_REG8 { 508 regulator-always-on; 509 regulator-boot-on; 510 regulator-min-microvolt = <1800000>; 511 regulator-max-microvolt = <1800000>; 512 regulator-name = "vccio_wl"; 513 regulator-state-mem { 514 regulator-on-in-suspend; 515 regulator-suspend-microvolt = <1800000>; 516 }; 517 }; 518 519 vccio_sd: LDO_REG9 { 520 regulator-always-on; 521 regulator-boot-on; 522 regulator-min-microvolt = <1800000>; 523 regulator-max-microvolt = <3300000>; 524 regulator-name = "vccio_sd"; 525 regulator-state-mem { 526 regulator-on-in-suspend; 527 regulator-suspend-microvolt = <3300000>; 528 }; 529 }; 530 531 vcc_sd: SWITCH_REG { 532 regulator-always-on; 533 regulator-boot-on; 534 regulator-name = "vcc_sd"; 535 regulator-state-mem { 536 regulator-on-in-suspend; 537 }; 538 }; 539 540 boost_otg: DCDC_BOOST { 541 regulator-name = "boost_otg"; 542 regulator-always-on; 543 regulator-boot-on; 544 regulator-min-microvolt = <5000000>; 545 regulator-max-microvolt = <5000000>; 546 regulator-state-mem { 547 regulator-on-in-suspend; 548 regulator-suspend-microvolt = <5000000>; 549 }; 550 }; 551 552 otg_switch: OTG_SWITCH { 553 regulator-name = "otg_switch"; 554 }; 555 }; 556 557 battery { 558 compatible = "rk818-battery"; 559 pinctrl-names = "default"; 560 pinctrl-0 = <&dc_irq_gpio>; 561 ocv_table = < 562 3400 3652 3680 3707 3730 3747 3764 563 3772 3781 3792 3807 3828 3861 3899 564 3929 3958 3987 4038 4079 4127 4186>; 565 design_capacity = <7536>; 566 design_qmax = <8290>; 567 bat_res = <100>; 568 max_input_current = <1750>; 569 max_chrg_current = <2000>; 570 max_chrg_voltage = <4200>; 571 sleep_enter_current = <600>; 572 sleep_exit_current = <600>; 573 power_off_thresd = <3400>; 574 zero_algorithm_vol = <3850>; 575 fb_temperature = <115>; 576 sample_res = <20>; 577 max_soc_offset = <60>; 578 energy_mode = <0>; 579 monitor_sec = <5>; 580 virtual_power = <0>; 581 power_dc2otg = <0>; 582 support_usb_adp = <1>; 583 support_dc_adp = <1>; 584 dc_det_gpio = <&gpio0 17 GPIO_ACTIVE_LOW>; 585 }; 586 }; 587}; 588 589&i2c1 { 590 status = "okay"; 591 592 es8316: es8316@10 { 593 status = "okay"; 594 #sound-dai-cells = <0>; 595 compatible = "everest,es8316"; 596 reg = <0x10>; 597 clocks = <&cru SCLK_I2S_8CH_OUT>; 598 clock-names = "mclk"; 599 spk-con-gpio = <&gpio3 9 GPIO_ACTIVE_HIGH>; 600 hp-det-gpio = <&gpio0 23 GPIO_ACTIVE_HIGH>; 601 pinctrl-names = "default"; 602 pinctrl-0 = <&i2s_8ch_mclk>; 603 }; 604}; 605 606&i2c2 { 607 status = "okay"; 608 609 gt9xx: gt9xx@14 { 610 compatible = "goodix,gt9xx"; 611 reg = <0x14>; 612 touch-gpio = <&gpio0 12 IRQ_TYPE_LEVEL_HIGH>; 613 reset-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>; 614 max-x = <1920>; 615 max-y = <1200>; 616 tp-size = <89>; 617 configfile-num = <1>; 618 status = "okay"; 619 tp-supply = <&vcc_tp>; 620 }; 621}; 622 623&i2c3 { 624 status = "okay"; 625}; 626 627&i2c4 { 628 status = "okay"; 629 630 mpu6500@68 { 631 status = "disabled"; 632 compatible = "invensense,mpu6500"; 633 pinctrl-names = "default"; 634 pinctrl-0 = <&mpu6500_irq_gpio>; 635 reg = <0x68>; 636 irq-gpio = <&gpio3 14 IRQ_TYPE_EDGE_RISING>; 637 mpu-int_config = <0x10>; 638 mpu-level_shifter = <0>; 639 mpu-orientation = <1 0 0 0 1 0 0 0 1>; 640 orientation-x= <1>; 641 orientation-y= <0>; 642 orientation-z= <1>; 643 support-hw-poweroff = <1>; 644 mpu-debug = <1>; 645 }; 646 647 sensor@4c { 648 status = "okay"; 649 compatible = "gs_mc3230"; 650 reg = <0x4c>; 651 type = <SENSOR_TYPE_ACCEL>; 652 irq_enable = <0>; 653 poll_delay_ms = <30>; 654 layout = <4>; 655 reprobe_en = <1>; 656 }; 657 658 sensor@19 { 659 status = "okay"; 660 compatible = "gs_lis3dh"; 661 reg = <0x19>; 662 type = <SENSOR_TYPE_ACCEL>; 663 irq-gpio = <&gpio3 14 IRQ_TYPE_LEVEL_LOW>; 664 irq_enable = <0>; 665 poll_delay_ms = <30>; 666 layout = <6>; 667 reprobe_en = <1>; 668 }; 669 670 sensor@10 { 671 status = "okay"; 672 compatible = "light_cm3218"; 673 pinctrl-names = "default"; 674 pinctrl-0 = <&cm3218_irq_gpio>; 675 reg = <0x10>; 676 type = <SENSOR_TYPE_LIGHT>; 677 irq-gpio = <&gpio3 15 IRQ_TYPE_EDGE_FALLING>; 678 irq_enable = <1>; 679 poll_delay_ms = <30>; 680 }; 681}; 682 683&i2s_8ch { 684 status = "okay"; 685 rockchip,i2s-broken-burst-len; 686 rockchip,playback-channels = <8>; 687 rockchip,capture-channels = <2>; 688 #sound-dai-cells = <0>; 689}; 690 691&io_domains { 692 status = "okay"; 693 694 dvp-supply = <&vcc_18>; 695 audio-supply = <&vcc_io>; 696 gpio30-supply = <&vcc_io>; 697 gpio1830-supply = <&vcc_io>; 698 sdcard-supply = <&vccio_sd>; 699 wifi-supply = <&vccio_wl>; 700}; 701 702&pmu_io_domains { 703 status = "okay"; 704 705 pmu-supply = <&vccio_pmu>; 706 vop-supply = <&vccio_pmu>; 707}; 708 709&pwm0 { 710 status = "okay"; 711}; 712 713&uart0 { 714 pinctrl-names = "default"; 715 pinctrl-0 = <&uart0_xfer &uart0_cts>; 716 status = "okay"; 717}; 718 719&saradc { 720 status = "okay"; 721}; 722 723&u2phy { 724 status = "okay"; 725 726 u2phy_host: host-port { 727 phy-supply = <&vcc_host>; 728 status = "okay"; 729 }; 730}; 731 732&usb_host0_ehci { 733 status = "okay"; 734}; 735 736&usb_host0_ohci { 737 status = "okay"; 738}; 739 740&dsi { 741 status = "okay"; 742 743 panel@0 { 744 compatible = "simple-panel-dsi"; 745 reg = <0>; 746 backlight = <&backlight>; 747 enable-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; 748 prepare-delay-ms = <120>; 749 enable-delay-ms = <200>; 750 751 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | 752 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>; 753 dsi,format = <MIPI_DSI_FMT_RGB888>; 754 dsi,lanes = <4>; 755 756 display-timings { 757 native-mode = <&timing0>; 758 759 timing0: timing0 { 760 clock-frequency = <159000000>; 761 hactive = <1200>; 762 vactive = <1920>; 763 hback-porch = <60>; 764 hfront-porch = <80>; 765 vback-porch = <25>; 766 vfront-porch = <35>; 767 hsync-len = <1>; 768 vsync-len = <1>; 769 hsync-active = <0>; 770 vsync-active = <0>; 771 de-active = <0>; 772 pixelclk-active = <0>; 773 }; 774 }; 775 776 ports { 777 #address-cells = <1>; 778 #size-cells = <0>; 779 780 port@0 { 781 reg = <0>; 782 panel_in_dsi: endpoint { 783 remote-endpoint = <&dsi_out_panel>; 784 }; 785 }; 786 }; 787 }; 788 789 ports { 790 #address-cells = <1>; 791 #size-cells = <0>; 792 793 port@1 { 794 reg = <1>; 795 dsi_out_panel: endpoint { 796 remote-endpoint = <&panel_in_dsi>; 797 }; 798 }; 799 }; 800}; 801 802&route_dsi { 803 status = "okay"; 804}; 805 806&tsadc { 807 tsadc-supply = <&syr827>; 808 status = "okay"; 809}; 810 811&pinctrl { 812 pmic { 813 pmic_int_l: pmic-int-l { 814 rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; 815 }; 816 vsel_gpio: vsel-gpio { 817 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; 818 }; 819 }; 820 821 mpu6500 { 822 mpu6500_irq_gpio: mpu6500-irq-gpio { 823 rockchip,pins = <3 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; 824 }; 825 }; 826 827 cm3218 { 828 cm3218_irq_gpio: cm3218-irq-gpio { 829 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>; 830 }; 831 }; 832 833 dc_det { 834 dc_irq_gpio: dc-irq-gpio { 835 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>; 836 }; 837 }; 838 839 sdio-pwrseq { 840 wifi_enable_h: wifi-enable-h { 841 rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 842 }; 843 }; 844 845 usb2 { 846 host_vbus_drv: host-vbus-drv { 847 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 848 }; 849 }; 850 851 wireless-bluetooth { 852 uart0_rts_gpio: uart0-rts-gpio { 853 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 854 }; 855 }; 856}; 857 858