1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2020 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7/dts-v1/; 8 9#include <dt-bindings/gpio/gpio.h> 10#include <dt-bindings/pinctrl/rockchip.h> 11#include <dt-bindings/input/rk-input.h> 12#include <dt-bindings/sensor-dev.h> 13#include <dt-bindings/display/drm_mipi_dsi.h> 14#include "rk3566.dtsi" 15#include "rk3568-android.dtsi" 16#include "rk3566-eink.dtsi" 17 18/ { 19 model = "Rockchip RK3566 RK817 EINK LP4X Board"; 20 compatible = "rockchip,rk3566-rk817-eink", "rockchip,rk3566"; 21 22 charge-animation { 23 compatible = "rockchip,uboot-charge"; 24 rockchip,uboot-charge-on = <1>; 25 rockchip,android-charge-on = <0>; 26 rockchip,uboot-low-power-voltage = <3350>; 27 rockchip,screen-on-voltage = <3400>; 28 rockchip,auto-wakeup-interval = <60>; 29 status = "okay"; 30 }; 31 32 adc_keys: adc-keys { 33 status = "disabled"; 34 compatible = "adc-keys"; 35 io-channels = <&saradc 0>; 36 io-channel-names = "buttons"; 37 keyup-threshold-microvolt = <1800000>; 38 poll-interval = <100>; 39 40 vol-up-key { 41 label = "volume up"; 42 linux,code = <KEY_VOLUMEUP>; 43 press-threshold-microvolt = <1750>; 44 }; 45 46 vol-down-key { 47 label = "volume down"; 48 linux,code = <KEY_VOLUMEDOWN>; 49 press-threshold-microvolt = <297500>; 50 }; 51 }; 52 53 hdmi_sound: hdmi-sound { 54 compatible = "simple-audio-card"; 55 simple-audio-card,format = "i2s"; 56 simple-audio-card,mclk-fs = <128>; 57 simple-audio-card,name = "rockchip,hdmi"; 58 status = "disabled"; 59 60 simple-audio-card,cpu { 61 sound-dai = <&i2s0_8ch>; 62 }; 63 simple-audio-card,codec { 64 sound-dai = <&hdmi>; 65 }; 66 }; 67 68 vccsys: vccsys { 69 compatible = "regulator-fixed"; 70 regulator-name = "vcc3v8_sys"; 71 regulator-always-on; 72 regulator-boot-on; 73 regulator-min-microvolt = <3800000>; 74 regulator-max-microvolt = <3800000>; 75 }; 76 77 rk817-sound { 78 compatible = "rockchip,multicodecs-card"; 79 rockchip,card-name = "rockchip-rk817"; 80 hp-det-gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_LOW>; 81 rockchip,format = "i2s"; 82 rockchip,mclk-fs = <256>; 83 rockchip,cpu = <&i2s1_8ch>; 84 rockchip,codec = <&rk817_codec>; 85 pinctrl-names = "default"; 86 pinctrl-0 = <&hp_det>; 87 }; 88 89 sdio_pwrseq: sdio-pwrseq { 90 status = "disabled"; 91 compatible = "mmc-pwrseq-simple"; 92 clocks = <&rk817 1>; 93 clock-names = "ext_clock"; 94 pinctrl-names = "default"; 95 pinctrl-0 = <&wifi_enable_h>; 96 97 /* 98 * On the module itself this is one of these (depending 99 * on the actual card populated): 100 * - SDIO_RESET_L_WL_REG_ON 101 * - PDN (power down when low) 102 */ 103 post-power-on-delay-ms = <200>; 104 reset-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; 105 }; 106 107 vcc_sd: vcc-sd { 108 compatible = "regulator-gpio"; 109 enable-active-low; 110 enable-gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 111 regulator-min-microvolt = <3300000>; 112 regulator-max-microvolt = <3300000>; 113 pinctrl-names = "default"; 114 pinctrl-0 = <&vcc_sd_h>; 115 regulator-name = "vcc_sd"; 116 states = <3300000 0x0 117 3300000 0x1>; 118 }; 119 120 wireless-wlan { 121 compatible = "wlan-platdata"; 122 rockchip,grf = <&grf>; 123 wifi_chip_type = "ap6255"; 124 pinctrl-names = "default"; 125 pinctrl-0 = <&wifi_host_wake_irq>; 126 WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; 127 status = "disabled"; 128 }; 129 130 wireless-bluetooth { 131 compatible = "bluetooth-platdata"; 132 clocks = <&rk817 1>; 133 clock-names = "ext_clock"; 134 //wifi-bt-power-toggle; 135 uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; 136 pinctrl-names = "default", "rts_gpio"; 137 pinctrl-0 = <&uart1m0_rtsn>; 138 pinctrl-1 = <&uart1_gpios>; 139 BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; 140 BT,wake_gpio = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; 141 BT,wake_host_irq = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; 142 status = "disabled"; 143 }; 144}; 145 146&ebc { 147 /* clock rate 1000M/n, (n=1~32) */ 148 assigned-clocks = <&cru CPLL_333M>, <&cru DCLK_EBC>; 149 assigned-clock-rates = <250000000>, <250000000>; 150 status = "okay"; 151}; 152 153&ebc_dev { 154 pmic = <&tps65185>; 155 status = "okay"; 156#if 0 157 /* ED097TC2U1 */ 158 panel,width = <1200>; 159 panel,height = <825>; 160 panel,vir_width = <1200>; 161 panel,vir_height = <825>; 162 panel,sdck = <25000000>; 163 panel,lsl = <4>; 164 panel,lbl = <4>; 165 panel,ldl = <300>; 166 panel,lel = <36>; 167 panel,gdck-sta = <18>; 168 panel,lgonl = <265>; 169 panel,fsl = <2>; 170 panel,fbl = <4>; 171 panel,fdl = <825>; 172 panel,fel = <24>; 173 panel,mirror = <0>; 174 panel,panel_16bit = <0>; 175 panel,panel_color = <0>; 176 panel,width-mm = <203>; 177 panel,height-mm = <140>; 178#else 179 /* ES103TC1 */ 180 panel,width = <1872>; 181 panel,height = <1404>; 182 panel,vir_width = <1872>; 183 panel,vir_height = <1404>; 184 panel,sdck = <33300000>; 185 panel,lsl = <18>; 186 panel,lbl = <17>; 187 panel,ldl = <234>; 188 panel,lel = <7>; 189 panel,gdck-sta = <34>; 190 panel,lgonl = <192>; 191 panel,fsl = <1>; 192 panel,fbl = <4>; 193 panel,fdl = <1404>; 194 panel,fel = <12>; 195 panel,mirror = <0>; 196 panel,panel_16bit = <1>; 197 panel,panel_color = <0>; 198 panel,width-mm = <157>; 199 panel,height-mm = <210>; 200#endif 201}; 202 203&cpu0 { 204 cpu-supply = <&vdd_cpu>; 205}; 206 207&gpu { 208 mali-supply = <&vdd_gpu>; 209 status = "okay"; 210}; 211 212&hdmi { 213 status = "disabled"; 214}; 215 216&hdmi_in_vp0 { 217 status = "disabled"; 218}; 219 220&hdmi_in_vp1 { 221 status = "disabled"; 222}; 223 224&hdmi_sound { 225 status = "disabled"; 226}; 227 228&i2c0 { 229 status = "okay"; 230 231 vdd_cpu: tcs4525@1c { 232 compatible = "tcs,tcs4525"; 233 reg = <0x1c>; 234 vin-supply = <&vccsys>; 235 regulator-compatible = "fan53555-reg"; 236 regulator-name = "vdd_cpu"; 237 regulator-min-microvolt = <712500>; 238 regulator-max-microvolt = <1390000>; 239 regulator-init-microvolt = <900000>; 240 regulator-ramp-delay = <2300>; 241 fcs,suspend-voltage-selector = <1>; 242 regulator-boot-on; 243 regulator-always-on; 244 regulator-state-mem { 245 regulator-off-in-suspend; 246 }; 247 }; 248 249 rk817: pmic@20 { 250 compatible = "rockchip,rk817"; 251 reg = <0x20>; 252 interrupt-parent = <&gpio0>; 253 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 254 255 pinctrl-names = "default", "pmic-sleep", 256 "pmic-power-off", "pmic-reset"; 257 pinctrl-0 = <&pmic_int>; 258 pinctrl-1 = <&soc_slppin_slp>, <&rk817_slppin_slp>; 259 pinctrl-2 = <&soc_slppin_gpio>, <&rk817_slppin_pwrdn>; 260 pinctrl-3 = <&soc_slppin_gpio>, <&rk817_slppin_rst>; 261 rockchip,system-power-controller; 262 wakeup-source; 263 #clock-cells = <1>; 264 clock-output-names = "rk808-clkout1", "rk808-clkout2"; 265 //fb-inner-reg-idxs = <2>; 266 /* 1: rst regs (default in codes), 0: rst the pmic */ 267 pmic-reset-func = <0>; 268 /* not save the PMIC_POWER_EN register in uboot */ 269 not-save-power-en = <1>; 270 vcc1-supply = <&vccsys>; 271 vcc2-supply = <&vccsys>; 272 vcc3-supply = <&vccsys>; 273 vcc4-supply = <&vccsys>; 274 vcc5-supply = <&vccsys>; 275 vcc6-supply = <&vccsys>; 276 vcc7-supply = <&vccsys>; 277 vcc8-supply = <&vccsys>; 278 vcc9-supply = <&dcdc_boost>; 279 280 pwrkey { 281 status = "okay"; 282 }; 283 284 pinctrl_rk8xx: pinctrl_rk8xx { 285 gpio-controller; 286 #gpio-cells = <2>; 287 288 rk817_slppin_null: rk817_slppin_null { 289 pins = "gpio_slp"; 290 function = "pin_fun0"; 291 }; 292 293 rk817_slppin_slp: rk817_slppin_slp { 294 pins = "gpio_slp"; 295 function = "pin_fun1"; 296 }; 297 298 rk817_slppin_pwrdn: rk817_slppin_pwrdn { 299 pins = "gpio_slp"; 300 function = "pin_fun2"; 301 }; 302 303 rk817_slppin_rst: rk817_slppin_rst { 304 pins = "gpio_slp"; 305 function = "pin_fun3"; 306 }; 307 }; 308 309 regulators { 310 vdd_logic: DCDC_REG1 { 311 regulator-always-on; 312 regulator-boot-on; 313 regulator-min-microvolt = <500000>; 314 regulator-max-microvolt = <1350000>; 315 regulator-init-microvolt = <900000>; 316 regulator-ramp-delay = <6001>; 317 regulator-initial-mode = <0x2>; 318 regulator-name = "vdd_logic"; 319 regulator-state-mem { 320 regulator-off-in-suspend; 321 regulator-suspend-microvolt = <900000>; 322 }; 323 }; 324 325 vdd_gpu: DCDC_REG2 { 326 regulator-always-on; 327 regulator-boot-on; 328 regulator-min-microvolt = <500000>; 329 regulator-max-microvolt = <1350000>; 330 regulator-init-microvolt = <900000>; 331 regulator-ramp-delay = <6001>; 332 regulator-initial-mode = <0x2>; 333 regulator-name = "vdd_gpu"; 334 regulator-state-mem { 335 regulator-off-in-suspend; 336 }; 337 }; 338 339 vcc_ddr: DCDC_REG3 { 340 regulator-always-on; 341 regulator-boot-on; 342 regulator-initial-mode = <0x2>; 343 regulator-name = "vcc_ddr"; 344 regulator-state-mem { 345 regulator-on-in-suspend; 346 }; 347 }; 348 349 vcc_3v3: DCDC_REG4 { 350 regulator-always-on; 351 regulator-boot-on; 352 regulator-min-microvolt = <3300000>; 353 regulator-max-microvolt = <3300000>; 354 regulator-initial-mode = <0x2>; 355 regulator-name = "vcc_3v3"; 356 regulator-state-mem { 357 regulator-off-in-suspend; 358 }; 359 }; 360 361 vcca1v8_pmu: LDO_REG1 { 362 regulator-always-on; 363 regulator-boot-on; 364 regulator-min-microvolt = <1800000>; 365 regulator-max-microvolt = <1800000>; 366 regulator-name = "vcca1v8_pmu"; 367 regulator-state-mem { 368 regulator-on-in-suspend; 369 regulator-suspend-microvolt = <1800000>; 370 }; 371 }; 372 373 vdda_0v9: LDO_REG2 { 374 regulator-always-on; 375 regulator-boot-on; 376 regulator-min-microvolt = <900000>; 377 regulator-max-microvolt = <900000>; 378 regulator-name = "vdda_0v9"; 379 regulator-state-mem { 380 regulator-off-in-suspend; 381 }; 382 }; 383 384 vdda0v9_pmu: LDO_REG3 { 385 regulator-always-on; 386 regulator-boot-on; 387 regulator-min-microvolt = <900000>; 388 regulator-max-microvolt = <900000>; 389 regulator-name = "vdda0v9_pmu"; 390 regulator-state-mem { 391 regulator-on-in-suspend; 392 regulator-suspend-microvolt = <900000>; 393 }; 394 }; 395 396 vccio_acodec: LDO_REG4 { 397 regulator-always-on; 398 regulator-boot-on; 399 regulator-min-microvolt = <3300000>; 400 regulator-max-microvolt = <3300000>; 401 regulator-name = "vccio_acodec"; 402 regulator-state-mem { 403 regulator-off-in-suspend; 404 }; 405 }; 406 407 vccio_sd: LDO_REG5 { 408 regulator-always-on; 409 regulator-boot-on; 410 regulator-min-microvolt = <1800000>; 411 regulator-max-microvolt = <3300000>; 412 regulator-name = "vccio_sd"; 413 regulator-state-mem { 414 regulator-off-in-suspend; 415 }; 416 }; 417 418 vcc3v3_pmu: LDO_REG6 { 419 regulator-always-on; 420 regulator-boot-on; 421 regulator-min-microvolt = <3300000>; 422 regulator-max-microvolt = <3300000>; 423 regulator-name = "vcc3v3_pmu"; 424 regulator-state-mem { 425 regulator-on-in-suspend; 426 regulator-suspend-microvolt = <3300000>; 427 }; 428 }; 429 430 vcc_1v8: LDO_REG7 { 431 regulator-always-on; 432 regulator-boot-on; 433 regulator-min-microvolt = <1800000>; 434 regulator-max-microvolt = <1800000>; 435 regulator-name = "vcc_1v8"; 436 regulator-state-mem { 437 regulator-off-in-suspend; 438 }; 439 }; 440 441 vcc1v8_dvp: LDO_REG8 { 442 regulator-always-on; 443 regulator-boot-on; 444 regulator-min-microvolt = <1800000>; 445 regulator-max-microvolt = <1800000>; 446 regulator-name = "vcc1v8_dvp"; 447 regulator-state-mem { 448 regulator-off-in-suspend; 449 }; 450 }; 451 452 vcc2v8_dvp: LDO_REG9 { 453 regulator-always-on; 454 regulator-boot-on; 455 regulator-min-microvolt = <2800000>; 456 regulator-max-microvolt = <2800000>; 457 regulator-name = "vcc2v8_dvp"; 458 regulator-state-mem { 459 regulator-off-in-suspend; 460 }; 461 }; 462 463 dcdc_boost: BOOST { 464 regulator-always-on; 465 regulator-boot-on; 466 regulator-min-microvolt = <4700000>; 467 regulator-max-microvolt = <5400000>; 468 regulator-name = "boost"; 469 regulator-state-mem { 470 regulator-off-in-suspend; 471 }; 472 }; 473 474 otg_switch: OTG_SWITCH { 475 regulator-name = "otg_switch"; 476 regulator-state-mem { 477 regulator-off-in-suspend; 478 }; 479 }; 480 }; 481 482 battery { 483 compatible = "rk817,battery"; 484 ocv_table = <3400 3513 3578 3687 3734 3752 3763 485 3766 3771 3784 3804 3836 3885 3925 486 3962 4005 4063 4114 4169 4227 4303>; 487 design_capacity = <5000>; 488 design_qmax = <5500>; 489 bat_res = <100>; 490 sleep_enter_current = <150>; 491 sleep_exit_current = <180>; 492 sleep_filter_current = <100>; 493 power_off_thresd = <3450>; 494 zero_algorithm_vol = <3850>; 495 max_soc_offset = <60>; 496 monitor_sec = <5>; 497 sample_res = <10>; 498 virtual_power = <0>; 499 }; 500 501 charger { 502 compatible = "rk817,charger"; 503 min_input_voltage = <4500>; 504 max_input_current = <1500>; 505 max_chrg_current = <2000>; 506 max_chrg_voltage = <4300>; 507 chrg_term_mode = <0>; 508 chrg_finish_cur = <300>; 509 virtual_power = <0>; 510 dc_det_adc = <0>; 511 extcon = <&usb2phy0>; 512 gate_function_disable = <1>; 513 }; 514 515 rk817_codec: codec { 516 #sound-dai-cells = <0>; 517 compatible = "rockchip,rk817-codec"; 518 clocks = <&cru I2S1_MCLKOUT>; 519 clock-names = "mclk"; 520 assigned-clocks = <&cru I2S1_MCLKOUT>, <&cru I2S1_MCLK_TX_IOE>; 521 assigned-clock-rates = <12288000>; 522 assigned-clock-parents = <&cru I2S1_MCLKOUT_TX>, <&cru I2S1_MCLKOUT_TX>; 523 pinctrl-names = "default"; 524 pinctrl-0 = <&i2s1m0_mclk>; 525 hp-volume = <20>; 526 spk-volume = <3>; 527 out-l2spk-r2hp; 528 spk-ctl-gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 529 status = "okay"; 530 }; 531 }; 532}; 533 534&i2c1 { 535 status = "okay"; 536 tps65185: tps65185@68 { 537 status = "okay"; 538 compatible = "ti,tps65185"; 539 reg = <0x68>; 540 pinctrl-names = "default"; 541 pinctrl-0 = <&tps65185_gpio>; 542 int-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>; 543 wakeup-gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>; 544 vcomctl-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; 545 powerup-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>; 546 }; 547}; 548 549&i2c2 { 550 status = "okay"; 551 wacom: wacom@9 { 552 compatible = "wacom,w9013"; 553 reg = <0x09>; 554 pinctrl-names = "default"; 555 pinctrl-0 = <&wacom_gpio>; 556 gpio_detect = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; 557 gpio_intr = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; 558 gpio_rst = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>; 559 revert_x = <0>; 560 revert_y = <0>; 561 xy_exchange = <0>; 562 }; 563}; 564 565&i2c3 { 566 status = "okay"; 567 pinctrl-names = "default"; 568 pinctrl-0 = <&i2c3m1_xfer>; 569 570 ts@40 { 571 compatible = "gslX680-pad"; 572 reg = <0x40>; 573 touch-gpio = <&gpio3 RK_PB0 IRQ_TYPE_LEVEL_HIGH>; 574 reset-gpio = <&gpio3 RK_PB1 IRQ_TYPE_LEVEL_HIGH>; 575 pinctrl-names = "default"; 576 pinctrl-0 = <&tp_gpio>; 577 screen_max_x = <1200>; 578 screen_max_y = <1920>; 579 revert_x = <0>; 580 revert_y = <1>; 581 revert_xy = <0>; 582 chip_id = <1>; 583 status = "disabled"; 584 }; 585 586 tsc@24 { 587 status = "okay"; 588 compatible = "cy,cyttsp5_i2c_adapter"; 589 reg = <0x24>; 590 cy,adapter_id = "cyttsp5_i2c_adapter"; 591 //cytp-supply = <&vcc_sd>; 592 cy,core { 593 cy,name = "cyttsp5_core"; 594 pinctrl-names = "default"; 595 pinctrl-0 = <&tsc_gpio>; 596 cy,irq_gpio = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>; 597 cy,rst_gpio = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>; 598 cy,1v8_gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>; 599 cy,2v8_gpio = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; 600 cy,hid_desc_register = <1>; 601 /* CY_CORE_FLAG_RESTORE_PARAMETERS */ 602 cy,flags = <6>; 603 /* CY_CORE_EWG_NONE */ 604 cy,easy_wakeup_gesture = <0>; 605 cy,btn_keys = <172 /* KEY_HOMEPAGE */ 606 /* previously was KEY_HOME, new Android versions use KEY_HOMEPAGE */ 607 139 /* KEY_MENU */ 608 158 /* KEY_BACK */ 609 217 /* KEY_SEARCH */ 610 114 /* KEY_VOLUMEDOWN */ 611 115 /* KEY_VOLUMEUP */ 612 212 /* KEY_CAMERA */ 613 116>; /* KEY_POWER */ 614 cy,btn_keys-tag = <0>; 615 cy,mt { 616 cy,name = "cyttsp5_mt"; 617 cy,inp_dev_name = "cyttsp5_mt"; 618 cy,flags = <0>; 619 cy,abs = 620 /* ABS_MT_POSITION_X, CY_ABS_MIN_X, CY_ABS_MAX_X, 0, 0 */ 621 <0x35 0 1872 0 0 622 /* ABS_MT_POSITION_Y, CY_ABS_MIN_Y, CY_ABS_MAX_Y, 0, 0 */ 623 0x36 0 1404 0 0 624 /* ABS_MT_PRESSURE, CY_ABS_MIN_P, CY_ABS_MAX_P, 0, 0 */ 625 0x3a 0 255 0 0 626 /* CY_IGNORE_VALUE, CY_ABS_MIN_W, CY_ABS_MAX_W, 0, 0 */ 627 0xffff 0 255 0 0 628 /* ABS_MT_TRACKING_ID, CY_ABS_MIN_T, CY_ABS_MAX_T, 0, 0 */ 629 0x39 0 15 0 0 630 /* ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0 */ 631 0x30 0 255 0 0 632 /* ABS_MT_TOUCH_MINOR, 0, 255, 0, 0 */ 633 0x31 0 255 0 0 634 /* ABS_MT_ORIENTATION, -127, 127, 0, 0 */ 635 0x34 0xffffff81 127 0 0 636 /* ABS_MT_TOOL_TYPE, 0, MT_TOOL_MAX, 0, 0 */ 637 0x37 0 1 0 0 638 /* ABS_DISTANCE, 0, 255, 0, 0 */ 639 0x19 0 255 0 0>; 640 641 cy,vkeys_x = <1872>; 642 cy,vkeys_y = <1404>; 643 cy,revert_x = <0>; 644 cy,revert_y = <1>; 645 cy,xy_exchange = <0>; 646 647 cy,virtual_keys = 648 /* KeyCode CenterX CenterY Width Height */ 649 /* KEY_BACK */ 650 <158 1360 90 160 180 651 /* KEY_MENU */ 652 139 1360 270 160 180 653 /* KEY_HOMEPAGE */ 654 172 1360 450 160 180 655 /* KEY SEARCH */ 656 217 1360 630 160 180>; 657 }; 658 659 cy,btn { 660 cy,name = "cyttsp5_btn"; 661 cy,inp_dev_name = "cyttsp5_btn"; 662 }; 663 664 cy,proximity { 665 cy,name = "cyttsp5_proximity"; 666 cy,inp_dev_name = "cyttsp5_proximity"; 667 cy,abs = 668 /* ABS_DISTANCE, CY_PROXIMITY_MIN_VAL, CY_PROXIMITY_MAX_VAL, 0, 0 */ 669 <0x19 0 1 0 0>; 670 }; 671 }; 672 }; 673}; 674 675&i2c5 { 676 status = "disabled"; 677 678 kxtj: kxtj3@e { 679 status = "disabled"; 680 compatible = "gs_kxtj9"; 681 pinctrl-names = "default"; 682 pinctrl-0 = <&kxtj3_irq_gpio>; 683 reg = <0x0e>; 684 irq-gpio = <&gpio4 RK_PC6 IRQ_TYPE_EDGE_RISING>; 685 type = <SENSOR_TYPE_ACCEL>; 686 irq_enable = <0>; 687 poll_delay_ms = <30>; 688 power-off-in-suspend = <1>; 689 layout = <5>; 690 }; 691}; 692 693&i2s0_8ch { 694 status = "disabled"; 695}; 696 697&i2s1_8ch { 698 status = "okay"; 699 rockchip,clk-trcm = <1>; 700 pinctrl-names = "default"; 701 pinctrl-0 = <&i2s1m0_sclktx 702 &i2s1m0_lrcktx 703 &i2s1m0_sdi0 704 &i2s1m0_sdo0>; 705}; 706 707&jpegd { 708 status = "okay"; 709}; 710 711&jpegd_mmu { 712 status = "okay"; 713}; 714 715&video_phy0 { 716 status = "disabled"; 717}; 718 719&mpp_srv { 720 status = "okay"; 721}; 722 723&nandc0 { 724 status = "disabled"; 725}; 726 727&pinctrl { 728 wacom { 729 wacom_gpio: wacom-gpio { 730 rockchip,pins = 731 <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>, 732 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>, 733 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 734 }; 735 }; 736 tsc { 737 tsc_gpio: tsc-gpio { 738 rockchip,pins = 739 <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>, 740 <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, 741 <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>, 742 <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; 743 }; 744 }; 745 746 tps_pmic { 747 tps65185_gpio: tps65185-gpio { 748 rockchip,pins = 749 <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, 750 <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>, 751 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>, 752 <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; 753 }; 754 }; 755 756 tp { 757 tp_gpio: tp-gpio { 758 rockchip,pins = 759 <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>, 760 <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 761 }; 762 }; 763 764 headphone { 765 hp_det: hp-det { 766 rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>; 767 }; 768 }; 769 770 sensor { 771 kxtj3_irq_gpio: kxtj3-irq-gpio { 772 rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 773 }; 774 }; 775 776 pmic { 777 pmic_int: pmic_int { 778 rockchip,pins = 779 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 780 }; 781 782 soc_slppin_gpio: soc_slppin_gpio { 783 rockchip,pins = 784 <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low>; 785 }; 786 787 soc_slppin_slp: soc_slppin_slp { 788 rockchip,pins = 789 <0 RK_PA2 1 &pcfg_pull_none>; 790 }; 791 792 soc_slppin_rst: soc_slppin_rst { 793 rockchip,pins = 794 <0 RK_PA2 2 &pcfg_pull_none>; 795 }; 796 }; 797 798 sdio-pwrseq { 799 wifi_enable_h: wifi-enable-h { 800 rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 801 }; 802 }; 803 804 vcc_sd { 805 vcc_sd_h: vcc-sd-h { 806 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 807 }; 808 }; 809 810 wireless-wlan { 811 wifi_host_wake_irq: wifi-host-wake-irq { 812 rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>; 813 }; 814 }; 815 816 wireless-bluetooth { 817 uart1_gpios: uart1-gpios { 818 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 819 }; 820 }; 821}; 822 823&pmu_io_domains { 824 status = "okay"; 825 pmuio1-supply = <&vcc3v3_pmu>; 826 pmuio2-supply = <&vcc3v3_pmu>; 827 vccio1-supply = <&vccio_acodec>; 828 vccio3-supply = <&vccio_sd>; 829 vccio4-supply = <&vcc_3v3>; 830 vccio5-supply = <&vcc_3v3>; 831 vccio6-supply = <&vcc_3v3>; 832 vccio7-supply = <&vcc_3v3>; 833}; 834 835&pwm4 { 836 status = "disabled"; 837}; 838 839&rk_rga { 840 status = "okay"; 841}; 842 843&rkvdec { 844 status = "okay"; 845}; 846 847&rkvdec_mmu { 848 status = "okay"; 849}; 850 851&rkvenc { 852 status = "okay"; 853}; 854 855&rkvenc_mmu { 856 status = "okay"; 857}; 858 859&saradc { 860 status = "disabled"; 861 vref-supply = <&vcc_1v8>; 862}; 863 864&sdhci { 865 bus-width = <8>; 866 no-sdio; 867 no-sd; 868 non-removable; 869 keep-power-in-suspend; 870 max-frequency = <200000000>; 871 status = "okay"; 872}; 873 874&sdmmc0 { 875 max-frequency = <50000000>; 876 no-sdio; 877 no-mmc; 878 bus-width = <4>; 879 cap-mmc-highspeed; 880 cap-sd-highspeed; 881 disable-wp; 882 sd-uhs-sdr104; 883 vmmc-supply = <&vcc_sd>; 884 vqmmc-supply = <&vccio_sd>; 885 pinctrl-names = "default"; 886 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 887 status = "okay"; 888}; 889 890&sdmmc1 { 891 max-frequency = <150000000>; 892 no-sd; 893 no-mmc; 894 bus-width = <4>; 895 disable-wp; 896 cap-sd-highspeed; 897 cap-sdio-irq; 898 keep-power-in-suspend; 899 mmc-pwrseq = <&sdio_pwrseq>; 900 non-removable; 901 pinctrl-names = "default"; 902 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; 903 sd-uhs-sdr104; 904 status = "disabled"; 905}; 906 907&tsadc { 908 status = "okay"; 909}; 910 911&uart1 { 912 status = "disabled"; 913 pinctrl-names = "default"; 914 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; 915}; 916 917&u2phy0_otg { 918 status = "okay"; 919}; 920 921&usb2phy0 { 922 status = "okay"; 923}; 924 925&usbdrd_dwc3 { 926 status = "okay"; 927}; 928 929&usbdrd30 { 930 status = "okay"; 931}; 932 933&vdpu { 934 status = "okay"; 935}; 936 937&vdpu_mmu { 938 status = "okay"; 939}; 940 941&vepu { 942 status = "okay"; 943}; 944 945&vepu_mmu { 946 status = "okay"; 947}; 948 949&vop { 950 status = "okay"; 951}; 952 953&vop_mmu { 954 status = "okay"; 955}; 956