Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2398548lqp; Sun, 24 Mar 2024 17:47:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzbgzJpH+5YC3gmUzZj1ErJ5h2WLOr0pKuIGPFFWan74OP15gdcIcCCFbKAMwkrbI5koTKDbSufGcdTUxGjEB+gBGIMzVo9kpxDGjSBQ== X-Google-Smtp-Source: AGHT+IGq8Xmf2qYhPzoM0vOFkVfbCi2IPk1eh0IdG4CwVcZJG9fGP8d2drByyw4Z6gFi6IV5rPmY X-Received: by 2002:a9d:7556:0:b0:6e4:9482:86c3 with SMTP id b22-20020a9d7556000000b006e4948286c3mr6455360otl.10.1711327669592; Sun, 24 Mar 2024 17:47:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711327669; cv=pass; d=google.com; s=arc-20160816; b=xkaeEYARO79L8VHg6q9MsxdKSUecP/XWh0o91H2tV1ef7zjWnlw8oKliRQp9L5yyEA VggBbvTdm8Gm76uCbOrPL9HKHfUlfPU7/EC3Bz/E1Zu8oI1P10tARrDrzKpN/tjh7t36 5n7ZaoVAmWK+p46X4BWbI9yzjflgkWwlfy18WoKbCKCeBJBlCrgncNud0kFso5iFNElV gzlXqpGMdTxQ0Mk6bkEZtN73fvWQwbDiHo/SNmXMgZMMoxeY69GpmunCK1gDFuv99b0K LFhXIuCsLfFyjOoNjvfuam421QI3XKZPOd2NW98Uq+ZcLY/UDvERHLKG/foEr4Kpm1pZ uCcw== 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=9rVptXkayQzlIZ8pA4F46WXbKS43w6QfOLtddFtp/2E=; fh=ifTlEKgK/MIfEDpYVPDnzzM+PSSqIb1be3dWrmmxCfw=; b=VotZwAL0y+DnGXvEd3mgWyy+0iHJ7JgxgM+RgcGMmUsC/jfCW3+qwoN8uReXzEDvML jTjP5TPm9zoHqYJjohGiUXS336R9azceEXsQHdwBFwypb6PFN+NSYHt/Afdop2dSZvqC U1b8AzdXvrKf7lb8ecuHRhX8QaGkO8TYM5gRKUeVhKQJDi+BTzU3STaicc41rALrmSXT T4+YG8/dZPB84ASgx8Znp5O4mSxM3MhBwdEX6Dk+ToD13v7QGNlsWN0VSlX+41I5XrzM tVmixp5nm9kxitb2dg83EO1S5CJAZfAJYcxgvGxAbKVruUDze3IhhZVZr7+HXuXAXvEb HmqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uzPCSozY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id by9-20020a056a02058900b005e438e96c48si7209747pgb.164.2024.03.24.17.47.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uzPCSozY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113481-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3F14528966E for ; Mon, 25 Mar 2024 00:47:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 742A61B5DBF; Sun, 24 Mar 2024 22:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uzPCSozY" 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 8CB721B5DA0; Sun, 24 Mar 2024 22:44:42 +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=1711320282; cv=none; b=kKZWDPGlDuqoYvFmPsG70hf6iF7hsYCsAesjr5GmZb8FPfpQSheuz5ysoHxYAEc1lFHjEPQGtc46c2b/ggSr2luQF9rQ7niIbYXNY4s+7Xvbx4VBETDqQ6bvCA79FZ+lDv/QEVpVkwofuewqT6MBQcJkqj2eeQzZzg8ESaJgUw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320282; c=relaxed/simple; bh=yUS06+jBKCnlD25vjcbgsGFLnvBZQdDnVaI/PR/gXtk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rHp/cHL8M9hxx9LSCoA6NuopmuZJ2lB0wBfOnqTw1LaZ14YR2XSMjQkcePUg7mqrj0tOJfOECFD+xZf5K4av7wjpYI+dc8lZxvTMrpC7tL90uxeNnj7UWMociyOFDDYXDiOVCuzs8A9YeiqaJsqmAvzhfilwpUDBCXWSMItFOEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uzPCSozY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C1ADC433C7; Sun, 24 Mar 2024 22:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320282; bh=yUS06+jBKCnlD25vjcbgsGFLnvBZQdDnVaI/PR/gXtk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uzPCSozY71BQJlpL3TIsmzaCpvMDHiYAk7jFA/+hEE7fBBUmoHqBCuAEDyQLtIEFd pF2jqOdhP4nO8RRqrPr2QwGsFjASnKPx/25RYjCnSRkfPkyyC7fJpfJ1JHUPZOhBdv 6quphhHAihgjZgQO5lMAYMNCcrOcIXeI6EisbeWqnAuM4Zndz2iKw2e1skDAfw5LNd qh5IN2ONzg98hYOJ6wsS6W7UyQntwOwgrCn9C0QhEBNlWg4BQPnFKDTy8i1xNZGL0B pwYU7+tJ1VBTkq+TLc2f6GJbVtA5dDW1uq58ubGlP7wnkBIzYFyL1clKs6aIbd4xoG F5RkvowDyAfXg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jeff LaBundy , Dmitry Torokhov , Sasha Levin Subject: [PATCH 6.8 590/715] Input: iqs7222 - add support for IQS7222D v1.1 and v1.2 Date: Sun, 24 Mar 2024 18:32:49 -0400 Message-ID: <20240324223455.1342824-591-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-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 Content-Transfer-Encoding: 8bit From: Jeff LaBundy [ Upstream commit 992cf65674778e22436807796b2df927de21bb75 ] The vendor has introduced two new revisions with slightly different memory maps; update the driver to support them. Fixes: dd24e202ac72 ("Input: iqs7222 - add support for Azoteq IQS7222D") Signed-off-by: Jeff LaBundy Link: https://lore.kernel.org/r/ZelTRYX3fenMQuhF@nixie71 Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/misc/iqs7222.c | 112 +++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/drivers/input/misc/iqs7222.c b/drivers/input/misc/iqs7222.c index 36aeeae776110..9ca5a743f19fe 100644 --- a/drivers/input/misc/iqs7222.c +++ b/drivers/input/misc/iqs7222.c @@ -620,6 +620,118 @@ static const struct iqs7222_dev_desc iqs7222_devs[] = { }, }, }, + { + .prod_num = IQS7222_PROD_NUM_D, + .fw_major = 1, + .fw_minor = 2, + .touch_link = 1770, + .allow_offset = 9, + .event_offset = 10, + .comms_offset = 11, + .reg_grps = { + [IQS7222_REG_GRP_STAT] = { + .base = IQS7222_SYS_STATUS, + .num_row = 1, + .num_col = 7, + }, + [IQS7222_REG_GRP_CYCLE] = { + .base = 0x8000, + .num_row = 7, + .num_col = 2, + }, + [IQS7222_REG_GRP_GLBL] = { + .base = 0x8700, + .num_row = 1, + .num_col = 3, + }, + [IQS7222_REG_GRP_BTN] = { + .base = 0x9000, + .num_row = 14, + .num_col = 3, + }, + [IQS7222_REG_GRP_CHAN] = { + .base = 0xA000, + .num_row = 14, + .num_col = 4, + }, + [IQS7222_REG_GRP_FILT] = { + .base = 0xAE00, + .num_row = 1, + .num_col = 2, + }, + [IQS7222_REG_GRP_TPAD] = { + .base = 0xB000, + .num_row = 1, + .num_col = 24, + }, + [IQS7222_REG_GRP_GPIO] = { + .base = 0xC000, + .num_row = 3, + .num_col = 3, + }, + [IQS7222_REG_GRP_SYS] = { + .base = IQS7222_SYS_SETUP, + .num_row = 1, + .num_col = 12, + }, + }, + }, + { + .prod_num = IQS7222_PROD_NUM_D, + .fw_major = 1, + .fw_minor = 1, + .touch_link = 1774, + .allow_offset = 9, + .event_offset = 10, + .comms_offset = 11, + .reg_grps = { + [IQS7222_REG_GRP_STAT] = { + .base = IQS7222_SYS_STATUS, + .num_row = 1, + .num_col = 7, + }, + [IQS7222_REG_GRP_CYCLE] = { + .base = 0x8000, + .num_row = 7, + .num_col = 2, + }, + [IQS7222_REG_GRP_GLBL] = { + .base = 0x8700, + .num_row = 1, + .num_col = 3, + }, + [IQS7222_REG_GRP_BTN] = { + .base = 0x9000, + .num_row = 14, + .num_col = 3, + }, + [IQS7222_REG_GRP_CHAN] = { + .base = 0xA000, + .num_row = 14, + .num_col = 4, + }, + [IQS7222_REG_GRP_FILT] = { + .base = 0xAE00, + .num_row = 1, + .num_col = 2, + }, + [IQS7222_REG_GRP_TPAD] = { + .base = 0xB000, + .num_row = 1, + .num_col = 24, + }, + [IQS7222_REG_GRP_GPIO] = { + .base = 0xC000, + .num_row = 3, + .num_col = 3, + }, + [IQS7222_REG_GRP_SYS] = { + .base = IQS7222_SYS_SETUP, + .num_row = 1, + .num_col = 12, + }, + }, + }, { .prod_num = IQS7222_PROD_NUM_D, .fw_major = 0, -- 2.43.0