From patchwork Thu Dec 12 20:59: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: 13905995 X-Patchwork-Delegate: daniel.lezcano@linaro.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2045.outbound.protection.outlook.com [40.107.21.45]) (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 DE55E19D074; Thu, 12 Dec 2024 21:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734037235; cv=fail; b=g7fEtgPVYuotUV8wmbaDAe87CPCNI3khNtNdvyi5DFnUz/eETo4SJ5lFkGiZObEi92Had3gP63lcFGy/W+I/VWCWiZA4Ok0aXmCu0p6dLbZJiJZpn/1tLwEtLIkJ4HX2dscGv4GDlW3dAPxMuAZl7mAmRWTZXWLFsb67lcHlkQ8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734037235; c=relaxed/simple; bh=ruIJLlF20swj7SJdyvZ5zimlnM5QVKtZfGGBtF7YgjA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=AJW3rC4SnX2cVWdCCSiXusm24vOyyYIXzZkmHqTrOyNgfm/zlsiPs+NZcfe82xUnrFNYfHaqCpveoznFwxtxG6Ols/nKGg4HQ9itjsj824G4H6UAG1X6Ecf0AqyI2IzKxXhRY/rb4vssoJFR4f0NHnTqcD8xkH3Wj+p1ONFvLjo= 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=OecRacAm; arc=fail smtp.client-ip=40.107.21.45 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="OecRacAm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lwGBq40CuX7jGxKFlTPFk0gyiJxbcWu3MKcuf5RVKjEPs46wo/uiCzux7YDXQF7QgY/PzR3H2kI0Z7dhm5DUzUmIevnq0SRa0n0PdPa/wsX3gpkaRcLijU9qN/fvkZaLKjGxs72IOrrdoH5MAYDlNhbhBdhhgRoUY0cocyk2+PyZtCM1FKl2HFEcnK75nIg0WwnrIOtE9Llv0v7+FIvFILg/1Se7GEkFcig7RO0geF5MooV76pdpokiSFqsfclo+QOlPV4dzI0/hGZeiDSMBREYpXGNAlk21ijT0zch5BC0exyDJmcxHFBEPBo7dUoGipe7uaYKOrzX3rCywaaKYtw== 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=L99lfwl1lXdal6iy5qw3rDaAXaDEKsCNMObfCtzX3ZY=; b=dplqirbC8B+aQZvjb57hgy2IUkZTmjs4PhcaALL/DmpqqfWvex8Cw2FD/nGcQGKjVjyCNHrzQ+fnUrk5h4JoM84ct7t1BV/yVw1+maMpYkpUg/2n7b9MqIxovt69vgc2Kie1h3HILzEnfapRcd7cWN9wcmkDVtF8juS6ESGhFKa/pkF18cU+f2i0t8c2WACjXIVCtb0+C/gKR/VBJlnF/SHnA1YI7vuuCtAi1MPHYKWm73klczxFoIR7YFjhcfr8Cd64gI94EYeAhU0EpD7I1hiCc+XiiSiE0twi6bShT4usKrnDjbx/2aHRCpEx/eHJSYSJmlxgQkx8Y8YWCDfqmA== 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=L99lfwl1lXdal6iy5qw3rDaAXaDEKsCNMObfCtzX3ZY=; b=OecRacAmDalLEZCjg7ovoPbim9nz7z3VLZB3UcJKMKpzNuRKgcbeGBB+sUxJ6DfjaXneHRZgKRWEerH5TQVkUZsbU+T4czXW8Kws2T+NdDuazZ8DujU4wSAn+Wn61/wEoB123T+txIhCii0IqJHyC+Lbj5SJ810WcvHytP+1cp97OLRRkMg1gxVLh4iY43c7B+OKO+M6NHaPt3M+vpXFdigNfDw8HxTOqmdD61GJQ1u1UTb/OvWlGZ6AX7SsOsp4fMuuGrk26bJJ+rotqOcCHN3YvFxoQjjgrTZrypv80H8jTfHDzC2q2PNuVPkPuCXaljfc34yDC30tfDtzlzVUaA== 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 AS8PR04MB7560.eurprd04.prod.outlook.com (2603:10a6:20b:29d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Thu, 12 Dec 2024 21:00: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; Thu, 12 Dec 2024 21:00:28 +0000 From: Frank Li Date: Thu, 12 Dec 2024 15:59:59 -0500 Subject: [PATCH v3 1/2] dt-bindings: thermal: fsl,imx91-tmu: add bindings for NXP i.MX91 thermal module Message-Id: <20241212-imx91tmu-v3-1-85e756b29437@nxp.com> References: <20241212-imx91tmu-v3-0-85e756b29437@nxp.com> In-Reply-To: <20241212-imx91tmu-v3-0-85e756b29437@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 , Marco Felsch 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=1734037218; l=2361; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=nIgf6yhXwINBKNcOtb5V9xIxfpGGwkUZ0FakJ5QJxZM=; b=Aw3XA4xG9d49zpxSYipWVwTUzY9ap+5By12YAaobM8/w46hCtTIsCEOJ73E1NEH/4+G3ZCI/0 xj2fbWHqDJjCf4y3YKv5mEhd0kJqohKpInoNZuJm9WOTqWHije+aL3e X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR05CA0025.namprd05.prod.outlook.com (2603:10b6:a03:254::30) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS8PR04MB7560:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a9398e3-c0d2-47d2-45c6-08dd1af00219 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|10070799003|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hkN4rZoqvJiccamFL+ymKqxzfbXmJ2h?= =?utf-8?q?rAirOoUZkF9TQuw7UhdtSB5qMOwwNcMmI0FPyZz9K4zvn0XUlyOQye13oWaWfaMF2?= =?utf-8?q?rM1+xJm2dXf33rTHIzsR1cROSJlU3M4+GtCbA1taDRnBsUjBeIQUNesAyUCRSBo80?= =?utf-8?q?SU/sYuX26GNxQG/xw0uUB4u2PfMmeJd0dIFCj0og0jQ2Knb9hM7P/BcXvyvmsc6KO?= =?utf-8?q?+CDYBswKtPCR5aA452EE0vI+gfVrwK9Avkuv6vFp0j49KpoufmTQCz5F1z80PY5Wh?= =?utf-8?q?zmAv/Q0LSH9+cfyWMacoZOZ6qEBO1G/GJPxBVqsYdqNR+Jvlj3AFvlpVKa4X7Alwm?= =?utf-8?q?ZWOICYEIUoBIZd9upWLWnwha/W9zk5CgxP8MIdxF6Qw56EzWu7JJnaheptkV5UZ/l?= =?utf-8?q?wEMzqd2HCpmwNEQ0IOIYM4kOmbwHVWPOGYRVcC7NHC7ISsfi4VIG+d8vyO+HBMLVS?= =?utf-8?q?u/gRZS5YrFyEAJ7XV8ZUDVDU/+VxJuIcWmh3bJhaDqHgw+VJdnaitZXzpk2YMWzFq?= =?utf-8?q?aAV1wczJf8/K9jBfB9eq7wNpMJiyItJZO8lrkDcVoNMzkDMV+ig1yJPWnXV6ZFYRI?= =?utf-8?q?cwiMPsZEGJ9wmerg1biDUaM4vsCbYHs6orLxObXZ1YgyvsBNhC21mUuGbjitJui4P?= =?utf-8?q?zGFhwn6jJl/5FTj0nvp+OU48sMUdLEgpzOkw2p/j8Lel56D0Yj328kppf56nJ5w7o?= =?utf-8?q?e7dcmw9k9cfm0RJ/MwJgaE2f9qOxLq0gYBrCXXMx8hu0EqIPCz2IJDgugLAwHbdQ3?= =?utf-8?q?OQc2ZzNHnvQmQPvGqfdh67YybMPSe4JEhIolmnOQR1VH10rms3zZddd+yWhn7Wysq?= =?utf-8?q?wet04b4XONeyTsPMYwhtQQgZsbkEdN38AYpZFXsUNVoePN7hNT8D1VErU8RjXgpYp?= =?utf-8?q?YoGk3b6lbucP+Bni7Z2IJ7cw+OzgTvSK2zOIQBR+9VBA0Lm8dVbon7UV/WamhgE+Q?= =?utf-8?q?iEQ5T0nLj/r5SDfNkJOsubT+hDHglDUV5YEXHbBamhZuUhLGYem202ah4iIza4STd?= =?utf-8?q?+J6SJvm2BN91LRnm7kY01/HWKY03NlfaweL/lPKdAOd+hxAoRpjWyonr5zZJ9HRHN?= =?utf-8?q?qxKK/rSE5ZjNagKWEOEryNSo42StJfw6V2hutUooy6tg07wYiKdIMXiTm3xE5o+Kh?= =?utf-8?q?YuSi3paSXMjFI34/xlX4yi0pvSqeKkg+D6L9ubBFvJio1AlUeCCiraFiQUK0gBy2I?= =?utf-8?q?g+ueqPRMfebC5fR6v61DSBHAkwbrZQ5m5DAuzZtbDs5MQyHFRy1ZPZlk8Thc45a40?= =?utf-8?q?GcERSd2DgUuubYk6nsYlRJRZekmGQxAVXXg=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)(376014)(7416014)(52116014)(10070799003)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?eX3qnj05/20YySSWndq9kEhrl4gV?= =?utf-8?q?hAtF5Ai/I9BzzEXwbGDzvN1y/vSnCpJC2gx1LA7at7GwWnJO/m0Tu+HvoKAHwrnIS?= =?utf-8?q?EEtcPvqo9/xauWCXruWFBHY9tNMd1ZWJ4JNGp6eAtalm1YFFmehmKuw4ys01bvq7t?= =?utf-8?q?3X1AAOnwMDEr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lT8kcviD0dQkEM72ZCIEhjHoYAu4TqkeJti7Mi9BD?= =?utf-8?q?ytAUtTdY0wLYkB9upGs9pRq8UTjS8RV8sq8hQCvcoOHCrH+KH0EdJae6CzcZkSvil?= =?utf-8?q?jtz+Vda/1cVgGRjlXBdGhURfvi1f0r1Rjz33a96MMcu5liNm8JEd5p/AkoNBypU/V?= =?utf-8?q?1BtQ1lcOp3PkBHsP7/DNwcpPFhvDpDC8I7mtk7VbD8M7X7EVENscA9TbuTwtIfD97?= =?utf-8?q?Y4q8f1jJ8MQSbAhH/8CARrmCtuXU60h73rDPZ3+a9AN3jB82arMSCvlZFwbddHWNC?= =?utf-8?q?+E07qwiLDAeKObhZSgHRpmZ8jCgoa74kQET1LpsFby4TBcBABChIUSZkjkvKjRES1?= =?utf-8?q?aDfPgr/3gLM4WPJ+WBL1l31f/gGMsDWnGDMk3Vx+BLLVNuZkTqYUzrU9uX8YIkjQA?= =?utf-8?q?vPeKic2k+z6ZNF4P+gokH3D8VhXWt4jL4HmQdwaC99D6zUIMkhM+UKLodHOzVBhgc?= =?utf-8?q?fTpdO6sndRSTPVK5wSIi1uooJu7iZ0dTsO4gw90g75dYknP+nurCEsxb6FS7Z005W?= =?utf-8?q?/F3nf3qwxpG?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a9398e3-c0d2-47d2-45c6-08dd1af00219 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2024 21:00:28.7153 (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: 6atMOLJp7qWKTToPNRhZBBBBXUmSE9HINHZ1dZ3uP8zmNOeS98Gq2SLTUoGkriRHAzeKsLaGUt+gq+Eiezo4yw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7560 From: Pengfei Li Add bindings documentation for i.MX91 thermal modules. Signed-off-by: Pengfei Li Signed-off-by: Frank Li Reviewed-by: Krzysztof Kozlowski --- Change from v2 to v3 - add ref thermal-sensor - restrict #thermal-sensor-cells to 0 only - Change to unevaluatedProperties --- .../devicetree/bindings/thermal/fsl,imx91-tmu.yaml | 67 ++++++++++++++++++++++ 1 file changed, 67 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..8411f3233bf44 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/fsl,imx91-tmu.yaml @@ -0,0 +1,67 @@ +# 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": + const: 0 + +required: + - compatible + - reg + - clocks + +allOf: + - $ref: thermal-sensor.yaml + +unevaluatedProperties: 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"; + }; + +...