From patchwork Fri Nov 15 20:23:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13876801 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2061.outbound.protection.outlook.com [40.107.21.61]) (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 2699018BBB4; Fri, 15 Nov 2024 20:24:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731702270; cv=fail; b=pgkZGf29YypLSSABmHlLtmR6x/IBns0W5ZzFqe11VHttnOF+/Nn1dFROAqedFxz2SgwgURlLnoUoswLs7ZrJ98MGpgTk3LbBrO+NpHK5j5jm51SN2+Qs3Y+SGWODuZktD8Dd0x5KryqqEe3aAoOFBD6aBupK93c5yyOAQUofQyk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731702270; c=relaxed/simple; bh=84MTZfWTMic2XVsdnlPrZ05JkbZyiSvFDqgoi2DhG1k=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=V5puFJzuCAJQVCIXAnMkKFoE62/Et8qA56lxJfpwKPT7qW/vRQPHmwOH5Xc8XShaV5+7eIcHOR78JaKRor4KrMxQpW5xXMDsERX+yHYskH8LyBHK3uyeA0cziJiUD9Qh5fc4b7/e+BKVdYvFhFXgVDWiEBgdcNi/Ot7t85SW0yI= 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=b7m2oISB; arc=fail smtp.client-ip=40.107.21.61 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="b7m2oISB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JFBKX8IB0ILNHswbwHLZYDnxXKFw3IbP/OH5Ldo8EIKMAfS+VAs8FS/f3YeKGhw+eFixETTIK5NoO8EWkpe23XfxnIfoOSxmauico6GPJtXCuVp01tNT/zsxl6NgUdSWT/MmsXc07I+SjMvdjuzmjOycjo0HazyQhn187gipF4jpWQjGTc1iPpfjsPAEln1bzY1SaHMc8TOqQpPEv93vOHQhuODyeXd1Ap47agQ50198IQMf9GadsUok6pSvSQMRs2feVyGsymK5J5kjeZjKTLF4jJsqE8ezoR25oSyIJqMnXHSCXr+Tr5RXZqRsvdDfUDMFf6/Pdh/YbEAjsl5IzA== 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=QwtZw6HmnwhigUkuCooLfaqkLXVWtIQD82ziIoqUq3k=; b=nlN5xS1W/vAqmN4EJJnrJQc44Ba7+obyN6HBtY9K1nRr0AJMK4v8lUx258dvl4+6unIO7OEfisCIydyD+HMdGgCY2P6RZYzd5asNBCNuqexmciQHRtMX9fFysmK7YTwbkA4o9gxEnSRdFPKC9ftMkfNgnd2vl5Sy16oMi+1CsHjvxcYCsyKC+ug/OSAWIYaW0hyPTDolp1EArX4h5dVkMBJVOFE5IuoQCFB/WDq3WuU+9xVHwOSyJLlce7kp04vP4rNnLUzFt47+nnkLfXzC9MOeQPky0PvDSif91gz0vSyAMdtuEtpCskDo+JTGsb6Spjr2w+daO7fMy4QhjWO2qQ== 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=QwtZw6HmnwhigUkuCooLfaqkLXVWtIQD82ziIoqUq3k=; b=b7m2oISBu6ae2BHncHrl989kv17lYjXVf/OtEvzfeYiPGT/f6g/mJgEdHBAtQEFOqRQyI2t+oh8Aqg/4KJLljsSeP5B/Q3P5Q3q8fjDsxo3EpKck1qBu22xBqGEB/N6ZhYnh9Z7jBpitKGFR7GnM2LugylFLs9gT9z+ujtNJr8YolMGGxV6kdLiqjo89F1wopoyLefsrII+qXDFT/z9SFhN5VrpIsUO4M0m7cS3WfIiiwlujI5OsAheEl6WdgzNe5013Skh2yNiPHWa3SqRMrM2O4g5C/2udKup9SdVYsPPDD9ShFrFeiKCYtSve2vqPRW6MJFVT2LQQIo7Syj/kKA== 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 AS8PR04MB8231.eurprd04.prod.outlook.com (2603:10a6:20b:3ff::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.19; Fri, 15 Nov 2024 20:24:24 +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.8158.017; Fri, 15 Nov 2024 20:24:23 +0000 From: Frank Li Date: Fri, 15 Nov 2024 15:23:59 -0500 Subject: [PATCH v2 3/4] iio: accel: fxls8962af: add fxls8974cf support Message-Id: <20241115-fxls-v2-3-95f3df9228ed@nxp.com> References: <20241115-fxls-v2-0-95f3df9228ed@nxp.com> In-Reply-To: <20241115-fxls-v2-0-95f3df9228ed@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 , Haibo Chen , Clark Wang X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731702250; l=2203; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=9ByT1xnywtbuXkHRk/zAK6676kDTZKvd9DfDVoZTI98=; b=oimrAguPjDiczhkN0dxcJ9lWePJrGjRSMdrylJrPTWjh9c7GrjFn6Q+/rHCoXh00LQ8veGVIC un2MKpFrziFBzzF2noqXhQRUDQZHxmblFBhiFRHCGyNwLkBV1cVkynD X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR07CA0057.namprd07.prod.outlook.com (2603:10b6:a03:60::34) 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_|AS8PR04MB8231:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b2bb63a-f222-4195-c0bb-08dd05b37e8a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?W3FQRNaOrovN95NERT3OXCzNisyVxcs?= =?utf-8?q?Lz9Id6BojPzcDPxWhJ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xV/nOXLn1Z8zdTJbJnkweyEmT7qQF/YMnA?= =?utf-8?q?272LWRd6i8x3MFihwzx62VUbCmtukkA1dcUImPqgZfhfkexDsM6azAnPFMr3ZdHLF?= =?utf-8?q?DgQ+wbCl8EFWy887iSAg9DEnu4iyvwzIfilt8n0fkqso655szgA8WvDQjKvwTP2Ku?= =?utf-8?q?dGvZzPY9Hq2JFlwcl7tOooSQ5FA1gUCh4gG5BrICJQwD0Vgtgq5i9dsER588vA8Id?= =?utf-8?q?CA316BQ5DmMOV4O0U3j8/lLJwcdpiwejCGnh9RmrUHiS+OOjHEPFftdieORTU4I5q?= =?utf-8?q?IWXKV0VktTdhKs817yA62XUeEE2f3ATYAyznnFg9zyNINzd2PaUz4vy/NR7a1Rjo6?= =?utf-8?q?gh4ClIlXYOKHDzcqetCiNG0P465Puw/nHhmsbl3DyK7tqeeSMd6IOj/M=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)(1800799024)(366016)(7416014)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xsEu47J07WvKoEvlnH5aQgNZkpVp?= =?utf-8?q?3aUuzkCp4J68wddHGsoiwcdQgt/b9V0Ojj7BrK3lAwVZT7QgSmIy26GSh/ZbaZjvE?= =?utf-8?q?qVdn7T02sMUtsOy2Q6Wpon2Dtn1JZI//qnjFmA3WbRI8ndGmh81+puz5Sf+Es2f86?= =?utf-8?q?Z3NSROmMjZf4rkYyyBbw7PVH9fsVcGeffeGVdhWPZH0U5JbFgqgtDxkrPYIK8AapA?= =?utf-8?q?QCxUNRoT0D4VmjcKaDzWDQl/REV7Z/3njV/dq4xP6mk23gK5ZSZN8J+IW0Fe8j4/t?= =?utf-8?q?clH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q?VfbrYrDhRNTQTDEVxoFFWCYrvz7TBokUxAs+ez+9rdG4fEQWA6If0fV10nW5Pnr2p?= =?utf-8?q?bgafmbCVMzGuVuZuCfNlPc1XODpVVq1MFIx4ZOhlyDmqVs0zBIawLYe6apEMru5sv?= =?utf-8?q?4zhJ5l0mabx/fmACVKAb3Ypubal24otj3dt1T0GX/po4RZGOBYx9Y53cq89MKLGP8?= =?utf-8?q?jCPqZBBcg31pwFVgrLPxFjmoVgIg+uvuCPX0KkktdJtq9AetdR05Wf5pYk9DifP7F?= =?utf-8?q?XVHxR1RoiC3gmeGE6EKtoPxuLRQUXiY+Rm67on47zyXazfw7L1ONSrN7iSWRCGY7J?= =?utf-8?q?MbBizjyONr37wa6Fw096JMu+CnU+boAJwiCyAQYCHcXLL4bJEx0Rrm2JvPBAjRqUF?= =?utf-8?q?rjWHP9a5/2HN?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b2bb63a-f222-4195-c0bb-08dd05b37e8a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2024 20:24:23.8091 (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: GgBjbSw5gur2R+sK+5FlHuRxShWXHaM54xbJdP1rroXKor32DJ0z3k9BS1P3caJTGcAQhacwqqsg7aUgoEussw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8231 From: Haibo Chen fxls8974cf is similar with fxls8962af, the only difference is the device id change to 0x86. Signed-off-by: Haibo Chen Reviewed-by: Clark Wang Reviewed-by: Sean Nyekjaer Signed-off-by: Frank Li --- drivers/iio/accel/fxls8962af-core.c | 7 +++++++ drivers/iio/accel/fxls8962af-i2c.c | 1 + drivers/iio/accel/fxls8962af.h | 1 + 3 files changed, 9 insertions(+) diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c index f07fba17048e7..b5607e753a7db 100644 --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -129,6 +129,7 @@ #define FXLS8962AF_DEVICE_ID 0x62 #define FXLS8964AF_DEVICE_ID 0x84 +#define FXLS8974CF_DEVICE_ID 0x86 /* Raw temp channel offset */ #define FXLS8962AF_TEMP_CENTER_VAL 25 @@ -766,6 +767,12 @@ static const struct fxls8962af_chip_info fxls_chip_info_table[] = { .channels = fxls8962af_channels, .num_channels = ARRAY_SIZE(fxls8962af_channels), }, + [fxls8974cf] = { + .chip_id = FXLS8974CF_DEVICE_ID, + .name = "fxls8974cf", + .channels = fxls8962af_channels, + .num_channels = ARRAY_SIZE(fxls8962af_channels), + }, }; static const struct iio_info fxls8962af_info = { diff --git a/drivers/iio/accel/fxls8962af-i2c.c b/drivers/iio/accel/fxls8962af-i2c.c index 1601246733083..687eb49035111 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 }, + { "fxls8974cf", fxls8974cf }, {} }; MODULE_DEVICE_TABLE(i2c, fxls8962af_id); diff --git a/drivers/iio/accel/fxls8962af.h b/drivers/iio/accel/fxls8962af.h index 6eaa2803b26f0..733b69e01e1cc 100644 --- a/drivers/iio/accel/fxls8962af.h +++ b/drivers/iio/accel/fxls8962af.h @@ -11,6 +11,7 @@ struct device; enum { fxls8962af, fxls8964af, + fxls8974cf, }; int fxls8962af_core_probe(struct device *dev, struct regmap *regmap, int irq);