summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYannick Fertre <yannick.fertre@st.com>2020-03-24 12:32:27 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2020-03-24 15:09:20 -0700
commitb9a1c116846e9ab9d4872d61604207cd5aef09b4 (patch)
tree63212549366bccfc1c4813187efe59490a178f1f /drivers
parentec7f23e1d8adcd18dc3fc18c3b06daa681fe1e7e (diff)
downloadlinux-b9a1c116846e9ab9d4872d61604207cd5aef09b4.tar.bz2
Input: goodix - support gt9147 touchpanel
Add support for it by adding compatible and supported chip data (default settings used). The chip data on GT9147 is similar to GT912, like - config data register has 0x8047 address - config data register max len is 240 - config data checksum has 8-bit Signed-off-by: Yannick Fertre <yannick.fertre@st.com> Reviewed-by: Bastien Nocera <hadess@hadess.net> Link: https://lore.kernel.org/r/1583144308-3781-3-git-send-email-yannick.fertre@st.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/touchscreen/goodix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index 973fb636cafc..47f812b804c8 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -160,6 +160,7 @@ static const struct goodix_chip_id goodix_chip_ids[] = {
{ .id = "928", .data = &gt911_chip_data },
{ .id = "912", .data = &gt967_chip_data },
+ { .id = "9147", .data = &gt967_chip_data },
{ .id = "967", .data = &gt967_chip_data },
{ }
};
@@ -1398,6 +1399,7 @@ static const struct of_device_id goodix_of_match[] = {
{ .compatible = "goodix,gt911" },
{ .compatible = "goodix,gt9110" },
{ .compatible = "goodix,gt912" },
+ { .compatible = "goodix,gt9147" },
{ .compatible = "goodix,gt917s" },
{ .compatible = "goodix,gt927" },
{ .compatible = "goodix,gt9271" },