From nobody Sat Nov 23 21:28:22 2024 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2065.outbound.protection.outlook.com [40.107.22.65]) (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 6BEE41F26C9; Fri, 8 Nov 2024 22:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104838; cv=fail; b=QMNmqU37CAAHnPsOxL8PR/bdgyj4r7s9W2d/IWzWnCDXpCq94QxX9Ualhih0+c3t7qz1PIJPAjOMuIooenu2cRp9amLljfcvmig2I2/G3T4f7GYnKVu7Z0GxmciFBJbg4aVUMp1QmEkRs11vdEh9kypE8EZNprDatzDi1MEyRfw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104838; c=relaxed/simple; bh=yKTmdgZeGX9ZNm2ZnoQZDnLmrbSo6KeIAsCYqGlF2H4=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=DPdwUtQ26PSzWnfKPcfT1iIf2+lHXK7shMM/N9FcNy++5c5xdHHf+xFjONf28HrUUKu8rVQKGYHg2SBnRaEzzKBo1pe2F8QeRNRn+X5BijnSnieEf7qF25nD0/8TRqyhxnlN7I+355QjMECY6HA3pK4S6uNCSOff8jcy3K2wNko= 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=fKy5qCi0; arc=fail smtp.client-ip=40.107.22.65 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="fKy5qCi0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ghukNqO6wErpEx4rVIqb2MhOk+eQKh9NSV757N+0oNiSQVgyWxtcBkrucaZKgByFebrAJN0gI0DeJaDA7OvUA3UkpNA4/pd5WRn9czAiXI42q7eH++S3db7hMdrQulCOzazBOWOQDGYAW6o9sY/V3vJkYiTTkqAlqmKwbpib7orpaahiXMFtDwIuZgv69JIgswVSUxBDsAuwra96P9HAfiyuPis7HHB/2fVbqubiV1ojLjIQm91+Sd1N1+Uyp/v2wsY3Q8m/TF4OY3hJ4gENH8HN4ew6vsocXQsnpBbdBJOJm606EE2fAFHCCl4Jr1oUw45kvoq40IEFcFPf1fNqQA== 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=lYICUX76/jyUsnQ76DelVK2BasLoIdiGAFMxDTnqTVA=; b=i+Pvp+XgkmekOYz/9DnSQ7hEUe3gLQOTjDK/XCNWpBFq5kZsIRnKW2kxrhAQNfR/rd5dbxDm4WG11eIvwswKQp0WvuzymuDf283NmbvHWaZ9D8KrDxJip99gGjIDMlUUPJBEjz/xAWHAzLVu9w4dp9tPm+Q+kFuE33OQlCGrd0NP8h/xQtR/vuOoH/jsym0NxxcrPBOIWKrkJ8lmwmDC3dKBzP7lBh2qy6H2Mt6MQIUxfgltCoaUqAb+JM2RJEVYcNn7T0oB1XEhtsn7xI/nZBpSvBLicf5TwT/chIzhrF4e84ax/sqQaC2hKjzZDgopLF49Mb+LgAz/hz/3KDArIA== 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=lYICUX76/jyUsnQ76DelVK2BasLoIdiGAFMxDTnqTVA=; b=fKy5qCi0ya2jeUbWeJ6Cg2FW0fEklZPvMsc3/aOluUvXJI5IiOt5riFEK+K+MQUgZXK0bivYaVpgjybdHxnzCJF1GlaRCx6Y7aV/hwGe5gNHObleBRxjRJ7JmoDIFaQGEzy0QGcjGg7XhJEYE6Fk4DwzHLDn5BDNooc18tpvprzKh9/QNhsivqNprTEF3ZtETrcu0fN44Cb+6RSoTj7ZOXAa7IqKMtxMHv7A9KyEOqObR/yDEJ7ec+Vsj5T1bqf8qG8SvKicyLWgtGepg8ZGqiDy6lFX/1uVfTM9sknPWPhrsIk/MBzZQBArMkgcstZ24t4yaOU2FfnoOb8uiT6ptg== 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:13 +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:13 +0000 From: Frank Li Date: Fri, 08 Nov 2024 17:26:55 -0500 Subject: [PATCH v2 1/4] dt-bindings: hwmon: ti,tmp108: Add nxp,p3t1085 compatible string Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241108-p3t1085-v2-1-6a8990a59efd@nxp.com> References: <20241108-p3t1085-v2-0-6a8990a59efd@nxp.com> In-Reply-To: <20241108-p3t1085-v2-0-6a8990a59efd@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=1731104824; l=1414; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=yKTmdgZeGX9ZNm2ZnoQZDnLmrbSo6KeIAsCYqGlF2H4=; b=zuI80QDliI8LcoXM1rAarjNK3g9vDcs9gOte2R4DT9IWoHCudPCNy/+4NbUnbtz3qUXK52LR9 937rR40vCwBDNZDeOKn69vjGD7+4HOmXi+4jVj7wJVApkgu8uNLo/Wz 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-kernel@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: 53bea73f-2176-4f4b-56fe-08dd00447e50 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-Microso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8?B?U0ZYZGQrZ0xkMk84aGdZY3J1Y1FETHd6a0VHQ0UzWmUzenpDWHVwcHNCb25h?= =?utf-8?B?MGZ4dWRMUHUrYkpiYkc0dz09?= 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?B?SVo3SXlrVXpCeFVtNGg5STA3ck1yTUV2S1lLZmJOREFqQS9jamFYejJ5SXpW?= =?utf-8?B?TEg4QVNjM0M4cE5vUkNESzA3UXVxNGlEN3k1SlBjTEloMHBWZHFiSXJEcXhS?= =?utf-8?B?V3kvTDJzcnhkZlVCZGdFVjVvMVozQ3htbEw5Y25JZUtPMW1KQ1lKcmtXa0xu?= =?utf-8?B?VmF1d01KRVZ2TnBNK1k4MkZmQmdWaE1Qam1tU295NG15dFFxT2k1Y0liSlF5?= =?utf-8?B?YmtVZXErVzZpMnRObW1EQkVXdVNaZStSWFV2VUNncS9zbGpkTWJGeU1hUldX?= =?utf-8?B?TmVha2tLOUNZUmh6QjYwRXdnMjZJMlhPODNtdzFkM1FIOXlPYUJTVWhXVUNp?= =?utf-8?B?MUdsVStxTzk1V1NsWkF6SUpUdTU2Zkxtd1pTaVBZZWNDRXFiZ05rOEV4Y3pR?= =?utf-8?B?QUpmN2Z5ZTl1YjJOVUs0QjhvenlxeDJvZlEva2QyNU4xOGl0RHlrMnNpM05h?= =?utf-8?B?V25NRlJ1d2dKc1VLTzJGYkdVSmpyalNoMkQxYlc0b0xJM0V5SHNpdlViRElt?= =?utf-8?B?UHF2SkJ4ZDU0U0FyMG11SXhFZ0YxSDROTVhnbnNWbnViOUc0aUQ3aCtCWmVi?= =?utf-8?B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2VYTnNSL0Vv?= =?utf-8?B?SlpraGpGNmNBaElsVDluUmZ4cVdqUVBmVFZicG1CRmVxdG4rOENhT3hUWkV2?= =?utf-8?B?S2hmc2VlQ0dSaFBiRGpzanlnZmd4SklVNENOUXFNYmFGZmV4VzJ1aVJQRVFU?= =?utf-8?B?VmJMaTdQOE56YWtKL01KQ0piNG9CT2hvcjdjTFNEeTh4YVZ2dmNIMkl5RDFO?= =?utf-8?B?TlVZdmF0NXpmM0NGUUJRR3VkM1h5UHJJOHRPbHpwZ2xhYjJBYm5tdUo5R241?= =?utf-8?B?M1pTZWlOeXhCMVNNUldpL0lHLzl6TGhweVU4L1pOUXJzd1UwUmowQUtwZldB?= =?utf-8?B?QVhDKzNCY1MxK1ZiaTdQaXVTN2kraUZNZSt0ZHRaRk5SdVBxUFNrZ2VxL2c3?= =?utf-8?B?QTRKenR1enN3TXFBS2dKOFhjYnlhQlh5Tno0aDJPNE9EVTBROUlsWFQ5cGFp?= =?utf-8?B?bUFJN2g0ckp4Si9JZDdFL3dDWktGZzlrVkFVNVBFVG5GakM0Y0tlVUNqMzR5?= =?utf-8?B?ay9QU0MvcWlUSnh6TStqTHNsYnhxYmErT3lERFlyVWhPODNTL3dFMWJKbjhI?= =?utf-8?B?ZENReUxyT3d0RGNpa0R6Mk95RHBtb0NKcXNXY1QyTDR3NlQrcEJZVklSTW5L?= =?utf-8?Q?RQ5Hqk2q8rkn8G4ws53z7WllU?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53bea73f-2176-4f4b-56fe-08dd00447e50 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:13.4241 (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: x12DuUw6mwIpwbNiTIzE2H+XswfhRCw6724rnfGyqodUc8cJFh7UEaK8r4coApnrwlAA1rRBGKQeFi30nHGUVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8318 The register layout of P3T1085 is the same as ti,tmp108. Add compatible string nxp,p3t1085 for it. The difference of P3T1085 is support I3C. Signed-off-by: Frank Li Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml b/Docum= entation/devicetree/bindings/hwmon/ti,tmp108.yaml index 0ad10d43fac0c..a6f9319e068d4 100644 --- a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml @@ -4,22 +4,26 @@ $id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 -title: TMP108 temperature sensor +title: TMP108/P3T1085(NXP) temperature sensor =20 maintainers: - Krzysztof Kozlowski =20 description: | - The TMP108 is a digital-output temperature sensor with a + The TMP108/P3T1085(NXP) is a digital-output temperature sensor with a dynamically-programmable limit window, and under- and overtemperature alert functions. =20 + P3T1085(NXP) support I3C. + Datasheets: https://www.ti.com/product/TMP108 + https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf =20 properties: compatible: enum: + - nxp,p3t1085 - ti,tmp108 =20 interrupts: --=20 2.34.1 From nobody Sat Nov 23 21:28:22 2024 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2057.outbound.protection.outlook.com [40.107.241.57]) (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 BD9F21F9414; Fri, 8 Nov 2024 22:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104842; cv=fail; b=qj3I6eeKo4GgXc3paljvHz1fYiGYPFzW/MaeMAzR+oq3oND0uwS7u3D5ig7AYKOJ6Z6XdTdIjKjCDgR84BDX40jA6hrfLKnqQ2+Sb6dPayaLgx/aKV1S+ZCJbDlpucB+XCGfbL4+NIrJcMYLu4XRyadhn2JE7E9Mhfs4b/WY2W0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104842; c=relaxed/simple; bh=7vqUo8jS1tJGYAA/RPchhwptChqKVdHqHfWjBgds2OY=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=AV8Wc7g9utpmyH9kAC7cPfJxEALSC9zune5HkTL3AxGaGAVBN5R3PNxCLKyiJCW9h2DwLATO3VsBkyQ8Efv6d86OgV6BUdVJfhSf0pFTv4HuBrlIuZwy5qu3Xop5J7We5XtHnNDB5+NmYNWcpiNx5ReHal7gDXZTihsFXFSXOAg= 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=l4ROD/yr; arc=fail smtp.client-ip=40.107.241.57 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="l4ROD/yr" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kQCOKadvvjCrpApWobOIAK+rk9H30+4C7yqdAna+h2pr7W3apSEsed5o1w7OlBTyokQkh+2PuT8rpUTE67o+cLX8d5MVyhepvytdmtoZCdhIWuqKSanxlpCRhdbdo8dxTNZZutEF6R752JLdkdKzfH2lPO3KTG1WoJNNMaJAMeH7cd3ieGcFEZdIxcBegUeT7CfZlJJJaj5dj2v3ESzLoabNLPTBgGkYh8jrZcMtIbGeatYrWmUfX2wnXdAJXuZkwTiZnJUWsMUw46IGDvFCEEwc0G25hjpBY+9mD2+ayVcarpq5TEf9DF8ENXdGQ33c5noqXuHUvCKnYUrApWpKdA== 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=cQxxB2o2JSHVWvb0oARWH5ibKPXi3Q/FGDb0iu0rvFQ=; b=exnn/gzOGArB8rIJh10KylMSQgVJfX28kxBog7WJHUTwJkJybC6mUfX2Jxb9D7xHzojIVoAu0bKGttYNAGcJVRR6eSllIu7h5vLgToKEMy/KoMBgjiB/FhmUSg4IbDcS94uaAgkVVKWtvKgQ4BZr8t6ghKJFta2MYY/+RqJPe0W3qmwxGmL2EFyc9jLiIHCq2ZVm4B0liUw8irikiQq1B9KA0pUxqZXlLLdqomeYSE+t5JrsqvY3YAAi6XCFc3CDyCMguqv5pysoCoN8dYdB+iRTBdu5TJXC9yjOle820K8Kromc1m0CeCfjBYx8t3qD9zy+Jd9d9bbar8yZXjl94w== 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=cQxxB2o2JSHVWvb0oARWH5ibKPXi3Q/FGDb0iu0rvFQ=; b=l4ROD/yru64ZeLjg6D+4n8mMZk2gGqXnn05ACMa1VN+HIaLdiLBOgkml3HPb8//veK1q6lztE3EmmxioOfXcD2wIrClTmhDNUU1QPee4gesQ9ITDAMosG2sAyJFTcPvS8pio+qIt5r0Tjccb40vHJ35Fu3A3q5Y6coiyfIy9qbYVmjVat5s4XfJT5I7Z73My6veJcRZEoPk/0eeEJsBAITtZv5+XqKN33UIUZydIFG/hRmKh8WZQq01zzMKzMX5+Owu+qeJG2hQeiTRcRxqd9KSI/psW2zJWeK9teEyxS5yH0AZBVRVGx5b0L6kWAvPU55t1WAG6Wy1wh1VBapwL7g== 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:18 +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:18 +0000 From: Frank Li Date: Fri, 08 Nov 2024 17:26:56 -0500 Subject: [PATCH v2 2/4] hwmon: tmp108: Add help function tmp108_common_probe() Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241108-p3t1085-v2-2-6a8990a59efd@nxp.com> References: <20241108-p3t1085-v2-0-6a8990a59efd@nxp.com> In-Reply-To: <20241108-p3t1085-v2-0-6a8990a59efd@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=1731104824; l=2932; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=7vqUo8jS1tJGYAA/RPchhwptChqKVdHqHfWjBgds2OY=; b=IzeN1oI+bStNzAHrZzCbhvDeXZKvG3ArBDR+V7az5kHvP7mUDXeOCV05iQzqu7DkFkc5pzTsV mpom4z2QDnrD/9eq1qguYClJtv6IS4enJd/4qt66CFLmiNDeQ9EdAgR 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-kernel@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: 99662ea3-c3ce-4687-1053-08dd00448112 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?B?WGdpNnRVL201N2tlRkhodkNXU0M0VFF5bVkvZjVZbkFLY2tQTFk5ZkcwQlFw?= =?utf-8?B?RlFidWFjeVd0U0RKQ2MxVk82Q0lzanJILzRhTmROQzJva0hxdDlKak1WNFhO?= =?utf-8?B?S1E5aitGVGJEK2grVkNyT3FRYThmZnYzOEVETDlaTUQyaWQxaC8ybklILzJn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04MB9642.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?B?bVd4NG9OMm5yNG00L2JRUjAvUVhIN0NkcElabXZIN0I4dlFQTFlKQ3QxZk54?= =?utf-8?B?Y3ZLN2RjV1FMcld1NGZkU2ZVNWwwZlplbEhBSUhvYnZ5YkNmaU9yWjBxQjQr?= =?utf-8?B?K0FMcGJZUmpLTGZWRm8yNE04MWd4WUwzdFdwN1pvR3NMQkdFakxoN1NZMDcz?= =?utf-8?B?N0VtSEFGRVVjTWxOR2o1RE01bWZ0Y0VNR2VEbUhBeGNDcXhlM2VnMHhXeGFN?= =?utf-8?B?UnNjbGdqblYycjZWbGcwOFB0eVhhdW81aWFkS09uZklhNWY4bGNUQWhvd1NK?= =?utf-8?B?dThOblNLK3RzK21lSDFBRml4Z1Z1bkh0SjJscEhVdUhtRTlWUW9vSGRyVWxD?= =?utf-8?B?Wi9QRTJCckF4dUViVFBQUXBmV3VPKzNnbTNNN2JjM0Q5VkxDYXRJWnNaN05L?= =?utf-8?B?SDdIcGpXaitVVHVGWDZiWG9jSCtEb3RFWEVBektOK3FrOVJUZG8veG0vNUlD?= =?utf-8?B?ei9QSUR3aFlCa0U1WWFYRmZ4TDFIMlB5UVZBRy9rTTlMbXpHUnVJSktvTE1q?= =?utf-8?B?cTEwc2Y1bUZJeHNWN0Uxa0tsRGlwNVEzcUFheTUrREMrTzYxZTE4NTVWQklX?= =?utf-8?B?bUFIL1VycjdGc3IvMXBoWjhLR1A0NFhSWDZFN0RiT2xCUmM3MytnakFXWXpB?= =?utf-8?B?aXJEdzA3Y0MyVXpoODlqZ2k3M3dUZGtCWUkxanRjenB3ZVVoVWhRTE1BaUpN?= =?utf-8?B?dUFHOWJqSXcxejRGUE45MmwzV3VFTGZHYnBY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hOcTVESG9WRklKR0g2NWw3VHRseWFZa1BZb1lo?= =?utf-8?B?a3FnTkFhWEd5dUJqOUJOUmtFcWorQi9EMGt3OWNiRzZsa2kzd2huWVdROExu?= =?utf-8?B?VjMzMWtWeGFzaVJORTlTTmpOZUlmQVBZTzh1aFhLdWtDZjZsTGkwd2tRTU0z?= =?utf-8?B?aU9tTVZsY3daWU1wbkhMbDBQTmNtZHRVeklrck5FVHBnLzk4SlhzTlp1S2l1?= =?utf-8?B?U3c5ME0zZHhHajlqaGE2bnQvaTRCc2RrRVVKdzdEUFFXcjh1SjYzbWFTcFJn?= =?utf-8?B?OEVUNFpEL1ZucnprdlRZUEN5Vi9oUjZoMmpNMURPRkREMENyd1FKckdZK3gr?= =?utf-8?B?NkhwbnpCQzRXeVhpZHRuT1FYeEZNZ1dHQTgrVEpKRVczOHh3K0U0Q2NOTU9Y?= =?utf-8?B?b054c2tiV1Z2Q3FUVW05VTg1WjBhdXJ2T01wNXovbytHMk9VaGR1cjhTWFpj?= =?utf-8?Q?46DA0oFG5dHCpt5aM8HYy/edB?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99662ea3-c3ce-4687-1053-08dd00448112 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:18.0483 (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: DMjZM2xMQqpf3FUR9Zd6A1ZgiZcAaJMyu5PZb1tghRFA1OtALOEXFlRjRsnROKwt9pYChJF/N4KQzhDsGlHeaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8318 Add help function tmp108_common_probe() to pave road to support i3c for P3T1085(NXP) chip. Using dev_err_probe() simple code. Add compatible string "nxp,p3t1085". Signed-off-by: Frank Li --- dev_err_probe() have not involve addition diff change. The difference always list these code block change regardless use dev_err_probe(). --- drivers/hwmon/tmp108.c | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c index a82bbc959eb15..bfbea6349a95f 100644 --- a/drivers/hwmon/tmp108.c +++ b/drivers/hwmon/tmp108.c @@ -323,33 +323,19 @@ static const struct regmap_config tmp108_regmap_confi= g =3D { .use_single_write =3D true, }; =20 -static int tmp108_probe(struct i2c_client *client) +static int tmp108_common_probe(struct device *dev, struct regmap *regmap, = char *name) { - struct device *dev =3D &client->dev; struct device *hwmon_dev; struct tmp108 *tmp108; - int err; u32 config; - - if (!i2c_check_functionality(client->adapter, - I2C_FUNC_SMBUS_WORD_DATA)) { - dev_err(dev, - "adapter doesn't support SMBus word transactions\n"); - return -ENODEV; - } + int err; =20 tmp108 =3D devm_kzalloc(dev, sizeof(*tmp108), GFP_KERNEL); if (!tmp108) return -ENOMEM; =20 dev_set_drvdata(dev, tmp108); - - tmp108->regmap =3D devm_regmap_init_i2c(client, &tmp108_regmap_config); - if (IS_ERR(tmp108->regmap)) { - err =3D PTR_ERR(tmp108->regmap); - dev_err(dev, "regmap init failed: %d", err); - return err; - } + tmp108->regmap =3D regmap; =20 err =3D regmap_read(tmp108->regmap, TMP108_REG_CONF, &config); if (err < 0) { @@ -383,13 +369,30 @@ static int tmp108_probe(struct i2c_client *client) return err; } =20 - hwmon_dev =3D devm_hwmon_device_register_with_info(dev, client->name, + hwmon_dev =3D devm_hwmon_device_register_with_info(dev, name, tmp108, &tmp108_chip_info, NULL); return PTR_ERR_OR_ZERO(hwmon_dev); } =20 +static int tmp108_probe(struct i2c_client *client) +{ + struct device *dev =3D &client->dev; + struct regmap *regmap; + + if (!i2c_check_functionality(client->adapter, + I2C_FUNC_SMBUS_WORD_DATA)) + return dev_err_probe(dev, -ENODEV, + "adapter doesn't support SMBus word transactions\n"); + + regmap =3D devm_regmap_init_i2c(client, &tmp108_regmap_config); + if (IS_ERR(regmap)) + return dev_err_probe(dev, PTR_ERR(regmap), "regmap init failed"); + + return tmp108_common_probe(dev, regmap, client->name); +} + static int tmp108_suspend(struct device *dev) { struct tmp108 *tmp108 =3D dev_get_drvdata(dev); @@ -420,6 +423,7 @@ MODULE_DEVICE_TABLE(i2c, tmp108_i2c_ids); =20 #ifdef CONFIG_OF static const struct of_device_id tmp108_of_ids[] =3D { + { .compatible =3D "nxp,p3t1085", }, { .compatible =3D "ti,tmp108", }, {} }; --=20 2.34.1 From nobody Sat Nov 23 21:28:22 2024 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2044.outbound.protection.outlook.com [40.107.22.44]) (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 2689520B7F8; Fri, 8 Nov 2024 22:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.44 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104847; cv=fail; b=CteUMQCO9rIKL+nq/czQaKfG40j5g4OreK5JsyORaPbtgc7hvjqGwjly9N+2QbezX6qCI13XCyz95ivdYinGHDV4LDlTrusLVUE86Ea3a9iQEwVc+AbQaDHAd7fzm2xnxRTFHNHHN+ff/NimTFWhYrbLndznL/VcpTezrU2KU8w= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104847; c=relaxed/simple; bh=dNC+ZQ30MlH5Eg8phImGTLf2Ic51qNcIJJM20651DNs=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=kLAu1EXEkMm/S8btq3ihXJ7O0UvjRZxuaN0skPssyhJfnuPfDPVa4O56Qgj4mTL/J+bz/LOiMeP2LI9AtPurIrlhuCYOaM70chne0UCa9e/I5MtVoxE1zlRhuhwIvc28AK3AK1HXGkPfdst+Jcv52U9aGvvEMbuUrS8So6y3IMk= 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=GelNZdWO; arc=fail smtp.client-ip=40.107.22.44 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="GelNZdWO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TPyEYd3wJ2q6rsz97k+O+OIYfAsmJ2PwFTs3+XWP+vPpmUvzZxmwA/G5jRF5VWlC8/CoNRrZAyhY88HjUyIqOajfeo4aicBXr1EDVgtG12b06gPOl5RENUBn/seohagknDD+aFZpJkg0Q1CjX6vPtC0R2t5hHpHLgFvTCOB9bOQgdXrrpUIy3iJt+oN3Mmf7UWyLzMoN1r4c+sulxp7ACzpEZARDobdSJNW2HJ6JOIi6/GXPvgG9dIiQZL23huvQrQ58hP0cbyEoIa6vGrs4o6xM9NS+onZnmj7ekClBw3k08yI/QW+VScVpk0+Fq0EOKNDGZBKaQY9paE9Vk3X9SQ== 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=RFmlONCWGpLj73XDAx4W3D0f9kD7Obz3kl1YoM4qpaY=; b=Tv08ebieWAo6iAL5dB3FLFCnPT4bA89erypGNIpwJiHzDIAsPWZ7YzVuwSmvTc090ve5qH0j8GkBKz6G8GpxiKeILUQKiwF4I+xBRqarobTygiDCaUtbR8vAMKfeyFsLjjE5hYUs83bfoK94esz3K9jankIs5yQpDBveeVsljG29XrFznGsIxupEaimZurRk3aumuwSFFRoyRUWNgItHxi/n/HSZDqmfFR6teErJqOZ4Ri7IKz8fVMoR6//10kCI6H21BivoDIf+cqWqjDE5a0zybMezFK61WTDJsoMeijnaAPIiNMZ0/dEmTvsYi7qOGm5XL4bQmoybm+K/aGmQ5Q== 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=RFmlONCWGpLj73XDAx4W3D0f9kD7Obz3kl1YoM4qpaY=; b=GelNZdWObwm/Cu+fwAfpcWoND6L6rczgN2t4ExMgT9vAhqlOD7dhLcdKKPhJR6dCT/6DTEf8YpGUe3wK00QVrkdav1BmcDBDNJXqZXPlVETBMZPWvLBSX6RIiFsKEbrn/F+FqEoqfvGk6sQ+as22d0S2StxqgkVfTiOdr1OzsS1lpu5hqvrBYp0Gu5WU3EHqYVzFXmOPKbRwbkbmsurNZTBOadenpzflBgBbWL1QaqbNDvgGPXvqF+ZyxaTcx46NMJhvyfxWHhrYJEUQEBfB6Y7uKz5+N/Sm//fxRyk4WMf1ugWoOTB8px+/jOWKW/sanhj3Sl6+Id5MeySLlT+G7g== 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:22 +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:22 +0000 From: Frank Li Date: Fri, 08 Nov 2024 17:26:57 -0500 Subject: [PATCH v2 3/4] hwmon: tmp108: Add support for I3C device Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241108-p3t1085-v2-3-6a8990a59efd@nxp.com> References: <20241108-p3t1085-v2-0-6a8990a59efd@nxp.com> In-Reply-To: <20241108-p3t1085-v2-0-6a8990a59efd@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=1731104824; l=1736; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=dNC+ZQ30MlH5Eg8phImGTLf2Ic51qNcIJJM20651DNs=; b=1QVgOqrY5wGn2COQ5CWxshxQj0TE+iEGMOb0SjFc8GyeMJ/+XyHoThOXeVHT5y+qgvcMOOQR9 0tQ14ldloaCDEzwbhcVpJjfXQk9MZQNYH53EOdFlclP120vZvUDfBjm 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-kernel@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: 7afabcf6-2289-46b8-e0b5-08dd004483d0 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?B?MVZjTlI2UlRuVTNPQlhvZ1dGSjdjalY1WndnODBLSEl1bGpUd1pzVkxtS3Y0?= =?utf-8?B?SXhEcHIzUGZBamltYXVkT1EwTlFEazc2OTVhcWRZeW9BMlRJME9PYmtQeUFL?= =?utf-8?B?UFVISnpCc2hVdDBTZ21OSGZ0M29Ba3dVRDNyaDlaUWVHS2wvaldKaVFQeW9R?= =?utf-8?B?NHRtekx3QXQzOGR1RjU1dFpoS203NE4rNDB2Tk1uZmI1VmJEc2g2ckV4RDRw?= =?utf-8?B?ZnhMNmoxYXNGOXJNN1ZQTm16bXFwQytuOTN4TnNSdVBYQ3lydjFWN1JqN1ZF?= =?utf-8?B?OG5SNGE2MmRVNnQrSnp1RnNva0JaTHhyTVZiUHNCczJIQVJOS0creHQ4WTAz?= =?utf-8?B?M1dKak5rQzBMdEd6emg5U0xkSjh6b2ZVOUVQak5wQTRYUXVhcGNKZUlCUG9n?= =?utf-8?B?SzlZSENvK0pMbXVoQ00rdDFZajBKQysrYjlQM0NkRVlPVVd5TnZQR1pLVHVT?= =?utf-8?B?djhvOHorNE9nV0F6VStsNlVsYmxYV05yWnJMNE5BOTFsLzVUZGQ1ZjNQRjYy?= =?utf-8?B?Tlg2OVpQUTVDRkxVeDliSlFrV2gybmdGR05pUGFsTHl6T3I4c1R3cUtzOUt4?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mFsQVIrZnJzNU9X?= =?utf-8?B?RUJYd0NCd3VBMFJ6R2tsRkhQNG5lWWVVTzVvN29vTkFBV2xxZFU5Qk0yTkFE?= =?utf-8?B?dFQyeVFPeThrRzVXSFgyb2dQYWJZdmpFQkk1Uk9hdmp4L0NLRUpJbDZobFlL?= =?utf-8?B?Si9BK1pFMVdmbitRSVNwRXd6Y1NnZnJzbGlzSVJmS2swQTU4WGRpWm1LVE9j?= =?utf-8?B?S1VLalUxK0o1SnlvcGxRRFVKUTRDZHhiZnRwL0t5WkF1RWkvdDRVRTFIYS9Z?= =?utf-8?B?bU1FU2dkblJvRGpackxkVzRBVGRYL0U3MWhzV21kaExhMW5WTllpeDNLOGcw?= =?utf-8?B?dzhUTFQzcmhIN0VJRklUWW41MEVoMVFxWHdrWG9uMG5vdGJSR2FrZ3ZpZVhP?= =?utf-8?Q?O0NrT2Shdr1Dv?= 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?B?ZEhRUmtVdmd6K1lHdGZvV1l0YmxLT0ZsNmIyL0h6MzdINFJKTmk4dHgzQ2l5?= =?utf-8?B?TWRueTRYZGR2b24yeGZHTzMxaGM4Wkt3STNzZTJMZFBsZ2JWM2t1ZjByMHJ5?= =?utf-8?B?Z2JCMGlwaTErMjJxZnJpOE1HZE9qY050SlpVYTFab3ZLTG9HSVhlOGJpNkJV?= =?utf-8?B?dGU4M2x6OU1WbURPR2JIMWUzV1k2TkprdmpwQ2FFc0E1UDlDcUs1TDZ4cVFB?= =?utf-8?B?UEc0OUhqY3JwUFF2WjczQzdwTnVQcFNJRnROUzVoNmZyYTIwS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?NnpYb29WU1Q4OFdFODc3eW5PeEIwNWpnUnlRYW01ejhQOWtmejd0elJodEh1?= =?utf-8?Q?rExTh6SCyuf/azDaaKQhsoyCS?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7afabcf6-2289-46b8-e0b5-08dd004483d0 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:22.6548 (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: wTtTVPUow5RusrHfJqFssMdUAubBs1tvaM4v4b/4BsTaanme0xC4xJ7Z/U4OoBs453artmi5uPjOY1uQkaDrcQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8318 Add support for I3C device in the tmp108 driver to handle the P3T1085 sensor. Register the I3C device driver to enable I3C functionality for the sensor. Signed-off-by: Frank Li --- drivers/hwmon/tmp108.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c index bfbea6349a95f..83d6847cb542c 100644 --- a/drivers/hwmon/tmp108.c +++ b/drivers/hwmon/tmp108.c @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include #include @@ -442,6 +444,35 @@ static struct i2c_driver tmp108_driver =3D { =20 module_i2c_driver(tmp108_driver); =20 +#ifdef CONFIG_REGMAP_I3C +static const struct i3c_device_id p3t1085_i3c_ids[] =3D { + I3C_DEVICE(0x011b, 0x1529, NULL), + {}, +}; +MODULE_DEVICE_TABLE(i3c, p3t1085_i3c_ids); + +static int p3t1085_i3c_probe(struct i3c_device *i3cdev) +{ + struct regmap *regmap; + + regmap =3D devm_regmap_init_i3c(i3cdev, &tmp108_regmap_config); + if (IS_ERR(regmap)) + return dev_err_probe(&i3cdev->dev, PTR_ERR(regmap), + "Failed to register i3c regmap\n"); + + return tmp108_common_probe(&i3cdev->dev, regmap, "p3t1085_i3c"); +} + +static struct i3c_driver p3t1085_driver =3D { + .driver =3D { + .name =3D "p3t1085_i3c", + }, + .probe =3D p3t1085_i3c_probe, + .id_table =3D p3t1085_i3c_ids, +}; +module_i3c_driver(p3t1085_driver); +#endif + MODULE_AUTHOR("John Muir "); MODULE_DESCRIPTION("Texas Instruments TMP108 temperature sensor driver"); MODULE_LICENSE("GPL"); --=20 2.34.1 From nobody Sat Nov 23 21:28:22 2024 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2055.outbound.protection.outlook.com [40.107.241.55]) (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 708A120DD41; Fri, 8 Nov 2024 22:27:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104852; cv=fail; b=CRGgZ3YjirnxOnM4/M0SWCbesFTa8omKyWAsrCn84azYCEDG35w6EV4m5os17EwzLHeEr6CLbhkX5FUqgZMvJgRI+zXDw+f4v7lOejp1G/xiBT+t5nmd77oWwguvHgt6iXeddYgZ/YkryUbEXpmOuDTqRaEcroebUive3RXGbsQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731104852; c=relaxed/simple; bh=674fGre16wsgmxYfHmqsN6VLMJ4S2VE2ToXL1V2Wrqc=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ONO1tbq6mR6SBf40LMDgzbVP4PnoDIc9LwPmFpdp4LJBS4RUnW/Ey5r/XvMq9qRORwLiOIPfs9Fn30ybhN+il3Z1ND0TEygK6bFqw5HVJn2l9GXHEU9kKDlYESW1iprSWqnetUVhLP2C+EQQ5IvNJCxvMdNBXBwA2E52ZeIn68I= 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=DGx9f4sw; arc=fail smtp.client-ip=40.107.241.55 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="DGx9f4sw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TD7iOAOVPrdluNYn5n/aqvGEQlXCpGnoCJ9+6h6GBFkTt8FL9kzt2LpMPd5inZAUaWI4lQs9QVdCR8mUNHydE2rZwoSCgnXdA0TWqxxBzIpJ1Lb0vvL8gBjo55NeRGEz/JZDTQy049UrssvjdQ0idC9A/0QgG5GUHhbL5AZOwp38sX9Gcet47u+s5Q8sWWiTlPX3ebrFhX5XOQ/Bj5Z/jBhzCVg4739TKfUdA3hP0nuRik9yszmUE/4qLZQxb6OGO01svgOJpSpb9SyKP0P4fQ/VJOxnEmu6UsVM1SJbtHF3nKTNwCJYHRzd1hOFgggcc11qlqIRv3O8Qd/CeVZ9HQ== 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=6awtrZQU6LkJHPear9BLzG6arSog9kzzlZX/iwhrU9E=; b=uMAiagOTlLw9GQ6daoLB2aGsRjqFHiytWGsZHzQ5pZ6UBRbg3E2VnBmVFuJirBJor2lsMRp05lY0t9n/pqBAzlLA7eM/ZCMJ9nSdnRLzvtpPvUT/17w/R1pSz4KjNCfDMaPolMJW8zB3CsTBtY1UiFuj9EBHdJvHVUDIXer7aqRSGyfH4iKIvB1jkcQnfkYqIgJ2HAwHH5QQNJkR1kPovrBEJbNotVK6Di0vivyigFGFsWRE0e8Vjyv4QcOWICSiHxx0khI+hiZqJxPq2PiiPBwZ1HcIVXkU52AMkKmne7XH+Gx2J0VxdyKo22cJcqILhkQoZM0a/1NQEuDRSK/omQ== 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=6awtrZQU6LkJHPear9BLzG6arSog9kzzlZX/iwhrU9E=; b=DGx9f4swQ0gvLNuwp2259jYbYKGahDwoS83huv4FWr5bwVFFvWuIKcMw8trqYW9p9pw81/nsZB73Od6LeMFpdKe09iUb7DMnNu1nlA84XIFlBKOqwW99T0mhM03Pr6Ujww5jfHjuHzO1Hi2K8shnivKvffG30L8cxexGlTWE2wm1BYHJmEtRerYgE2LGAaDAX7EHhMOFgSoagaw1LMFWOxgliMRJZvGLVaQ2VPADlp8Fpnb9QAxu4yrE/z/cnv+LUGSmlwc7RNE+ON7EXbfO7SYqOAo1BR//zCeLvEA61PIrJUxx++Q+/2Gg2mU1cUoIidC9FZrXnXhbF8MBQByUKQ== 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: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.8137.021; Fri, 8 Nov 2024 22:27:27 +0000 From: Frank Li Date: Fri, 08 Nov 2024 17:26:58 -0500 Subject: [PATCH v2 4/4] arm64: dts: imx93-9x9-qsb: add temp-sensor nxp,p3t1085 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241108-p3t1085-v2-4-6a8990a59efd@nxp.com> References: <20241108-p3t1085-v2-0-6a8990a59efd@nxp.com> In-Reply-To: <20241108-p3t1085-v2-0-6a8990a59efd@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=1731104824; l=721; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=674fGre16wsgmxYfHmqsN6VLMJ4S2VE2ToXL1V2Wrqc=; b=Y+MzSe2KSXsAJIxX0HXXU0jym9Aa6G+WVDcAZXVtKepayPEkF5J2m+ptVIxkadHBwS50h5my3 eg8xwnaVGLtCM2fzYxg31UXY0tODApsqPPf7UFpuqKRgXV+loJdiBrl 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-kernel@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: 604be78f-1d69-421c-b0ae-08dd004486bd 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?B?M2JHWGlkbkJSRTdDLzYxam9jQ0wrUWd2LzB5TmpUamNWSmtGQk1hZU12aVNU?= =?utf-8?B?dENodDZ2elFMSkNtWWJ3Q3QyZzZUSGkyUVhYQ0xLdjBOajVqVnFEZDRrVFVt?= =?utf-8?B?R1NSM21sMTF5STNBYTFheStsYXcyUzdqWWZPTWxUaG5nK3hzaVZWVFhHTUJl?= =?utf-8?B?WlVXVjJvdWFYMFd1OTIrZnBibGJLNmw5VEU4ZDZDcU83cXFNdkUvd2VGVUtT?= =?utf-8?B?THNINGFqMzV6REdPVEtPL3FUc0xYelFQWjA4TnIxT1NJZTBSSVVxQ3o5SmFp?= =?utf-8?B?azNSVGJTRmYreVlQaStHeExEVjRRMzdQNGpDRG1jZnlhYkYrS1JhZDZkUFNU?= =?utf-8?B?Q2pGcFVMRmRPVHErSytwM054MkJEOEtWZlNhajJocnE5bVJrT1FPbyt0clJt?= =?utf-8?B?MExqRmdGa2d6bXJtWFo1M0s3RDJDTi9IaTdGSkMxMmY3c1NjQWgyZlk0NmtN?= =?utf-8?B?OFNKbVdCN1JFc2NmWUZNaGpLSUZ1c0kvSnNvNDNveE1CV1hRV2ExYnE3ZjJB?= =?utf-8?B?TVZPamxHU1lJRVBuc2ZIZVVza2N6WHpOLzB1VU9JeE1yT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N6QjhNb0ttZmNOc0Y5aVZuWTdRVWhP?= =?utf-8?B?VzRvNXk5enh0dlZSN2tISHFLMEJ3Y0lyWlF5aVlWN0JUR2F2RXBwT2dvd3k2?= =?utf-8?B?NExEaGsxN0V2RU0vQ01YVlIvTE1iWU85UWZGS1ZyZS9DRmNjVzBuTVllZVg3?= =?utf-8?B?OEFwR0NadkVMRkgyanQwVDNlNjIrVTVGTHllZHFONW5NZ0NUdnNDeC9zL2Jw?= =?utf-8?B?bk9pNEF4QXl1SkNPSEN2T2Rjc3V0eVRncG9TT1R3UEJNelVRMm0rNWFvUGVv?= =?utf-8?B?dEJtaDQwWkVmQmMxOE9WZXJtRFdYamR3SitBelNXdUxnMEVVaHZ6V3VPcVFk?= =?utf-8?B?MVFDeUhLK2d4NXpueXRZaEI2UGYxVklEb3h0QUpmQUVTSTNTZ1VtbUk1elNL?= =?utf-8?Q?7A+Xs/D9Y8Cu5?= 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?B?Y01NOVJ6ei8zUjVmRytUbDVDMWRlVDUyNDdnajRVc2FSQWt0WC9LNEdzR1JW?= =?utf-8?B?dWRpUkJmcURDSXozZzJOQWdqOVlYelM3MlQycFNyZDR2ZVp3ekRoYVpPR2hy?= =?utf-8?B?MVBMbndVWndEM0xyVy9MOVFqaVc1eTc4ejQwc0E2eTJicjZKS3ZtZ3VrRWlS?= =?utf-8?B?ZjRvU2JockxXamZ4SnhadHNyRmkrTUNnK29NU05la1hMcHY5UWpsblcyVmVJ?= =?utf-8?B?SVdIRk92UDBoeDlOTDFJUTNucVZ0UjBKT0NwNUpFVG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FBbkdkcHgxV0pPdSswYkk3Wk42WXorckltREhod1RtZlB1UjNwVG9RRFlr?= =?utf-8?Q?I596tDk5v7jLvQyhBmwf6hScX?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 604be78f-1d69-421c-b0ae-08dd004486bd 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:27.5625 (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: ToM9KMlF4JPA4tuFZhqXdjJPZh/Lzfd7jKyfJNONMwMkw2NYPilf/3JxoHm/NwnveOoLEohdUjmkchSe1T+HsQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8318 Add temp-sensor nxp,p3t1085 for imx93-9x9-qsb boards. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts b/arch/arm64/b= oot/dts/freescale/imx93-9x9-qsb.dts index 20ec5b3c21f42..36f2995acbe29 100644 --- a/arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts +++ b/arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts @@ -221,6 +221,11 @@ wm8962: audio-codec@1a { >; }; =20 + p3t1085: temperature-sensor@48 { + compatible =3D "nxp,p3t1085"; + reg =3D <0x48>; + }; + ptn5110: tcpc@50 { compatible =3D "nxp,ptn5110", "tcpci"; reg =3D <0x50>; --=20 2.34.1