47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2019 MediaTek Inc.
|
|
*
|
|
*/
|
|
|
|
/* DUAL TOUCH start */
|
|
&spi4 {
|
|
status = "okay";
|
|
mediatek,dual-touch-support;
|
|
dual-touch-cs-num = <2>;
|
|
gt9896s@0 {
|
|
compatible = "goodix,gt9896s";
|
|
reg = <1>; //Same as CS ID
|
|
spi-max-frequency = <1000000>;
|
|
|
|
goodix,avdd-name = "vtouch";
|
|
vtouch-supply = <&mt_pmic_vtp_ldo_reg>;
|
|
goodix,reset-gpio = <&pio 20 0x0>;
|
|
goodix,irq-gpio = <&pio 21 0x0>;
|
|
goodix,irq-flags = <2>; /* 1:rising, 2:falling;*/
|
|
goodix,panel-max-id = <10>;
|
|
goodix,panel-max-x = <1080>;
|
|
goodix,panel-max-y = <2400>;
|
|
goodix,panel-max-w = <256>;
|
|
goodix,panel-max-p = <256>;
|
|
goodix,input-max-x = <1080>;
|
|
goodix,input-max-y = <2400>;
|
|
goodix,panel-key-map = <158 172 217>; /*BACK,HOMEPAGE,SEARCH*/
|
|
goodix,power-on-delay-us = <10000>; /*10ms*/
|
|
goodix,power-off-delay-us = <5000>;
|
|
goodix,firmware-version = "6983v01";
|
|
goodix,config-version = "6983v01";
|
|
/*goodix,swap-axis;*/
|
|
goodix,x2x;
|
|
goodix,y2y;
|
|
goodix,pen-enable;
|
|
tpd-filter-enable = <0>;
|
|
tpd-filter-pixel-density = <161>;
|
|
tpd-filter-custom-prameters = <0 0 0 0 0 0 0 0 0 0 0 0>;
|
|
tpd-filter-custom-speed = <0 0 0>;
|
|
};
|
|
};
|
|
/* TOUCH end */
|
|
|
|
/*End of this file, DO NOT ADD ANYTHING HERE*/
|