From patchwork Fri Nov 15 20:24:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13876802 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 79ABC1F755B; Fri, 15 Nov 2024 20:24:30 +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=1731702272; cv=fail; b=AxY59U1GmU5/xwE7DW3cN3l5KDtWK2YIIr0EMwMBR5B/9hUwEHklBs86zCa8KuLUQl07yhaUh+sPVEv+E83yp3MLnKDU/aoUXvWMgXQaJRHHywizwI9m5MNcHhG+CNvxVnWnjRSmrNMjgzA+gtoyio605A8c+xpW8c1+SVSs3kw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731702272; c=relaxed/simple; bh=9CereBTgdqpoG2P6KYEI3UetU9pdiS4pL3erD9GHBnc=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Jk6lNt7hGG+Bf/89iNbpfd389oKx001enKFYVgmVMCTcXbAJezZUebGpgX6+5bzJ9W1ga0EeQU/c5XexQMeoQ1W/MFuqX3qJjSJXhZWJClGykXGE/ef1c0pLRF0ebnjS2VnIianGRrVjkMV6HquYRZwi/z7h5uiKn61dhep8EPg= 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=iCezJZzf; 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="iCezJZzf" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mz3fJvCj95SAw12E1JPs52dkiAA87f3Hy4NRlJioTsLRdB2rSzlIdZo60sJK1QIEYBeqWWBJuevAFb9gQEDWkdlAjt9ZfPjI690a1tYAjWCKjzTFOQ84TfOp/18jpMmYiFXv4mnEwIM8SkcGtjGK3nFkZtyBtiX5U8JSIIXi0d2p/wp3QfzfoWJcTCtQnCuJSIjU+Rzj+zChxDcU1kRY1qWyQhPFdZ1ms+7r3o5yImzme2yT6enRun4nlVlW65ayicL8GCj3EroUdg2lLyBSIv6pqWg4TW6Cx4fZRL+nmupt3WpgaofkwPGEC3AFquBZabWqufYxCK+AoQ+RvNbVVA== 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=YCj5587eU3VZFXt0swdhoTIIkw9zw5buUCn/uS6QZcw=; b=yJgmgR0sYze1pLLWelnReNiMXgALCRy3RwN9pqaCtLK3HUBf8bREmne0l8vnNvLjGZmCFP6VZYxYzZ5ldjbZs0E4kt1G3BiUb8VXUw5f1Y+y3nloY8Afg9bgDKgMTin4JrE1S/MMH3X2VBvaejcEuKyYXWgJ7Bmmo72jL6HvslqVtNB1/QW6DQ3oSiU9yKVZ5wo8qfrf574xPwpQic49xhk+9zkZKmRLgfcsE7zEqG6UG8oyB7zD4NQsQ//TtOcG4at3cDHVHCrE8l0O4u9h/8cp+tNn+ESDlYy28+4PJ3cLEn2U5fZKQt+4z9zpZpXkcT6PhrAFlwubuz0R2LPxVg== 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=YCj5587eU3VZFXt0swdhoTIIkw9zw5buUCn/uS6QZcw=; b=iCezJZzfj8soqXScXlxX4Xs5S854HX1Z3MHs2calC+6sEF9xoEfJB51wR+5ATc0POSMwyu5nlHyI3gxs+53bY16bpgLeB3CT4PAAfl/iUhm8T9yeDS+AQ6MldC4C5BHuYDM52jSi5ya4N3Xun9Ox2g2xNqmHNdOdjQOklLIfWoz36Mh9Ct1lRxtTZQR8Rp8hfQ88+WECP834eNGju991Imd/E/xU9RuNby5wvDfce+lN/OK1GxVhfWjW3IjssPiE7QCbV8417etappCwixFXErO2bFNksLJxZkIwYA6bkvGN6eDYLucLP03CT52M/76i8lVg4lrAUrQvDPv8vZm/ZA== 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:27 +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:27 +0000 From: Frank Li Date: Fri, 15 Nov 2024 15:24:00 -0500 Subject: [PATCH v2 4/4] iio: accel: fxls8962af: add fxls8967af support Message-Id: <20241115-fxls-v2-4-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 , Han Xu X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731702250; l=2129; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=+5pZ0e2TQAqE2VPxZTaDVC5nqnEOf64tyTq8OlxCBFU=; b=0i0T+xwJioct0pOSrEIaSJHPixvRm34dqzuP71/md31POKNOYAtvY3e3fLdQpsXBuPvpJhY1A jqMmSzuT+VYARNJILfM5cbSj8+GDg5aQ/q27KEUOuq+6fXvC8Iwhg7u 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: edb590b2-d10c-4364-a399-08dd05b3806f 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?WAwSvETwElbEFKAfefocFydJagmcEEr?= =?utf-8?q?ItEjG1ojehClL3AzWV5fBBEL+9igDbkIVmWUgff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8Nu07DiKXaSllgVNhb8rCsz5VdF1+/BnNBV7Iq?= =?utf-8?q?x7IKZAZg+ePDbw0sAyhpEuxcdbPq5Ldp6hg4vTza8kj2LOyE6NyK75yKl7kveZjzA?= =?utf-8?q?iQkR9E0oqBi+zsIvdA67EFqWd6Nheu4NxW3tBvsykYs26X0SDlBntOZ4jJRrGQdKZ?= =?utf-8?q?mkBJPDyJ9X5XCHO0hsLAnTRMTmH3+LEx62RDI/ORoKDsr+u6c1u7/nV+Jannaem4C?= =?utf-8?q?9EJOO3UhgT6XobTmspmnkWGbrcCy/ykSVc9+w87D3gjW4GspETBBf5CkJjb3WC+SI?= =?utf-8?q?esbOBT4DuEMj9fGmGQ5o6beDipKGcQ5HSFEezNHHWMrqoD0yObdO370w6NIqN+ivj?= =?utf-8?q?+KYzqMlldXrimNGOpylu5SiPBZDTbv25BNuvHSJmbyrpGx8h7rc3tCUE=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?t9AJ08odhW+vj/HiKri+lbf8ygw1?= =?utf-8?q?7UFvXzsjRRNvJxMDoHXEmjE8p1+Gi/vRW2k7N4HYYdcZZdeILk6yqWytmILU6KDin?= =?utf-8?q?HMmTDP3sN5mGDvb/dw21bfvqraHpJ2jpkWRq4K1NmeJ/EiJyGlzm4hSTA8sIhrwgf?= =?utf-8?q?sBqCvVhu8ST5p+ic/CI2vBZxC9F3HueMmKyFzKK12DELRpyA1l6PKlgUxTAytpO5w?= =?utf-8?q?UF367Kc/AA7zPK91v3Zo4ZS4tgBv6lY7sx63/2fDB7HXFfHK4Y3Mu1GREPRtdtQFA?= =?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q?Obv6oDIxjnx395LujNUc20w4jHXP5Z0GpFShJ1r6E7FUM9zxdPxZ5bRaY9WyEMUlW?= =?utf-8?q?sqEAuHl3Y1clyDVuaaFmTdLmpvG+d9xI5EP8IYS65gGD4+N1YVprwieXkM+pYjTSn?= =?utf-8?q?zv/ffo4orBGWNrX/BfF/GhtsrHhLGNQIjGRuqlsw8QhBwrpsAkcilsUFZpTId7fes?= =?utf-8?q?DRJ2ivKCKeB5ETGj+dHaGPhqXugPoL2XoIGL8qNoHVeglEA2fRS/V+nH9KnflAlZp?= =?utf-8?q?z9fZ7IZAxvI3z47qlT/JMxM4OpwrfQCUWTGYH9L3os8YC//xDcFal/yY/daG8rXZf?= =?utf-8?q?85nm+rZHWjOP96WbAftMPoc+wJ53/Iamv9czWGvxWxp6DMYc+rqQj5BCCf9dy0A3F?= =?utf-8?q?CFH93uvWz2Wv?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: edb590b2-d10c-4364-a399-08dd05b3806f 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:26.9529 (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: vBM8PpjLqqG8Ly3azIHaSkfQaLCJUgUUlkT8CzVX40fhqMVPDgJzPNcQhYiBf7CEWwu4UVUgEO/iMOmkdzgv+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8231 From: Han Xu fxls8967af is similar with fxls8962af, the only difference is the device id change to 0x87. Signed-off-by: Han Xu 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 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 687eb49035111..c66ba3ecf373a 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 }, {} }; 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, };