From patchwork Mon Dec 9 21:53:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13900448 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 BD266E7717D for ; Mon, 9 Dec 2024 21:55: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=4UwDRaceH7GvnQ/QxRniWA3dsOW7A2WQ6w6+nm1UCs4=; b=Hm0UAbtMJ8PSzCdXTfNyw2QDH8 BNdANha9YhcCVgSyRivtfaawBNskhqtdOIS+82sGUwtaYVoAst46Y65TFnCDFtwkuWXzmF6G+uT5a UYRMpHiLCyhB2Zz/7z8k3+wBxBaVv3tQMsNrKA5jxBPUCO+LiVdtfyCvyCXxxhYVIMsXe7TWGS7KT tYYaA2eC6d0R8SKJkoClZj1gsLmTjRiT2c0+IyevDn+BaQGrkEE9H/Zmd0CKxhuyxyWW2rCvfCsOi K7EhTt+H+SDj2KM+wPaPTkr7LkWgAvQfNoForbCBp6lrzmOrvI+qvtYU0E4EN/tUxnn9gy2aVepcs Cj8PLGuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tKlj9-00000009Meq-2Ir1; Mon, 09 Dec 2024 21:55:39 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tKlh8-00000009MKo-20t7 for linux-arm-kernel@lists.infradead.org; Mon, 09 Dec 2024 21:53:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FWSX7dqGC731GCKWw6m8VUFPh6CBoG/9YPtoDVqsp9ZCGmm3q4KuZS22sRqCquWTnpzZAnLyVN9NcoXyA/hN7QLCp/eCb+zvPRLW+VyOmOPum3Zhh7xnxIc9aqCQY8AwLr1jojIjJHVZR4iBuMk7aMj/mApL3RHsddj+cImtCAPZCFajVNdj9gt2EXMgYrncG/24qaL41pV8v9BW+i62RaRI8CmdjmOjHmb1nK3YdyGU+ikUVaPp7+0Q6cvJ7dEirRBkvQRSMokti7X56pnNPVEB0W0k9/7mKWULyzlO1B5C1/qSgXwn9dDxdAGLdPR9Hd5jrsjOPNDKrXTQ4dHBCw== 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=4UwDRaceH7GvnQ/QxRniWA3dsOW7A2WQ6w6+nm1UCs4=; b=suOON05AsPllKoNx8nhPu0aGIihaOA9mJzYgyDv86gba6MLhfMg5+bZQz/Xy4fJLgm4QQdYReRHTSxiMhv0EIZXalPUdV3hKrGP05dURCB6dFZhDuoSxoeuMt0xY11AZlngohfIeDjkKqjfOiEB+7rw84UtGtDmOLTT/sTaQfI5NrvuIqd6g1g9XxGoB2xLqJTFcbisooVLyuOhu0Y4TmMvPBPlGIlP1dom2chkM9/ZhWl7ohVEhTnDxZaDc5oZAIV9t6NyFDN4tf7hBm9BpVwwaurGojl2D/RgtosLW/q1c+HpQcooB9BscTcKMqzMYlAnBT+RCVRtBLczIQe1RoQ== 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=4UwDRaceH7GvnQ/QxRniWA3dsOW7A2WQ6w6+nm1UCs4=; b=cwVRATEpu7tNytxcn/CgG/KlcWIOOw3Lh4FAgxus4vs6veJHV3LyeimJyMJgKqEZ5VFPxzM6Z0zjN2yBIRaAeUAxf6YmVMxrk5EVdQu6xT3588l1cdpFmgnZSHVCi8Ld8gUSrZb66ma4O6GiVcqcY4w5PHXBcUCaTM62GY/fRih5iX+1pqam3/cCENcZJK7CnFW9ykyDt8fNVvuhF3EklP6YWJC698ukIt8POQvG5pmH2l6zY+CO3EQYgtP5m7K80JBZiEKPiR/XQ7W8QciD/6P0snxbByvcd05WAPobVmDecUlAFbVWqL2teann8TRacOxsw17HIor3Caw/ibG71Q== 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 DB9PR04MB9818.eurprd04.prod.outlook.com (2603:10a6:10:4ef::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.18; Mon, 9 Dec 2024 21:53:28 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.8230.010; Mon, 9 Dec 2024 21:53:26 +0000 From: Frank Li Date: Mon, 09 Dec 2024 16:53:04 -0500 Subject: [PATCH 1/2] dt-bindings: thermal: fsl,imx91-tmu: add bindings for NXP i.MX91 thermal module Message-Id: <20241209-imx91tmu-v1-1-7859c5387f31@nxp.com> References: <20241209-imx91tmu-v1-0-7859c5387f31@nxp.com> In-Reply-To: <20241209-imx91tmu-v1-0-7859c5387f31@nxp.com> To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Pengfei Li Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1733781197; l=2218; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=iVQTtCNDQDMEk1P8NXmCJ6s4gReJ2DPWuwpLblkVduE=; b=pkoOOhbdccrJsmUeD8dR0pITRa5/TbrLr5S24g2XYlWeEGQgIVAihdAPB+3Fd2YjcJ2PmQcLd ne0xpHWkXvxB8JCk5wKj+Q2B4RF+yANH85g3qL+bjLSA2Ge2RFZuYAJ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0158.namprd13.prod.outlook.com (2603:10b6:a03:2c7::13) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB9818:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d21bea3-4ec0-414d-f4ee-08dd189be910 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|52116014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?bsYqPntD7hxAm4OeSgtb9SA8VkRg8/p?= =?utf-8?q?UR6Lz1a3nQRe6fTp/HrwK3VWa7TJrUO1vgRekHGTJkvS7zn3vNeTpAJV/fGJYwHnR?= =?utf-8?q?sVaoZnFUTMDpcM6gd8ZXjekHU5M/v6+yt7MT23BhnjAq1uPDfEmiyVMhLKl3WqmIM?= =?utf-8?q?oE4MZyRx3cYvtb1T5w254G567bvpYVnveAmiAttXAIx2u/h31ZgragwA8t3IWdbOC?= =?utf-8?q?aTFpyVz5uTmN6pshr+V8m3G4n1KhNH03MOxVHuaCSiGy6LKeM5pTQXpnLOf4Ga7lw?= =?utf-8?q?SbtHDfGPEOWx0CYdqpD5mDAX89Uk0yXvaR5CG2nisFfgsKs+0vA9Atz5Wcz1TUnxj?= =?utf-8?q?JdapqyAVakyc4TGByYAaL1N0k7VE6xawBDlVfdPf+8Vzus2RKonL+CFdNN+Bic2X+?= =?utf-8?q?8ahlvUAU83hUOlzxD24jioRFb1MtPbemZccpYUpix3GQBsl/lzDMKFWc3F5BjuFOo?= =?utf-8?q?Rr7nf5oR8kNuNYqCII/k9J/OpPuqkcnfbEYJMA5bv3mpAiOS2nnxESPvLOVoinjBx?= =?utf-8?q?38D3QcIxAsRBSekpdIx0/QRB7JqTC3fSd0ZRghHRWAQZk/E1p/vu6FXDa2r7h4Mfp?= =?utf-8?q?rGqXWlKPJ/DRRrdo7fu1nwFk2vM5cOJduueG+vIdSY11bJ0dTW0WT2RxxQG859zNX?= =?utf-8?q?WvbtrPFdmZV+GcpLi8hFx6VqDOQATK4TaytCXWIk62EdOf8Q435/wIzanKoppAdlM?= =?utf-8?q?fBxKxBUOzzE1Es1hEGIIOK18a4fV0668X/A9gkH2wR85HAsgAisKPeV3qwBLzg4l9?= =?utf-8?q?LaS3O/GP8cCxl5cnKN84Dv5ao1WTA9kiPAuYNcaXpZ3OQ82HgimMeVpAVZfONlQzX?= =?utf-8?q?2eavgWB9hpmWuPDHZTrfW7IpvcgedAg2Y6nfLX7U9H/UAeL0jftCGCbBxyYAAVEyD?= =?utf-8?q?6VlRrUa4d0KNVHV9mz2KKPBFI5t1CrbIxBhkDvILhO+RKOwlGL9BrWU6x9WshKKg0?= =?utf-8?q?MIVchAYDzg1+HXFOpqHMWv671noWrfMpOguHRjnPzIAKOtgz271Iy4pZbnmkEh/fX?= =?utf-8?q?TisrupkFtMVph61ZW9kQB9nfh2aYhGi80atl1Utxrj+f2g5pi/qVe/h43Bw6dCqnP?= =?utf-8?q?hjCSmBJhDktVBIkwfZoHXkAQGtR0JbAbzqdOGG6ZOgWWd5K0TBrBbhe4AhVfaQN+g?= =?utf-8?q?TmqtfV+6PH4jascRo9gWW5L35JWckK2gdRj005uPxpGZZjsMoJqttNayuEsJT7lbI?= =?utf-8?q?YPeW55eWyE5Vdb2Kaw8hkBezr4bq69/vtAMvDvNPeVKQJBlwLLjnllXiNyBm6xhji?= =?utf-8?q?0tWZ2F22Fv0YqgyDh9miPxorM3tIs0lvHynw77SRyg2+yLH6uKre9swHXljlqO/SG?= =?utf-8?q?3InSyPvzsYQb?= 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)(7416014)(52116014)(376014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NrX4f9wSm24sXJUkaH2UqpbvZNH/?= =?utf-8?q?dkx4P/CO16R3EqoDrChTxQItnkjPXoRiYM34dpqjeQ54ifZ+iE+Gio8T6zpvIzpMW?= =?utf-8?q?0IISj9pfJHdZSo82mHIgTOgXPbAM08o+0ZZdrOJYYCLNmeeAhtLhPIrmdfbvfyGkj?= =?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gnDkT9n8/qwU7V0tvtG1EzrkC8nVVdweCELQ554XPnO9ZUcKSEiKhegU?= =?utf-8?q?kJrmk8y7GilaQ5HhQE5m8q9YPHjNwhJ6ZvccwsRcDlt0iQ9F1ZFTpFp5THjxXKOxW?= =?utf-8?q?ZAMhf7i9sUGDAEbHIkBpWcWT5q8Bp6Y30wVKNW94aMAiADr35xrDz3ri+1Hk+6Mst?= =?utf-8?q?qhRiLlfByb+g7VPnPf/dBrO6NDgcXvWFV4fzLlfqZp0STSu9Or9ddcOXI0MMmmJcX?= =?utf-8?q?n5KNkoM28pZJ5AoLXEvfJTfc1chGCY8/2b/kChbWDqbTQtYLsgH6EgTxUiqDrsupB?= =?utf-8?q?LSCs4NZsuNdBagCQMuUenAdGSirM6tSaHoEZePxZVpRcSxIknXCeEFy3U/GNYzgKn?= =?utf-8?q?hCVbgahOQIWvGzmW2cEclQ+o2Jux9oxiBMvoOBmWhpCS8aqEaA+4qome7O1Mhx2nA?= =?utf-8?q?P9OwHrRfTwaJcZECvN3Q3BWhdf8+HxkQWiGLdzaubCKgxnCJt/Jlmf/w=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d21bea3-4ec0-414d-f4ee-08dd189be910 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2024 21:53:26.6591 (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: 3fNDkkren3mXRl9ueUifeVqPgiOyAOJR/sltFr7q2PmyCjGZSAL+JorhXbOFnqOFDhM2vgouf6oxfVZaFxm7ZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9818 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241209_135334_525191_40006C28 X-CRM114-Status: GOOD ( 12.59 ) 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 From: Pengfei Li Add bindings documentation for i.MX91 thermal modules. Signed-off-by: Pengfei Li Signed-off-by: Frank Li --- .../devicetree/bindings/thermal/fsl,imx91-tmu.yaml | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/fsl,imx91-tmu.yaml b/Documentation/devicetree/bindings/thermal/fsl,imx91-tmu.yaml new file mode 100644 index 0000000000000..f5898db1006c6 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/fsl,imx91-tmu.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/fsl,imx91-tmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX91 Thermal + +maintainers: + - Pengfei Li + +description: + i.MX91 features a new temperature sensor. It includes programmable + temperature threshold comparators for both normal and privileged + accesses and allows a programmable measurement frequency for the + Periodic One-Shot Measurement mode. Additionally, it provides + status registers for indicating the end of measurement and threshold + violation events. + +properties: + compatible: + items: + - const: fsl,imx91-tmu + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + nvmem-cells: + items: + - description: Phandle to the trim control 1 provided by ocotp + - description: Phandle to the trim control 2 provided by ocotp + + nvmem-cell-names: + items: + - const: trim1 + - const: trim2 + + "#thermal-sensor-cells": + enum: [0, 1] + +required: + - compatible + - reg + - clocks + - '#thermal-sensor-cells' + +additionalProperties: false + +examples: + - | + #include + + thermal-sensor@44482000 { + compatible = "fsl,imx91-tmu"; + reg = <0x44482000 0x1000>; + #thermal-sensor-cells = <0>; + clocks = <&clk IMX93_CLK_TMC_GATE>; + nvmem-cells = <&tmu_trim1>, <&tmu_trim2>; + nvmem-cell-names = "trim1", "trim2"; + }; + +...