From patchwork Thu Nov 7 23:02:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13867268 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 A00DAD5D695 for ; Thu, 7 Nov 2024 23:05:18 +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: Content-Transfer-Encoding:Content-Type:Message-Id:Date:Subject:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=+k7ybGQWeQbkRAnZeryM7CGSkMB1SjtatAYTn6jx0kc=; b=ewvViCpRMs0gfz9G+ze7TOkrAz cul8fFC4D/P71/LqQnA87Gt1ec7aR/UtYisEWfBPfJpF8YK8iadKSu6m2PYbvzCYyZ28BjRiLgNOU kQDl2h7kQy7GsJJ6GMgfZNAywIkUyGrp2FcsIdMG+7yMTFd6AqKvRsPc8WnnLMFrrciZU1LxZll+e zb+wecrBSRyAC8EMNUq0g8G6o6hNeZMe99UdH1IlfoEfHO7wSSPstQKuQA4PfxW4IuxNxsKPqNgDP uD6O57OsaBigIP4/vyYz3EhvVYyICxPps51bRa5EmgR/mA/10luhG1G8UFR/ylEdYRL+2U25TJJjZ UH/3TNsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9BYq-00000008dsL-12JK; Thu, 07 Nov 2024 23:05:08 +0000 Received: from mail-vi1eur02on20621.outbound.protection.outlook.com ([2a01:111:f403:2607::621] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9BX5-00000008dKF-0ddJ for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2024 23:03:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=np0ujMAvoISQ3Sv0/1LqQ7Th1+jkk01oiwmj0Aslax0nkL6O7B0o8WIFBczaKxwCF+yfClAejQfDptU2LCaY8ZtCFVQXEdBPB5lIEcwHTIyucBFarisfMokEe9s8Ry55FZuZXuGoD9sq2yhs09hyVEui0UujM9O9LLuu9Vj3osvAT0WiWfaQqHJYj3Hb1+HOY+SRmUlrUYr+4iG85IIOvIoDlBNH3+OniMkW/QXwT+mHD3xlvgdv6TwHyhKmEwXksNN4c2KVdqgxW1TRhc5Oy6TZ/XfzvYGUC0OqNkTZHJ+8olxYLTsLc2CJwpkhdi0d4sxOPElFkecNuWJCfUPP3Q== 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=+k7ybGQWeQbkRAnZeryM7CGSkMB1SjtatAYTn6jx0kc=; b=Geuoc3eXM7zQz1QF18hUgJQf/qnyCDY7t5VqAxTA630lBeWXmNNnE9Eayr1X3p3Xm+lPERYA61Wc7c+W5SqjvV1vk74tbTof0068pa3skUg9H5fUCj7zlX3yX0LlxPRx6UGPD5QIQ1ymSi+RBEZdy9MMfcI+hSrqNjCEOtc5+9OC4RCPCH5Hd7jjR3GSa+GSJAi0VTsNTu2xDkKbFT+EQBnQQm3pZ/2wMRadlR9QhXkIGYxt2p7TZnDjoD2jz1uebQodkkHvfIMTg5XBygwFrIwp1HH+0yTOo1rP7zHJDRmGPWIYE954NaNCmc0/pckVBKy2z1IyM1NU8awL56pe2g== 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=+k7ybGQWeQbkRAnZeryM7CGSkMB1SjtatAYTn6jx0kc=; b=e/AG9f/l1WAHwkArV/+SpmXwrrs+CcUAHkZWmTfn4LKtmBvntSxb3m4ZdHACCLzOT54b2Q2u8bkUPf6qGFL6X6WBct1AgVeOcwL6sbpKe3al3Uq4mYCeYPepJ8kjzszamMX8AkrNBJgnEoTsavDBDFPVxvpswQ4i1fgeuQLYvEHsKdXHH9CRkwZifk9CHwomQwbtGWIkOGxHSb79u7c6JSMbSLePIMMb01FqWZ9m6peeYnUxW5kDhYnzQtaXT7f5Hc17/HfnXzgUl17QmIgpdVuR4npE3PzBGHIKHt0tSCafmj5QWijz4Sr0lme+y7ENAw3AknHtgN+U37dJYLNimw== 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 AM0PR04MB6851.eurprd04.prod.outlook.com (2603:10a6:208:182::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Thu, 7 Nov 2024 23:03:14 +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.018; Thu, 7 Nov 2024 23:03:14 +0000 From: Frank Li Subject: [PATCH 0/3] iio: temperature: Add support for P3T1085 Date: Thu, 07 Nov 2024 18:02:26 -0500 Message-Id: <20241107-p3t1085-v1-0-9a76cb85673f@nxp.com> X-B4-Tracking: v=1; b=H4sIAAJHLWcC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxNDQwNz3QLjEkMDC1PdtKQUC3Mjs+SkZINUJaDqgqLUtMwKsEnRsbW1APa zWK5ZAAAA To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam 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, Frank Li , Carlos Song , Clark Wang X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1731020589; l=1300; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=ugUf7LXDuQ1++QqLWN64clcLePqHZHxg5norw9ccZSs=; b=bYpj+uWdoW3IuzuwJttEWoaqpm2Ho7rs8LYBlY4Hp5C1SvEiOw7F87OIHzqnN0hDRk2DgIS4O Nzvnb14xv8lDwJ/Dtcq8Ywv90q8TV1UU/vMIP8xOCNUsF38Pcsd3JN3 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0094.namprd05.prod.outlook.com (2603:10b6:a03:334::9) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM0PR04MB6851:EE_ X-MS-Office365-Filtering-Correlation-Id: 295368e6-7026-4d5a-94b6-08dcff805bba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?IEctC6tGDNqJXHs5JQ5IFGtOC4871eR?= =?utf-8?q?+Y61w4fq9YGxebN+FBx5vL2Oyg/aIwid8FZA/eW6zJiC36jAP2pMgVjeDT0PZJdJM?= =?utf-8?q?jYU1V1Iq8cHgTZeoyPQNDrdNK4IB6X4ECQfuilSkHLT9pg57oyZMaPWQNwFR1tQDs?= =?utf-8?q?MsG+t0uup/TFhf6slGAEZi1DWUK23W07HrLCNaZtqUxQ6gYyWLpa8jJznyHlE70g0?= =?utf-8?q?glkalIZSNgAcOcAOBmDPGuVeyS1Jl3Fudnlg76gmzMKjSasycLoMV4SHjvcSszIG0?= =?utf-8?q?TRoaZQqfYArK11za6OMPXB4MJ3YSHIaJSq861LAfEnVfsb3E+QhXYEUxpYO8KiII/?= =?utf-8?q?OVZlCnOl7K5vyQBWgN+HyHrqGDy8luYbCmNidqi5i6mTUruqXPNqvDJCwbeN/NPAf?= =?utf-8?q?mgduonFxou1SIBDtmYwOnFOAdyhP078rJHljy1QQhZ37gUyIcLupvRiKmvuX4dMEL?= =?utf-8?q?BrN2xaWwXoJDHv/L6Pdq1g9JWDE/E8LUhb2rgfITlE7Yq1darM6rYnJkb0R26L5IG?= =?utf-8?q?IArU4UicDB4+UFteHr83G9Nn0pZh1vrocpjo3ggXAWvxJvq4xNvcNpTH/UyD8AKm/?= =?utf-8?q?LMo2Y+ZFH22VyHl+E9Wc4fpWtdFEn45SXJVoiUHc4Sw+IGmuD/r65bPJeBlX9N0XW?= =?utf-8?q?xI0/5EjMVoiVURbZoIr/4/T1PnT/pQgrk6Iwg/0LVWVsRhFiVK4X0/tSJ/k0QlKox?= =?utf-8?q?c+HlhmLzKB4kgb7n+xfkv/rPkteKMH5QQRqFMNR5s+f00gcfHplvgXMsJ9OZ/cYWD?= =?utf-8?q?ICk5co9NvRCF2NSEd3Hpjs1YuifPVMyzUNFnuvLIacM+eU+KaDFI7dfrZtPHT1FM9?= =?utf-8?q?NMFSljfCQYhwJjt7BYKMe3bsIFe+f6JVRo86qZyA89WpCDisrJvpRrH1lQZfK0DJa?= =?utf-8?q?W40y/s2VZKG+p1xUobZK8AL6PaDH/qAMELTLO/i2o+NMy676vHQsnS+ZAHOP7tl0i?= =?utf-8?q?S6WMRET5t+QHjdJgyCJKC+tEckV1Wh6/mBeuWdSSdQWou0b1Ac34ACGA1ByKnrFL1?= =?utf-8?q?KvRcJ2K+QA4NGBto3VNU9Kv2Xmm79PJw/a/2MGz/n/Xye5vGnWJefPMebDX5ilDpd?= =?utf-8?q?4cJJ99vHQX06zqro/LYCzK38WjH78ApHdFXxhly4BNUbiPoH9zY3BRuemzN9Y+HTY?= =?utf-8?q?4mIzEY/Z+C2X7cMYh0RJdXUvemE2IsPWK/a2pEHFR4It1uNgycWci2prFeeIfLlHJ?= =?utf-8?q?CeLnhm/g3jf/NoQEuQlsIGnNbOgDDpML4ICvB1eW94OHoTL+n3PMZJPABd5/DBTPz?= =?utf-8?q?Q2qRsTaen7N7DH+TpvESeo0z6NVB456WlxjYanVNh6AxLWgomIL6iSm0=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)(366016)(1800799024)(52116014)(7416014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?VVRCRu1h6EKbYwWZJyTHmhdpqwMU?= =?utf-8?q?HW9B7EbxySNhFLfzYtK4z0RY1JTo51s8nmyeTh4VkypI2zPqTxzZ1UeFUvkhIHjtf?= =?utf-8?q?Wgm2eQ7xX6yC2pE7/Bb+pk1ULqq4/KqXECMuaghn4cEruzM4em8TxoZgY9/4Q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q?y5gW6dIbRy8eWwLKA98ZjzkJy5qTmzXhIKZdUssKCaIoU4kr+wjKuQvbg6ihRev8r?= =?utf-8?q?R4stk41LsQ9NqB4v/NT01WcTXWAh4BIIupKnB7yJSdMJ/O38WqOJSPHcWNUsUBFbx?= =?utf-8?q?cRp+XEt1gg442sk+KX3tx0i7k5lokAbzlGxIthn/qSUMPcYYPhncKJDgyzktCJAFt?= =?utf-8?q?pnJKhhO+zOzRgnV6kGKZEHIrg/fJz81NzK5lz1YZ94yp0ifCqU9usLyJLioimsgIj?= =?utf-8?q?cC4UBpd8FrackEFIMc+DPuxRr24AcT62B4BDRWLZUe3TWpoasuDZNlGPCd+PtYNug?= =?utf-8?q?ZCxqTThQXWs78DNh2futyzGgqFC5bUTv4XFLoYllCnBTshVdlVbYRrnrGaP9y+k3k?= =?utf-8?q?wp27ZLs7gd6dgnudriKoKK7dcxPBpulk4/h9K4wX1e4BgkxluQogUv17+KRwR6Ugu?= =?utf-8?q?xqjOxPccfB6Iky34oQ717gFKczupz4qCTsQbvWOYaBH7dBHePTusZwI3ULM+a9RE9?= =?utf-8?q?jqGg6vSPF84D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 295368e6-7026-4d5a-94b6-08dcff805bba X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2024 23:03:14.0626 (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: Ud1+7sd0Xd3b/HzDcyV3O9nZofGlxdWV8l9u57AFC+Tn6Q44TR7u5V7VOWoNYt6ZosHhSHsT6+6tpQphSGFMcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6851 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241107_150319_236864_C6AFD768 X-CRM114-Status: UNSURE ( 7.61 ) X-CRM114-Notice: Please train this message. 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 basic function support for P3T1085 temperature sensor. - Add binding doc trivial.yaml - Add basic read temperature driver - Update imx93-9x9-qsb.dts Signed-off-by: Frank Li --- Carlos Song (1): iio: temperature: Add support for P3T1085 Frank Li (2): dt-bindings: trivial-devices: Add NXP P3T1085UK I3C/I2C temperature sensor arm64: dts: imx93-9x9-qsb: add temp-sensor nxp,p3t1085 .../devicetree/bindings/trivial-devices.yaml | 2 + arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts | 5 ++ drivers/iio/temperature/Kconfig | 1 + drivers/iio/temperature/Makefile | 2 + drivers/iio/temperature/p3t/Kconfig | 29 ++++++++ drivers/iio/temperature/p3t/Makefile | 5 ++ drivers/iio/temperature/p3t/p3t1085.h | 31 +++++++++ drivers/iio/temperature/p3t/p3t1085_core.c | 79 ++++++++++++++++++++++ drivers/iio/temperature/p3t/p3t1085_i2c.c | 68 +++++++++++++++++++ drivers/iio/temperature/p3t/p3t1085_i3c.c | 59 ++++++++++++++++ 10 files changed, 281 insertions(+) --- base-commit: 74741a050b79d31d8d2eeee12c77736596d0a6b2 change-id: 20241107-p3t1085-fbd8726cbc0e Best regards, --- Frank Li