From patchwork Fri Nov 8 22:26:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13869016 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4254D64097 for ; Fri, 8 Nov 2024 22:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lYICUX76/jyUsnQ76DelVK2BasLoIdiGAFMxDTnqTVA=; b=bs0UhxiSOMrMUQ6GaKIxRalPeB lPn5M7ZI3Z5RNKkS7ld/8tRQVw2eZebpbhghyI5KTlKCZ8ddLDApS/3O/6vy0YBCGCOrH2bXGAgl+ 0HFTHo8IHRMB7bFVwJknlOowASHXhDrLyGSnaZpRMKn8j0iX6/2U26lJbHnNgBh6K3IroeDuN5uIg 5O4hD8vw6HJti1vjOVmj+GmrxUYpZ2e4ZamRv6BC51W5kz603HhivP8j9pha5AUWkraYK1e2PhIAo VbrKE559AnBrgb2x/QPmzPIQlHt6PSg2ti/R62L99ebj5pJgi6/U1uunsfgK+VC6Ip6hk1sRch10C 5ALgA2cQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9XVE-0000000C8dI-3OIM; Fri, 08 Nov 2024 22:30:52 +0000 Received: from mail-am0eur02on2061c.outbound.protection.outlook.com ([2a01:111:f403:2606::61c] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9XRk-0000000C7zx-0Yux for linux-arm-kernel@lists.infradead.org; Fri, 08 Nov 2024 22:27:17 +0000 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 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) 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-Microsoft-Antispam-Message-Info: =?utf-8?q?H6o9oHMW8FcUfkZ8jAlc8cAvNik+7V4?= =?utf-8?q?PVTm64G5Frve3bbX1nY32AyOAK+sHzzYK3q+qClF6RjbBdS2REicUSvIZBB0/YuG5?= =?utf-8?q?xpv9L9HquRXhoFcTLKhCvpcH2uFuCR19KmCHQH+YnV70M209hgFOsjRTr8V08sAfZ?= =?utf-8?q?6T4wr/cE0gRisg0G+sCoU3o7BjfqZLhIzzDydiaUQzJltdyz4b8csEqqr9PBtVzSN?= =?utf-8?q?P2W+IN928b6O8T0nzFy4vQW4A6EL89R9pLDv6xAkZJxthxWB3APFQEeX08V+Xar7c?= =?utf-8?q?fj9Y6J0jZKXxgiVOccsQ6QvRhMgAd6mYJZFKEJV0YJWvwG38GHBGynuM4MXbpj3Ha?= =?utf-8?q?8IUzXzjSSUsg1KiNS4DcGYoUSRVxpMCrFCSNqLfnANoVX2UTZC8P/67+rqF5x/p9K?= =?utf-8?q?aHLfq85F1iSZ2qWy9J6Lqa0Q7QXIBtwVr2P1JN9npgiAVJ6CI2mnn9WLAxkCKY9If?= =?utf-8?q?TRFdZQDq3laQcmLEcnmaDqOo3I6GC2qt3rvJOdG5cp3txurWxFaHduD3i7j25wd9O?= =?utf-8?q?gDD8UC6/ats5xzgeJUM4XaDPwCGWxKiNdCBB01G3phUNa8XMeCQjx6y9fquyzCQvl?= =?utf-8?q?AlsqlsYIY0llvm+Cog51qNZBbK1DyrXDE2UNYXTG0nvuEXHzcT4epmtdjUJVsSrqB?= =?utf-8?q?lKtqg8dnLrvJ0mVjsKHzGR9p2OMSAFLJQA4s7LwHBUW2gwDf5a4mtTaNQMlvqckW5?= =?utf-8?q?K0soOQ1K9BegTMQHKHixtVgj/WrcejUZPw8QhWi/vSKG+RMOxchbwFCedgclgRDd5?= =?utf-8?q?HwNgMCgBHyjvGODaIpJW+QpQyHdU2H7DM613U4nAYiTtO0+AwhBHk5rLP74LREM1U?= =?utf-8?q?sxx+QHEL7ySkwEuW66cmWP2JQgZfiDX831QRNElkDXt+Eo8k6y2bYUm5QbRahJFu1?= =?utf-8?q?GMG4p2sIomG2Vt6IrLY1FUWsNG/73F6wbu5BnJwGqV2wBL79ZhtgHaXhBQeo8M4mE?= =?utf-8?q?vo248u3t1nTt5Zo7ko1/dCp8pr1jO181j/J6SZRA5bkFx9oiL/NGS1FLzdbHKVE8C?= =?utf-8?q?7dOTg906zt+4VbPH28v2fj1Yw+glQHSdjcydfe7w0EWWvAegC34jtNm0esYMHHKaD?= =?utf-8?q?or4ksXcOZvDelUah5P1hPNauV0p14MGjOqm7LZIvY9G39AUYtcCzbQIOlVpu1TU8L?= =?utf-8?q?jadiU3J5tH6av/xgNgK8aOKYhE6Ysr9EjsNNB4ggpzQEdsbBIWZqnUEM51epycgDU?= =?utf-8?q?5fBFE1mnBPpULRxjQ7LIRlNAFcDoK744bHLPcrhSFXdd+gLd2O8hgYcrucQDLwzkE?= =?utf-8?q?GCE3Ze3zzCXuppsBona0fxudLPu+bJbbG4w=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)(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?IZ7IykUzBxUm4h9I07rMrMEvKYKf?= =?utf-8?q?bNDAjA/cjaXz2yIzVLH8ASc3C8pNoRCDK07Quq4iD7y5JPcLIh0pVdqbIrDqxRWy/?= =?utf-8?q?L2srxdfUBdgEV5o1Z3CxmlL9cnIeKO1mJCYJrkWkLnVauwMJEVvNpM+Y82FfBgVhM?= =?utf-8?q?PjmmSoy4mytQqOi5cIbJQybkUeq+W6i2t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cl6hVYbIJxquwLgeXNsR/EoJZkhjF6c?= =?utf-8?q?AhIlT9nRfxqWjQPfTVbpmBFeqtn+8CaOxTZEvKhfseeCGRhPbDjsjygfgxJIU4CNQ?= =?utf-8?q?qMbaFfexW2uiRPEQTVbLi7P8NzakJ/MJCJb4oBOhor7cLSDy8xaVvvcH2IyD1NNUY?= =?utf-8?q?vat5zf3CFQBQGud3XyPrI8tOlzpglab2AbnmuJ9Gn53ZSeiNyxB1SMRWi/IG/9zLh?= =?utf-8?q?pyU8/ZNQrswU0Rj0AKpfWAAXC+3BcS1+Vbi7PiuS7i+iFMe+tdtZFNRuPqPSkgeq/?= =?utf-8?q?g7A4JztuzswMqAKgJ8XcbyaBXyNz4h2O4ODU0Q9IlXT9paimAI7h4rJxJ/Id7E/wC?= =?utf-8?q?ZKFg9kVAU5PETnFjC4cKeUCj34yk/PSC/qiTJxzM+jLslbxqba+OyDDYrUhO83S/w?= =?utf-8?q?E1bJn8HdCQyLrOwtDcikDz2OyDpmoCJqsWcT2L4w6T+pBYVIRMnKRQ5Hqk2q8rkn8?= =?utf-8?q?G4ws53z7WllU?= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241108_142716_213693_0E52297F X-CRM114-Status: GOOD ( 10.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/Documentation/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# -title: TMP108 temperature sensor +title: TMP108/P3T1085(NXP) temperature sensor maintainers: - Krzysztof Kozlowski 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. + P3T1085(NXP) support I3C. + Datasheets: https://www.ti.com/product/TMP108 + https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf properties: compatible: enum: + - nxp,p3t1085 - ti,tmp108 interrupts: From patchwork Fri Nov 8 22:26:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13869017 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25437D64098 for ; Fri, 8 Nov 2024 22:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cQxxB2o2JSHVWvb0oARWH5ibKPXi3Q/FGDb0iu0rvFQ=; b=Lao3b7ZsM8F4ACJ98WbAT6SrbW 4eqQe0NJtt6yc42fyNSCg9dGFOvT7Ks1E1gJkKvxsF1NHPl488KM+8gnwGwhdrJtNhVt+u8vA2PkN HO3xgNRtqnbE2r9m4LJW4pZ2xIGbJi5QsacUyzqmLmY25o+wjjcat5S4O39y+WaBqk+068DwJekVA zLARURDx7Slr12Aqo/lGWEfIhPvzty3OAQ0K+pGM3SjCagYX2+ATQLWYVxZ8qJ9ezlr0vADiR/g5u T3TFEMeu4wXzY6gPfs7NKq/akoJ5JrvkaAVQuQqVzFOzq4ABZ6in4it0KiRMTM2jlQT56u3a3mkCt u0q5L18Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9XWy-0000000C8pz-31YA; Fri, 08 Nov 2024 22:32:40 +0000 Received: from mail-db8eur05on20615.outbound.protection.outlook.com ([2a01:111:f403:2614::615] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9XRq-0000000C80t-0gM3 for linux-arm-kernel@lists.infradead.org; Fri, 08 Nov 2024 22:27:27 +0000 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() 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) 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?q?Xgi6tU/m57keFHhvCWSC4TQymY/f5Yn?= =?utf-8?q?AKckPLY9fG0BQpFQbuacyWtSDJCc1VO6CIsjrH/4aNdNC2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QS0nKOkxarbIaW3H4d?= =?utf-8?q?ffFuSXOKNcRWaWTVvPBKj+nSNWZrt9N8NLx47fvI9pHR93yPKZyVF/nFTM1WOUOIT?= =?utf-8?q?AhKyhj2hmLyo5gnETxRc4EilW2MIImBnBEn/6aST/KFr/h1lU68NbPVONxRJ/d7y0?= =?utf-8?q?5c0ZZ9SabC2XC0bh5zuiLdcN5t6H2NeVuJYTtiyUApl8d5sNUWNc/1f1hfh6CECkY?= =?utf-8?q?TajAqvHwn/OvzVilzQ7RtsJVaspj22ID7O3v+RrBdW7ur+CR3oxyVWaqUU1WWxf7M?= =?utf-8?q?YVjiJcIcTbSHLxFt6GxUJgZkA0Pg/rtNINpSfN4tz1r96DWAy/uKygrQYTC76DAZ1?= =?utf-8?q?PkrbTgaH71iZH+YZKgP9mwKhJCI/RpwUz7gkqwJpYhEtcXTcNd9quVaqcV8Bs2gpU?= =?utf-8?q?oYHfijYqvNNh?= 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?mWx4oN2nr4m4/bQR0/QXH7CdpIZm?= =?utf-8?q?vH7B8vQPLYJCt1fNxcvK7dcWQLrWu4fdSfU5l0fZelHAIHobvybCfiOrZ0qB4++AL?= =?utf-8?q?pbYRjKLfVFo24M81gxYL3tWp7ZoGsLBGEjLh7SY0737EmHAFEUcMlNGj5DM5mftcE?= =?utf-8?q?MGeDmHAxcCqxe3eg0xWxaMRsclgjnV2r6Vlg08PtyXauo5iadKOnfIa5f8lcTAhow?= =?utf-8?q?SJu8NnSK+ts+meH1AFixgVunHtJ2lpHUuHmE9VQooHdrUlCZ/PE2BrAx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=?utf-8?q?jqPB/HW01s1+mb6f/vPdHqHZBIhaZTOYd8Nq5DHoVFIJGH65l7TtlyaYkPYoYhkqg?= =?utf-8?q?NAaXGyuBj9BNRkEqj+B/D0kw9cbG6lki3whnYWQ8LnV331kVxasiRNE9SNjNeIfAP?= =?utf-8?q?YO8uhXKukCf6lLi0wkQMM3iOmMVlcwZYMpnHLl0PNcmdtUzIkrNETpg/98JXsNZuK?= =?utf-8?q?iuSw90M3dxGj9jha6nt/i4BsdkEUJw7DPQWr8uJ63maSpRg8ET4ZD/VnrzkvTYPCy?= =?utf-8?q?V/hR6h2jM1DOFDD0CrwQJrGY+x+6HpnzBC4WyXidtnOQXxFMgWGA8+TJJEW38xw+E?= =?utf-8?q?4CcNMOXoNxskbWVvCqTUm9U85Z0aurvOMp5z/o+G2OUhdur8SXZc46DA0oFG5dHCp?= =?utf-8?q?t5aM8HYy/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241108_142726_183859_346560FE X-CRM114-Status: GOOD ( 15.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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_config = { .use_single_write = true, }; -static int tmp108_probe(struct i2c_client *client) +static int tmp108_common_probe(struct device *dev, struct regmap *regmap, char *name) { - struct device *dev = &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; tmp108 = devm_kzalloc(dev, sizeof(*tmp108), GFP_KERNEL); if (!tmp108) return -ENOMEM; dev_set_drvdata(dev, tmp108); - - tmp108->regmap = devm_regmap_init_i2c(client, &tmp108_regmap_config); - if (IS_ERR(tmp108->regmap)) { - err = PTR_ERR(tmp108->regmap); - dev_err(dev, "regmap init failed: %d", err); - return err; - } + tmp108->regmap = regmap; err = 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; } - hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, + hwmon_dev = devm_hwmon_device_register_with_info(dev, name, tmp108, &tmp108_chip_info, NULL); return PTR_ERR_OR_ZERO(hwmon_dev); } +static int tmp108_probe(struct i2c_client *client) +{ + struct device *dev = &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 = 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 = dev_get_drvdata(dev); @@ -420,6 +423,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", }, {} }; From patchwork Fri Nov 8 22:26:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13869019 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74C9AD64097 for ; Fri, 8 Nov 2024 22:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RFmlONCWGpLj73XDAx4W3D0f9kD7Obz3kl1YoM4qpaY=; b=Om/mZOqMGn8V+ePAatjnKF1qU2 OtbMKAoV/VptlSCMxlUSYH9thR40Tmj2EpAMV3KyV8Q3g/qQQ/TZy6oORdw9UH8RFgCa1ZuCjGQ32 ijALrsuj8/eXO0rxGaNjysFXHBlmvVw/0tfTZFAkZMslOY0s6kmEG2GGk33XZ6jAV89cdB4oIdAuZ thyH16pfVGwCmiY9PH7MTizr/ldDV33dyijEqe7Hme0oTfdHF4ytlxml7otg9NlLnpeceb7iIZ+65 DjVHm54EWLVMzL653eMjtNfZ7I/3t5mXWpA6DUzD0k9aBUYMik7t2csz8Tc7t85Jl5H5y7bb3NDOo 1WBzjjww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9XYh-0000000C95m-0296; Fri, 08 Nov 2024 22:34:27 +0000 Received: from mail-db8eur05on20615.outbound.protection.outlook.com ([2a01:111:f403:2614::615] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9XRv-0000000C80t-2tXU for linux-arm-kernel@lists.infradead.org; Fri, 08 Nov 2024 22:27:30 +0000 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 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) 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?q?1VcNR6RTnU3OBXogWFJ7cjV5Zwg80KH?= =?utf-8?q?IuljTwZsVLmKv4IxDpr3PfAjimaudOQ0NQDk7695aqdYyoA2TI0OObkPyAKPUHJzB?= =?utf-8?q?shUt0SgmNHft3oAkwUD3rh9ZQeGKl/jWJiQPyoQ4tmzLwAt38duF55tZhKm74N+40?= =?utf-8?q?vNMnfb5VbDsh6rExD4pfxL6j1asF9rM7VPNmzmqpC+n93xNsRuPXCyrv1V7Rj7VE8?= =?utf-8?q?nR4a62dU6t+JzuFsokBZLxrMVbPsBs2HARNKG+xt8Y033WJjNkC0LtGzzh9SLdJ8z?= =?utf-8?q?ofU9EPjNpA4XQuapcJeIBPogK9YHCo+JLmuhCM+t1Yj0JC++b9P3CdEYOUWyNvPGZ?= =?utf-8?q?KTuSv8o8z+4OgWAzU+l6UlblXWNrZrL4NA91l/5Tdd5f3PF62NX69ZPQ5CFLUx9bJ?= =?utf-8?q?QkWh2ngFGNiPalLyzOr8sTwqKs9Kxag9HoUC4oEOQRWKPdMO9Q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gvieXOO?= =?utf-8?q?0NrT2Shdr1Dv?= 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?dHQRkUvgz+YGtfoWYtblKOFl6b2/?= =?utf-8?q?Hz37H4RJNi8tx3CiyMdny4Xddvon2xfGO31hc8ZKwI3se2LdPlgbV3kuf0r0rygbB?= =?utf-8?q?0ipi1+22qfri8MGdOjcNtJZUa1ZovKLoGIXe8bi6BUte83lz9MVmDOGbH1e3WY6NJ?= =?utf-8?q?kvjpCaEsA5P9CqK5L6xqQAPG49HjcrpPQvZ73C7pNuPpSIFtNS5h6fra20Hoi92qK?= =?utf-8?q?BmpFLedHSaZoJWBKvo+DO4hJgtCvyPLgjFd3+GFuBT4R3+tGfXaCymq+2VbHKMkwB?= =?utf-8?q?+vZhY6k/cUjG1dHL8RTKP7CiCH6EOwIfLtOY3Orf2edx30GBRG/cVhy6djJMcd5Fr?= =?utf-8?q?vbMOyS2sPdCaVxo5x7pbHz6txpmTb0m3JtMkHzVrb+ACkkmHJ/OmddJ82/vt9XzVi?= =?utf-8?q?F7hehVNrDxz7Z9bwyhqSxtBeZEMxSLKrPAsmnaSVei/V+HLzkxbvFN6UnKuP2q5Z8?= =?utf-8?q?SV2kOK9O5pn2R7bMtjKsQKJOyCFXmAfLLr63+0diwWodXfELSbVlqAMbVWLr8zAEm?= =?utf-8?q?VAFTWTsF4c+33jPGOB62cXvErlzIVSHDQFgRtzqT4ZmdBHS3v6m2q2WL00iLOZTay?= =?utf-8?q?GN380aydZcrNwgkqzq64xtUDU+lfPavwjhbpHEdDLq2EUEzl42y7k30x8dl0OMGRQ?= =?utf-8?q?ZBchMf/Q+7y+8Lwl/i89mYfHDGiH3jxTANn9DsD5QAz+8LfHAihTCblk5rxIMpbN9?= =?utf-8?q?9PDgyju6j9pmrMSM5bV0v0lhhYfZ3yQ8sn3R5vhXkFre84iEA+b5BuPby6tjhheKH?= =?utf-8?q?NNl0rXojk3Do9P5Gu5esyoQg5UPNWD0wfHFUR2eSpgQt3R+jHUP0vJyAiPdR+5nWm?= =?utf-8?q?FA0qspOesfqUmQhWVo17s/frghmfjvdnRBVG4Tw0+1BngrdO3eSle1tp/wGLxivFy?= =?utf-8?q?jjpNklftlvJUeunGwyXj+baD+apF8uinf0+NoH2q78CBrhyUelA7NK78goCKpPlil?= =?utf-8?q?na7fBlBUw4iMcx031fpii+H5wZcHXODFYOg5M9NNT2Am7EuX0Nmi0yp46u1M849kj?= =?utf-8?q?wolusr0cSlmp/6/rRns4K7FV8DaQYug6KdvXdsEiR+ypIwVwFslpaX8If75/QOZu5?= =?utf-8?q?QPtRy0aawhQH5ANzCt62/CzFxaUF3/fOV1XZI4H7QEZEtaMcnZubhlkuSfBlPzCmo?= =?utf-8?q?DdVVvtAyTw9QwnWsL39pNzXk0SACfo+M0fzLMisRnof/rINRbqBTyMdBu8JxeWIXM?= =?utf-8?q?TkukJuSQ9fV8jEo5RKHyD933TAFiVPHvGa0501clcSFW6+iS/S8Fi+wbOWeyN3qhB?= =?utf-8?q?uxpoE6QdhxioSloqMKzUNQF7npVzEsejqKoG9t7yaPW1XwNA3bccRV4ZPw+PoKt8Z?= =?utf-8?q?OamUICu2piukA6zWa039Uk47oNjGCmdrqj7e/95TzhC+VkCdZ7CiVmlVxV3dpKRs+?= =?utf-8?q?brP9zyQNcySNHmSRjnHH4D5fjlCwpeAEJOV2EzOkCHaLj6zVsDGNq7rMLMeyYQSqX?= =?utf-8?q?MD8qLY16zXooVST88WE877ynOxB05jgRyQam5z8P9kfz7tzRhtHurExTh6SCyuf/a?= =?utf-8?q?zDaaKQhsoyCS?= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241108_142727_808428_3BD3C03B X-CRM114-Status: GOOD ( 15.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 = { module_i2c_driver(tmp108_driver); +#ifdef CONFIG_REGMAP_I3C +static const struct i3c_device_id p3t1085_i3c_ids[] = { + 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 = 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 = { + .driver = { + .name = "p3t1085_i3c", + }, + .probe = p3t1085_i3c_probe, + .id_table = p3t1085_i3c_ids, +}; +module_i3c_driver(p3t1085_driver); +#endif + MODULE_AUTHOR("John Muir "); MODULE_DESCRIPTION("Texas Instruments TMP108 temperature sensor driver"); MODULE_LICENSE("GPL"); From patchwork Fri Nov 8 22:26: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: 13869020 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 374CED64097 for ; Fri, 8 Nov 2024 22:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6awtrZQU6LkJHPear9BLzG6arSog9kzzlZX/iwhrU9E=; b=HDgYrJtM/HKe9dsbHZarbXlsjs qWPCg74qitjNahmuDom6sfUosXc1wn/aztibFlPu++TWhOALoMAmE/7aQdYmCe/7I6ek7qjI1DrDK OuYq7yfTsfOpEKOYRCPnKYFhH25J6EKsaGRmkI0WyXLv5ycm8tWYRnXnok1The1ZrsA597cCdqkyV iGoAX59vYM6RbBwKXb/qf+dLvUcBlMn0RJ30EU1r59wVcYoD+W97X15yKcP+fIKGOkX76dllD3vW5 +R19+Ss+Mq91NJ3humsnl/nagy7Ta/zpFTBLkX7ggMHrsZuIBUJdszSRH9i3TSmXVmwttK5PLfJ6f aS7tRggA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9XaP-0000000C9Hm-3wVT; Fri, 08 Nov 2024 22:36:13 +0000 Received: from mail-db8eur05on20615.outbound.protection.outlook.com ([2a01:111:f403:2614::615] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9XRy-0000000C80t-3dER for linux-arm-kernel@lists.infradead.org; Fri, 08 Nov 2024 22:27:32 +0000 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 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) 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?q?3bGXidnBRE7C/61jocCL+Qgv/0yNjTj?= =?utf-8?q?cVJkFBMaeMviSTtCht6vzQLJCmYbwCt2g6THi2QXXCLKv0Nj5jVqDd4kTUmGSR3ml?= =?utf-8?q?11yI3Aa1ay+law2S7jYfOMlThng+xsiVVTXGMBeZUWV2ouaX0Wu92+fpblbK6l9TE?= =?utf-8?q?8d6CqO7qqMvE/weFUKSLsH4aj35zDGOTKO/qTsLXzQPZ08Nr1OSIe0RIUqCz9Jaik?= =?utf-8?q?3RTbSFf+yYPi+GxLDV4Q37P4jCDmcfyabF+KRad6dPSTCjFpULFdOTq+K+p3Nx2BD?= =?utf-8?q?8KVfSaj2hrq9mRkOQOo+trRm0LjFgFkgzmrmXZ53K7D2CN/Hi7FJC12f7sScAh2fY?= =?utf-8?q?46kM8SJmWB7REscfYFMhjKIFusI/Jso43oxMBWXQWa1bq7f2AMVOjlGSYIEPnsfHe?= =?utf-8?q?UskczXzN/0uUOIxMrLAZzdX2i+cb1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6Pf1VIDoxtAJfAESI3SgUmmI5zSK7?= =?utf-8?q?A+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?q?cMM9Rzz/3R5fG+Tl5C1deT5247gj?= =?utf-8?q?4UsaRAktX/K4GsGRVudiRBfqDCIz3g2NAgj9YXzS72T2pSrd4veZwzDhaZOGhr1PL?= =?utf-8?q?nwUZwD3LrW/L9QjiW5y78z40sA6y2br6JKvmgukEiRf4oSbhrLWjfxJxZtsrFi+MC?= =?utf-8?q?g+oMSNekXLpv9QjlnW2VeIIWHFOvP0hx9NL1IQ3nqVtR0JOCp5JETb7WwzPRwvIRe?= =?utf-8?q?3qZcDfIQkhlxBzxmXpJbz6BAUyKOisR++bkdZLhhjmrn01c7DUIbf/SD3SS8QvwIV?= =?utf-8?q?s2bxLxZgAjeA3uM4mRpukIvFXN1r90Q0YqpPKz5yVRnmSwVSc6mjb1uF4BVYjIEXM?= =?utf-8?q?7ieiar3t+xMJL3UzMidlQamCC7fMx8CFNkXf3o4lxovD/ow7rbbDBQn4LVGf8SPSM?= =?utf-8?q?hRa5C9rfcHSURwLUe8kbjBVIJvvqpUvG582N8NZsaWWAglpBXdz5L9fraryapaOsz?= =?utf-8?q?zESDV7M0pQoJIM2KlS554vbLvQYpYBui2yvny4BKdpktaIGkzGFvsCrwbGRpYScin?= =?utf-8?q?LkRpvgscUuvGhnB3+nISl/1dgKAwUZ+7pKW5S/mKE7SiI7sGy6pKU+KoVLzPeoWJh?= =?utf-8?q?DuV2AsDmRARvAVLS6sOIKHl4IUj/ZNBNkxs3oJKbv6eFagZU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+rImDHhwTmfPuR3pToQDYkI596tDk5v7jLv?= =?utf-8?q?QyhBmwf6hScX?= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241108_142730_987373_40EB08C6 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/boot/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 { >; }; + p3t1085: temperature-sensor@48 { + compatible = "nxp,p3t1085"; + reg = <0x48>; + }; + ptn5110: tcpc@50 { compatible = "nxp,ptn5110", "tcpci"; reg = <0x50>;