From patchwork Wed Nov 13 17:54:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13874049 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012041.outbound.protection.outlook.com [52.101.66.41]) (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 7C8732040AE; Wed, 13 Nov 2024 17:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731520516; cv=fail; b=gjBqRUB3qktkdpf1o7siPsCbYVu+8DAQuFN6EZJHYFQ548IxVtFCivXnsr3ZgcykKIyHTWa/hcj4ajgSwYB4dU0UmxFT7YhVPoXTAIIA0P+HLiiFFhhbD7Ub5boQl0eBPhCZZ2G+EVlwYJ2McJ3wRhozjKrLtY3XshNhF/uFyTg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731520516; c=relaxed/simple; bh=BF4AvUzYLCGf45tnupeZdY6npAqAkmq7GQlGXEaAv18=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=UCNn3e95FtW+k3Ws0mMherC5BZ6ZLV8vyLaERmUWMw2jMZ3mRMLCr6+gEIp/3OYOZG3Y3M6FD6Cd2PZFTqBEXcHTISsqUwdpItY4jL+ZFa9Ddapzmal/eb9RU1tkAh4rKb+Y7F+lRI1LskkYi88gbtD4mwuAwyyOdXWD3s/i3Qw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=i13ZuCFr; arc=fail smtp.client-ip=52.101.66.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="i13ZuCFr" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VWk4GiEg15RcK/SDeFSKZKOsdqJsOgQjtPVw+Ro1JmZf6478CuJxdC+bQhgSmx8MCRO+e9d/VdtTTQaqeCdwJXdsja0RvGKAYBywvCIC6vRtqnXhvQ4Vor/2cn//5l7GOz4syHoPSInvFmklyQEnTZlBNj5qMD1teQ1IircbgFyuc6A612SGZ7AZhqLpit+sDCK9flyS+3Z7HkZsfIFIFbzho/aNJ8+jE9/AZt5c9VmF3aetjJZJ2WES7axkPc4Mj8IiP5iPyVt9guW8lIgPbWzf1/CDbMUuewLSen/U1+Ks5Bungx1l9PmQER4UtIU0l1tWTIQwrU0NEtWBh/qwnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nD/py7h1oJ8to0KeBUnEG/s6aDuMsX09cjxND78mDqM=; b=sk0oi7SwT8V2dzcAcd6oDLkTG340fYsLhjSO4o4x0pMx9Ak+6Qfyd3CnjXPFtx5JdRPmnAIj5hQtfLowOz5+tk0yjRir6H6MwD+GoNfhHp76fAlhcka3FwpVKh6ja1NHqp/0hDewJUP6dKvpZbw/506s+uAIKYvaIBosRY08Rhmz2iJjdLcQTgqPsUt7oA6tTw0F/WcYec1kSRBNAzaYLBeuYDS60pGlNd6fiJOVZ+iyif7ibMRyBSH+H7MpsJu2yrTZQ2RFYLCrXXpHL1hOTrGlrt+37AbRCMlXBIZSK046Y3vqdMM2X5uArtyhNpdc8s/3El8rdk73e2EYb+S0xA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nD/py7h1oJ8to0KeBUnEG/s6aDuMsX09cjxND78mDqM=; b=i13ZuCFr0rapP3iPlh6gXmzHhFzA8vD8MdW5K3J5tbEUFEcvjW5YR0NZV+MNXp1zuDOiLcmLCcw8AHP7K+jZvlEMrBYfygDk4cHHSuLNnZR6BWHKYL5Lpg+HqUiz4vxyqu5dbGZQRGMZSb69TsqdXHf7OVROV1iQysrk7oU9J81UHdy5rEojqSO+rpWMddFL4CR2aWEP397yXuqnW0FYMHWiH5OT8UasY5bcJks9RnlF/m3CciZkOjW0FnkgcA8ZZCdBAv5QoIu0TRmg0SgIqWNlmECoRjE5Yxj88oeRkpBOpe84B4HuUGHndnnrmJ7zJqligvq6IvSYz7b5Bzqx4w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS1PR04MB9656.eurprd04.prod.outlook.com (2603:10a6:20b:478::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.17; Wed, 13 Nov 2024 17:55:08 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8137.027; Wed, 13 Nov 2024 17:55:08 +0000 From: Frank Li Date: Wed, 13 Nov 2024 12:54:42 -0500 Subject: [PATCH 4/4] iio: accel: fxls8962af: add fxls8967af support Message-Id: <20241113-fxls-v1-4-5e48ff1b1fb8@nxp.com> References: <20241113-fxls-v1-0-5e48ff1b1fb8@nxp.com> In-Reply-To: <20241113-fxls-v1-0-5e48ff1b1fb8@nxp.com> To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sean Nyekjaer Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Frank Li , Han Xu X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731520491; l=2373; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=JO375cBldwsAR5vWQF0kDGVd9Tr1BAkXoLQlX4T3m3c=; b=r393QS7hGpdC7BAqL3VD2FZOJSuzQokeU9a3b7HNHpSG5MhQPbTGuIIEEpb4jtrvHdy51cvCm Tpz/984/NxBAHfPGQhqjsnNIlHcJBEKhr2CVRGO5KQynVJqV0F9KSB4 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0300.namprd03.prod.outlook.com (2603:10b6:a03:39e::35) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS1PR04MB9656:EE_ X-MS-Office365-Filtering-Correlation-Id: f376efce-a93e-424b-67f3-08dd040c4ff5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ILKIpgo+Lbg5cbWDhxZhlNcFF5HD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H?= =?utf-8?q?6oLXzT0Rg5h4sKJ2ryz4Ho74Awv4/+1IXfJtc7VUxfILG+RGqPL3b2RppwMknBKzR?= =?utf-8?q?1ID2LMmk3pTg+gd5fstS3iwPx46RK0/yVUuNXpfKbyzbBQPPLjEd71IguLYwiuQeA?= =?utf-8?q?3ocDsyecVkbttZsCMG7XVSfmE9tJblrSQ/BrNwOHWjbKAoEknvU8K9966jbRMRwkM?= =?utf-8?q?VGitFfLVNp+L/+rMu7t8iHfcdMAR6aEV6wvHu8ih88dP0y0QbZPKxynl5k6XoWMVt?= =?utf-8?q?1UvuZEQ87MuLqv/yyyDfG+G0gPC0x+deGbKfyuWKkno1VdE1ktOY0JqVRugNZtvaG?= =?utf-8?q?232VWfDBzYB4pO+iRVjjFwQWW7du13wagzGMorkefBctbnoWh8P7/Z0OOC/4lMxXp?= =?utf-8?q?aIAMmknQgNzdaE2+9ArZ3hVJpCCk9s4USQJSEHx0mYZsLrJ7dh7GYBk8=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Du5zhG56QckEAr+e8O9VKNa5lDOL?= =?utf-8?q?aoHpaHIqx21ibq4Q87qDD02g4EjIlYn6+8dnKM2eV0b7ZjLBJJWIRifdm5BbmO3rC?= =?utf-8?q?Gqe+JgntcqIcZ5+IpNMD2XTk3v4AShrqOA/db6Y0eqnuZG1J7vkqDg0ZCSDErGqDn?= =?utf-8?q?qcqk3ds1mxVaJ93Zg6Du6L3YA/9RTNx6x85KlFcb62W+wUktkTaNgLeE1PODBDGNc?= =?utf-8?q?mgot8AArOTMv+nfRiT0BJtMA0JHUCCqwF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TM8io5WtL2G89OJ1Zha+nojh0fn8YmscpD?= =?utf-8?q?tUhQyP6PajYrY2/bMZeDAoqhkV/4lm0laDD0wkoNPyIL+BerpkBosly5mQB15CCj5?= =?utf-8?q?xQhenl1012nWDfi35rCz61dMvWAHRjij9HD8c6pApmd6OVS6jttu7lHiMLJ0LiU1S?= =?utf-8?q?3zP2hyk8UGJFB4OZjJ7Pr2o3hwI7gEHdjH+j2Ia+eSGlFVOSmLW+FEduuRpopQ95S?= =?utf-8?q?en66Cck3pWQ62g4A9fREFJ82waMjca82e5rpA+EE5aje0d2eeE/1T7/HJYll+EYIH?= =?utf-8?q?L/kLKYCphgG9CIY8uqLMw+2aaaqYE3zSV6vN3CKVsbvZYe8M3iXEyD+ii5gFZ27Ww?= =?utf-8?q?RXL1dTqmXPAzoaFeG4O6/kTUwA+SZ0n6PTv6sBfHV0HI7JGv2Bhwnqt5LhRLy+DAe?= =?utf-8?q?JOIBsD9skvBF?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f376efce-a93e-424b-67f3-08dd040c4ff5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Nov 2024 17:55:08.5359 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4PlpDQ/z5bC/APLWLcrOOTfg/6LLSJSPF4YMjnN6V8R94ihu+dbDPpJxEBq4uqXP/zIkpU3EVYn/Rf6M4RURZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9656 From: Han Xu fxls8967af is similar with fxls8962af, the only difference is the device id change to 0x87. Signed-off-by: Han Xu Signed-off-by: Frank Li Reviewed-by: Sean Nyekjaer --- drivers/iio/accel/fxls8962af-core.c | 7 +++++++ drivers/iio/accel/fxls8962af-i2c.c | 2 ++ drivers/iio/accel/fxls8962af.h | 1 + 3 files changed, 10 insertions(+) diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c index b5607e753a7db..fd9b461904c20 100644 --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -130,6 +130,7 @@ #define FXLS8962AF_DEVICE_ID 0x62 #define FXLS8964AF_DEVICE_ID 0x84 #define FXLS8974CF_DEVICE_ID 0x86 +#define FXLS8967AF_DEVICE_ID 0x87 /* Raw temp channel offset */ #define FXLS8962AF_TEMP_CENTER_VAL 25 @@ -767,6 +768,12 @@ static const struct fxls8962af_chip_info fxls_chip_info_table[] = { .channels = fxls8962af_channels, .num_channels = ARRAY_SIZE(fxls8962af_channels), }, + [fxls8967af] = { + .chip_id = FXLS8967AF_DEVICE_ID, + .name = "fxls8967af", + .channels = fxls8962af_channels, + .num_channels = ARRAY_SIZE(fxls8962af_channels), + }, [fxls8974cf] = { .chip_id = FXLS8974CF_DEVICE_ID, .name = "fxls8974cf", diff --git a/drivers/iio/accel/fxls8962af-i2c.c b/drivers/iio/accel/fxls8962af-i2c.c index ebdf6926db0a7..029ba849a0423 100644 --- a/drivers/iio/accel/fxls8962af-i2c.c +++ b/drivers/iio/accel/fxls8962af-i2c.c @@ -30,6 +30,7 @@ static int fxls8962af_probe(struct i2c_client *client) static const struct i2c_device_id fxls8962af_id[] = { { "fxls8962af", fxls8962af }, { "fxls8964af", fxls8964af }, + { "fxls8967af", fxls8967af }, { "fxls8974cf", fxls8974cf }, {} }; @@ -38,6 +39,7 @@ MODULE_DEVICE_TABLE(i2c, fxls8962af_id); static const struct of_device_id fxls8962af_of_match[] = { { .compatible = "nxp,fxls8962af" }, { .compatible = "nxp,fxls8964af" }, + { .compatible = "nxp,fxls8967af" }, { .compatible = "nxp,fxls8974cf" }, {} }; diff --git a/drivers/iio/accel/fxls8962af.h b/drivers/iio/accel/fxls8962af.h index 733b69e01e1cc..1c9adfc8c0dc1 100644 --- a/drivers/iio/accel/fxls8962af.h +++ b/drivers/iio/accel/fxls8962af.h @@ -11,6 +11,7 @@ struct device; enum { fxls8962af, fxls8964af, + fxls8967af, fxls8974cf, };