From patchwork Sat Jan 20 19:11:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karel Balej X-Patchwork-Id: 19208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1770733dyb; Sat, 20 Jan 2024 11:21:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGneFev0n2YqLKytDamOz1T5bNUcC2TGxCbMBW5i6QgdRatiJZxSP0vztof9wmeh4uhMkW2 X-Received: by 2002:a17:906:b113:b0:a2f:68cb:dbe3 with SMTP id u19-20020a170906b11300b00a2f68cbdbe3mr1002518ejy.75.1705778509847; Sat, 20 Jan 2024 11:21:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705778509; cv=pass; d=google.com; s=arc-20160816; b=h+8iqsLjXTAmkpMIWKUy1Ga3WoS4DAzoqigUHr+yHOFaJOwwiLtGJgiIv51QNhezgm S3biRq8Kyt8JkPwg4bqZRJlUSF2CRADi8KHsKohM2eNWQL5hGVSRaSBKK3J1h9XP6XYo 6XjIiHrebof/jXs8hGKqxw0Jo/7z3jo9yMJnyr7pTjiWawyT2FgC0h5UiypIijOD9bYD qygVv8qUJJcaB5RoRntSZ7oPwyZZZ7eG8K0FQRMpbx0k3bCTBPUwbQg9vWaHQODXDBoi uNk01WRyT4MCL2auEPP5klXkjJyr4ngwgji1d6UL+CkBNxghhBjG0Dk8MmkQLKhF0PBN 4lJg== 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=cIxfepUhEmU5JHQYAFutQPdf7zboCDbWQJLahMHyQvw=; fh=qBviB55ulkYowo8GnpCvTPRdp0iITrK7Dolt7tp1g94=; b=xmK4yBkc6ZY1MepEJVvi2aDSYVMYcmvvk+nTubG/1DsCP/wCiMZ6Keq0M6i25Hyw6J x1qDQ/Xh6QI0Z7PkT1/2CHP2fJ7EhcXLrSIw5oewEU6PM7Dt8zuBsmpayMBmsN0mAw3T qd4MlyTPMLht5RoP28v7YMUR6Yadh1mFQ9dL6s5xuWONDAo0CCQdnTwuJvylb7s+9tBm FvjowtuIwyDmy3IOIZQUNBBbjg3ZDz4BBfAoNvb/vEQHLAGuFVYqGaazqriDBH0cDkoI uOq+tlvf2Sv4xk7R8EeDUW6vZTuz3wnO5u5SCM6H0v+A7V0wAsqVpNwwagcBF6JlKyws 72Dg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=UzEgo15Q; 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-31883-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31883-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u17-20020a170906125100b00a28eddd9fb5si8919712eja.981.2024.01.20.11.21.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 11:21:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31883-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=UzEgo15Q; 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-31883-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31883-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 78E211F2118D for ; Sat, 20 Jan 2024 19:21:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA11F14F8A; Sat, 20 Jan 2024 19:20:37 +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="UzEgo15Q" 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 80E23FC12; Sat, 20 Jan 2024 19:20:30 +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=1705778435; cv=none; b=avayUmp2G19O/7hWT1EMvxv4uZCgnC2VqRY4iQeE+X/lWApie0ymnYBJz31lPkjPUGJ4dsbZTkjTfKoLQxOWlocdftu2XXh/VnU6JN+WpacaeQ7/JjGuq/F78ePNSZ4Qdq08XkCR7ifJCZ+3uhDCZNEWHxPs17blhMfqYUuBnVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705778435; c=relaxed/simple; bh=x2C/8jtXkQ2oDbEpgHTiVmwpvbTXbVEZngUwbSWhreY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kwWjZrtr4Z4+q0ueTWDTwfeein13aGFyYL908CPGSzvDv//1eHyd0ODVEzF7dp2curokB0N6Uhr5B4CskX4wjR49l7UK9GDO8DUQ5GsqMqfHosOZvdx2/D5BaYzidtgOyerI4RocVAco3p61g1Oyta3CqXkXkBILtvgbeGu2aBY= 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=UzEgo15Q; 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 6810D283BCE; Sat, 20 Jan 2024 20:20:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1705778421; 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=cIxfepUhEmU5JHQYAFutQPdf7zboCDbWQJLahMHyQvw=; b=UzEgo15QQ/1OSSXl4JRGI+LYwp2oFvgY00HbkJa+U8WJLWGdFHKZVOC8Z+lcyUP2Ekaw9b hwpots6N4+PSWFGgSgPbwAS0B1B/fSCTwj/x6XfL6roF2t/voPOz5fGC5eI24fk8JzTqnd NycUyt8CQcv54RlKjWk30PtvpBJzduw= 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 4425E4577A2; Sat, 20 Jan 2024 20:20:21 +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 v4 0/5] input/touchscreen: imagis: add support for IST3032C Date: Sat, 20 Jan 2024 20:11:11 +0100 Message-ID: <20240120191940.3631-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: 1788638406760777285 X-GMAIL-MSGID: 1788638406760777285 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. It also adds necessary information to the driver so that the IST3032C touchscreen can be used with it. The motivation for this 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 this patch [3] which 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/20231112194124.24916-1-duje.mihanovic@skole.hr/ --- 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(-)