From patchwork Sun Feb 17 09:14:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10816903 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 45E171399 for ; Sun, 17 Feb 2019 09:15:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3023B287B3 for ; Sun, 17 Feb 2019 09:15:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F9F8291E9; Sun, 17 Feb 2019 09:15:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1046287B3 for ; Sun, 17 Feb 2019 09:15:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727286AbfBQJPE (ORCPT ); Sun, 17 Feb 2019 04:15:04 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39065 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727276AbfBQJPD (ORCPT ); Sun, 17 Feb 2019 04:15:03 -0500 Received: by mail-pg1-f194.google.com with SMTP id r11so6961863pgp.6 for ; Sun, 17 Feb 2019 01:15:02 -0800 (PST) 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:content-transfer-encoding; bh=U3aS7aZspUVXaJLVPXE9mGfHChnxYiwxohb9NgNnEus=; b=a6na9x5Eae2qvd8qxgS0CyWjZSh+CjeLFzUqYm0WK6WiXehrDVPI1IregatkYGdmfl uvgZWD0tBsMxkIfoY5TFTvUm9IRJmcjXVaD7XTJ2H+ZYbtJUiaJFXbYb/uElsBXSLUVR 48fO6PghodQOi0FrA+OUuCUx9Tl96kBzSbGcw= 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:content-transfer-encoding; bh=U3aS7aZspUVXaJLVPXE9mGfHChnxYiwxohb9NgNnEus=; b=TpprTFD8/5937Y0lKRvC/jESqxIiHRUoD4tJuv00WnisrZfjf2hnYj8D40evvjatov rRqZ0Zu9SKxYP09C5gQQM0/35wGWD+isWuPTyLQnSEGVrCpBtKHuncQRPcw8hNN+3knA 6h8cuD4NMFHerGgveHbzAR3GI/czhox6yr24t02kT4iI0LkAYJhruuczI032Mx78/Y97 XX0xNmeLlz8+CCSAF9WJLi/sO+ZG7sLocCrtNICnCnuEaN2FElaKrB5KCdkFbUxqxzX1 0M2QnIga/w40Ygz/pdTl02VtdTV8BXmOTl53OE6D1UivYZIqpOnP6nnqnfNyEzOi5dlL 9HGw== X-Gm-Message-State: AHQUAuZaKmhDpx6cP3VOKiX8JFl6u1XUE2SFEwKAZ9aiSV8/ReBVSjwg QvpcnglFBswb1kWKfXJTXCa96Q== X-Google-Smtp-Source: AHgI3IbqdKjGGkOemK316sGeG0SCm1rNMVUr212TOQpRk1zCKWZzZApJT0UihVTHeXZYJ10bpJ7llQ== X-Received: by 2002:a63:df50:: with SMTP id h16mr13718193pgj.421.1550394902364; Sun, 17 Feb 2019 01:15:02 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id v15sm5565924pfa.75.2019.02.17.01.14.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Feb 2019 01:15:01 -0800 (PST) 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 v5 4/4] Input: goodix - Add GT5663 CTP support Date: Sun, 17 Feb 2019 14:44:36 +0530 Message-Id: <20190217091436.3702-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190217091436.3702-1-jagan@amarulasolutions.com> References: <20190217091436.3702-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 294456a53fe0..80f8b920ef5e 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -227,6 +227,7 @@ static const struct goodix_chip_data *goodix_get_chip_data(u16 id) { switch (id) { case 1151: + case 5663: return >1x_chip_data; case 911: @@ -988,6 +989,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" },