From patchwork Fri Feb 9 16:34:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karel Balej X-Patchwork-Id: 20170 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp984801dyd; Fri, 9 Feb 2024 08:53:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZhEBUTW2fZRCDgKZkAGUE01ObvX992RSnVKlUOOVnTjGeNUGM0B4ZIyzQFEgSAVKKbvQL+9qgCoy0B0DQQndLRPwwew== X-Google-Smtp-Source: AGHT+IHC3iVpO/7D1xjEYN0rhJgW0i9RP36PhKNUyz73PEF67DzBsTqzJaole1ZNFhNnYzi3PcKw X-Received: by 2002:a17:906:130f:b0:a38:578b:d73 with SMTP id w15-20020a170906130f00b00a38578b0d73mr1635769ejb.0.1707497636969; Fri, 09 Feb 2024 08:53:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707497636; cv=pass; d=google.com; s=arc-20160816; b=Uc+71k85E0RqMWyTIXnMzbFtPDrrZVT+p2CcuQCIThvSByUKtMI3U04+aAqE+kfSvt nCOhMY9RbgMuVSsdO2QgZ8Nnb+YQs0dB0e2uoe5qQIt6htQpvjFbMKoPOYm2YMUDqAnC dFtnCag83D2dGsw8jAocs+w+SpbUQqhha+X4Otx3gZs8O61L9LF6Bxc+8QJtBvPh0ury 0Bp5hN8K7DGAKKlZiPwux6Jp4eGcd5usmaBEbUFXbK50kBOd/lCaz14IZjLReYpiBvzR nmlCmZYo3TBuMINfkA9Kvxt7V24C5vbmWSFf2EzVbpaGw4obmtTCw2OkbIq8pNj4AV6O vN3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=KSH3X9YfIEtRqhR67ZOYM6th+mgQ+yGV0SkquTdVcp8=; fh=wkvdmUvAPJYMppk7GyZs2HMVHMila6x6JSVItMxtJCA=; b=IhaW51oyprpv8ehbgbUKg1Z2djylKNRgKgtW8zXjqLH4uQSxlExj/ykgnWZdDQ5lJD /2xp80pTevbL7ZXBxIslBIl8ZaU08zbSdfmc66QkpMZf1aJcUlRSd61Jvvql34C/xcTp K3qDZmJBdpkyHU2ru+m1fRUe9JKuMY9b309l3jftrtYHzGeGZv2r6amH0Xb/r8EAhNYE MtVc8p0Rmo8W26+s0W5eCdzdPJE8aYBd7dssk2iBZavZHFJQ7Q6yqGqRv6B13QTZ/Nc/ 4JcMtX9/OE3/KJ72Q4vf/mrqqP/kGZik0j+keOwTlasSHCaN5/mtND4/LvW+gRYBOrAm bp/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=uNq7AJoH; arc=pass (i=1 spf=pass spfdomain=gimli.ms.mff.cuni.cz dkim=pass dkdomain=gimli.ms.mff.cuni.cz dmarc=pass fromdomain=gimli.ms.mff.cuni.cz); spf=pass (google.com: domain of linux-kernel+bounces-59670-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59670-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz X-Forwarded-Encrypted: i=2; AJvYcCUZ2I/CDaPyTs+u/szHB3PFHgE7tIIF2IKCdqCTls8uZe+wEJ8qd1mh7lIuISgUtFAinM9Omo+SvtPDpmv7+/RhRgpRRg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q22-20020a17090622d600b00a3891d4fbd4si1019275eja.123.2024.02.09.08.53.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 08:53:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59670-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=uNq7AJoH; arc=pass (i=1 spf=pass spfdomain=gimli.ms.mff.cuni.cz dkim=pass dkdomain=gimli.ms.mff.cuni.cz dmarc=pass fromdomain=gimli.ms.mff.cuni.cz); spf=pass (google.com: domain of linux-kernel+bounces-59670-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59670-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 645D81F2148C for ; Fri, 9 Feb 2024 16:53:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1108B12B175; Fri, 9 Feb 2024 16:49:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gimli.ms.mff.cuni.cz header.i=@gimli.ms.mff.cuni.cz header.b="uNq7AJoH" Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E318A1292D6; Fri, 9 Feb 2024 16:49:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.113.20.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707497345; cv=none; b=CfyqC8lVE7CDlJQSl9v4HLIRdbHtuyuzcFnZOXyN9Z9ha/ZcwdXWs1UbFC0ZEsNFoSvFcLcfWvVD471vg4Y88NsSTIaWXhxshUS0i6qZrzE64huv8TzaKkHvcPmYb/7LnEk29k97ogibCujNKCoR/VdKVJScabOYgF9Cxll5TWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707497345; c=relaxed/simple; bh=IFb2kdBob8FZ7DIwAjwJPuUimAD4hMIltnpFqnRAycU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=epgppqctFwd3KGOE9iJ0HP3izHFeoBeTgqdEVI5tSBnNrZFAz+vyFfhQb8kQsVkB0KX2ac36UHJLzPcrOwblF6VKhC6O/lD+QvpxZcvBOugIvRlxR+yU5AcHjIrQo/6zq6s95xH1WNo0oEWFViUf08mGYKMqe+IKxNWsxIKqI5I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gimli.ms.mff.cuni.cz; spf=pass smtp.mailfrom=gimli.ms.mff.cuni.cz; dkim=pass (1024-bit key) header.d=gimli.ms.mff.cuni.cz header.i=@gimli.ms.mff.cuni.cz header.b=uNq7AJoH; arc=none smtp.client-ip=195.113.20.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gimli.ms.mff.cuni.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gimli.ms.mff.cuni.cz Received: from gimli.ms.mff.cuni.cz (gimli.ms.mff.cuni.cz [195.113.20.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by nikam.ms.mff.cuni.cz (Postfix) with ESMTPS id 22CCF283DEA; Fri, 9 Feb 2024 17:42:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1707496958; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KSH3X9YfIEtRqhR67ZOYM6th+mgQ+yGV0SkquTdVcp8=; b=uNq7AJoHg5AVhTN3bY8KS+MfNgQUKtwCqBpMh8E0nTW5+l457/SrgsV6Whz72z5LSKR8+o LuWPPDw0xdw4OxBk9GtJf3pgTY+ZwncSsUGNb50Q4ky3KKkXFEpDcM5d7f16yGic+yEGzz JWCsr+Moq+JtvsQCC3ktMYSSH4gfrdE= Received: from localhost (internet5.mraknet.com [185.200.108.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: karelb) by gimli.ms.mff.cuni.cz (Postfix) with ESMTPSA id F1DD64590CD; Fri, 9 Feb 2024 17:42:37 +0100 (CET) From: Karel Balej To: Markuss Broks , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Duje_Mihanovi=C4=87?= , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: [PATCH v5 0/5] input/touchscreen: imagis: add support for IST3032C Date: Fri, 9 Feb 2024 17:34:17 +0100 Message-ID: <20240209164217.9008-1-karelb@gimli.ms.mff.cuni.cz> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790441042396002553 X-GMAIL-MSGID: 1790441042396002553 From: Karel Balej Hello, this patch series generalizes the Imagis touchscreen driver to support other Imagis chips, namely IST3038B and IST3032C, which use a slightly different protocol. The motivation for IST3032C is the samsung,coreprimevelte smartphone with which this series has been tested. However, the support for this device is not yet in-tree, the effort is happening at [1]. Preliminary version of the regulator driver needed to use the touchscreen on this phone can be found here [2]. Note that this is a prerequisite for (at least a part of) this series [3] which among other things implements support for touch keys for Imagis touchscreens that have it. [1] https://lore.kernel.org/all/20240110-pxa1908-lkml-v8-0-fea768a59474@skole.hr/ [2] https://lore.kernel.org/all/20231228100208.2932-1-karelb@gimli.ms.mff.cuni.cz/ [3] https://lore.kernel.org/all/20240120-b4-imagis-keys-v2-0-d7fc16f2e106@skole.hr/ --- v5: - Rebase to v6.8-rc3. - v4: https://lore.kernel.org/all/20240120191940.3631-1-karelb@gimli.ms.mff.cuni.cz/ v4: - Rebase to v6.7. - v3: https://lore.kernel.org/all/20231202125948.10345-1-karelb@gimli.ms.mff.cuni.cz/ - Address feedback and add trailers. v3: - Rebase to v6.7-rc3. - v2: https://lore.kernel.org/all/20231003133440.4696-1-karelb@gimli.ms.mff.cuni.cz/ v2: - Do not rename the driver. - Do not hardcode voltage required by the IST3032C. - Use Markuss' series which generalizes the driver. Link to the original series: https://lore.kernel.org/all/20220504152406.8730-1-markuss.broks@gmail.com/ - Separate bindings into separate patch. - v1: https://lore.kernel.org/all/20230926173531.18715-1-balejk@matfyz.cz/ Karel Balej (2): dt-bindings: input/touchscreen: imagis: add compatible for IST3032C input/touchscreen: imagis: add support for IST3032C Markuss Broks (3): input/touchscreen: imagis: Correct the maximum touch area value dt-bindings: input/touchscreen: Add compatible for IST3038B input/touchscreen: imagis: Add support for Imagis IST3038B .../input/touchscreen/imagis,ist3038c.yaml | 2 + drivers/input/touchscreen/imagis.c | 70 +++++++++++++++---- 2 files changed, 60 insertions(+), 12 deletions(-)