From patchwork Mon Nov 11 17:31: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: 13871028 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2078.outbound.protection.outlook.com [40.107.21.78]) (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 8661E1AB534 for ; Mon, 11 Nov 2024 17:32:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346369; cv=fail; b=a67fUvNCySQP4KQrBMOjZLDhDTnowAsJJ27NNgMne3Y8puigyjJBezEGCQ5w9chF/na5uAFHR39n4F5y7ISfczGNbjsRwAAZTPhNJsOr1fqsHqZrzbWAOQVcLnuIA89k1QJwjgjdUpwgVzodHwHtOjf4tnfvtv69qRxtlbxARuQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346369; c=relaxed/simple; bh=TiawW5mUcZ1qwCQdS36zCJKhOJAtTITu0JJSFb58/60=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ql0tC6nZyXJvsDYk76+je1AB3cvmw+XUhzU3V54c7PNIAZOBeqRlATPKxgzl0r3o+HqLfbS0+3mnht19BZ7v6a/jmDJeQf/1PY3XmGhF8PqflFZ3Hi9nc13v+onWkNz3tQwaKYANVzojp2JcSOVWxQeZ6aHSmLAMyWvNlApfBsA= 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=NVoI5pMn; arc=fail smtp.client-ip=40.107.21.78 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="NVoI5pMn" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PtgkJ7NuThufSm9gq3fvSf9TnlVGMqUkTLvxs87CLyd+M4ayK1afzXj7FKKkd9r9+nOjrbfeegQt/6RhfdHwj/KdUBwIglMglYYsDCqndcBdjuYDbRW8T6b6Ij6SmO7iS1WJjci/QSqIwtrJSQmlmPIb41sENtSfCADxdMOXnn8u+8JrwmVvFuOSRMA8EL79kHBH7zzjUSvTeMG6F7NcPJqdHnbZ+DqoymHj1OCWRK3fuMMhUFH8LfW6r/WDjzA2QWDK6419w1K/z9YrUokKVH/nTJqVPbskVhCsddKMqL1VMiSVc4hFrQa2EmdxuAKwPLSg0PoX/0IGnV11OWKDNA== 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=8PL3sfBABFMHxWVX8328EQ2AURBXo4YGLVX6+XvSrAo=; b=nYSW8WFkdq0Oo0MjLOpzvQ4RDtROq5kdr43CGahca6qOUsc0QtPLwoH70YZB8/2lIOIzyA8QlC1PCFJFMNtosTWrQG1ba67cUfqgRS8T8mAjiVZzgjnsxzb0R070YGXZhJhxqzFw58zyqyFSjhkXl+iBTGJww9WnN/Op3a4QuJX8+UD2EldIxKyOtB1OTo+IUo3r/VOZzU2L5v9T+qFZN2g30oOse2yvzFCnzr1SIu2xJI4clcb2jKEM0KFN1ud3v2w/TUy20chCOM5G2qNE+VsWoXsKcnPAfM8pSjlxfxuNldDH+xQ13gV+cAyJZ+CUlNf84/dWrf4mje0auOKCmQ== 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=8PL3sfBABFMHxWVX8328EQ2AURBXo4YGLVX6+XvSrAo=; b=NVoI5pMn8RbsSzuWM43xalVHoDzej+MeFWVjEU1uwYJBd1mFguCq/xNEIbzSJz+IlfdR2aWqOaqZCTlRODG0o/Mnhll+2rt6CntIqnjagGYv2zzXOgKr0cCKtENC5Accx6uaF3y5njrnHfT2lKwxfsf9krRmPIwfYD7L1ucCprLeJ5oJwXMpeuy+z8Tn+sAusy0a38R8cf5Y/S9McN+fKueBiKDGmD+x+2nrPJT1DsIa2XPqoij9jqma5KiNCP01EjtQ1fM+WnmtLKoNejj0pNfEvctI1sqYy7kf6GjMka01fxs7KuJXatk3xbzsmuYCUoXqiIoUEtnnzd7CiGBQag== 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 PA2PR04MB10086.eurprd04.prod.outlook.com (2603:10a6:102:40d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 17:32:42 +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; Mon, 11 Nov 2024 17:32:42 +0000 From: Frank Li Date: Mon, 11 Nov 2024 12:31:59 -0500 Subject: [PATCH v3 2/5] hwmon: tmp108: Add NXP p3t1085 support Message-Id: <20241111-p3t1085-v3-2-bff511550aad@nxp.com> References: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> In-Reply-To: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jean Delvare , Guenter Roeck Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731346348; l=1810; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=TiawW5mUcZ1qwCQdS36zCJKhOJAtTITu0JJSFb58/60=; b=RDEWCVGIbo4Q758cjd6eCJtbIgjm6KncPtQy3WvxcVP+QTpi5n4uVPowL+bORR2JZlCRmYIgh preu34irbY9CNJL3b9fUa1BQi9Kx2wj/Od+nBMBMRnksNL4g8VXUZXA X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR01CA0044.prod.exchangelabs.com (2603:10b6:a03:94::21) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10086:EE_ X-MS-Office365-Filtering-Correlation-Id: 6200731a-30ee-4cb8-0510-08dd0276d8d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Micro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AemQgaHIEWn0EaRu73dlXrNdE4u5f29PUwVj7d0sDnUQuRLo8UNl?= =?utf-8?q?RV9dDp2AIC9amJRVEIP+RNEhq66jtQCcoXPm8TZIKK0dAXAjIEPvGjFSTCsKOQZdx?= =?utf-8?q?uzMtsUxQbBaY1ZWcgAEsZJW0UitCLQ5iqaRcrIyL6nhlcuoObJxt0WOprAwqn54He?= =?utf-8?q?VqJD/+h2s9Xzo6lPrF9M1gP2WZm5zp/EWd6F3IjiBUiQN4Mu1z3yK3Js31AJsJmbZ?= =?utf-8?q?FbapxmCGG/r8aRCnQxCPAB+vh723ljs2A/904LsuyuWtev2tv1RW9ll9PxotLD2uf?= =?utf-8?q?6+QJdbJXeAiY1/vGoVG7PKI2qY3Ugg5t2NV5Dc1z9tQ34Js9rU/aB+LpfenCuva7S?= =?utf-8?q?9qJg2S9OehbSyh++zR3Kcy4RhK0IvhIyjnwvlT+Rrw8dot+ULA3zLKAw8PY7I0HyY?= =?utf-8?q?GczWqFoXCSLo62T8bb6OcGn/eLoFQaSKcFgDPPNX+qBSjTyffH1CQqtofkW6ny96C?= =?utf-8?q?QO+ZYkAQFF80olP6QkT82BLF4l087ouATw=3D=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)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?jrYOYBcSPZ88yf1FpYGdoonKKHc5?= =?utf-8?q?mO8MesSymXRet+aLhok5UBk1SfqkkDucn3Ne/ka3gM7dZZbQLizhQRYffHdMn6RAj?= =?utf-8?q?D52S1uxjou1K8IJzubRjaYPjqCyc8BO1Z2Zw2bZCvw2opMXa8BE6BcFA2HKqEwleT?= =?utf-8?q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TVSfLu83ifpAbzEEu2a/NQ6dVFibQEaBbqFDgd1LHEVDN?= =?utf-8?q?leQbv//2hoorbI1ZOO0CIJl/mnYCS7AfKg87wF6Lln00n9VyjBWln2/x5fHg1TvAI?= =?utf-8?q?nrHgozlyFnP054RUSx/XvRKn34MtaOvgOt95Wj0e2Tr+s7H3tqGWXoSk7iVOqBkz4?= =?utf-8?q?zP6nATt8VsMua1ImNFxLlSFViraWvjoUcoMLoTLFoevu9yCvJ4CYKm3ni/zKpfIg+?= =?utf-8?q?0jP5qqrAb7q5MIlKVoFmeYG4lhbrh+BDVakIwutQS3hgQPPF6aNrOVdZcp07tK4VE?= =?utf-8?q?HwGzQkufCCNqRU3kWR7TdiTXG7zETpoxN6/MhTfFU91d/GfOfxB/NOmL8OK0ajYb2?= =?utf-8?q?Cs0tHb1h7AOjUi77iHc6UHL8oAcIujLCcsTyjYFly/sF+gX0IgKZvPb8FckUQeAmi?= =?utf-8?q?59nNRn3CLZHonTAGnqZxMBqRTOUNOhCaat4sRP/V0q1fSJ8OKBrdbhFAdr5VFPCDi?= =?utf-8?q?hn60HhQjhrQY?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6200731a-30ee-4cb8-0510-08dd0276d8d4 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 17:32:42.6917 (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: OSi6VE/WyzpstP51Y4Ak4o3Lfp4Sb91NAaga/mAixP4QNeP6EfWmely5adgmvMYNvg8VgSxrmBRiPdWvoXTHqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10086 Add compatible string 'nxp,p3t1085' since p3t1085's register layout is the same as tmp108. The p3t1085 supports I3C interface. Update document tmp108.rst and Kconfig's help context. Signed-off-by: Frank Li --- change from v2 to v3 - new patch - update documment --- Documentation/hwmon/tmp108.rst | 8 ++++++++ drivers/hwmon/Kconfig | 2 +- drivers/hwmon/tmp108.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/hwmon/tmp108.rst b/Documentation/hwmon/tmp108.rst index 6df7cf1b42f49..bc4941d982681 100644 --- a/Documentation/hwmon/tmp108.rst +++ b/Documentation/hwmon/tmp108.rst @@ -3,6 +3,14 @@ Kernel driver tmp108 Supported chips: + * NXP P3T1085 + + Prefix: 'p3t1085' + + Addresses scanned: none + + Datasheet: https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf + * Texas Instruments TMP108 Prefix: 'tmp108' diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index cfb4e9314c62a..d43ca7aa4a548 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -2300,7 +2300,7 @@ config SENSORS_TMP108 select REGMAP_I2C help If you say yes here you get support for Texas Instruments TMP108 - sensor chips. + sensor chips and NXP P3T1085. This driver can also be built as a module. If so, the module will be called tmp108. diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c index a82bbc959eb15..b561b452d8d39 100644 --- a/drivers/hwmon/tmp108.c +++ b/drivers/hwmon/tmp108.c @@ -420,6 +420,7 @@ MODULE_DEVICE_TABLE(i2c, tmp108_i2c_ids); #ifdef CONFIG_OF static const struct of_device_id tmp108_of_ids[] = { + { .compatible = "nxp,p3t1085", }, { .compatible = "ti,tmp108", }, {} };