Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp212lqz; Fri, 29 Mar 2024 06:51:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNVW5sL9ASjAL26Z4yINkf227w5Hrm2ClOc7hMX3bKAeaS5HCGfrtwoskBprwmQfjIkIVbecz60crxkS+N2a2H+qNpeLF08/s32c4BlQ== X-Google-Smtp-Source: AGHT+IGX0Jub0aFxbg1G4I4bX2+YZgHIu68/QlmnILL+w79PZkS1Xv/5f1JAbjmqDoBl7rZhz3FL X-Received: by 2002:a17:906:2481:b0:a4e:17c2:d60a with SMTP id e1-20020a170906248100b00a4e17c2d60amr1529202ejb.54.1711720296592; Fri, 29 Mar 2024 06:51:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711720296; cv=pass; d=google.com; s=arc-20160816; b=Sm90WOBPZeT2ozPdd8q0dTRmJe9zW4FMX2urfqke03nvdqN1H/vq5Fx/jAMLy7+YpO Cm9WxAb7BuX1kaJRkoIY9QUwnBUPDYfSQ8vUgfex0u6Cbgg+4fKpkca9oWGi5WGyFfMZ ccTwCIaMxlcOUd38ci9uU7hB4KGB1dVNHPOdU0KirMHDTnXyrRwskIQO/i1BkraSnX3E RW7x/5XdMCgnRWbELZ2mHtFJBVdqpg01O3hR67C2gcNAplwNt4mJ4cIzvv/JUuOLx4Vm JDQRTrsua2BnVPX1Csz1rwVtWhZH3uWw8CpuozGgggC9OCSYGTVJH6z8SALT4BlqWz9c Ax7g== 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=V+lIu1qEvh7OZlG+wF3cxd+v5TWaHf4TufMY+CrT4YvoGDXEjxAlkMDZi6tviutjaO YE1WjXTeeh5h5Wl8fUjbOYu+hydTmdVdKK9yIL4Fjjquw/ajF2l4uCwEXZPMSJ6883V8 1XApt0NVIxtmJKUelStNmLq1mbUGJkPbRyCnK/ZtCrEe2dT+GAB2/KPkMQTq8Bne58yO g+9qFhvt6JQ6YisqiyOx9rH+SvG1MPpo2AJ+KXgKzRuP6eeN58kRuqm7TZJTo1yLVQQp x4cm0ZakkIeYBgHvvT6FOfz58p7CbwdDdIvGZfPdTFuYyEC5wOSU45NEYIfUv3VNBRxA bmVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FG6USFjQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124788-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124788-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u13-20020a170906408d00b00a4a3403340fsi1786260ejj.146.2024.03.29.06.51.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124788-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=FG6USFjQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124788-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124788-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8446C1F22B53 for ; Fri, 29 Mar 2024 13:51:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADE76189256; Fri, 29 Mar 2024 12:42:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FG6USFjQ" 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 792B418923F; Fri, 29 Mar 2024 12:42:22 +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=1711716142; cv=none; b=mtkKD87kNzQuwKDE/bdOJD+DGWeCTodB1zp/UFS4I518t8SZZiW68aUH4vIwoucdzt9CYqQ6h0PktW6R+SK8tBqbzFkZAdKz9m5bmxGZRsOFiDO1oKp7MF33auAPKrpF7khM1fi283yV6l+cCTBJQ3wOLeIt52sOEa7epEP0ZzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716142; c=relaxed/simple; bh=yuX9XVGrAT1kcHDp/0Thq9ukxuSdmRxes7/j7tsWnhI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OWj+bkb1+mR0p0rvnlgXgGWHJvA6WhxKobUGkO3tFk+iamq1bh0Qiys3MaMIqwuYNurhnutfybZ3P3syhrR8CaJkV5205JMgPuxoYWV3magL5NnXhgpwDwsjEjpoq6MmNzaJz1AwBPrAsmsqZCjS3h+30lXDTNSRcvdVEjyk5y8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FG6USFjQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CA94C43390; Fri, 29 Mar 2024 12:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716142; bh=yuX9XVGrAT1kcHDp/0Thq9ukxuSdmRxes7/j7tsWnhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FG6USFjQwib2yBJ/6g5fcEOWPkDdfwjBcXi+laz+3w2pjqKf6/V8//pu76OsqyYg0 QNgpoZHD7YpWaDtYoXEJMs+VXTmdOiWspGL7JxTNicLbltUlyq+eTlXln8SBSVAUVf EPT1flVWiRSY5ZVHp+Nl4+zjJGmTLodU9XOjtNoTCb+ajrKFEVOKSHHgiVtmHsgXnA glde2mQlI9Nk7Eijb3plxQOtxpHLpMd3f1GQ/HbascSE0nEkBs0F2Tb3fhc1eBRjB6 ITr5CeraFt+nhyOYgIflGrc0VdiRgWQ8IrKPS6VAFzHFnJl8kzSsPhwx+NEUkQG4aB tZUg/sLSqsYgA== 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.8 78/98] input/touchscreen: imagis: add support for IST3032C Date: Fri, 29 Mar 2024 08:37:49 -0400 Message-ID: <20240329123919.3087149-78-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-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.8.2 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