From patchwork Fri Nov 8 22:26:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13868999 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2080.outbound.protection.outlook.com [40.107.22.80]) (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 E84811A9B51; Fri, 8 Nov 2024 22:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104834; cv=fail; b=eyL8pvaB3K+P/MTA7TGAa/9D8dK+1oHxAD3LIeEiQrEsCZ/+btqiyDwlMkZbysj1kBHOMcvZ2EMcOMpW9ridbSvfcO+Z5burnnIel9ZCV7TIGrOYKvDSPGfd0+6dRn6Bn0uvMvZO1sDHrdbBNTRkXX1rKJvu49KniA+60z1P8Vw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104834; c=relaxed/simple; bh=BLHxuTpkG7dbYt5XzYkJ0Yu4vp5qkdQIMDw2s8yg7oM=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=I+Bpa2oX/nak7nJs/k8rdagfTL2rJzYSoWnaj/uHeJ2Eo+FsOjrPixGs6wEA1yfNvDq8dOyKezE2cY6mlPwgiNOinoSqezMVbQ7Cg0D/SpcGwnCKHC/ITZ6mJ3DfWIzPq2oCcO7uFNlFZ/ILPhYFBAard04XDawmGQ9HV6rZ598= 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=EtRdtVJT; arc=fail smtp.client-ip=40.107.22.80 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="EtRdtVJT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=O13PNJrQ6a6/vIngKY0hF/ubxk2YNF4YE5vOwyps4L/oOJi6EjPfCkNsqGuEfNDUTdKcTcM45t3W61RQJMwV6c6yUqRCSzA3FGLx9RKSQL/j1eWk+NQy7oWrOh0JVWG4BVx8AvcMTN0eeZrS3WZgpOnn47CmCROJC+IRuiBuxGZ6rnigZECeQ2oI09ozLZAum/qbIpL098Bdn30WS5MqsQ+BhrSXXrw1+aXotg3+unTKz2POynZvx3xFW4L3L4I7Hydc4JAd4nGmQfMGZROlnOox5r4OL6jaYcwMK7PdVj7x7eI6HUxyQsfsPcPOyf/+9PsAVZQjPPDpSbaL2Ekylg== 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=YUWUjvklvmhUM4e6C1cwo9elC3NLt9e4u0YRiU7aHp8=; b=m3UG6tcvEcb+6cy+NnQu25EQZO/Or81uLr9db8R2BzxspXjqHoD+a/4K5bt+6qcxz2Q0D7XDyT8HG/V9lWe+0Q1qA3wPaFJ9t6y3d19Ttg4eTgsmBsJvkF5Nsl2e+eL/i2WQ4uxvT+6StuHTBewluSJyewP5YHnjqIevR2VyGnKVpQ234ufx7mxZL+XMIRU4sL9eDZMpfP9/QsIcWY9675NtgZfMTnbxsfsJ+CnviWcTJoQTZbX5ojfJ5ZmjV4+BdxjI/lY1pd1W7fZGLA7/wyQWtcy39GjWd3kNctcLmEjtT7AUGZUilBldcmuuVAKlBvICrg0MWYodde2OB96rlQ== 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=YUWUjvklvmhUM4e6C1cwo9elC3NLt9e4u0YRiU7aHp8=; b=EtRdtVJTO1PbMHd7eZGyK5L9g+O8gmrymhJ0Ll7mBB1VbVnhjytPZjTk3q94ySBxf5GnZGxAsJZfYwV76BCAPmhSrrxMVpnjusbrw13VM+SiKBYcWWszN5n+lKrgcO8KKQWsF9WtQD5ldNl44jxqoAg255ORO2uF4cWtocglS/mvMGi2StQCR6FRkauLhFt8CO7rH58MU9MVFVcOZAQiLeQWzg8hdF2a9sQIkRXgKq1osBkgNEk33hpAbA/Enfefh1vqACkLPRhi/f0Q1248zAuq6VHAJxb4eHzsoc2Pis4sFJgmNBgdDtmZad/J3NE8D4WZysp3XDCYHYCq5s3zQw== 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 PAXPR04MB8318.eurprd04.prod.outlook.com (2603:10a6:102:1c0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.21; Fri, 8 Nov 2024 22:27:09 +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.021; Fri, 8 Nov 2024 22:27:08 +0000 From: Frank Li Subject: [PATCH v2 0/4] iio: temperature: Add support for P3T1085 Date: Fri, 08 Nov 2024 17:26:54 -0500 Message-Id: <20241108-p3t1085-v2-0-6a8990a59efd@nxp.com> X-B4-Tracking: v=1; b=H4sIAC+QLmcC/2XMQQ6DIBCF4auYWZcGsAp11Xs0LhSHOosCAUNsD Hcvddvl//LyHZAwEiYYmgMiZkrkXQ15acCsk3sho6U2SC5vQnDFQrsJrjtm50Ur2ZvZcIT6DhE t7af0HGuvlDYfPyecxW/9N7JgnN0nVRXd9aq1D7eHq/FvGEspX+mn4A+cAAAA 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=1731104824; l=1682; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=BLHxuTpkG7dbYt5XzYkJ0Yu4vp5qkdQIMDw2s8yg7oM=; b=Ja3Rw8obmdjQFiM80qvShFyeQrluBETbHoWK/ZiUJvmPLZXKVMhbm1kUjBghtnfZP9ltrN6Rm 3Liz5hSSwMkBLQn0a+ORsIh221DiA4++6DEZkJIdqlL7I8w5jVBXeKJ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY5PR03CA0028.namprd03.prod.outlook.com (2603:10b6:a03:1e0::38) 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_|PAXPR04MB8318:EE_ X-MS-Office365-Filtering-Correlation-Id: 6566fabe-82a2-484a-337f-08dd00447b8e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|7416014|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?tVuE1CrC/fL8wtkvzF4WOou+u22AWa4?= =?utf-8?q?5Qe1iGKFMKEzUMA41ldQsUB89pQzbhOZ0YI6Rcp3KKuUEE8hpfvUTyZAlNL7sLm6p?= =?utf-8?q?gC9rS4AmnZmg9CCJC21zEvpTt6/M6iJRTzqxwVoBp8Kq0jPKgfXsr5C44rFZSnfcy?= =?utf-8?q?+nn+PDvxb9mtd+X+pbp9iKrQUL/YvAAuUMNOk9K06kn+MVx1WKGVftiPUqlyS4BK8?= =?utf-8?q?Oo8z2uEQMmE2iD4TSmRap83xn7b14zzjMn3fJSHvuTi/0VKcwX2+bgcne/tCSbJis?= =?utf-8?q?t4OJhkQBc0rEpoRzKx1wkZscr0DuIuZJNymvmJ0imqWFLxDsf87v1D6GINgpF1IAV?= =?utf-8?q?1XCdTvY5qEXkFA/kvNzHxqc/IGb1dCgK8diuqVt8luYzxAN7x7xd8nEDmcRRD8M6k?= =?utf-8?q?7nKMhIGpW/y91o5xXfejeuPjUfWj7CyoXCW9kOxGqWV80lAuhMDvpJ2OJYwQKFbx7?= =?utf-8?q?l2lX6yTvg7yvMwy9EVwoB36n3GWDoBgH1+ij7s3AJy986TRn2IPTjX6j6n8lGHglF?= =?utf-8?q?E3Rzdd85kMgc2HUXgMJF6aaYx4/Tg0KZpvtMrhptYoeHwM43BlaJ/WhlyP4YBHji3?= =?utf-8?q?WJSmAorGarTLjHFCe/7QsM0aap8xUMN42Ay+Hu96GeT9MXnhP053xEr4yfHWonm6D?= =?utf-8?q?Dgd5gHJgdIQdask7MwPnMB0BuPriCf5yyT2ZnWRerjACZyU10+A1Wm465PjGbhcqZ?= =?utf-8?q?P3aCnULpOVnyP8PCwDL/Rv0tNiI9bwm5aaFv1QFcCiE+5C2sIlkS1/v6a0HTbQ+Hv?= =?utf-8?q?2KeMTnz/KmKBdGxubrFvraUWQx7tV6v3gerVTFajKyoA8UUE7zPphOvM8Lk/rGHJB?= =?utf-8?q?3HPbGPXTXLTGjDTW7KvhHxW/BfL/nlEdI3x97mLrZxCgWltUvg3acmFwf+an0kgC9?= =?utf-8?q?g/FwNz+RBLzyiT97/TBLfwkVFJdhZNaqO+IT+Jj0emVUu4oluRFslUrIAFVF2hAaL?= =?utf-8?q?Eex96JZyv1Lr0y0gfdcSoKRuqY+X2T/W4gdyGvQBLMiOy6uP1HcBkli0hWfre2mgy?= =?utf-8?q?ZiYsjZsQiEVqmahANWPHZCp6JGELiQh+d7JosDqpbyfFD+Qgx8uFXPnxnmpMXlgMC?= =?utf-8?q?Qf3cRNBm4XTWyjcfwpRU03oj3dlQxpDW+64VQ/OOzeZEDAVl/trc+cfiAiFevCGhH?= =?utf-8?q?gq2QmyuJ8eU3BYoo732uE22UO39/L+jguk86ZUaP4n5+xQESQDPRxFfO4RS8hV3vv?= =?utf-8?q?O5U1hkwHqA3BPIRLmvKUstAGjBC8P6DmZdrBbVyUw8uXa7Y4i2Ydl9Mrc8d6Dq/dz?= =?utf-8?q?cnbIYAiHXnrU0c7crpA/AzIlweVacxujhSVa4MJW64y5wraPl3jaqgOt0V5i+mrb2?= =?utf-8?q?k1j4BBXwRghW?= 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)(52116014)(366016)(7416014)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?d+GtIc09EGD4dUklXCO5V9P+HtlY?= =?utf-8?q?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4XHs1NRM5iCWyJzUPc/6MBQgZzbc+GK0obGaJO3Ydui2R8dgL/8c6ofCEF?= =?utf-8?q?6kdJ9dbUA3HpPP7U9KAbLeJlaXqQENmVxOsWmHYlioRAXMX6uXSK7GTGbG5By9A/n?= =?utf-8?q?o1SzVg9urWXc8WQ+whLpAA0yHve0j28JI0uKYdmc9uGrE8luvB9xgLYo7/ZPzowrA?= =?utf-8?q?Z7uIhp7fQbppe9HDqpNizyd5SZTAO3/hgTREtROBmq/fBt4baJuI/URQqYOS5cBnk?= =?utf-8?q?wm6upEh4VputawyqCzA27CsXlAdy7j4ieM7oR6UxNXC/lnkTUBpA0H/VGrzilvo/F?= =?utf-8?q?IlVv1oPY5fhASQDxuqqNVjaJh/M7BOCAMwJaDdYyrIBpfopSWY3bXeoKBLlu/0dpI?= =?utf-8?q?HQ8u5/LUV+3FNIbDcRN9g4RC+cahV654clBXDKCowHaw6VImqksfNCzOE5zxEJHwa?= =?utf-8?q?SevCqSw4g1XlZJpjElnCDsw7rlnkrMQmBhmx/MpgRikIOBDnml1Gl4YnX40fdK/fj?= =?utf-8?q?jhrf+SAUbASfi5DFgAY9YboJ5kDSGjW/fGeEKVQK8SXimQTCOrVvgdc5iex7JciQQ?= =?utf-8?q?mrBlyo484Uuu8f/1YokUn3NRgqsOIBT1EgyoCgYUPeXT2ICp8PDyCtr9dTg3i/Q3g?= =?utf-8?q?SP50lP7Tdm4f?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6566fabe-82a2-484a-337f-08dd00447b8e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2024 22:27:08.8050 (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: KgVk4/ma18OUlkVAETxl+082iL434rEmGlDuhfDcGsSo/A8DzIYaCkSXXUxJUiBBZ8Ct1DG1DEBq28xwb/EcFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8318 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 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 (4): dt-bindings: hwmon: ti,tmp108: Add nxp,p3t1085 compatible string hwmon: tmp108: Add help function tmp108_common_probe() hwmon: tmp108: Add support for I3C device arm64: dts: imx93-9x9-qsb: add temp-sensor nxp,p3t1085 .../devicetree/bindings/hwmon/ti,tmp108.yaml | 8 ++- arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts | 5 ++ drivers/hwmon/tmp108.c | 71 ++++++++++++++++------ 3 files changed, 64 insertions(+), 20 deletions(-) --- base-commit: 74741a050b79d31d8d2eeee12c77736596d0a6b2 change-id: 20241107-p3t1085-fbd8726cbc0e Best regards, --- Frank Li