其中:compatible = “mediatek,cap_touch” 必须对应
gt9xx_driver.c中的:
static const struct of_device_id gt9xx_dt_match[] = { {.compatible = "mediatek,cap_touch"}, {},};

一般修改以下几个:
reg = <0x5D> 指的是TP I2C设备地址(7位) 我们用的是0x5D
interrupts = <46 IRQ_TYPE_EDGE_FALLING> 指的是中断号46(GPIOtable里能看到),下降沿触发
int-gpio = <&pio 35 0>; 中断脚 GPIO35(根据硬件接法修改)
rst-gpio = <&pio 45 0>; 复位脚GPIO45(根据硬件接法修改)
&touch {
vtouch-supply = <&mt6323_vgp2_reg>;
tpd-resolution = <768 1024>;
use-tpd-button = <0>;
tpd-key-num = <4>;
tpd-key-local= <139 172 158 0>;
tpd-key-dim-local = <60 850 50 30 180 850 50 30 300 850 50 30 420 850 50 30>;
tpd-max-touch-num = <5>;
tpd-filter-enable = <1>;
tpd-filter-pixel-density = <124>;
tpd-filter-custom-prameters = <0 0 0 0 0 0 0 0 0 0 0 0>;
tpd-filter-custom-speed = <0 0 0>;
pinctrl-names = "default", "state_eint_as_int", "state_eint_output0", "state_eint_output1",
"state_rst_output0", "state_rst_output1";
pinctrl-0 = <&CTP_pins_default>;
pinctrl-1 = <&CTP_pins_eint_as_int>;
pinctrl-2 = <&CTP_pins_eint_output0>;
pinctrl-3 = <&CTP_pins_eint_output1>;
pinctrl-4 = <&CTP_pins_rst_output0>;
pinctrl-5 = <&CTP_pins_rst_output1>;
status = "okay";
};
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/shouji/article-51262-3.html
霉菌给了中国加大岛礁建设的绝佳良机
在这里你说关你鸟事
查出来告他诈骗