From patchwork Thu Mar 21 08:21:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 180 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E52033F9B9 for ; Thu, 21 Mar 2019 09:21:33 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id z14sf297659pgv.0 for ; Thu, 21 Mar 2019 01:21:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1553156492; cv=pass; d=google.com; s=arc-20160816; b=rpdQGynJpmkViIvvUIn+4HMjJm2LmxF01gu1dG8wjFmxtLoik1X9aOwgcTjArOkts5 sJObP9F4HCCAR+xJZZ67yLzWLPv0uehIZWP8WLsDzXxC4z87OrnuoOqbB40AT3AgRFmH vBOnc+HuEdnvQTOgCHFc+OIx1je9yLS5jD+3WdMjGP8sRWV8pdbjNHgVSnzM0PTyw6ka Ul0d8MZPBk0L6lKKgw7ObG5b6gofnFllp+g5JpJdBACY4rJtIZ0qwKb6s4IiWGLx1Kve cLUIzkkhXg6IiK4TXSPqZb02j2cotMFAo8nXnc9xNgKqoZ9b/yrzC/SnE0jqwkr0j/o3 WT/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Zq80foLUFlOCyN9Oq+ol2aQpIAQrNQBu3gjaT1JkrOg=; b=E5p7zYCGQNvdz1KP1Veo/SMhYBqrskS3DB6vMHPlDyQ+abC6dfSOmFx50Q2U6qEWAa zRNsuxcyZzef0J/Gn4NGOWhk06NPNhsuvIsXfCvydIeJikE5dlaZZHH+VFn1OdL2CfRP Y71h1VnPUv63CeNbzui43L2hCwinybzlsZE5NsA54IRIvQDnAXMeMqvBJpG6g0AahZCt ta1veWQ6hmIKKG2gfGG+W6Hksu3camuJjkR/4N94KRvcwomjSKFMna6rdBz9KIYvQx4i Uul+SHCxmRiijtNo12S/a0GFdxBJHQl9MZJxO9/OUwBbYyrd64M+cXs5rgCqChfuhQ3Y LHLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WzUQJvKP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Zq80foLUFlOCyN9Oq+ol2aQpIAQrNQBu3gjaT1JkrOg=; b=hEzBkTDzhMHIUPNVxjXDarOep/Jyf8EtnwuoCKBXf2nsms/GJyZTvQ2PqVzIxSIGvJ lh3ppoe7QF0FDNYqb9kjKOAvvY5ZSeuDILKCzY1Sviq9EdMSXR+M8f1dx3mLZiCyws+f NC5g4Hv3XAyENkGiUZE727Wohv0wFjg9YRNnc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=Zq80foLUFlOCyN9Oq+ol2aQpIAQrNQBu3gjaT1JkrOg=; b=mhMitsKbODsYZ+QfRSVexr6JiiIDCL4Rj/eND+B4Ks01GrLXt+moyN+r7T/wMEgkTO XXd+U2ZzvXBGoaTm1g7T/ixSYmIqn7C+x9M6n72kmVRTsM66Aa3TNRVlA/1ZcTPfzJ0B 7Q7FhNdqhk6O0BLfgSCLd9jzbqVqGKID6jNRZTv3lgNmuAZgQBJ0pECrALJNz6l6KQC2 Eav01EV+IHS35p+sA+E4RemIHfNlRNrVNRfFBmz2H5MU7ma+T6c3m8UdL7MASAmQZ+An hkD8PD/Jb6LYuCvaTqXTtcFi3AfWkReLlrIJoC8Z/rEgiJDKzSyPkA7cuWlO8HaTfUy+ PHJQ== X-Gm-Message-State: APjAAAX5T8phgQXO2lzAInuZAkXa4tj+ihoCYpusG1a50O/35PZX3oo5 gaC85majK7Qmt4zYHsDHykEbSsxF X-Google-Smtp-Source: APXvYqxF6Qez/yX9KNlsfe3kzcmdb7EJiQzhId3PtU4U5lbEBCKbkIDW6jPzBmm5N/Qbign950YxZw== X-Received: by 2002:aa7:8149:: with SMTP id d9mr101289pfn.53.1553156492739; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:2ad7:: with SMTP id q206ls1890551pgq.12.gmail; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) X-Received: by 2002:a62:6c6:: with SMTP id 189mr2128010pfg.36.1553156492358; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553156492; cv=none; d=google.com; s=arc-20160816; b=YYkuf6DHmZXy/I3/otmt158oXDPnHsIDLJwt31xedw6nZAQxZ/jUs3+7X1jsxC5GLe DjsIGfvXiOQaTWgBRZ6B4C8W/P63ndfrEBCnvCFRyXi5cIic4AXymR+XbOYUrtsKqw9x xJTlqMeHSErpo9Y6Ac8GDUhgvSSmqN0ZsDixvYM7NP2AHMfw9NP2Be+xYZfv1TkI0Fir /U9dZZ2Rk5xf9lpg6NJP/hxlXLPcNETiXDiXYBWoz6hlwASoQSnUa0LVvwVj2/r3BqhM 6lxslsV8in3CWW5fgNjdhF27KernsNUR3rzMPTGp4Pf9E+d+mCFP910OylrLf48l8mOZ ++LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=JHR4URZIW7IuMIK7c59NYIYWSg7ZlWSVaAjtcwyfIJ0=; b=VEbM1gmbtSsf0/0ew9nA3h+JWNGdF3+axGRjZMe2pDHoq1Xqym07wGbLQCSySnjEpt HrheZaosmzF9UPV7c7TL0FSqZNwpwkmXH7LJmsnSnr9t6CYFE4oc0WG2qHIbKgvme/ur Cz5SYWVhyUuzvDWKEd3sEUf6s30yqweiJCUgLlKQ+EPu7pWYzvmjQ7eglaj9189YALoO EFaZd9iATiYc4/cBFotYLgWSUmkxFan/S7tQ9gKIx7aI21kC6QZdHKvXSgtSnEzjLd92 sXfCV1mHZGxTVDEKm10jyMv2OOr0YTU2imHhGLaiebtVG2wSCLylI3zwx8h/rI8bfBP7 7Vsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WzUQJvKP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f18sor4847793pgv.68.2019.03.21.01.21.32 for (Google Transport Security); Thu, 21 Mar 2019 01:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:c511:: with SMTP id f17mr2207375pgd.202.1553156492116; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id b138sm6288681pfb.48.2019.03.21.01.21.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 01:21:31 -0700 (PDT) From: Jagan Teki To: Dmitry Torokhov , Bastien Nocera , Rob Herring Cc: Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mark Rutland , linux-amarula@amarulasolutions.com, Michael Trimarchi , Jagan Teki Subject: [PATCH v7 4/4] Input: goodix - Add GT5663 CTP support Date: Thu, 21 Mar 2019 13:51:04 +0530 Message-Id: <20190321082104.2874-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321082104.2874-1-jagan@amarulasolutions.com> References: <20190321082104.2874-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WzUQJvKP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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 de5b80a08f41..c558b091749c 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: case 5688: return >1x_chip_data; @@ -1003,6 +1004,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,gt5688" }, { .compatible = "goodix,gt911" }, { .compatible = "goodix,gt9110" },