config TOUCHSCREEN_GT9XX tristate "Goodix gt9xx support for rockchip platform" depends on I2C && ARCH_ROCKCHIP help Say Y here if you have a touchscreen interface using the gt9xx on Rockchip platform, and your board-specific initialization code includes that in its table of IIC devices. If unsure, say N.
No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: rk805 pwrkey /dev/input/event1: goodix-ts /dev/input/event2: headset-keys /dev/input/event3: rockchip-es8388 Headset /dev/input/event4: adc-keys /dev/input/event5: adc-vin2-keys /dev/input/event6: adc-vin6-keys
找到对应触摸屏,根据上报的坐标值,确定x、y轴的原点和最大点
1 2 3 4 5
Event: time 1679941692.863173, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 70 Event: time 1679941692.863173, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 1130 Event: time 1679941692.863173, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 111 Event: time 1679941692.863173, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 111
2、修改驱动或者设备树,使驱动上报的值符合,符合实际情况的原点 gt9xx驱动对应位置
1 2 3 4 5 6
# x、y轴翻转 gtp_change_x2y = FALSE; # x 轴翻转 gtp_x_reverse = FALSE; # y 轴翻转 gtp_y_reverse = FALSE;