Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp29357lqz; Fri, 29 Mar 2024 07:38:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViawjXPpfgwHx1+hKaZntACIcBkpgvyvj1UPRxfDR9WgraWCzinXjUAJ1vM/QYFVGb3GNljuttQnn7itmzKzFM+Up+56+vzEA1E057Ag== X-Google-Smtp-Source: AGHT+IEHBDQrp/9S6EllNU1b2ZSw3bBOR6+f0rw9O74QQLozZKPc7anQ345O/to+iLxXMJeVss/e X-Received: by 2002:a05:6402:5204:b0:567:e0e:dda5 with SMTP id s4-20020a056402520400b005670e0edda5mr2511604edd.17.1711723093580; Fri, 29 Mar 2024 07:38:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711723093; cv=pass; d=google.com; s=arc-20160816; b=WDNQ/AB0M8dU5Pyf3t62WK20uo0oRGDiHV0n1MgiEMU6uoesXzEp5uk4IwCA7JR6Zt Jc+WG/GUwOwiokLPYZZVcvB5Gx66zNK3kdMsqNez0fbI8tqbA6lsMCB116l03EwgTM8v qt1qsZpoeWnWLZhyoTBShcSkLcBQV1eTUsElzqYhuVOmS8g8dGezyhSodPYWzlyXZH7+ cLZnjRdvwl1pEmQzdko+3eqCzXtPE1ZGy51iLx2qJy2SNbRfjhxzDOorrf1KKL3SjaZb +aTcGu790jnf4DuHsAB6ONm0MjFclGSf3RhHCmVM5fIRjI/LcT/rQiv35yGwynDFg7WY mBPA== 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=vWmwQQFZPbD9f6DYVTKPrLT2xm0Rjkx5ycoBkDiDLMQ=; fh=iuERCYmuwnqwCLrTGQZPsM/3wsCqw8Z5XgRIbVRuyPo=; b=CNn9ebBvcNayXTo4iEcbPTK+MbIMcfqwYq9bln8+Knk/Wln4BcxYLXDKMjZzg6mz8I 7PluureMjJN2QcVVNPuV+INFUx24zFTnKxoPI2jlWtlQswERb785AYOWN/VG9t53YUn3 MReHCHijGLeNFiD2Y6a/3TvSWTVBW+24DeJSgQVZcD8OozqA6GPtTl8aJqlC7UWK+Gbp kcsD3IcHH/6TV36ahPEh7cS6HA+61Br8a8Kv0alKqure96EGSKDpZ11XqWJcIkNSlLcF 3JhFsqL4F39Y/pIVdgMX4pPKPzGPDLENXHhZDHHh4DKJOx8q/w/CkJJYEI6366Zfqshs ksYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="E/9upM9j"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124922-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g8-20020a50d5c8000000b0056c3969d5f0si1850819edj.124.2024.03.29.07.38.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:38:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="E/9upM9j"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124922-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 4CEB31F26BE3 for ; Fri, 29 Mar 2024 14:27:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E15603CDFE9; Fri, 29 Mar 2024 12:47:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E/9upM9j" 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 06FAE3CDFD1; Fri, 29 Mar 2024 12:47:14 +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=1711716435; cv=none; b=d2P3S5uZ2yE8KTzyKBsK6oHjvc+v6S58o+r71Bwx8S5kJ9Rl2wHcPr/+zkqnYWmn2ZrE6cvCPdXBsvj7ovIhz3YdJSMM/lvm0DqPb/fZuFe7/gOrIDagScQBk3jk8AMji3IkPsDth+LGvJPQAU99U0wxrpv0We40wPxFOA16E+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716435; c=relaxed/simple; bh=FhflmwTDHgb2DGhLTLaolrnWf5HOYW5FaDwLAJXVu2A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LUoFN5EHdKhAtVXu6KNI4n5AOjEPeAf3uB0TQaM+LYtZsZPPuP3DPEyq0X8EK4gykSz3codnQywJT6vkdpage1IWBzLVTGvjV8wCijZUIpZFlXe0y3VbT2i5VoSeuVoZnDQCjOobEeiqsp73GQVO2aQOC8xq1bXqWvANPCHuON4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E/9upM9j; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA5A6C433C7; Fri, 29 Mar 2024 12:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716434; bh=FhflmwTDHgb2DGhLTLaolrnWf5HOYW5FaDwLAJXVu2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E/9upM9j31mk99A1bQiC2DNYJ1b5kNVli921vx9K7MmG865Rck/Oa2yEd5oNocdQq IcRxvXobxtWSPmes/EMMWVuBK5viB07kTYhpuXrAzMThM3zBkjowvYi71vT81yHdkb r1PcLMihNg/9ZLW5aXS73ut3rF7NJo7DIleK9KoJPOrr+vQbJpjxIPk+Qnbm4gb+ah Z5N+v0yfyBQhCN1ReLPLo3LQ3SqcPDR6l2Jtiwa3QZvRcck2rq3pfopjpgdbs2MaKE NkN87U7C3d3RPL9TqEBdPCu0wWZtx255LDZzQ/WsjETEgFzfwQY0UCL/qqkzk/BzhW //JMQm6yQHMQQ== 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.1 38/52] input/touchscreen: imagis: add support for IST3032C Date: Fri, 29 Mar 2024 08:45:32 -0400 Message-ID: <20240329124605.3091273-38-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329124605.3091273-1-sashal@kernel.org> References: <20240329124605.3091273-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.1.83 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 309088eadad21..400d53eae9424 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 __maybe_unused imagis_resume(struct device *dev) static 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