Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: goodix - add GT5663 CTP support

GT5663 is capacitive touch controller with customized smart
wakeup gestures.

Add support for it by adding compatible and supported chip data.

The chip data on GT5663 is similar to GT1151, like
- config data register has 0x8050 address
- config data register max len is 240
- config data checksum has 16-bit

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Jagan Teki and committed by
Dmitry Torokhov
a5f50c50 ae97fb58

+3
+1
Documentation/devicetree/bindings/input/touchscreen/goodix.txt
··· 3 3 Required properties: 4 4 5 5 - compatible : Should be "goodix,gt1151" 6 + or "goodix,gt5663" 6 7 or "goodix,gt5688" 7 8 or "goodix,gt911" 8 9 or "goodix,gt9110"
+2
drivers/input/touchscreen/goodix.c
··· 219 219 { 220 220 switch (id) { 221 221 case 1151: 222 + case 5663: 222 223 case 5688: 223 224 return &gt1x_chip_data; 224 225 ··· 998 997 #ifdef CONFIG_OF 999 998 static const struct of_device_id goodix_of_match[] = { 1000 999 { .compatible = "goodix,gt1151" }, 1000 + { .compatible = "goodix,gt5663" }, 1001 1001 { .compatible = "goodix,gt5688" }, 1002 1002 { .compatible = "goodix,gt911" }, 1003 1003 { .compatible = "goodix,gt9110" },