From patchwork Tue Nov 12 16:51:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13872532 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011004.outbound.protection.outlook.com [52.101.70.4]) (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 A2B792076B4; Tue, 12 Nov 2024 16:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.4 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731430344; cv=fail; b=eOFXRU++1yllpsHUMbtjjvac2WWVEIcBxSYCpgL2Dc6MJpxkyPaDZvnnLuWuH8j3rKSGrCLpa9ME/7w3dsANO7gmAEL0uNvr4+bebJJDrso2WTFBVTNHFKzH4ERLa+idyjzLfEDP4Ti8kaxQMiflq1Z4zN76H9S0WohatpkjYJk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731430344; c=relaxed/simple; bh=NLjq9yLNIMP9PSylIePrKvWOVpttIjtKVnzJh6J3noI=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=oGtASZ14YUd/hNpNSSRbCbZpnZ5/jgh4hJbVbyZZsAkw6uKmXjXYZ989FS1s6K2KLcVg2HVr9UT5AWUNmurNiki/xdqogTBueGskV+ZuKRYu0p/JHb4DBX+1se0ZztYgVK5gwV/zBrrmVUHI49sNyUQt98lTRVpdkmqct8Vv41w= 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=m4W955na; arc=fail smtp.client-ip=52.101.70.4 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="m4W955na" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hqYnRbhjLfXswc/U0gkf/Ej+1KzVT6r4LVbJJA43YkZNUH1gVhaUzjJIi7rEfeYuHiRYehiSIDsqVFHxW1phbGzwuU8KrPTLc/XVfHSXVcoxc2V91VL5N5cY3u7W8DWxROEKLynDIH4/CqXKf/Xa3zMfcpwMzw2O0drmwA1FsyjlOFVPOTEDQ3txoER1Dd3UscViWLwczCZirfhbdJdINyhWFHE0sjBJki6SGRr/htvC1jg483x1ixf1dx8f3A8p4hBgWeHNbFfL9fPOBljKzpHx7BfxizzjKFsc0IYcx8Fat9Anqyv+IN+WsSX+/hCMcDVye5Iu3pt5x68fIZNiWQ== 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=SQJWp+odirb1eo5VNqFHbxw4h3zqN1HGu+6IWZR3epk=; b=gUHdyp2umXWzSi3MBmGoIT6PEKHrhda53EKGxnHPNL3h+m4pr/NspQuoJiTC+A6y99WMtx1lUK/v+tDdbLiJuQOcFkxQqJN8AzpPhInkyrHVTkFxgHc4dB6sBdEgoQX59gyiW0aQjzQokGZuO5rkxj4cc5ldBdY5S0xoo7JpXtPwCNvjic6x7Hw/078eyz/sSFOBYWNoqCSQeqQT3r3ThUXp7dt/SyDDdt0K5ugoj3vqHOy7zh6G3bQrtRe2wG0KxXFK/GU/RDTz0yaL71MT1zFLqrUIKq1VJxbb6KDIjfS03QlNhEvgaAHBGww9hCxQZeQ+YlyHD+W+KimVGQGtOg== 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=SQJWp+odirb1eo5VNqFHbxw4h3zqN1HGu+6IWZR3epk=; b=m4W955na12Cos7v/D5iUM1d4rgRiOkz8xvndQ73FE5vZ/WLKMD4W9Y8cd4qxXeLZ/P8+96AxsccM9jACy/xhx8fJd/9DJbDMepgxMsE8BNUUnwN9Q2D6WBmdpaIAyJVCp1RGpNQyvDcglxd5dpjqHIjXSNTOJJREkZn0zKqodmzzsOR4heGUQeHaPy12PrmLrjCyW0y9seKT2ETyBxW0ENE3aMQC6pX2mZPZlrzUXet+fjXU6CIReLdlFdPNRC5llRrAUWSdg8pTPCANM0xn1uxyqr5z98q4oTuxS/UwSgJDdXH0G0aYUGlV2RD2j//TQiv1JPcbxbkNSA/7DWMukg== 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 DBBPR04MB7897.eurprd04.prod.outlook.com (2603:10a6:10:1e7::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.29; Tue, 12 Nov 2024 16:52:19 +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; Tue, 12 Nov 2024 16:52:18 +0000 From: Frank Li Subject: [PATCH v4 0/3] hwmon: tmp108: Add support for P3T1085 Date: Tue, 12 Nov 2024 11:51:58 -0500 Message-Id: <20241112-p3t1085-v4-0-a1334314b1e6@nxp.com> X-B4-Tracking: v=1; b=H4sIAK6HM2cC/2XMQQ6DIBCF4asY1qVhQAS66j2aLhChsqgSMMTGe PeiG226fJP5/gUlG71N6FYtKNrskx+HMupLhUyvh5fFvisbUUJrACJwYBMQybFrOyloY1pDLCr fIVrn5730eJbd+zSN8bOHM2zX/0YGTLDSolQkbwRz92EOVzO+0VbI9KzkoWhRjZZKEc2Vdd2vY icFcChWVOscB+CcaH1S67p+Aap8iewIAQAA 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=1731430334; l=2055; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=NLjq9yLNIMP9PSylIePrKvWOVpttIjtKVnzJh6J3noI=; b=11iyagOEabvUFe/y0D6dSyn/r8r7GXdoclapA1eVKhgoQONEDxCrNr8w+vHdD2gUGoEF/VbiE 2XWAmnDcY/hDhFQTKEX+2jyNuI3yogtr/KHuHsbNlV4KJbU/tyg3LWz X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR07CA0066.namprd07.prod.outlook.com (2603:10b6:a03:60::43) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DBBPR04MB7897:EE_ X-MS-Office365-Filtering-Correlation-Id: 7612785b-8b4c-40ee-fc8d-08dd033a5ea7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|7416014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?GhJqVhV8XE/4mhH9W14UZiIiW+ZM/SG?= =?utf-8?q?5FfJI3tUTgLCaUhmQG8seI7Jt3JlTn7uedV3uammugovGnZ6F5mKcG4PErVGqQ1Mt?= =?utf-8?q?Fkk47AR0sNCZLiwfvZ8PbmcmOh3HvFS8ssWRQrW/gFYWNk/T4HovjcQEiur5s/7CV?= =?utf-8?q?vhoY8NYiRUsK8qkXX1nYH+XEdXG4DekvKF8IUs9RN6D+JjYEP0PMye9DQO7Nq3ogZ?= =?utf-8?q?FLOs8UqRYxo9FhQOELAeninomQo7qEvUKyFhSUQZ0Dil+UfZT9WwuA/aazSFzMjD/?= =?utf-8?q?acESS8VNPQagmEeSgVSNRjVJt1LCqpiOjOIbNiHVqJAxt8E+C53Nk0+aEU++0qiuY?= =?utf-8?q?larDzJ4Yrn3EbeQ+8dPpJo9XUcEzsqlmgdF6KurX1k48+xX9L9vfi4TMCx8cLhfPy?= =?utf-8?q?3NAIEFrEurr793dy1aX5OvKz+I2cQ6BH8Hq9ETjZoFcDyEzoEutkETbQ2XqJKkFOO?= =?utf-8?q?v05Gno6AniDUxEMQhpJTpES8MVQy7d2g9pbyH2Us2CixN1uSyiKWT2vKS18TkcGSS?= =?utf-8?q?i/ujGorljwZ3w7D5Qd+XKX140aRPYWbb7MnILk7WawazzBtNbTPzHCNEoWCe3Krnt?= =?utf-8?q?0IYEvoZkqOd8ffblB5nUgLiBijiBs8gdipMDBETSW3r3uD6AMt4SADqVxXeEw8ULl?= =?utf-8?q?B5ClbxbIQA9a9adQizyxOAc0dk34rTI2c9eqqt18Hk44kiW7jq/4JDGeg3oO7Lwo8?= =?utf-8?q?eqkbGst8ZgpnvSRtfZ74TXmOo7xaROGlE7pnqzLZYyj0/hxhet13zQpRtCqg3GsVg?= =?utf-8?q?BKnvDIjw8zStKQfwUSy7vCLbIF0f0c10EDKWhekxtzxHsucqG4kAV6Ke34i0cBUa+?= =?utf-8?q?5z/GdZTHpipok4s0GcwFu+r61FPorwGmDy9Zea6ODUUQnSYsZ1cwEJbG7q8BZu2S/?= =?utf-8?q?ZDjUQMyrkfJavNmoJo8fdCfL66mR+q8F04dhGNNUDTsZ4+GBHhRwNPCv5tB0MXYBM?= =?utf-8?q?TkSxGBIZGso89j/1qdoIR8V3m2FQsyy02ZtQCjOLEtZZDUl9Jeiw3f/w+Y02u4TH6?= =?utf-8?q?pcHYXMK1xsMGOF/Zr+KX4Zdh6NNy/DKPkjBEll6xtH5CQyxwZOjoxAkdMw5t8RctC?= =?utf-8?q?JHvxX5g77PbyvHViSN3SC5VIsVwk2oeqWuiqr2DU4WaX+FIjXre8j7d5nyeNg7w5I?= =?utf-8?q?AQGZNWt8TqWHJHP3I+6bJ9P3UBP/qjIBYx0i55CwwZNnnJcIyE6FT+0iWrZxfPoq6?= =?utf-8?q?cyPe2dBC+LOjkJlS0oLabFsBoLWfTHgZ3vh5hEi4wZLgTnd52katFkJr8WPQ4nzh9?= =?utf-8?q?a4/C4QEl63Gjr6TVTTfWcBH0+r3PlTRSNACcKkVCYIS7iqRFSc4ZdFg1HRAKKJd+R?= =?utf-8?q?PT5DXSVMvCVyk1S7wv3e635xQHpmhZXpMQ=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)(376014)(7416014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?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+AEHBBbYUDbHt/nX5+1tHRksf?= =?utf-8?q?hiUiM5e3Tvur8xJTPPhU39TI8dpra45lnCyhgBHscsAcNAoyKAFiiJ+q4RvWwIDY3?= =?utf-8?q?+h/73bxpP9YNVR5Jzwqkg6diSnrC20tk2k28NADIl3+HYV06jcZYF5nlAjlGqbVoT?= =?utf-8?q?hmiOIgsHw51FYR2IMLqEbOZwXjCaQ3RNHtq7sbzxojgDPiNYgUVQemIX+OvWfuDfH?= =?utf-8?q?bR+aEWb1HNy3WhfHCvE8yZ6xZSYhO+h+nrV4qWvQZnAAjOIugP2T4MDpTZm306HYx?= =?utf-8?q?flujIN6wkQh4u5y//KWJXz9oUmiMcVZbu3mJnmZnS8foYyK2oYWOUMuXsUCZ7n5uh?= =?utf-8?q?sRh7NfxwfrdToyr1+g3l8wZHa0/E8q6cBOfsc7WNcraQmdlpcrUjqKRo+jyDfdxUG?= =?utf-8?q?w7Qq4Nzv8e/GfwkjzZ5c63nxLrT5GOq87o7JLr+1KVGUJh6+Qq9VFhp32/wT9oNZD?= =?utf-8?q?mXGAbRbrIHUIwG2MnFlV6IM8OPGa+QS+TjauwAlHZLCqi7aRQmtrwJdH9FcB9H1Nk?= =?utf-8?q?EjfzgXnuayO8I+IL6dp16Qf3Rm9nIiW895Jwtd+PBXnUAxf4e+GBWo0LPScmlJAf3?= =?utf-8?q?J8Zvj9GPjKnFpUObDcDGvT6enrI7BKV54977oUxU45MbR1U8ATMTRGE7wjYLqsmE6?= =?utf-8?q?v4JmMBwRpnLj?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7612785b-8b4c-40ee-fc8d-08dd033a5ea7 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Nov 2024 16:52:18.8789 (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: j48R29uLkUdAa79ppY4PS96jKHPPdbjYDxDmyTLt4LsN8oFxyMwKneObP5p6xnHXjGghmrTeuQ2IeV/Y71yQTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7897 Add basic function support for P3T1085 temperature sensor. - reuse tmp108 driver - Update imx93-9x9-qsb.dts To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Jonathan Cameron To: Lars-Peter Clausen To: Shawn Guo To: Sascha Hauer To: Pengutronix Kernel Team To: Fabio Estevam To: Jean Delvare To: Guenter Roeck Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-iio@vger.kernel.org Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Cc: linux-hwmon@vger.kernel.org Signed-off-by: Frank Li Changes in v4: - remove first 2 patches, which already applied - change to use module_i3c_i2c_driver - Link to v3: https://lore.kernel.org/r/20241111-p3t1085-v3-0-bff511550aad@nxp.com Changes in v3: - Change cover letter subject - Split compatible string change to a new patch - Remove i3c/master.h - Update document about p3t1085 - Link to v2: https://lore.kernel.org/r/20241108-p3t1085-v2-0-6a8990a59efd@nxp.com Changes in v2: - Amost rewrite and reuse existed TMP108 driver - Link to v1: https://lore.kernel.org/r/20241107-p3t1085-v1-0-9a76cb85673f@nxp.com --- Frank Li (3): hwmon: tmp108: Add helper function tmp108_common_probe() to prepare I3C support hwmon: tmp108: Add support for I3C device arm64: dts: imx93-9x9-qsb: add temp-sensor nxp,p3t1085 arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts | 5 ++ drivers/hwmon/Kconfig | 1 + drivers/hwmon/tmp108.c | 74 ++++++++++++++++++------- 3 files changed, 61 insertions(+), 19 deletions(-) --- base-commit: f3272f4a58ea775b71067cf0f31e3e29f7fb19f5 change-id: 20241107-p3t1085-fbd8726cbc0e Best regards, --- Frank Li