From patchwork Sat Dec 15 15:18:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 100 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-yb1-f198.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id CB1C62E545D for ; Sat, 15 Dec 2018 16:18:46 +0100 (CET) Received: by mail-yb1-f198.google.com with SMTP id s10-v6sf4775331ybj.5 for ; Sat, 15 Dec 2018 07:18:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544887125; cv=pass; d=google.com; s=arc-20160816; b=jeBq+1Mo0m/J7fLbI9EX35Rq0RcbDX13zpW+3YxF3kjT8byDX0JDdTIU/Zsvrr1AEL jSxfu765iBLeZQ4kO9R+tXqp0pWeHDkdhiG/zBKoETgn750BlCeH1heVYKQbxhpnNWwg JESO3h/HGpei9S10uNqRvZt5KaVHOEjPLCWz/jLtH4nlfjtvPdLhMiA9v0oxRhqzjmH0 ifqJTPFKZyFHbyZhMyxk0t0VK+2bR+FeyLC/mqwf/cQ4/P2fK7z1FAA68rq7qJ28NSpG Rqkje2jchf5TM2x09hCgEp1jopr3kr050q8kdcL60MrAGZYKiP1LPjbSnsKURDo+BM3Q i8Mw== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=YU0sq7hyBUJBNetrs1hupNLA39K75zJV5KMoLw5M7DHLRO3msv7sr9KzJmlIBOrtZh tx/fLVoc9R9dedBR4GOnEZw9AAvhDWLOYeIxY6ZxIApk/Rm8gH+Jlys5A5bK9pKOqnhy VYtKr2zdcmZaAfDejWGWW+NCuAd6onkvnMejzx0dy2cqMVYJsQB3rPP8wYquAWlw7gDP Te8SjLLTGJFxZOMiNFA1b6IQuL0W141HU+GZvcxHQOmKCEtiv1AyiMxYmveFIJWTfO5v TzGYBpzhWgCmz+HWTGxA16S5OkEAm6ycD2bNZ21a2ptLaoDHqtlurg10XqnVhy+q+Xm6 KKDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fVC6bKaw; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=AE1dbyXPnaXEBYb2pKPYeQW2bBc1uFoqZgL7vG4fIhp0lO0Pve+o+MnzQvUrfj2FBg 3V2H9gqA7L5hVR2r4sSuSzp3JAKTphB8aSItynoQothbHTZDjadBuqI6ET+pD/vFUSjq sTAGprPLY0x1nco9X/zKzv7kah3781vndVYGM= 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: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=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=jQXKThSbrvg3IullhDKyVWMajUjL/sapm8hNPgFGQjVT1xMjZYrDI9k1CmucnHPxIi BdlfwKay5ww1vjt6oLc4zozzKnlJJXEx+nfSPfK5XUyAX37XvVVVyuVwUw8DQvMNXgVz 131a58HToMiHwUN/oL689sWxq3YwJ/sWe1wh1OB16qIozI+n3MkqeCnU2kDnBpx73ogS FVjjlYuiYLcINmlGhJ+0aEiqLtYVmC6yNZcWt511CNY+Qn4HOy+km793SYz+FXyxKqij zFJk7FjK7erfTEQNfyqwa+kMgktwM8GgR7tLz9K8VIn1ZSvPSpvWG7G5S3sWuZOt8a+y aCCA== X-Gm-Message-State: AA+aEWZSW8ugAhOOjnFlrXpK4n7e5GwW9JEKlU0QmQwlJIOn8v+QHy2F +gnJpO9wcA3Oq5yyCDzDE7kEYEu2 X-Google-Smtp-Source: AFSGD/Urnziart8NzrBXQiW7IMHuHS71EvtPlApCOGxIy/HJXhlQjcUWjd9bDTPe8ntG5NewUNuTKA== X-Received: by 2002:a25:2105:: with SMTP id h5mr3038447ybh.102.1544887125804; Sat, 15 Dec 2018 07:18:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a25:b812:: with SMTP id v18-v6ls1778411ybj.14.gmail; Sat, 15 Dec 2018 07:18:45 -0800 (PST) X-Received: by 2002:a25:4981:: with SMTP id w123mr7106008yba.347.1544887125556; Sat, 15 Dec 2018 07:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544887125; cv=none; d=google.com; s=arc-20160816; b=FgJvcjZ30ogX68JiU8WwmeyiZdq1eV40mB8KNDFBD2fxcyQgGZGKDtl18trEbDGGlK 3PoVCqH5n9xKY+z5N2WVPG8U9U8TFgRf/GCy9olJgRLxt1I9iOFYkOtm2B4XdBdeON1H 7DhgsFm9HCTjWW/3e5V18IGY86+lJjIC0Yz03MJT6x0F4WRXjG/oF79imJtjzn85Pldz dAJZcNf2fvvc6sOM14i1OuYHgewJaAOMJsQ00yEBNHjsW+pS2AwjJ0YM76O9sYEfPIbA msu3N6ttvONYDSc5+RV7fQaZTHDnheVOR3hIRenPwTGGdOgnU6tCVL1VoAOI0QRyFLHh uFtQ== 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=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=ZSwiiZzwVqS7AyMXzFkC11QMqgJNHzCbiM91UWKURPyNsj4hq+8qf2p1aAzwyEuAAy EDyUopcV5qs7SrI9xd5C8wqx0isYh4z3HZvmRvGOHE8VJ76eztgvOkJuaGMi8Q7Cqybq 0ERLvD4UMzSOTRgsTwapIvtlPnZy9eGXTzJMByh3n+sv/cP+szkVNG9IWlpa48yRuQgf +bHWcf05669e9a8jl/XBjIhegP4MFQlwTDN4/dhc9EBddJWniyYQ5MdaIerpQLFcYg40 g31cYWDaQ1vimH4UJJF8lvdKXpH3HByRcyd8T82yN0rm/MDd0Y7PK8Axt8vfNi71MZdP kGBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fVC6bKaw; 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 f82sor1092646ywf.92.2018.12.15.07.18.45 for (Google Transport Security); Sat, 15 Dec 2018 07:18:45 -0800 (PST) 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:a81:ad1a:: with SMTP id l26mr6951367ywh.324.1544887125255; Sat, 15 Dec 2018 07:18:45 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host211-95-static.0-79-b.business.telecomitalia.it. [79.0.95.211]) by smtp.gmail.com with ESMTPSA id x203sm2855664ywd.41.2018.12.15.07.18.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Dec 2018 07:18:44 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov Cc: Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 4/4] Input: goodix - Add GT5663 CTP support Date: Sat, 15 Dec 2018 20:48:02 +0530 Message-Id: <20181215151802.18592-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181215151802.18592-1-jagan@amarulasolutions.com> References: <20181215151802.18592-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=fVC6bKaw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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 7371f6946098..735ab8e246b6 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -218,6 +218,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: @@ -965,6 +966,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" },