本文主要介绍RK3588 触摸屏驱动移植,以汇顶GT9271为例子
1. Deconfig 配置
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_PROPERTIES=y
CONFIG_TOUCHSCREEN_GT9XX=y
2.DTS 设备树
硬件I2C0总线
&i2c0 {
status = "okay";
pinctrl-0 = <&i2c0m0_xfer>;
gt9271@14 {
status = "okay";
compatible = "goodix,gt9271";
reg = <0x14>;
interrupt-parent = <&gpio1>;
interrupts = <1 2>;
vdd_ana-supply = <&vcc_tp>;
pinctrl-names = "default";
pinctrl-0 = <&touch_gpio>;
irq-gpios = <&gpio1 RK_PC1 IRQ_TYPE_EDGE_RISING>;
irq-flags = <2>;
touchscreen-max-id = &