From patchwork Mon Nov 11 17:31: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: 13871027 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061.outbound.protection.outlook.com [40.107.20.61]) (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 28C8D1A76AC for ; Mon, 11 Nov 2024 17:32:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346362; cv=fail; b=iFg97qFBaGO4EmksV+KFwJcAun52A2nzXnyrK4WlVKYbHlMPZaWgvGEdwx1+hqBBhq7mH9k5yjjbJCw8H/FAhrmChrR9ndT4MGdOab2WPsty1aYNKSPvwIyKWYGD2U9elF0Zf2TEFYIJz0Fzr/c5tLIaZ0a3K6jcs4nrmJXkT8Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346362; c=relaxed/simple; bh=AL7GQT+3dmj3cCM9uDw2/MFhuWJloDk1rOWcYbYCFiQ=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=EmJZdTenyXbs8XBp4nZPsoi0BVyvATRXjydRuYmAoG232ScHHZ3+0brGKrC0T5w8tsK/qGQR5tCniwm1IAJjsD+m2xG4n0tb7vEu+e/8iMUBIbWpiN46jMR5RCioUF47f8tOu24fOdrwwJWDXlhb8Z4XbfjGdGqjfM7BSxP9ZGc= 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=DD9/OJrf; arc=fail smtp.client-ip=40.107.20.61 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="DD9/OJrf" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pDjqUpNsnDSmos98WFNRjTaeWZdiXOCgJtbuHQTtalEbUqeJrgm5hKRNToP+izeJvHqFZInSRjYUDUMpjMHUEjplUlIEr/H60VcRaWwx8XHIfPQBjol285KaEJY3kIkkcnzhIGS1g99F9DQIBd2iGyHa66dcCOacUanZbTDyPNnAEf8Xp8I7b19MThdWj1evqsKgU7IZOwLEtj0t1Niv8XlExj/MFIfyauhQhQpmOEF+1Jl519Yno57Hp5NJJmr8CqdUZ6y5EAMQDfr+4j70ko/xKaeD8e5RATgmi4raclDzi/qJG1vzN/hPopUHf1abh8ADnxGU5ejzOHz2+LIyeQ== 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=A6+K4HUgHzCu+Z5TKBEE2IIRdarF/i4jNqDhpHc9/AA=; b=ZjqtXAHqiy97qrBPWeExLQEW+LraPiLIVjMsbRxOlWK+iD4r7n8a1C0r1AsS/ucHH35RM5pelmN8WogNXjqSFoPzeFHW9WKpbptRZ08ZVgJm3Pms1sPJJX/7BaVcMXiWmWaX5TBnNwU4BEK6j/zBBrTKqM/PxtaSroZcxHF30sULclEEkZVL36sr2jtRBsacMuOpt44rehdGvqmoqKwrms0xNW5fnXB7FKMQ17bYqdJcNjdlnHtehBqFBEgk8vPPLwheyH8zzfWQK8+vSnnTJk0tO+BPFHygdftXZAVGW79T1MBRNt5P1aw2h4FqcSVjkA8D6XeG6brCW8fBajK69w== 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=A6+K4HUgHzCu+Z5TKBEE2IIRdarF/i4jNqDhpHc9/AA=; b=DD9/OJrfFhvHcA61MW9iSpRsROsKd2c8aBky6BIx1JhljY3WTytIPh5v3UvypORVSM9dIounpaXoKcG1TR1lODICjsj2QKtZ4n02kdmjgeOd5g6vwq99G0imG+Ci02V6xQtZ98bIsFC+cCihdHBYoHOA/DKgDzkj6YOjfmmW5Pr8rRdxecmYQdj4AX3Man3hk335x2bNn9/G0LEQlFcE6epT0ZjcjBd4ZdvOJSIHB0OwrTnMpjPZmEt8a+AMGNCEPCMg986EjPjHohYF+jv+3RTxuDK0TKjuwd9fD3fBw/GgdHxhbZ9ZADNoswDI8F3bOSInmHcnR4MXM5WK2HUybg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA2PR04MB10086.eurprd04.prod.outlook.com (2603:10a6:102:40d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 17:32:38 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8137.027; Mon, 11 Nov 2024 17:32:38 +0000 From: Frank Li Date: Mon, 11 Nov 2024 12:31:58 -0500 Subject: [PATCH v3 1/5] dt-bindings: hwmon: ti,tmp108: Add nxp,p3t1085 compatible string Message-Id: <20241111-p3t1085-v3-1-bff511550aad@nxp.com> References: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> In-Reply-To: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jean Delvare , Guenter Roeck Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, Frank Li , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731346348; l=1527; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=AL7GQT+3dmj3cCM9uDw2/MFhuWJloDk1rOWcYbYCFiQ=; b=ldP256BbOOkrK/rMxA9i9w0LMouZVEJ/eqiazplMTTUgGIuIwjD1k97xsCU+LP7pBhKWUCJet GTU9rn2vltWDbe0mvCiZ0u1YItdUSm81n/mFtRH7kkJEaFYl2/VoRBv X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR01CA0044.prod.exchangelabs.com (2603:10b6:a03:94::21) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10086:EE_ X-MS-Office365-Filtering-Correlation-Id: 6415ece2-0041-4d28-7b54-08dd0276d603 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Vny3HFzx0+6ytCNadnKggClqnwRWxfd?= =?utf-8?q?6NZQotjqqa0hIgp82SMmsl3wEqP+tIOle8ldCWXZ5lhMhz5pVliSHVKQoOpt24kQO?= =?utf-8?q?xcxOzyksIVj1m3IkIEUAEiVk7lDGnCa553eRSbNn7cSHcf3W2LJdncmABGVCnOFTQ?= =?utf-8?q?BTWvk4GFJpAwJIRpy8/xNMETpnRs5VCPFwCytneFkD5OpUUuUJsYOPNO3e4ChQVV6?= =?utf-8?q?hBpFma9Zdj1WzLCQ/+pRihZlaK+B5bEt/x+4BoneAZmKf6pKiOl8vpTa4bYcYEEuu?= =?utf-8?q?QaBDnwY4yOgr8aLJnQmiA8bl7LxyHYoKlPhHmAVH+CZwVzGRL+q9u94DDqAFNI+Gj?= =?utf-8?q?24AcPSjZs1aIGxEauGHWSKSFMIM8vCirBgcs7fogDxOc3yQGV10kxHqAZuun2ZdH/?= =?utf-8?q?tspV2Bx1YbDET9S1/nIZaEmcpNmWUQRpLoDQw/c52PyL7llRm2yCSxcEuOCOf1sYw?= =?utf-8?q?NjfdBE8+p6t72DjuOV2NeROKtYsWyZaLCn4RuWI4b+ORrgk0maeV8Eudz3Ni0vU6n?= =?utf-8?q?bZdXg+VYeaGN76RS9mxgo+8fco8Fm20bcwNhf59Se/Y2HvUGBeeqDO399T/VxK7LW?= =?utf-8?q?giTaPmNZxwx8tr4DETT1/5DSbehoH+zFwCaS5CtQi5kNifqwPiU8uO1+4OfFcj8gK?= =?utf-8?q?P4wpefF7zcz9IqKvuzua60CrLAxBsTXjHznWWIKA8tK0+RYMpsaa36mIfbbrAmiPL?= =?utf-8?q?m3IrATbIkLncDYusJ7SMvlfYkPetsTeBVp/Rnbn2tIILS2fiulU1RsBEEt7+JykhQ?= =?utf-8?q?Z9AnPdVyrT2tCWTkwaccM7/+8/GZAi6Vjz5WK5WAWIdgCB5QjcSEHJ+YZk9kV/DO/?= =?utf-8?q?8iOfTV0L/t3HWPJVopenxvi5NHrdf2FBZ3zjLfdgwlCiV/VHzE/608+kwY+Ms0WhC?= =?utf-8?q?aDosPnT3bC9yz0I5zGlGtBsEctYQ/Poah3FhWPse7uCaDguCxaN3v6GWlfaZ9boWi?= =?utf-8?q?j9F5CQnWMrwKUnq1bhPKj0PJ7klicvMmUhbdBCRfbh8+6TSBjpkwdov/2ah/qt3m9?= =?utf-8?q?IuAPezC2B9HCMPihtQovFB7zvf0tCz75x24Z3x76UTCzIG+jcQrRrkIkj4Xffc7xS?= =?utf-8?q?MmOAWMK0W7NuhrKJIvousp9ztGq3yMoRy/lLsCLvCexCPuFOB2cHKhqs99JjZhfQr?= =?utf-8?q?u/wU8bknkudlpdsLvqOH7DbLbmNGPa6ByQar+rPzM3byezt7ZvXboWZ3Ze9jkXssU?= =?utf-8?q?PIuMezi2OogUyrTsQJPSA7BM/VZDYdB/QggZCtJV/R6YoJN1DPDT8ik9VKHfmEdWA?= =?utf-8?q?C0ROvCplmjzP3wzqunZMIR0n2sbNL4UnaTw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?KhPtys1m1WAaBCZIBilERiwTYEZ6?= =?utf-8?q?KEdxg2OLTDFD28Pot977MgiJ6acKPp2E7uZpc7tDqfA/gfDhoTaEC/SUCxjROTMj0?= =?utf-8?q?TIPydvfcB1TV30Ql/ebLCqua1mHFeaBMJx1qYTJMke04RjdrJ7u6JMcRy+8ndNRjd?= =?utf-8?q?OidAGF9FjCj0jMTIJfwA8wIpWuYzcIvaIXSZ7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CL09T3tl5fuYZbRi+WA+g2J/1+c?= =?utf-8?q?0omt/1nv/b+cX52+tI7pzbXdcedsAd/tyf+MxwV1D5SHjvOVL5RgTlZomMWWNH58U?= =?utf-8?q?bqST53CcpKSaiRLvpzpmumT7yb/Eng/29QSJ1PjOkG5qYGtENAx4i4L62HuGBOJSJ?= =?utf-8?q?wdvTnZlJxw8AH1u1tQGXkxTJv/unlpucbRqDWhDLcmr6TaGm16mzlygUtzCmT/Mxx?= =?utf-8?q?KdOQVj19nu/G5up9rljQsSlMc5PS57Gb8Zzk1o4GZ4DOdznrzyJQVD0zewwrAP671?= =?utf-8?q?zKvEoBgPfFflARfapHNxYQEEb1ahOPFrVvl0REBQZrjbXxg21aqFYJSBgHeGsMPAA?= =?utf-8?q?M8kc7rJMR9Euv0bgZcp10j9yTOSzj/aPpBJXPJZzaMuNX2crzIDwyO5OLDTKqMPS1?= =?utf-8?q?UWjO7ESQPeMAhlBoEGy3an7iVtr7+Cna4aBgWLGKmXSikoJfQSTKq8niw6AQF+YDb?= =?utf-8?q?jVakBQUUuT9i?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6415ece2-0041-4d28-7b54-08dd0276d603 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 17:32:37.9526 (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: WPkcBgl30y7hmjSUsKGOgOIy+q+NORpiesE7lS8YVYpJ3otCf0SO98V4ciaq94hMT/GMRy4w4HdU1Ip+FAqlYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10086 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. Acked-by: Krzysztof Kozlowski Signed-off-by: Frank Li --- change from v2 to v3 - add Krzy's ack tag --- 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 Mon Nov 11 17:31:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13871028 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2078.outbound.protection.outlook.com [40.107.21.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8661E1AB534 for ; Mon, 11 Nov 2024 17:32:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346369; cv=fail; b=a67fUvNCySQP4KQrBMOjZLDhDTnowAsJJ27NNgMne3Y8puigyjJBezEGCQ5w9chF/na5uAFHR39n4F5y7ISfczGNbjsRwAAZTPhNJsOr1fqsHqZrzbWAOQVcLnuIA89k1QJwjgjdUpwgVzodHwHtOjf4tnfvtv69qRxtlbxARuQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346369; c=relaxed/simple; bh=TiawW5mUcZ1qwCQdS36zCJKhOJAtTITu0JJSFb58/60=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ql0tC6nZyXJvsDYk76+je1AB3cvmw+XUhzU3V54c7PNIAZOBeqRlATPKxgzl0r3o+HqLfbS0+3mnht19BZ7v6a/jmDJeQf/1PY3XmGhF8PqflFZ3Hi9nc13v+onWkNz3tQwaKYANVzojp2JcSOVWxQeZ6aHSmLAMyWvNlApfBsA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=NVoI5pMn; arc=fail smtp.client-ip=40.107.21.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="NVoI5pMn" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PtgkJ7NuThufSm9gq3fvSf9TnlVGMqUkTLvxs87CLyd+M4ayK1afzXj7FKKkd9r9+nOjrbfeegQt/6RhfdHwj/KdUBwIglMglYYsDCqndcBdjuYDbRW8T6b6Ij6SmO7iS1WJjci/QSqIwtrJSQmlmPIb41sENtSfCADxdMOXnn8u+8JrwmVvFuOSRMA8EL79kHBH7zzjUSvTeMG6F7NcPJqdHnbZ+DqoymHj1OCWRK3fuMMhUFH8LfW6r/WDjzA2QWDK6419w1K/z9YrUokKVH/nTJqVPbskVhCsddKMqL1VMiSVc4hFrQa2EmdxuAKwPLSg0PoX/0IGnV11OWKDNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8PL3sfBABFMHxWVX8328EQ2AURBXo4YGLVX6+XvSrAo=; b=nYSW8WFkdq0Oo0MjLOpzvQ4RDtROq5kdr43CGahca6qOUsc0QtPLwoH70YZB8/2lIOIzyA8QlC1PCFJFMNtosTWrQG1ba67cUfqgRS8T8mAjiVZzgjnsxzb0R070YGXZhJhxqzFw58zyqyFSjhkXl+iBTGJww9WnN/Op3a4QuJX8+UD2EldIxKyOtB1OTo+IUo3r/VOZzU2L5v9T+qFZN2g30oOse2yvzFCnzr1SIu2xJI4clcb2jKEM0KFN1ud3v2w/TUy20chCOM5G2qNE+VsWoXsKcnPAfM8pSjlxfxuNldDH+xQ13gV+cAyJZ+CUlNf84/dWrf4mje0auOKCmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8PL3sfBABFMHxWVX8328EQ2AURBXo4YGLVX6+XvSrAo=; b=NVoI5pMn8RbsSzuWM43xalVHoDzej+MeFWVjEU1uwYJBd1mFguCq/xNEIbzSJz+IlfdR2aWqOaqZCTlRODG0o/Mnhll+2rt6CntIqnjagGYv2zzXOgKr0cCKtENC5Accx6uaF3y5njrnHfT2lKwxfsf9krRmPIwfYD7L1ucCprLeJ5oJwXMpeuy+z8Tn+sAusy0a38R8cf5Y/S9McN+fKueBiKDGmD+x+2nrPJT1DsIa2XPqoij9jqma5KiNCP01EjtQ1fM+WnmtLKoNejj0pNfEvctI1sqYy7kf6GjMka01fxs7KuJXatk3xbzsmuYCUoXqiIoUEtnnzd7CiGBQag== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA2PR04MB10086.eurprd04.prod.outlook.com (2603:10a6:102:40d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 17:32:42 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8137.027; Mon, 11 Nov 2024 17:32:42 +0000 From: Frank Li Date: Mon, 11 Nov 2024 12:31:59 -0500 Subject: [PATCH v3 2/5] hwmon: tmp108: Add NXP p3t1085 support Message-Id: <20241111-p3t1085-v3-2-bff511550aad@nxp.com> References: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> In-Reply-To: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jean Delvare , Guenter Roeck Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731346348; l=1810; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=TiawW5mUcZ1qwCQdS36zCJKhOJAtTITu0JJSFb58/60=; b=RDEWCVGIbo4Q758cjd6eCJtbIgjm6KncPtQy3WvxcVP+QTpi5n4uVPowL+bORR2JZlCRmYIgh preu34irbY9CNJL3b9fUa1BQi9Kx2wj/Od+nBMBMRnksNL4g8VXUZXA X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR01CA0044.prod.exchangelabs.com (2603:10b6:a03:94::21) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10086:EE_ X-MS-Office365-Filtering-Correlation-Id: 6200731a-30ee-4cb8-0510-08dd0276d8d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?TKXj7D2qmD1TebfAQXMnsds0wSswanf?= =?utf-8?q?xLgjdRW7Qed1i4NVlJYqFr1V0qIuML3gZwafLRfSB+ZsBssX5jnzBGEdV6oJyaiGB?= =?utf-8?q?/zoNmneW8g+rhiHNnHVijGaGSPObfaxeKZ2Sl1iaMqK8UT7u94kV0SIAF/dhrmumE?= =?utf-8?q?x2qeAm0szcYxuMv7WZ4PnOK158EUmN5FzshaZunLipr88D6XOp1wO5RGo+JZbwgnf?= =?utf-8?q?3ejpZhHGhRj10Mlb+xdz7VVQUPp+Vj9NCE7wtff6XAul85j66No4qUCjLm3iY/Ppx?= =?utf-8?q?xY5d5cc8oX1kIIjmo4CLKX8J9B/yl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Ugg5t2NV5Dc1z9tQ34Js9rU/aB+LpfenCuva7S?= =?utf-8?q?9qJg2S9OehbSyh++zR3Kcy4RhK0IvhIyjnwvlT+Rrw8dot+ULA3zLKAw8PY7I0HyY?= =?utf-8?q?GczWqFoXCSLo62T8bb6OcGn/eLoFQaSKcFgDPPNX+qBSjTyffH1CQqtofkW6ny96C?= =?utf-8?q?QO+ZYkAQFF80olP6QkT82BLF4l087ouATw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?jrYOYBcSPZ88yf1FpYGdoonKKHc5?= =?utf-8?q?mO8MesSymXRet+aLhok5UBk1SfqkkDucn3Ne/ka3gM7dZZbQLizhQRYffHdMn6RAj?= =?utf-8?q?D52S1uxjou1K8IJzubRjaYPjqCyc8BO1Z2Zw2bZCvw2opMXa8BE6BcFA2HKqEwleT?= =?utf-8?q?+bcTF9s5PYmZFkdQZrnRGsFxeBvGAdbmZFLR1KJynPd/G2fvGFEIyrU1SkqluYwiF?= =?utf-8?q?jd6/R1ZXqEFXhUqBvTwO6pzlc3/L7KyzgDYme6haMXC8FsvDPArVSC+uMANLt+bI+?= =?utf-8?q?ATXIglfmdLbMp26HNegnWltfegC0MxIUfsh1/kf3YFUrkVLmMyrrC1QKP/XJjvlrP?= =?utf-8?q?wnUffSpJAl2li7W3UDY08ETyuxnPw84zzQ7OG1ykEGCW+5OQFRXT8djul6EPSfJ77?= =?utf-8?q?fzAy9YnEDABAWedReVlur2tBy9koCjsN80c910YcYgmZXYwnj5/JedIbdETaKnYiR?= =?utf-8?q?TBhKbY8U6+WwBRypz9/suRwYvI1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FU91d/GfOfxB/NOmL8OK0ajYb2?= =?utf-8?q?Cs0tHb1h7AOjUi77iHc6UHL8oAcIujLCcsTyjYFly/sF+gX0IgKZvPb8FckUQeAmi?= =?utf-8?q?59nNRn3CLZHonTAGnqZxMBqRTOUNOhCaat4sRP/V0q1fSJ8OKBrdbhFAdr5VFPCDi?= =?utf-8?q?hn60HhQjhrQY?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6200731a-30ee-4cb8-0510-08dd0276d8d4 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 17:32:42.6917 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OSi6VE/WyzpstP51Y4Ak4o3Lfp4Sb91NAaga/mAixP4QNeP6EfWmely5adgmvMYNvg8VgSxrmBRiPdWvoXTHqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10086 Add compatible string 'nxp,p3t1085' since p3t1085's register layout is the same as tmp108. The p3t1085 supports I3C interface. Update document tmp108.rst and Kconfig's help context. Signed-off-by: Frank Li --- change from v2 to v3 - new patch - update documment --- Documentation/hwmon/tmp108.rst | 8 ++++++++ drivers/hwmon/Kconfig | 2 +- drivers/hwmon/tmp108.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/hwmon/tmp108.rst b/Documentation/hwmon/tmp108.rst index 6df7cf1b42f49..bc4941d982681 100644 --- a/Documentation/hwmon/tmp108.rst +++ b/Documentation/hwmon/tmp108.rst @@ -3,6 +3,14 @@ Kernel driver tmp108 Supported chips: + * NXP P3T1085 + + Prefix: 'p3t1085' + + Addresses scanned: none + + Datasheet: https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf + * Texas Instruments TMP108 Prefix: 'tmp108' diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index cfb4e9314c62a..d43ca7aa4a548 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -2300,7 +2300,7 @@ config SENSORS_TMP108 select REGMAP_I2C help If you say yes here you get support for Texas Instruments TMP108 - sensor chips. + sensor chips and NXP P3T1085. This driver can also be built as a module. If so, the module will be called tmp108. diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c index a82bbc959eb15..b561b452d8d39 100644 --- a/drivers/hwmon/tmp108.c +++ b/drivers/hwmon/tmp108.c @@ -420,6 +420,7 @@ MODULE_DEVICE_TABLE(i2c, tmp108_i2c_ids); #ifdef CONFIG_OF static const struct of_device_id tmp108_of_ids[] = { + { .compatible = "nxp,p3t1085", }, { .compatible = "ti,tmp108", }, {} }; From patchwork Mon Nov 11 17:32:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13871029 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2078.outbound.protection.outlook.com [40.107.21.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 474831A76BB for ; Mon, 11 Nov 2024 17:32:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346371; cv=fail; b=lFEVbqANV7M+WJYTb3/3hB6ykFfe+QW62nfy3LBA4z19vzII1i14WntkVr2iLPrUeQl4/dNnGxWa5kNMzGuY5KbrcwJt/9aR0e1xAte0xX4oNC8v8ugIQMJiXFlRcAeJgcsNTW1foZsYaIwVSMORAzlUFFI1wiPR8640PRwZ4yw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346371; c=relaxed/simple; bh=pHdcouA8YK+jThZXHKLq4J7wOSdvJ4TG+3dUQln/lGc=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=oPo6d9zXY7NFtvL7p9pKCPCE2OaM2B60P/vLF+t+VoOEOhbeWa2rUgqwniSODGBvFz/lFiAxilKZkE54aNOXsU9KUS9CNH4t1iRQodGJ4P2e8UbEu5bmhsyt9ObTrQa1ZRz/31b3J4NuMzokMyh0rRbdAP7Sg8K2dR3Nozbv4ak= 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=WG1QeB+U; arc=fail smtp.client-ip=40.107.21.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="WG1QeB+U" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ojY1LZkljoTykY4b21t90ct9xOcNjNzR3YW2mk+4yA8ux5yuIYng86zBKzW1r3W/qOa4ew+WDkm4XGZg966UykJ+HGErucWBYDXBawXxENo9j31XOUOAZWmK7AVJm0eoxi13x5ZblsUbV1gSmGDlEtrt4usQ2t3xxrvetWtB9O7HAHFU2lyD25ajoVGbaQBefwSF1F9uC/mX71ywEUEsQk7SOh8rhNXjkG+CxcUBsgEr6yCw4FYmVYt1GZ52TmNndJ349r8tGUP4DLmpFV1rqchLYvDAl98ZHiwhfS2mWLX7qgzmuimGadR5fRJFCXCxJQ8YPm8HXHKSCjLyZ+gk/Q== 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=RTxUcGEWHvp7e9+sBMtLPKUzbzbsN2et/K/W1RTGWtc=; b=FRzHwrhOWSc2MvV3vUxPH1kckMeEbfAhxJ2EJmOva0+BMwecne3f1NbhdXuNhzeRImZ2Y9okq2/s4c7AlLns646Q+mjzhFCsH+1Ocm+C+zR0EdHPJHxNPuytue5IynMjtMRjLE/CVPxjUcZ1cM2O1GROoEjF5z+kF6eTLBkE79af8511JUlHtMeS7nhhx7ZGYekaeJTVBgTeVl2ga1rqK69VFiHtvXcfQtnDOUTo7L1EQz8GTsaNOc42SynI1CwlIa7KTpGWE92XvImF89zMq8pBQOF0u7jFoY6qNxj04PVe1KdECtfW2vApHKblfy4M5gGuI5WnZvpmXp+ixmx0Xg== 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=RTxUcGEWHvp7e9+sBMtLPKUzbzbsN2et/K/W1RTGWtc=; b=WG1QeB+UEg1XlxaaWCI/xbQUYlqfUu9NEqg6dfgaziunwdxENhmFGIykLvusZ5wSrbUF8FiuEQEEZc9NGMo9wXc5/DerhX7k2YHaxpKZm160LXVpuSQAZryOULUazSokqaFl2Wqzx7aXykzFN1zO5KMYHL1oXaDyx1SQC02Ng6A0rRGOiO+UKTLPXVenbJqx+ApmzDQeMwDWljdZMKBr8tF4G78Iqhbb8/POVYunI7uuLZTcpyp8Q5X4NPr2Qjde1800W7OIk0XT0lWcB7sLibiopoEg3ctvCZ3E9wwjxqXEe4/IcYcF7ZueYP9/yzSZVFd0u4+5M+57pM/RWty0CA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA2PR04MB10086.eurprd04.prod.outlook.com (2603:10a6:102:40d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 17:32:47 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8137.027; Mon, 11 Nov 2024 17:32:47 +0000 From: Frank Li Date: Mon, 11 Nov 2024 12:32:00 -0500 Subject: [PATCH v3 3/5] hwmon: tmp108: Add helper function tmp108_common_probe() to prepare I3C support Message-Id: <20241111-p3t1085-v3-3-bff511550aad@nxp.com> References: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> In-Reply-To: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jean Delvare , Guenter Roeck Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731346348; l=2743; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=pHdcouA8YK+jThZXHKLq4J7wOSdvJ4TG+3dUQln/lGc=; b=bfBhmVCVa2weYkbM23SlmsWKV8wviDQ58GykbkhfkF7BK5o7FeV+W+zLf+XAnAn/1MZhpsDse 3vfSaAEoqS4CudrQBUDTRBAM3YOa8RNH9NNssuY+9Pj5fHRVmW36XY9 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR01CA0044.prod.exchangelabs.com (2603:10b6:a03:94::21) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10086:EE_ X-MS-Office365-Filtering-Correlation-Id: dfa1bc41-9873-4ece-36b7-08dd0276dba7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?rpGl/AupcIW/Qf3EOdb0eK5E118SOZp?= =?utf-8?q?rvwYpmsbry3YcVAWktinGvFqOGwIjLDxS6x2/KlqS/nr0mpwFwW179X/uTPGqSnwx?= =?utf-8?q?VtQoMekouevkCpEfhG4i5AyxXojZYR5S/FfEdbbTKL31QYwZDDUKhZDxJLGTNbR4N?= =?utf-8?q?GgkDAGEx966dN1k+KAI0ZR/+hecRZB+cjrUC0SXF97OTy7vA99HTtsuZknyFd5vlm?= =?utf-8?q?91S4P2SUdW0T3kl31QKUrdPNxhajO78Ygwmr0UuwZPCzE1lEslpOfsOVcTXOPh6Ev?= =?utf-8?q?dTMT7/ESOJxsXIM/CXu9Wk6M1N8B5/PQ7pgt8OBtrrNvhhxdeTgomG4jANIJWOGdT?= =?utf-8?q?hehSd1P9SwkUskrhJozVh0TCHoESfR51/u4HU0VcB8mDvQdvBDJkhZ+fuZ16WrtXH?= =?utf-8?q?inEZw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OSi/sVlkK3MgzkmsuCJiH37rQiEzchZTc/55LatvRr0Qklvq5FksQM4?= =?utf-8?q?ZqE4wPe0MKMP?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?28w0ojRGHoRozvVd3YALIxhaXuKL?= =?utf-8?q?+e/2B3MMsU917759OFz1WHt/pLEA4yNuZAxvWCJ2xIzOwzMwcCi0jhfZJDWOp0IEr?= =?utf-8?q?6AAvk7TuskBYAT0VuXLq2ThwdfMqaKSiqqunb/beIUA8J3rINdqMH1aAxPp903LvC?= =?utf-8?q?7wtt8PwBYvtmqlVVGda/Hq8qrTD9boFw/nrdAhvjn617CkOKaYcrYOgC2Nnx9xaFX?= =?utf-8?q?S18rY0f9whXBR9jdxuczdpFrthw+x0T8BW+NCRG9ChA4Rq/juYb5iKiPCatABBXUT?= =?utf-8?q?z+b52AIflb1U00ETZVZ/YELnP4NHZ8v6dpRBqpcjHdTRAnU5NYWkOP5Fy9JY9DlnU?= =?utf-8?q?wAHDMHof02/YLFuiSBzGXJY2rrFk6XAF8wDaXwwuuV1ZCzQDqSwEjgJRWPz/xMzLF?= =?utf-8?q?N84ILGZzpDHfTn7F6URILCGayjx2yRedTKjE7JoLUt+xNbOTP7X2jJanF63SyuzVa?= =?utf-8?q?c3xRI1BoMpZ9wwfMFfUvJS6eGVD5oRYTXkSjKGUF11bDNmUx13OjmSYjx0J5cxVvi?= =?utf-8?q?RFWK9rvcpOW/pu5gkdT68eEU+kZu+pk2Oir3GB8/cN8X4hBHtuhFap8TzycgqdvQB?= =?utf-8?q?lmkIgNw1wnluUR4g0efOtv7VuI64cK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h0WqJYR0++InTE1QxLpKq8TxKqvrIztA9MQIaz0G?= =?utf-8?q?+zy3VZxomTO3?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfa1bc41-9873-4ece-36b7-08dd0276dba7 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 17:32:47.4537 (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: AKyzUccjz1Tx9AqMIz2hU6EBeSdfGorlqxUv1MuzgznrGOdmAP+0GAHoDZ5cC1loUJinnBpecQpVknmdx9+fJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10086 Add help function tmp108_common_probe() to pave road to support i3c for P3T1085(NXP) chip. Use dev_err_probe() to simple code. 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(). --- change from v2 to v3 - update subject by add prepare I3C support" --- drivers/hwmon/tmp108.c | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c index b561b452d8d39..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); From patchwork Mon Nov 11 17:32:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13871030 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2042.outbound.protection.outlook.com [40.107.247.42]) (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 151091BC9ED for ; Mon, 11 Nov 2024 17:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346378; cv=fail; b=Gh15PTCUyVy5GhE+77+a9D8bJwcJbTE1lE5FvXUpZxfPe//VLyeEEgOy/r7vik9kQ6g064QzfmZwWWY55wMLijQ4fedtTdzMzIVv5BLBEgzk2gyAqYvt06yFHyLwhK6cIoxEw22RVX++IXIsD/FAvI8JE5NJWmbEhaSJ4oZDh/c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346378; c=relaxed/simple; bh=SpDIWQ//2vxQS6+qCcRIjEy3XtKoUdTil4zQhY1xDPU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Dj7dJbxVHOqB1np1IP9Tgv9Sv4KBW09Xb+2D3fi+CMvI9HjTmiBdEOtocSQTrjshQ+Qy0JZOvYWmtlw+yL5d87yb/sqzsGpp4Sbj4BLbJWCS8RKwaN+zKDFZOIiSd4BQpocX68H7uY5+LYUqWCnq35qHbspFoq6wAHf/SPdMYAg= 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=c/Bp9Lzg; arc=fail smtp.client-ip=40.107.247.42 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="c/Bp9Lzg" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DC+EaNe/2k0IoC3LkpgiWqSqe0QAT8J0F3bs0lepvspKIqyWqSC7AV4wXvs4Vrhk5CX/kPqz+5r4JORuIHMoSWbOtQ0WBE/KvJcb86xLJUkHbYFu1Nv9KoYIfw0mb3f8p9b4txeqTh33Pk6jsXmnIvcSKplf9bXoSvbFTBzvMAY51s42zw0eEiYB+CUWhXs2N3gS3Vx7Xr4kO1iziKtjwKQcibBmGUK4G6LlTqcbTyh1jh09Eo7xA018i2ylRaprkCgnpjz6mqqSYSGuHSXgTqcgNieLB++I6PrVw1BMXiR0xmzpug/Zf+vp/TCngyYiZvM/IAk+bV7E5SfBJbl1Jg== 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=yT6CdsGvDvMzmPjYkwFsjKh3un4BoK0qxjjXVW4EnQE=; b=D+Hohx72lBuqCymZ7CdkjVsyhJ5EC5DX6L93yd4cLeL8ItlUHBJxyrvWjCueij8g3yNR1nT855PBeOelUGcgmE6O6GE12Kp71xwlpvcxDRgBhEqgNExB+xVOONFRSisyc32WmTYYch1Lg3WSGNcLiAm3mLN4uikGX90uKQo3ZCqeCsW9Ky89wLBBpqunRZkC536vOxNx2G9znHuwEwkc5E3Y4buOXFwJUa4nLu8bkCfqpyKnnp916jH1Tnb0+I5velabS3hW2YuTb/uPjneB2QtJm+8Qkd1P+Tf+zci+tdaB+zRZxoPcP5FUOEOCBB3p8Saq/B1Zxyv8o4L6buVswQ== 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=yT6CdsGvDvMzmPjYkwFsjKh3un4BoK0qxjjXVW4EnQE=; b=c/Bp9LzgGSHlMujWX6qF4Kcc0mIed0V+h5RkvjR7RSBra5vkSwtcv6ThWe8oqixJAzY3HRdnG7/cNLMe0Vu3dJzpX7MfzubdRD1JfBF58gvBWKdK5bZgESx4UWPbtG8FWKAvjcpWtRkUl3Z4HzyTu9th8wytD/K8rTd8C9aN0MIt0ASs0s3UXUGSLte/JAOwafyakt2mmPIYjDP0TWVkLajGTel3uAU2KCE/BxbRT2YdfOCRH0adLvJTf8fGBX83WcGssPKs9qqcvB0dzHjzYZlpqY75sQcrYSrrr56sAE5iMOFD6/pDMuygTlLLx6bnh7BGFKr+oq1eCKjfsEt9Kw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA2PR04MB10086.eurprd04.prod.outlook.com (2603:10a6:102:40d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 17:32:52 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8137.027; Mon, 11 Nov 2024 17:32:52 +0000 From: Frank Li Date: Mon, 11 Nov 2024 12:32:01 -0500 Subject: [PATCH v3 4/5] hwmon: tmp108: Add support for I3C device Message-Id: <20241111-p3t1085-v3-4-bff511550aad@nxp.com> References: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> In-Reply-To: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jean Delvare , Guenter Roeck Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731346348; l=2554; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=SpDIWQ//2vxQS6+qCcRIjEy3XtKoUdTil4zQhY1xDPU=; b=oIpjlN20VXx6nYjN61WgpNP1tIR1QU/UWuieY8UlbQO25JrulQUoP9XG0cmluT7dyOPAW0YOJ nB0SNpeYDbLC/f386DFQ0SKe8kKngqrX68F3QpJJlnsJ6D1jKJ502Pv X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR01CA0044.prod.exchangelabs.com (2603:10b6:a03:94::21) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10086:EE_ X-MS-Office365-Filtering-Correlation-Id: 52f05c4c-3b86-4301-5d9d-08dd0276de7c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?eokNpSklzeUAGG9avCnBlHpjYPmPzc2?= =?utf-8?q?M3y5jm5mGiIUMhsiPOwZfAEprM8xBny5HxMzjBF4Qiy0hmVAyd3EVpGAbfc95ko2h?= =?utf-8?q?SIwOCItna406naYs0BRwbkThYQoPa6Tr87b1vRmg/+qDLbCv3n6Xz/cT3caii83+f?= =?utf-8?q?kAG+r3ysL4tm+ICSLGTbgf/fbI9OFJEvE5a/9MhdaJLqeTUsO8SXJObiIHAxRuT1T?= =?utf-8?q?ZZ0Xp5KSKr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SF8+Cyv0Qnoh0aQptXPp0k/o3Oz51rwkXGZY4w7ckP6H71kms1j8I1etmxmCYP?= =?utf-8?q?m+fr0PCdkP6adP2S8TvPLSqWyQPdZnUU02jpS+WIZCaUHKNTxps+1plK/sxlmiiRU?= =?utf-8?q?MSfwLtrMuDMo1l3RrbLlPCr89EmIAwLF3YjmLZ7n6FC/998tXJ2imhtiZyn/N/QEt?= =?utf-8?q?cneLxe/TywLZRP82Ylk009wbWyDUz+Gy1aGZICWJTUvKZSccOQGQgl6zIzv9z0I3T?= =?utf-8?q?S6VfIuF8mGPe?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?e3wTBg62VHz7S4QUcRAr9YxVJeeE?= =?utf-8?q?Vn7Gjl7lMRySK6uuSDHbZ7npD+8CKrKsC5M8vMJH+Wd/o13DWrQ01mvqfFLGJ3C/8?= =?utf-8?q?azw6Ny8dTrKHip3HUbr7q8ELhE88Y2MpHUjtKy4gwZwEt6UsCq7J3efXsuIeqbhAy?= =?utf-8?q?zJUZe6Ofq4mFYTYFPDC84PTk3LY2aBg9FKNVYgYvgwOE4j5hiIJ0ibpDL3wXNgqX8?= =?utf-8?q?XM80xdsn/7vTW+Ac4X5Fg5TKQ/8kMUbOhimRSGm5+h6KncQg9Z6y14IGRDXQyYzB9?= =?utf-8?q?Pz/YszuUaCITnynT0rsngNzlzqirnUWnicBN+N2HQxLYiPXogEhLQqeA7xzf0UFuQ?= =?utf-8?q?wpUmc5B6M1JoA36iajNYUzyIdBk8RvzT7QrHoRHzj6k+dQ1oHHkKNB7/UwLfmXRJg?= =?utf-8?q?Vm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mp261O6BBznuE5TmnDTr7boLijWZWo0dzPilLSRkyJhM9WZmfaKNVvkvC?= =?utf-8?q?+9qU/Vlz5AS9TS9LCF7qxEhN4xQUi8//dNzzxBmP+hAknDs+mPE86t0Bz3j+5NoU9?= =?utf-8?q?JNt0X8AcrCuG4F0xjh7Eq/ku8ym5jgHN6vaZCfYQcSPtaxXTI7Sf8HtMx+Y0AASWd?= =?utf-8?q?86HurAgm7sufztAEgC2zhaYaztbV2Qnhk6MLycLAu0zdE9gTJsTJ4cYxDN6nvz0Ye?= =?utf-8?q?KBgDIvPCLWM3?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52f05c4c-3b86-4301-5d9d-08dd0276de7c X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 17:32:52.1775 (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: AGjZxn2whdG1axEBtNPWu33HEX2oqfJv3lxFSgYkc5+g4GNq6cGk/Vz0rSElFBb3FwSSPdcV2phE/5g4O3CTvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10086 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 --- change from v2 to v3 - change kconfig to select REGMAP_I3C if enable i3c - remove i3c/master.h - remove , after {} - use #ifdef CONFIG_I3C about i3c register code I2C I3C Y Y support both Y N i3c part code will not be compiled N Y whole TPM108 will not be compiled N N whole TPM108 will not be compiled --- drivers/hwmon/Kconfig | 1 + drivers/hwmon/tmp108.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index d43ca7aa4a548..9579db7849e1f 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -2298,6 +2298,7 @@ config SENSORS_TMP108 tristate "Texas Instruments TMP108" depends on I2C select REGMAP_I2C + select REGMAP_I3C if I3C help If you say yes here you get support for Texas Instruments TMP108 sensor chips and NXP P3T1085. diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c index bfbea6349a95f..deb1505321335 100644 --- a/drivers/hwmon/tmp108.c +++ b/drivers/hwmon/tmp108.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -442,6 +443,36 @@ static struct i2c_driver tmp108_driver = { module_i2c_driver(tmp108_driver); +#ifdef CONFIG_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 device *dev = i3cdev_to_dev(i3cdev); + struct regmap *regmap; + + regmap = devm_regmap_init_i3c(i3cdev, &tmp108_regmap_config); + if (IS_ERR(regmap)) + return dev_err_probe(dev, PTR_ERR(regmap), + "Failed to register i3c regmap\n"); + + return tmp108_common_probe(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 Mon Nov 11 17:32:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13871031 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2042.outbound.protection.outlook.com [40.107.247.42]) (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 C0C831BC9ED for ; Mon, 11 Nov 2024 17:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346380; cv=fail; b=IPIm7bJSBCdLxe+bEp62wneKxTW2yHu3nHQv9EtCDQUop/QgRswkaid0jorokETck7F81uC1qSuI2qWDVtKJWhxgevebkUhsrqaElpP/k0qjU9UdWgdgrmfeqhoNIM5BfMbl4O9cmm4dEYcHBJVsVcOs9UlXWE2VY1R6PRVmDrw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731346380; c=relaxed/simple; bh=OxwlpHDBzx7gu1DR1KZg+LSN76MVcUEG4mWJvWBzHvs=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=berl7i8ZBIQUGJhJlWTUsrHObGIhYFGpjOOUCyzjWb7LRyatn+NoW0BftxEycE8tY36BfPjGOiogXREDLbQwSZzB0MEP01aV7a4d9jpHxpBLtCnn0nBOgKByKEWR6TFWUKR5/SthkiZkTKhr2GKwUvSFlwavt5nUvurQ7I7jpik= 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=SD6oqpix; arc=fail smtp.client-ip=40.107.247.42 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="SD6oqpix" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=phrRgy/xXAMA7pigGTf871C6hUe5+Gh8VU7RbUtRl7ZKAc8a/VAIWuZdQVtQCr3EUYWLLtlNEoxGv3Eo5/crpOmjIUA6qSgBqcyj+djH69sU7WHHc+WcmAlaV5XL3Krb8cLFwXJ6EAwtlL1HjvWz5KzImQtMnzE2tOra3PMlogQ8j2ShijReldUbaO4tv40vfO6Fx3n6b4tX9OH1w1wvGHTySGMSpAFYHzm9cVL8OLzLcabov6ANCfcasVLbCeNJJ/bRZ43koIj02FYw+uZzj2G/cj1aN5Eo/4Yf65EPEKtny+d7sXt2xRJCs/1MDRpQYruJMFPERR0lH5biYzDQAQ== 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=lBR9Rt5iWZ7G+8yQL1hxTSqN0o1thWd8r7kGUqd9Jio=; b=SKg1mbZ3IjJpva+4B/4TefXSHPM6EAq6/KPkmFknnHzbiXFq8QOu/qMOxaJPVM6dSfh/wdxsdRMNHZColG+9JEbfOY6nB90FOCpEBzTuJtVUBak7wqsUnMsNkh7KZ0z9MTsLi0y6cL/R0o1ShvUIwQNylsq5TcrT8skCcioCXlTKcO1FroSqLfO4Vnb5oALZACFVE394BgYzoUeNRU+KUgVltyWHsqS+Iqpk6D4p8rqynuVLKpQ6wqleThiKAr5EG/JD+BSnxb1Y72QUMgdKc+wqf6/SOA8C0zUgTVnQFdZXmt9p16FwLm2/V+HW378x7E6+tKiWoRwAnhhEMB3OUA== 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=lBR9Rt5iWZ7G+8yQL1hxTSqN0o1thWd8r7kGUqd9Jio=; b=SD6oqpix7iRzxsZPhftflIfAjq3wHF0m3XfVMg72fwtmRPOsnNKEN2E4uW63Gv+YXacZCgYdd+cJI39umIQJW0AvCv8b4zXLWFqtH7ZZJs9xh9Ngl1HDlvvSZQNBiJ3ItLyQBjJMMhbwQ1koDx8bpttp6DhaKxEk4KfdmlpWMfs5QzmHJJA2AQOtsLQ8JdDmW+7YlrL0j/cMTPW1DPraFQZVM99tir7tJkWdEEQId2MRg+ydApvTeApAxssT9XIqm92xRVeALhgO1L4wHjQDmll3jj15smILQecKxF0ryEq+vxYCDNWA6dN+5SJlf77kQiXFXohTqbUkRdabGaqxtA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA2PR04MB10086.eurprd04.prod.outlook.com (2603:10a6:102:40d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 17:32:57 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8137.027; Mon, 11 Nov 2024 17:32:56 +0000 From: Frank Li Date: Mon, 11 Nov 2024 12:32:02 -0500 Subject: [PATCH v3 5/5] arm64: dts: imx93-9x9-qsb: add temp-sensor nxp,p3t1085 Message-Id: <20241111-p3t1085-v3-5-bff511550aad@nxp.com> References: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> In-Reply-To: <20241111-p3t1085-v3-0-bff511550aad@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jean Delvare , Guenter Roeck Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731346348; l=756; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=OxwlpHDBzx7gu1DR1KZg+LSN76MVcUEG4mWJvWBzHvs=; b=vW8Um++tn2BzxkcvHjP0n2y0CDzvl8r9BxFTlAyR/DkCyIq9JS2AEu4pwB0xQlwhxAclK+uc/ dmvYPOKuRUQBOBTeGEcYGs94ayFVFLKyUUmazmlcHb78nz77RFZD2yy X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR01CA0044.prod.exchangelabs.com (2603:10b6:a03:94::21) To DB9PR04MB9626.eurprd04.prod.outlook.com (2603:10a6:10:309::18) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10086:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b631c75-a92d-453d-3dd0-08dd0276e156 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?9xB/w1YRSNt1ZQe5QaBiEy+YHPappCl?= =?utf-8?q?yS5FMCfdP1YVA3atQrlmZKQKFkdRG5CyW8DheAbLOyuF2MKJlkzMsMERpGanp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oIqDoEE?= =?utf-8?q?33QXa/cp3ALxEq3EGT7BtG8hiciRlWo2o7jnzbR9IxyFrus8rG3cZZiP1kqVt/wAh?= =?utf-8?q?8UVQD5z7mneGYK+zCURq71CgNwnF12IJX0Xjs4qxsl/PJNYhue5EC8CVrTT0ngYKv?= =?utf-8?q?F/nEJCd4KcR+jFsZjPclood7EEOTHYEugS1nwlkTqk8b13F5wTf784tgI4dMcfzNM?= =?utf-8?q?+M2gdx1XlP+VUN07/PFru0M2sX9/440NQk3TtEIW0B5l69SDcS2IKrionkdJVS4Sd?= =?utf-8?q?66YEng+a8arcN56qpYqE/bMtNes3ur2YbCeAL6MclXBF22ObiJPRbFQ9b2VU9DH0x?= =?utf-8?q?uCyIWi+NC+QY/iIzqFY8/VCVlQ/tv4YFTdy4nVWAT1FveNizHvc0/P1Bfpao1+Nt6?= =?utf-8?q?qN65yX/71FQ9?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Oi52KfvAaLEwleqRfOH6CpYzCFrb?= =?utf-8?q?qeXbfCWQEX1n+t+Kr8DgyfDrUscn2Bz59+IkV+Bnh0V94mrpRZg36KIXXnD6iiONr?= =?utf-8?q?fYCqJCSHPm5vDaI78nK1J0jshYxceg+hD8NMsfFbfF1FFWE4WwvfM9y6sl/oBeyhQ?= =?utf-8?q?5mhALkgNCsSiWi7BV/66iJ5TSZSawU55urmzpfcHJMesqzXe4Ni5bjIHYNW+NZT7n?= =?utf-8?q?E859X9Af43dst8Ib9zpmc2QljJs5JYMMPvu/nczT0jNH/YSo6zj1SkjQuBHWhuREY?= =?utf-8?q?1d2k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KNzbuX2jJmbnGZpxF4q0fCujCKgL1Jn4KS4b+l9cxQ1iqdLm64?= =?utf-8?q?MgzuN0MHbPuQzLdxaTRqClRXLzcKK/XLlR7v0355vdMa6c99dAZhYbMaTlEKCtOH8?= =?utf-8?q?zwZ83/fW3IUvcPb5eKtRcz24RV0g+rX0UxrjUtbkvHnsFqbVv57aXAC+Oml3OBXcC?= =?utf-8?q?9wbJ7AzibH37PtKk9HrKLxCSkUN15RaC7A6hGz2Mmg4Yao45GnOl8JzthIztsS4mL?= =?utf-8?q?7FAIA4quZtex69jCIxpay3r8ewPeBNRfxtfLrGDwqvCaOMs6WOIr2txBpB0ToeuwS?= =?utf-8?q?3xXJNH81mUvR3hPmslwj2nWKFlzTR+pQu+ngdp7XfUG0M0jje0Q1NZuqW+OjBfSHr?= =?utf-8?q?XwWHDJxC5761?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b631c75-a92d-453d-3dd0-08dd0276e156 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9626.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 17:32:56.9493 (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: WA6Oo6IDqOO/T/AwRZsnCfb9ckLyUJVe2McKPzxVFExVvwjFhcwZEkQtXMSGT2558Crng5S/KNM1erhr6loPpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10086 Add temp-sensor nxp,p3t1085 for imx93-9x9-qsb boards. Signed-off-by: Frank Li --- change from v1 to v3 - none --- 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>;