From patchwork Thu Jun 27 22:00:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13715077 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2083.outbound.protection.outlook.com [40.107.241.83]) (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 1A71D1A38C4 for ; Thu, 27 Jun 2024 22:00:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719525636; cv=fail; b=N2TrMDu1jzPm0VXX21UMZ4jhif3xrrxFe9NcAx1zd0NCrxWJ5jhMSXafo2UKck598XdQv+A9nIGXwrWrGKZJnDPDDCTjlL9c0jbAoXpeucQFWCqIMFrZVcChhBtqe8x4fWjVSnFHJYGUw3sQsDUmf6bvI1mUHD9nJubdYzsSRUo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719525636; c=relaxed/simple; bh=o6hiuXedRx9JglRbVuBqOh+PVMg3BIMB21TBNyXbWpw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=CHfeY7sR5HX3T/d1RgChZaatp1mavS3BU7Yy3XtGi1+ozkH8JjQMZYWJ4yiZV7KUmAaU5Lx4jaxuKJ1PHsjx4c2XwdPz/ltZOK3sUQLfk39qy+Jg1GOI+FKcOf9m4WNFI+onM8sEmcS6kPa3Jrhj3KLT1LLrYv0A7TUd+qKFU0Y= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=qUYzlT83; arc=fail smtp.client-ip=40.107.241.83 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="qUYzlT83" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bjSsNu8M642y0MMb5mrWlgZ2HCk/Q9LtP6v2dOBuYCWItOZCFVGB01ewUKVGi2z0hg3fh+zdGqteUf78g5NsggxGbTAb2on5E91bG2HkUXRGCuxuC6eZn2HPGI4O4Y/6hBeRcsjv2yEKMCQUdKSgng81RJgJIIdbdt2RFpxTnOFZ+UZg6a7zUTRrBAMYiErjVynOSXuIC2NCadBqbIL2U1cmnyocVTAudgfIpgjYLG7Kc3nHiiRCfKa80tRD8IeNTSnZDzD62QmEeyTZSCCELtTqIHUMjt0zLky1sjUzEdN64kUQVzn9kjZ/6X5w6qNtupY8XGl7HlNjjC72q7m77A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=WNfWPBbn480Wqd+8f4Ey7HkdDTmU61syZJI42fZcyrQ=; b=CK1yI15zjDAKee5qNfZjPHg7Bl1+75/r0HyiIxoYhzCTsYvh6FqgtdL1g6cL1pQPiSHniafA/ub18DlcKGgEizsTRWKz9zsRuIpO9swPVN6t5Qnl5iH/F51z287YNatMY32VV9IJ3bIb4ouQOVZb/jOTWotSRyQh3uWK024GSVuAo6E1zjVZkHdWoQAmI7bKo3+YHlNjI0gJn8UcTeMz8Owkgb+Jub8Xs+ZggIRsa4ymE/M1iE/7HRwBa83WZ3DsIUXx1npuhhDIDFM6hxVEfLPM8BkR/QBr+GE8RfBcGThp4rtlqCeXSWTxw9eXYuxxoncTN9Mg3Elgg0wJdyo/BQ== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WNfWPBbn480Wqd+8f4Ey7HkdDTmU61syZJI42fZcyrQ=; b=qUYzlT83RpwHP2NpmR5YqcO9cMGdxftzyxrSRz9FgyTWKm54Lj6eRGGQ1EQZeObjT6SU8280NXqBAnka9jieCxAGf1OKM4Gu6wrz5t8w5nA0dUGwbIv6gm6iW3xbwR0YY4EfAH+TTEDapYIRMSxrZ02PAfaPnkRfyLCIphOT5LU= 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 PR3PR04MB7259.eurprd04.prod.outlook.com (2603:10a6:102:8a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.32; Thu, 27 Jun 2024 22:00:29 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7698.025; Thu, 27 Jun 2024 22:00:29 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 7/7] arm64: dts: imx95-19x19-evk: add pwm fan control Date: Thu, 27 Jun 2024 18:00:01 -0400 Message-Id: <20240627220001.692875-7-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240627220001.692875-1-Frank.Li@nxp.com> References: <20240627220001.692875-1-Frank.Li@nxp.com> X-ClientProxiedBy: CH0PR03CA0286.namprd03.prod.outlook.com (2603:10b6:610:e6::21) 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_|PR3PR04MB7259:EE_ X-MS-Office365-Filtering-Correlation-Id: 359b8ea2-3199-4ff7-eabd-08dc96f48ecf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|376014|7416014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: q4zU7OLpjScCDzMWMnlXVVAeCt6VBZiJR5Aj9KkkD8FZ5zjxXVn5XsKj188aYDtq+RA9qwOSjQBsjQUWvHWqbe5Epwc0zTGWoR/GnXMomFWC5Ubl7TWW1mC46LAv5UMva4GSDtvujdoe4YKCrfPwCigRvCde9NNa3m90idQUFucHNHuhrF51wFtj7G7VFAQoA/t6sZZtdCSHVGbGv5ArFnUTHhtERZ/UqYlOVAx+QmcUvVl1Pqo3SKnpuBn3SD2iR/lVqRGeRdWG1tMH2JHcjW1JYeBVo9/xRTE9HeuH6FR2jhN19j+zMQYdCS+W8MTcFe31jJn2aICvPplsFKFErzlubajEA3xz7MQ3/lAQNDVIfYdip58IgBlq9XG2Qo5DjnTzcwE3WtL9Ct+nG7fxPJWzZGr9IwBxx6gopt7BYj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RV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(366016)(376014)(7416014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vWYPs4HvWfDxNp7B5DNssA74Q/1bgneDU2JSOC/Yh71Vz1hV+rqE7QtVYOv2WW6mrOyg05dLJIVEe6LKHnAX2h7AEzaeHdUg/lVxS0Mxc66w1nVPhs9t2Y5T2255fh/DdanhKZd9hUdgZ2765vXjQMkAy0egskgdvEMI27qPDiPi0e60l50rJVcRIC6/WeoB/UiqVNGOzWuRnQy/HF/Pgg0UxY8aMSFPDAZ8tJYxKk1xHvxbRf2cknvVjCv/5X4ioZJRMn0qGQaYwfCRa28s5sZLmWya9V3Gzvfeo8KFqLSrLpA6ginkp2UJ14F1dBVSsTbJTSXtSwZIflDduXqcfxPevLsk5X2V6I6ZWdXjsa86Kr8bSZRNtN7OphG+ifEYAsb85XEeVrKYqoWPT1Vu08OlTva/sjUfoWFv8CJSm9nEDI1sfEQUmy5xYV5H4t2kdi/ZAzXxV2Z9VufpOySlx+BPStSdMjrC1+pOhyXBpflnyitY1mGe6rmiTBBkcCWE0sTQAngvJeAIAOiyztJe8FJPHWumKKXjzXZt3amse6RiEFFX/pxBlT9F86q4kpkr/dqGqMCVdKMK3IxsBfDj5sFFAo3YdEYFY9eFEeBnLp4F/3z6+SYygukSx2UIXjH64xIdh8yO9emKtuakaSFjE/32P7ZgeQHBO39bduNnnVyijk9mBQzldXXNzjxY0hfAT7EDu1YyiM+tkBcmB87FKmp/8JgyC7MtSV+OwYBfyKCm98ShScU8xlMlTgUGZcGV/ZjwF73SfY1J+zcCO3PO8sIvNzBlLaiCr5SNj3Oqg/I4jN/KolY8SfTvKCJgpybsKvSAgiCr9YQRBgg7EcobR1DomJIIpmSvfqIWlRxoDuE3+8NAago1y6ec3uTflswhVikfgd+BHFD+RRRrrlOJiVGlM4ckHaqbNiQ3uERfV4Ri4nVSESXXHbW8bOimu21oSTMVehhoAr/+owOb4Gx9FrnnmBL2EJksmDkOLO2qTvj2oq+b4CK6MSO9ZpdIzy8gYI61lGSq6VlKSmpbTVMu0AvWXtPnDyAGflgQtXpMW8582uR7DnV+L655Y2OMEVmFwnInTi8VEdQ+Oki0FkOgv54WOBxA2D2iySUVHr/rLD8jOaHM7uIVSTpDdMrUF5RNphb0arf5z0EeH+FXJuyO1p28b8hr3b30jID06QEwL6NO1hWY16gs/NTSv+M+zcesIAcs6hzcThQw49WvwXIk7BtkSIT3on8h/JS11Mmx0eyY1Wq0hNOvLlLN4mfOk8FbTOHqHuFYFADwC3f+nr1R/ookgVIhPwqH2h+XB+W29q2zPAuWW0c6ugUCtRPUcFCwbUFlqVO025Bc/3UXpwFN8pFCQ5qEYoKCrkyLcBcWmn31/grafWjdXoHIQcDPjYVkwqA2giQjs5Rre+tiaB9X4RQt3HDIFIM3We1hI9k2PrGCbY2vATy7yOhiEXA3ORxgezyyzmy0dy9MDfFX3Z578H68wyWJxBkjwrFvwRmKK47TOudfY2T1e8PDfM/v+0r0X9/D6/z2L+u8FJ/CY47vniLz0fSgRUBraH3J+D6ki3U= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 359b8ea2-3199-4ff7-eabd-08dc96f48ecf X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2024 22:00:29.3139 (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: QzSYKvwzoxd5Ff7eRFvCIgxskItFw4jb454bnZwVRuMEEblhFQUuNaYkgdJruPfxYBK5a+iz/XoAudkVNJ5Jcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7259 Add pwm fan and overwrite default thermal nodes. Signed-off-by: Frank Li --- .../boot/dts/freescale/imx95-19x19-evk.dts | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts index ed8921d6217b8..0c84efd058ce1 100644 --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "imx95.dtsi" / { @@ -31,6 +32,13 @@ memory@80000000 { reg = <0x0 0x80000000 0 0x80000000>; }; + fan0: pwm-fan { + compatible = "pwm-fan"; + #cooling-cells = <2>; + pwms = <&tpm6 2 4000000 PWM_POLARITY_INVERTED>; + cooling-levels = <64 128 192 255>; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>; @@ -558,3 +566,44 @@ IMX95_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e >; }; }; + +&thermal_zones { + a55-thermal { + trips { + atrip2: trip2 { + temperature = <55000>; + hysteresis = <2000>; + type = "active"; + }; + + atrip3: trip3 { + temperature = <65000>; + hysteresis = <2000>; + type = "active"; + }; + + atrip4: trip4 { + temperature = <75000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + map1 { + trip = <&atrip2>; + cooling-device = <&fan0 0 1>; + }; + + map2 { + trip = <&atrip3>; + cooling-device = <&fan0 1 2>; + }; + + map3 { + trip = <&atrip4>; + cooling-device = <&fan0 2 3>; + }; + }; + }; +};