lkml.org 
[lkml]   [2019]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v6 4/4] Input: goodix - Add GT5663 CTP support
    Date
    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>
    ---
    drivers/input/touchscreen/goodix.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
    index 5f9e755c5bc7..405246d61701 100644
    --- a/drivers/input/touchscreen/goodix.c
    +++ b/drivers/input/touchscreen/goodix.c
    @@ -219,6 +219,7 @@ static const struct goodix_chip_data *goodix_get_chip_data(u16 id)
    {
    switch (id) {
    case 1151:
    + case 5663:
    return &gt1x_chip_data;

    case 911:
    @@ -1000,6 +1001,7 @@ MODULE_DEVICE_TABLE(acpi, goodix_acpi_match);
    #ifdef CONFIG_OF
    static const struct of_device_id goodix_of_match[] = {
    { .compatible = "goodix,gt1151" },
    + { .compatible = "goodix,gt5663" },
    { .compatible = "goodix,gt911" },
    { .compatible = "goodix,gt9110" },
    { .compatible = "goodix,gt912" },
    --
    2.18.0.321.gffc6fa0e3
    \
     
     \ /
      Last update: 2019-02-19 11:17    [W:2.122 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site