Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp38893lqz; Fri, 29 Mar 2024 07:58:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5ibONV3RtgXB5ss1V0LYKto0sjVLJ8ObNlrusmc6Y8cDmtwztWy979QrgssrMGvp254COpUWg418H9U40MTIuUJA1CYL/riGzudhOig== X-Google-Smtp-Source: AGHT+IGbcpXqlG2YPWKsrQijAL5WoS+bwnmwTIQRMg9785yruEW3q8IS4XkLHbUHwLx7hQjZHwOk X-Received: by 2002:a05:6a00:114f:b0:6ea:8898:39cc with SMTP id b15-20020a056a00114f00b006ea889839ccmr3721030pfm.0.1711724287071; Fri, 29 Mar 2024 07:58:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711724287; cv=pass; d=google.com; s=arc-20160816; b=b9zdZewk8fTlFhZD2vpIGk3HZTicTVFv1diEYJ5a/WTSxztD7mx8Zzs+r0KvHtwoqE vxh+cuy4Qnh/waM6QivnZ5Rx2GhJZd+lhuxv2wrhe0UrQNoLNiCKwZLJzE5cRDvxAye9 MfHw47Aq/41FCb2V3iMaPMW14VsQW9WNPjijJsEeeQyxs/0ia4RgY8iuMfQHMyZGkffU JFVxjm6HtXgz1tWONJlgdHtA1GW/ftrMHfJptoym3Zngc11mjvgVXPteT60ROkz8dKuL tHl4cMZh3/+gZ6eP07sumAGv6XdWJqcMyhsY8897x6oTJXWcrtsndwKiYIKGFhVvk/gy ctCA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xYJYhzz+DFJw1cTXtrHnJ0VNt0o3ucv5mPPOc4nKqio=; fh=iuERCYmuwnqwCLrTGQZPsM/3wsCqw8Z5XgRIbVRuyPo=; b=TYemjiEhGktcZkyoCcf1qopkjzrD7yI6UtClREjNkWZpxha8KR0gKRydGD7jv9BS2U QxSJ8gK+Er9O67pZmmpXGq16+8N5pTJQ6SZ9qyf4AenDtPFs2UcbfDVKf3IKeLui/mIo US2wUe0mvz6q1Hrz2vMw5eodsie47DyeeQ0spUp7xH4xUkl0kCFKPT+6N00psbtemRJA Fey4LyRuendmWdzqyMDxRhaFWtP0QkFu1yeZvgr+hP//0eukCBz/QOzW5vA52LNA892B GFapTxqr/zMRk7FFIrraRLz9M8ISaBW9r1f0oLCsSnsem0Yvqga3IPPOQfhsHeL4RoQ6 7WvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jnMcIdEP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c15-20020a056a000acf00b006eada6e411esi3750095pfl.386.2024.03.29.07.58.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jnMcIdEP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 37838B253BB for ; Fri, 29 Mar 2024 14:13:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B52351CB33A; Fri, 29 Mar 2024 12:45:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jnMcIdEP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DAE9E1CB321; Fri, 29 Mar 2024 12:45:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716317; cv=none; b=pg6gqz5CRByV6/stt87yUkJGGUuz8mGdTfirDoR0uOPByRD6+S9IsrVdmKmZinXBN4GXtLCkewtdoSRIu5ZviUaee06uax4ZdmBNwZYO0wFkT7999iBx4oaq5MMkJOfPynfwQyopkkO1/8dMEJxYsLHgHfkL+x/Ugz/08B047y0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716317; c=relaxed/simple; bh=yuX9XVGrAT1kcHDp/0Thq9ukxuSdmRxes7/j7tsWnhI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oyntCVVZtTQxxG6cYiH9Shvd1yb0QY9A5Jqo1/l/BAkz0Bh30POzOYMiBqgM0gSeEywL0Chqdxg4kymUhKLHy6zw8+lUCRue9XgCOM8z0kXCnDAIvxOpLORbIw9US9YK5ctCTJw7ByRAG8nyKXF5JzB2E0QmcEbm6QvrJdsRcQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jnMcIdEP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8B8CC43390; Fri, 29 Mar 2024 12:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716316; bh=yuX9XVGrAT1kcHDp/0Thq9ukxuSdmRxes7/j7tsWnhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jnMcIdEPcWjfrRuQDE51VG/FDpABEbVGldHRi8rSVHM9tT1fk7ZN8Vj3UK7f92DAZ jlyr2kAQPEo+tvBDHc6p6VWs4e/c4njUx0c6W0F1L1EQWRGGqI4ULf28P92EHG2USv m2HvXKgK8BHOj9js8Zk4MtKSdmBxl0bjLUOosUT1RcbcP4Dt4sfq4wHwFzUsNQgsyM VbKh7A7K00dlR6AKR6yvjgPV9lAv5fzc7q7225eitepMcBTsLWFNTL76yTIC/x7R3y Yjwsw0FiSKI/K6XrX1xryZIl+nNDnASPkJcsT8PX1R+fqoReN8urNcUSEJ+Xb2JTpu KwV2L6f8DLSDw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Karel Balej , Markuss Broks , Dmitry Torokhov , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 6.6 58/75] input/touchscreen: imagis: add support for IST3032C Date: Fri, 29 Mar 2024 08:42:39 -0400 Message-ID: <20240329124330.3089520-58-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329124330.3089520-1-sashal@kernel.org> References: <20240329124330.3089520-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.23 Content-Transfer-Encoding: 8bit From: Karel Balej [ Upstream commit 90cb57a6c5717b83a110c0da720a03ee32ed255e ] IST3032C is a touchscreen chip used for instance in the samsung,coreprimevelte smartphone, with which this was tested. Add the chip specific information to the driver. Reviewed-by: Markuss Broks Signed-off-by: Karel Balej Link: https://lore.kernel.org/r/20240301164659.13240-6-karelb@gimli.ms.mff.cuni.cz Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/touchscreen/imagis.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/input/touchscreen/imagis.c b/drivers/input/touchscreen/imagis.c index 9af8a6332ae67..e1fafa561ee38 100644 --- a/drivers/input/touchscreen/imagis.c +++ b/drivers/input/touchscreen/imagis.c @@ -11,6 +11,8 @@ #include #include +#define IST3032C_WHOAMI 0x32c + #define IST3038B_REG_STATUS 0x20 #define IST3038B_REG_CHIPID 0x30 #define IST3038B_WHOAMI 0x30380b @@ -363,6 +365,13 @@ static int imagis_resume(struct device *dev) static DEFINE_SIMPLE_DEV_PM_OPS(imagis_pm_ops, imagis_suspend, imagis_resume); +static const struct imagis_properties imagis_3032c_data = { + .interrupt_msg_cmd = IST3038C_REG_INTR_MESSAGE, + .touch_coord_cmd = IST3038C_REG_TOUCH_COORD, + .whoami_cmd = IST3038C_REG_CHIPID, + .whoami_val = IST3032C_WHOAMI, +}; + static const struct imagis_properties imagis_3038b_data = { .interrupt_msg_cmd = IST3038B_REG_STATUS, .touch_coord_cmd = IST3038B_REG_STATUS, @@ -380,6 +389,7 @@ static const struct imagis_properties imagis_3038c_data = { #ifdef CONFIG_OF static const struct of_device_id imagis_of_match[] = { + { .compatible = "imagis,ist3032c", .data = &imagis_3032c_data }, { .compatible = "imagis,ist3038b", .data = &imagis_3038b_data }, { .compatible = "imagis,ist3038c", .data = &imagis_3038c_data }, { }, -- 2.43.0