From patchwork Tue Dec 10 21:27: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: 13902085 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2069.outbound.protection.outlook.com [40.107.247.69]) (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 5A623232375 for ; Tue, 10 Dec 2024 21:27:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.69 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733866051; cv=fail; b=NE+NIVwhG13lN0vfmMF2EdVY7me7wySzVFMoOia6ewPrSQpS4SXlDm4Yi1LS4LDyGM8wFFmJCGU46fY+PijptzRvvQaccrtcyTeEyeMWKuSV9BgjAoCvRBB/duFSXTO3LGrMe1F80bK9c5CThhMY7x8lTFzeUr5RJzcB+iKCnt4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733866051; c=relaxed/simple; bh=r1D6YleI4pfbRMudJcC/mpaiq45dCNo3RsDTZ3TyLf8=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=r9mNGwbEnrml4iP5Rf1XFh6e6lIkK3IDpIpl4gakP21omhsN071lGPXKZd9HVN9SFa48yhLUSCxVl+IoHRFbnljBPkAeNX0ksfGGDgdPQyjVIeFFsHeC1gF7qYVkgZWgUx4FUk1ahE6mqRK18gr4xDwYVEqPME+OcBL6/QFFm50= 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=JJc+OSj/; arc=fail smtp.client-ip=40.107.247.69 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="JJc+OSj/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UbjlfOCYQTPmFKL1Pv3M/6PW45AFeLgQxS6x6qe5EkY0YpKPBuuZPiDtjR6xPljzAZw18U+wqqNRHDaDXkPLvK3K+tRk15RXLWabYHP7tiTdda+AIQRKKZGN6rAPilNCvdnwX3AeEKg22Pe2/XkfTD2ZpULMgd7v5BrskVsCMx5eh1YLPNuATfohJgCdaZ/zrpN7CLz7zNzOfcPFKgwGEbKheCWVH+YNGhVAlSE3yoI/D4mScf0s1uozdJYTF39VP958pclrOEEabKU3CyT5leMaRMW9Si2JQUUnpmS4RxSbaLdxIe1Yq7hF3I6zgj/hvJazCpZya3DG3N8+aXXDHw== 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=ko5p34okMZNFNCxUikhWNkddrDKcJKN1R4lAJEUTXfsjfBb3Huko6FZ/FUKkGJOwwc4C1bSfS2828KLG6JXbRwR3cgYzm015NaZplXF8Mc22mZcjQZ5QnsfQZQo6A2ppmcys61hsJeiFA0U/J0+vrmsmoGeMXq4sX9OSx4wWMse23etjd+J8h467migRbJKNwQWfTp8xY8GLeNj9TiyU3GLjao+lizw9kGKyWcpSySwfdchIRbw8b2+2lrg4cVv4G1DRTr+hQ6KPuUtk4BFySlkgDLhrBoLzzqZeL7pe9pHu3lTXJGiXKa31wVgvFka9ojEuzSs4Jo/A7l+AC43sTw== 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=JJc+OSj/2mdPknoMpbETsXuCl33bI+ML4sxO6GwunJABOqhPDUbjeRy8lPcjpiHAy/udXhOD/sYNYyKv1tA7HuUH+BIlyk5YvqOE1+g9Rl9Ra9fSmwnEjvLhCWwpovo6nTULCwr7uNDaCZdJ1hFPaxCgnbZbhxqgZQbxupx1axGz4a2NA3XQSdaRdwVQplG/igZUprAp3K+fgw73AzY42Gg1EOZhP7WV0Z3ACB/BT8zHuCWyCOCKOkTvPCbEtvMxtkZMIkEsYMm+VAqK8DzA1d5jpK7nbCYZY/QkDtfSEyfHNg5p4Yk5PMMvT7AY2H23gRUDgvw6h5z7eljQ61Ky/Q== 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 PA4PR04MB7550.eurprd04.prod.outlook.com (2603:10a6:102:f0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.18; Tue, 10 Dec 2024 21:27:26 +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; Tue, 10 Dec 2024 21:27:26 +0000 From: Frank Li Date: Tue, 10 Dec 2024 16:27:02 -0500 Subject: [PATCH v2 1/2] dt-bindings: thermal: fsl,imx91-tmu: add bindings for NXP i.MX91 thermal module Message-Id: <20241210-imx91tmu-v2-1-5032aad4d88e@nxp.com> References: <20241210-imx91tmu-v2-0-5032aad4d88e@nxp.com> In-Reply-To: <20241210-imx91tmu-v2-0-5032aad4d88e@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=1733866037; l=2218; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=iVQTtCNDQDMEk1P8NXmCJ6s4gReJ2DPWuwpLblkVduE=; b=rNb9Ka3yqYp3yTiT2byc7uTGso57JLa+SycObjqKs378GeRKCu77j8YJwHGP7cJtYPN4fQ/i+ CYnpF2lm90UAmTVE9rmtPFRU0db67qHDdPD20iBtJ4v5FMSMtuKTiNM X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0P220CA0018.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:41b::28) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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_|PA4PR04MB7550:EE_ X-MS-Office365-Filtering-Correlation-Id: 10fe0484-095d-4415-bfc0-08dd1961715d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?P9s4eSSwJbt3i/t0vW+G3UxZa2kAxVX?= =?utf-8?q?yVolQkDnlSfzWjwGn4ERrcxdSVzyD3OEYHTXezfXX9de9LiL+d4aGpXXILtBhZcQd?= =?utf-8?q?v+3KmMubjuAOhsnxfnmKBv3ZZRK9GB8FKMu2OsObGUpYcJ+vC4d/GhBDo0MCbgqmC?= =?utf-8?q?hfA6FEo+nvagI6ia8dfNq3qs60eYCY1qb/od5x6YKK1XHr0qtcfZs+UpXgBDmmslz?= =?utf-8?q?hLOMeABH8kXhZZUbODvmstV45hVrDJ3q28pkWPBN493PtUc0Xj34bq96NNKm1tEmD?= =?utf-8?q?G1ZryhhsfwvaY4I6BDI6tz8ViWYamsSci0WxI/E8YsHWEmS71yx9OLpQNUoR6lrTX?= =?utf-8?q?t3NxqlGNH1IPmEpqGrHIc8s2lNWTjEdTKZFjHDHdds3CjmcLgmnGqHNl+Kmo18e45?= =?utf-8?q?1hdnc7jnePjfeIV2sa6gPHsES9be9Iu4n3cUL9Dg2e4b3WeE8kYJu8WFlO8dNakZl?= =?utf-8?q?yPfafY76g1mCJfFS8V48EeyHmNocfwRjVMD+Kq/FRiM9T2z+O9hy2+9juu8vE2AC/?= =?utf-8?q?r30kb7bHatxmBwco09//tjoEtmqXif8bmYfvzkYzVRaT6JAn6yqJ7H2nb1lGKpHYI?= =?utf-8?q?zFxl1vhe25shOpZ9EelNxNHtv7RXQmTBjBWR9GicWQXb1S5Lw+xn58K5ZgGDjSlwl?= =?utf-8?q?gVUONe++wp4WopAm4HH0HuDw4bPsVfwH/RFeGsXwexxuX1ThVb7LJ36YNE1qRijKa?= =?utf-8?q?mq8uCRByEVy03ZaIdZr28bYvzIyEqSW8ZFyjJV6tP3EaxYrwfKFhij0B9Ru5Xq5hc?= =?utf-8?q?ILQqnvRP/UdmZtvQTu8sB1O6p+Cdz2/+eeXMKt6FmPK6H6xwE4vipkwLvtjT2jbjU?= =?utf-8?q?GdqdtvSvRQf9mQ2KJGvNu9+LvsyyIyggfYTBKkTp5CAnb2jtefFSY0xHLX8wk6zqT?= =?utf-8?q?IcyFVt0pnTdSDgevF79BE3s1OsHJ5hN+20okR9UYDTOBMPqb+iTgOB85UNzjL1Cu9?= =?utf-8?q?aKg9tnfQzIRsd6PVPKk7+I1GHihqhlbsABZOapQR/rimF0+f1rFt/pt0uNqs6jYkR?= =?utf-8?q?iRYgOIfrZPhzv/h89HgRoL/5gScVasjbFDJyd4XBx7LZQo+a7cmy3RR1MAdAwGiRf?= =?utf-8?q?Q5lMHUo5HdQtd94VgKyjgRalzq31GWszIw3B6cPNKErclmq1sAcRwTThkr9R8ImTU?= =?utf-8?q?56OZ95OnSU13mBOirWAHLd+Pc35O2sQu5oi0TGAa8IpKkSGm7nMgKHmVzX4kznfwY?= =?utf-8?q?uu2xb3/zOLkwGLLu8V67TMxcujDUwTE1DLE63Z/xJ3i8Nh6U3uw0JDG2zyS2007ew?= =?utf-8?q?99hOtJsQ8mcB8UUpv0nIwIMYw8b3lCcmUoF2PxeKGOhtFsvdjQsaKT95JpR9P7ORk?= =?utf-8?q?mKQMEJdI5iP/?= 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)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xetvNLqnar+uH3Yp9WUeq/i1HKE+?= =?utf-8?q?oZ4kE6qQN2zKJOzKDlXdZRxhXAmjCpmhfGK0VV+GSb2Aufk8VKc+WnuM1PshVDV4K?= =?utf-8?q?0aPHYQOKej6jGQ5ETHAMIXPdi0JsmfHnm7ZrOJgGvJZIAhLvtyLr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= =?utf-8?q?ekM8hZK63AgDkJk9o+R4piGk/0Mhwl6RDwM9HDWJdxSRzYC/kA5YyM0/1xq5/rzqa?= =?utf-8?q?4ByYQR1jzlUfVhde60EEaq0K0o5HOgRuZAo9FUi57VBertk8un7VGSTogRk3+roJm?= =?utf-8?q?euzWk6HqKlr9qa1tSFtsXLy92J4wiJTitt/XoTlJYXLfdxL3QuB2vzAiJtLeFFDoi?= =?utf-8?q?EPfRGzuZ6/1EM4hEURLNSjbbp1fNo/and8730DNLFccAhM7z/5fUXgVxTSJetrJvo?= =?utf-8?q?t5k67k450PHrqqci9Tt4pL/iRL86OMHYXNEEA6Yb2mfKT+eEpsOC4qw/YE0fj9zNA?= =?utf-8?q?/nQURGqB/Uc6BOcKfwgoeJEeejZ4NpaswZC38TISBQQ2FYddmjRr4UPw/hPB04gem?= =?utf-8?q?PlVK/GnNUK7fUaWMWbZRVV9QyJmsydWQOrLEr/MN5cHGYCzMgDmUL1uy0JEPRk2St?= =?utf-8?q?GHGjZdGuL5HmWYi1QFF9k95YLkt4zpw/t1E7F9B/2V98K7tok8SLgJ25B6gNtDYPB?= =?utf-8?q?XY3RdiMJpetd?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10fe0484-095d-4415-bfc0-08dd1961715d X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2024 21:27:26.1808 (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: 4ftYrw2OXEbMpfkDajQxnQcc0G+OwUfKeL/QWbE3bjbJXatq9DAjj0IT4h+d59hZoIMOuK1UBuEo6Cyq5cehsQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7550 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"; + }; + +...