SOC:RK3568
system:Android12
kernel:kernel-4.19
RK驱动本身就适配好TP的代码
chenjx@DESKTOP-HU3S291:~/RKAndroid12/kernel-4.19$ ls drivers/input/touchscreen/gt9xx
gt9xx/ gt9xx_qcom/ gt9xx_rk/确认Makefile用的是哪一份
obj-$(CONFIG_TOUCHSCREEN_GT9XX) += gt9xx/
首先设备树配置
&i2c1 {status = "okay";
gt9xx:gt9xx@5d {
compatible = "goodix,gt9xx";
reg = <0x5d>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PB5 IRQ_TYPE_LEVEL_LOW>;reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;//rndis-gpios = <&tlmm 66 0x1>;irq-gpios = <&gpio0 RK_PB5 IRQ_TYPE_EDGE_FALLING>;irq-flags = <2>;//vdd_ana-supply = <&pm8953_l10>;
// ? vcc-i2c-supply = <&pm8953_l6>;touchscreen-max-id = <11>;touchscreen-size-x = <