Goodix 触摸屏驱动模块加载了错误的 abs_x_max 和 abs_y_max

Goodix 触摸屏驱动模块加载了错误的 abs_x_max 和 abs_y_max

我正在为 raspberry-pi cm3 在 yocto 图像上加载 goodix 触摸屏驱动程序。当 pi 启动时。模块加载成功,但我得到的 abs_x_max 和 abs_y_max 值错误。

[    3.062137] Goodix-TS 3-0014: ID 911, version: 1060
[    3.064672] usb 1-1.2: Manufacturer: Qualcomm, Incorporated
[    3.075107] usb 1-1.2: SerialNumber: 542162a3
[    3.083645] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    3.084211] Goodix-TS 3-0014: goodix_read_config: called goodix_i2c_read(0x8047)
[    3.091102] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    3.112015] Goodix-TS 3-0014: goodix_read_config: abs_x_max=800
[    3.117939] Goodix-TS 3-0014: goodix_read_config: abs_y_max=480
[    3.123935] Goodix-TS 3-0014: goodix_read_config: int_trigger_type=0
[    3.130282] Goodix-TS 3-0014: goodix_read_config: max_touch_num=5
[    3.136640] input: Goodix Capacitive TouchScreen as /devices/platform/ffffffff.i2c/i2c-3/3-0014/input/input0
[    3.146813] Goodix-TS 3-0014: goodix_configure_dev: ts->client->irq=166
[    3.153499] Goodix-TS 3-0014: goodix_request_irq: calling devm_request_threaded_irq(166)
[    3.161852] Goodix-TS 3-0014: >>>>Registering polling function.
[    3.167796] Goodix-TS 3-0014: >>>>Finished registering

但是我的屏幕是 600X1024,而不是 800X480。为什么会发生这种情况?有没有办法重置 abs_x_max 和 abs_y_max?我可以通过设备树覆盖文件更改它吗?

答案1

所以我终于发现了。芯片上的固件是错误的。这导致屏幕分辨率为 800X480。一旦我更换屏幕。我现在可以看到 1024 X 600

相关内容