From patchwork Mon Dec 16 19:25:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13910251 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2069.outbound.protection.outlook.com [40.107.21.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 2EE9B207663 for ; Mon, 16 Dec 2024 19:25:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.69 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734377138; cv=fail; b=SXlbJ8kgNf4MtYFpbAamB1EQJGlZtAvfIw1wb0thK0LzjtMK6NFBJeuDAFKX+ji4zqQzv7CoEpXNbk/4qjXCX9YTcb8u+QrizHM28OO/QdO/lJlP/SHopFTi7d7j3Mf92quOzUbsB6H9VAaRKnsAJjefvI71KPX1fyqTLvhrMt0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734377138; c=relaxed/simple; bh=ohSxHBxoEDTu++WIdotYsmiwjFWROATTylDhqdvwP9Q=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=HBOrVNOAyXriQiF8aNuEgXyzqzEOlaargiZEG0xOgqfVnm3SDjHgbms59cDxxgynd8Dl7DaJWA+ZbAOMwBZBbYOwrtOyyn8tU9Y1mHHov4ZJuzk3l5qZR/L+U+x1HUAyyYxSuWz+YfFqf0LPr4UjvzA8Ok1Yr6LH8hf49sp54Po= 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=D32u1T4a; arc=fail smtp.client-ip=40.107.21.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="D32u1T4a" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tvpCPnxd+jZTwTQA15vYQHGQle16zjMjUiwQOmFzJEx5nnws1tLGh6xploVFFWLPoyDGutWe9HU6chPhDe7/cqHFOug9DrtRxvOQIuzLBayFlhXOb1wjqDoPDABNSB6Ig8ktdxbcj4idfaL9kowPADE0NuCuaMN/TN55PpcoCOhsRp6B3ZPEVTlL4uxNOngg3FmNNt4UDNFplbQYn3mn43zg2gO2dPhzPATcvQiiWqaAN0hR3Gxpiq2yDeMyWe7RXZ9gacgr2NrwPzOlrwazjPBsKRiAewSR9C7Zst3q12aZ7BfVA1HLm0pyPOFWYNFlOloVbfEGQUbPmRWHVgdVHA== 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=XzzZhQmnuw14n3PPkimvz1dX5EuFY+l9PtzzZkXejis=; b=ighOOWvcwv+/uOLOmUMmRDkicImANICcreYGJFLocvq6ln8kVq2O3PHhWZWwQRCaFi9dX20iVnvgvSgPOIX2xZX8uB85tSbATTV245zHqFgJkResP4+T0zACCVMN4mdkrPSB7ARTGq31cKODRV6+9jU4Aiqsne9tAwS+Xj4XOwWwbwYkm7O/+4buXL/iEIcpjn9xhx5EGlg7wpJNrQInekpo0srXXQtku0fNlSEKF2r3bEqf+Iv3kHhij8K8JYYuuh9OZpvIB2Ysr4qSjxyLvrLE+ixTf89WiG0eYBb4ChDr6SPqYL7f8UcxJy4CiKokrK0LtAnlHK1kt4AhW9jwzg== 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=XzzZhQmnuw14n3PPkimvz1dX5EuFY+l9PtzzZkXejis=; b=D32u1T4aRWmQhBEIAiFkynkshUhJ3R6BssrtOV5C/i+WnASAoojQtxXqgPQeTgi+EeOazDhX7Nm2LUaSrEYtuibEiB0cz7j3kVaZsB8eyY0gWi5pMdpl9d4/lmhWTpo3NUMwjxC0Jk2oIo4FUBCox2NhXAkkJTLcWO4NUkCpwCb16bCIfVSudEy+BwcGD5vFi6ux/OxcdkEp0Ze92OqBWv5HxECZAu2/5UOPFEtdjJm9gr0HV8g7JUmRM6nlQSP2EXUXpJszmH/CMV0JeAayL5NFRSM/5j40HuKPUau/7LSLr/XtNSF9SlHCbjQqN8RBP+41nOu23dkUuDLAkV6Ymg== 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 GV1PR04MB10249.eurprd04.prod.outlook.com (2603:10a6:150:1a4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.20; Mon, 16 Dec 2024 19:25:31 +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.8251.008; Mon, 16 Dec 2024 19:25:31 +0000 From: Frank Li Date: Mon, 16 Dec 2024 14:25:14 -0500 Subject: [PATCH v4 1/2] dt-bindings: thermal: fsl,imx91-tmu: add bindings for NXP i.MX91 thermal module Message-Id: <20241216-imx91tmu-v4-1-75caef7481b8@nxp.com> References: <20241216-imx91tmu-v4-0-75caef7481b8@nxp.com> In-Reply-To: <20241216-imx91tmu-v4-0-75caef7481b8@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 , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1734377121; l=2428; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=8kxKovdlRL951oX75jiP9tw7DaGNLVhyTD0fBHpZz8w=; b=D9doE59fNeXO9bBlND34e9PCLsQ8fahToW9/z0fiFeE17jENSlwdCCI6t3ttDLzwUJdXV5mBT fBeCKn61PrCBQokOLlR4wwslLB0QRSokGMWBq/k4XYMHfsyb1XtXBk8 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0031.namprd13.prod.outlook.com (2603:10b6:a03:2c2::6) 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_|GV1PR04MB10249:EE_ X-MS-Office365-Filtering-Correlation-Id: acf2efd0-9335-4d40-a78e-08dd1e076802 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?IEPgWuIjGc34s7URSNlTgRc3QDCnZBe?= =?utf-8?q?EIJiHT1nEcAprf5gEiRByiTAZGR1NksuUpiGNerjoDbFzFxh1NEogLah1CHzTu+nc?= =?utf-8?q?nWuMG8ndmHn6oMSl6tEarY+9jap4z1E+pP7+Xk8MFQl5nJUn3WevZuXbfPxC20WMZ?= =?utf-8?q?r2l0Mb/F+K/fkO3njE8G3nYsKoskc5hHnsaDmW3B5ILNzTZRRudSSbPlllmp9Hxd2?= =?utf-8?q?lvVoxFDgzFvLUBI1lvfdPl8AvvSg+THSPbiIRjK9A0RcwxF+szkZk73EcBdJiSizq?= =?utf-8?q?fetnFshbv1sOtd0f04NdZpjHEgcc/i+ixpt2QEZ1JVIxApgbZD7hKckOvYXoLPLSo?= =?utf-8?q?GabR9pVxY6VtUmjSf8bkXhjE2I9iYQ5DQ3PXptL3qETCCfhf2wAwuSmTxDoLiymb0?= =?utf-8?q?gSUlvP9vnMiSiYlUKnw4R4wC7OxjPAECv01/AgRoOt1CoiRtZa8nvkUXvIIr3+rwe?= =?utf-8?q?cwgchWQa42jPjdKqJN7KNtHo/mjkV2ru22me6ha1CaUGSlgtdyBIdbLpNM1DnWoll?= =?utf-8?q?aFliE20m/aCqM9okWAw8Ng6UFZ3HdlOE/tNo8jzDIeNhcBv2uSGfaJ4ODc/rLwpBR?= =?utf-8?q?9D9/IaKIfsb/vY+6nOWkf5I5D4D/HL+pFH228WZJO+gBokZiL/1RjQ9pAL2g1E7hq?= =?utf-8?q?FXhKoAy3vwtFkWLC9GEgbBE93zW6MMUWrI9qMaWtcb2pFYTRRQ1CvjMC5bpG04LD/?= =?utf-8?q?+f7+iHRBNNJg+LiFZwFKQocxY9cInq9vXWvhPNfDooO7xj13Pe+YJtOvve8ihP1xX?= =?utf-8?q?z9/y07972Gdi44CLiwrqVMF9SsA1E5L2Rksxv5GJtk5IMmgNqumVv1ad+oG9fVbfz?= =?utf-8?q?EvGYJVj9D59cxUEQwLYH2tUZFkn/g41XXFyz5xSwyqJNSwnCE/eH7oqckOm1pqBqM?= =?utf-8?q?W1z79j+UpFJg1G3kxORiI8EDR+xk9xQAV3MMJ8E/zyYPTARTTs20/Wx22ddglMtpz?= =?utf-8?q?BX7gT86/emkN6fqWKlUD5aUYfC5CN+dPJ54ioODVjLArurdC6qJP0nJg2PN9Edo15?= =?utf-8?q?bwynB0kVjfi9nRmq2HWuxMDEGXbpxH9sKMaAfYN+AGN5BbCgkbXb4gEeR9Xt37vr7?= =?utf-8?q?RDuisTiZiIzce6UKOfimg68SqhgqagLYdgEgIZFCHMi4YnXMy2bfou1rGPgWsuX5d?= =?utf-8?q?+3d08rbhywC7mJQtM+1gv0XCELDtTfv7WZWCTvvCc3V7UpBSdkl5Sx+BE7rB5tNOR?= =?utf-8?q?t5kHdJ+3PAPQbH+5RpM+B1r4kSsCdc40MVk/o4SV3clgPXOm3gHZsW4E7o9vNlnVH?= =?utf-8?q?moW1imm/Ke+VoH5966zYGjwVFu+/0puod0USHQxYayumitjrqL72ATrln+Cs5x4pR?= =?utf-8?q?X+K33w/04r7OlpMNR+rWFyZKsbevcH7suw=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)(366016)(376014)(7416014)(1800799024)(52116014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?LYFFocq2RplOArddsAiOtZMB+EaP?= =?utf-8?q?UcXSBLbVIm3S//vQAO9s89F0L3fwujUyjC39HL8kvv3+UkeESbOPNC+EC48ShwRTd?= =?utf-8?q?tWE7dbyqQZrEH2r5i7y5DPpJ5/y3hJclgLZ217JkQ6tKeqyyYuv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C4pHRHHMEaVnU2L/q7E0U+gMn?= =?utf-8?q?Am+CM8eTBG6/qhneSm5lKcAIO/GUn3EHNte8er1bHrV9Hk7QzUIgG8q8DehetGMTL?= =?utf-8?q?9VWgTIuQMR6vd22WpH8X3zm0s23QA8H3jYnxZZ+ZZzVv1fTYWs9360gAY3e0G5x14?= =?utf-8?q?nGL/xXlCaYzwgUk66SGJLD6XoUgbPxhSE4fLcosX4N4Q6zrx2nb5nQb5hU2y/bYub?= =?utf-8?q?1kSDqvKeMZnp4jtLCtGfH93SZLI1eANHYYWGF1SrsmUHqjTjilHcuo8+44ZEgbYW4?= =?utf-8?q?ONNEeUEudfgl5K9z+VeapDLqg2xmqUCTOwvrXV8C+yjN/Y8LNtQ+hvtaRNXcmb2mt?= =?utf-8?q?p2fPsFYz4iHH2G5BPE/6gPrvGoZO4qYXPz++he5jcb06dAETwT4PcMRDy+eCLf+Nv?= =?utf-8?q?ZZzPMPG3HBOBSQjDh1c5QD4Hzfkbj8GBygXXPKEoiu1Be/6pCxeAXDcqO69JaZtOd?= =?utf-8?q?Dtn5hl9sFUNE53vjWk0YchXhtK3x9h64YqZzYruEFLOJuWyZi+R0oE2+FqUu8HUc+?= =?utf-8?q?M6pgFRWhszFV?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: acf2efd0-9335-4d40-a78e-08dd1e076802 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2024 19:25:31.6160 (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: iJCR8fy04LBnYmmkLRbq4a4+rtvvg/x3MEyiF0mI6EskxBXNcN16pPY/5bkyD5C9bRINS6RhjVzABSl90HcxCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10249 From: Pengfei Li Add bindings documentation for i.MX91 thermal modules. Signed-off-by: Pengfei Li Reviewed-by: Krzysztof Kozlowski Signed-off-by: Frank Li --- 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"; + }; + +...