From patchwork Tue Sep 3 07:17:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13788140 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2058.outbound.protection.outlook.com [40.107.20.58]) (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 48C22200129 for ; Tue, 3 Sep 2024 07:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725347357; cv=fail; b=GTYbFmRQAJVGoDEfrg25tW0J2Jw/Tcr9cqzCKhuOYJ5tMRPIQBlJkGE98rCoqvx5pq7WGTvg6KvriF6h7FfjiBCy0gCFUoBdJbSzWRJ4Vb5AGULG5gYUUw3E7JOx0BishFpGtePQBooC0UU2u5PewviUVejdHvF0cU5LohiB04w= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725347357; c=relaxed/simple; bh=nvP/Z+rCPMhlTH5S/iqBfLUS2swaGru+WNFCuHfvKuw=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Hcj3o09qbfKi6GR7iopJtxaK1ab4hJIc1WbJDsfal826GSAFTIXjAq+cLyaEvAdsyuzU9CA9L/9HbW5JkbVUfe8rw4eFjQKpAq7n6loNWcjNWjmTIHHk14mQ9IqaaQw82TWIlgxN4u8m1L2asvUkWceTDHSveQNaGKg50VsGuqs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=Vk8Vu9OA; arc=fail smtp.client-ip=40.107.20.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Vk8Vu9OA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Tv7s4ZJ6X8DxBhJiNd6QhYHwDMXB1lySPNP3F2+Wg/rvJNnUG8vMs/TFNmbmu6IZIBMaFa1a6B1En3fE09UMzWvKhcKcyKVt8UzRKmYX/iaPHfMI98vJdjQr/VSEuhl2tnB+nmvxkmXgLdilf1wF+nNDEkhLPjq78xPV++RgrE/lkl/VoSH58FaJZZtocbzeCgMQmZeSPIy1nZWQXyCB3rCWXW5Yxsqhvdm7bBON/liaWk/n83p9ny4a06caYvPtPhEq82XwzucU7sge42g68Mgzdge2zXuzXRVGGaqNC3s07WZcqUa2n2J81cVuMLMUHBWn7+9bjk3v1sYZxr9mlQ== 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=QFYdnIftNb6EmSTKPe2WBvrftuWHy+K2KeZBsTQltr4=; b=VRtfcmA64Yj38rU12GNWHxQxedz4EeJ7oV2F/Lu1XMLb6DjXw0xgxBX1s8PpBvC+fhb9b1Vi9Tcdj4rbH8LnNNfaUkOvMeJJy3y86CYYixyDBs/ZS5ey2Wgwj866FrliIm2LDhrwb+RIyixmFf4BXNpI4wyVDr2lf2rwjEY50um5yytZutWohMUoASenxpNErZgMceH03vOOipwlA4H8WRxc4g+vPRj6faEa5Y5SSzRzlNvveNxC2D4mefSomFsEAFS1vCEkYE3AG3aH59JL1aralw4ROWUKGiXx/PwBcSKgd75Z3rFMkAJdL728VH/GVqvAdsGUc3JiBlInYY9TwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QFYdnIftNb6EmSTKPe2WBvrftuWHy+K2KeZBsTQltr4=; b=Vk8Vu9OACea2PeWUzxNa6/BfmvDocIllY0Y5U7L+/Bgi07nk/S5Q343kNd3jypA3u07rzRMksJKnVCdM1TzDtOYol95FYik7TpvBBubgtvo2esPcCYdxd6TJUKgkmkFFUnLyopql6fSfQqcEPf2h5C/xhgXLZrJ5BEDXP1cpoEfJssCjfZkuZW4j10zRvBOLG/azP6h+MHJ0yjHt3zNSpm2ul0RiBrDFJNomNSG/2L+cWK7yfJ5yhVW3wSCl+cNZVYPd695TAWyyNSk4fFXu49nMlVBB3z5J7fi2w2se45Mh7Y9e1bJ37mXujLGbs1HOnFlR+GrNyS0KNEkkG3Iddg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by PA4PR04MB9365.eurprd04.prod.outlook.com (2603:10a6:102:2a8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Tue, 3 Sep 2024 07:09:11 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7918.024; Tue, 3 Sep 2024 07:09:11 +0000 From: "Peng Fan (OSS)" Date: Tue, 03 Sep 2024 15:17:49 +0800 Subject: [PATCH v2 4/7] arm64: dts: freescale: imx95: add anamix temperature thermal zone and cooling node Message-Id: <20240903-imx95-dts-new-v2-4-8ed795d61358@nxp.com> References: <20240903-imx95-dts-new-v2-0-8ed795d61358@nxp.com> In-Reply-To: <20240903-imx95-dts-new-v2-0-8ed795d61358@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725347874; l=1453; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=eaohBRB2Fb4PfzYBAS7o5j/hhfFB2BYaokXf8EKWkPE=; b=io3JuInVSGHYoylThjZqAUZwboxcq2IYap+PFFbFqIK6C8Rw3tdZ0CU7W37XoKBZRu1xCLVWf sJz8gEOoA50AUt2VDIrEQE6yPAzAcU/8ZOP/9MwlpBPOv2K2yvEIlhd X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0026.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::18) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PA4PR04MB9365:EE_ X-MS-Office365-Filtering-Correlation-Id: d7e5e182-66f3-414b-66cb-08dccbe74fdc X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Eq+lG/oTLm/R+tn3v7PZZMfnDWNJCyG?= =?utf-8?q?ZGKAUTCHwcN2FBH1IuAM0tu3D/cqdwONGOxKFzz837OjA7vglOtprP8nVySkvzwxn?= =?utf-8?q?Vsu1nr0cvNADBRJQMjnd8FxNtNtlttNjFjCPKwUsQwpbCrcAON3RjhMk4phfhLY0m?= =?utf-8?q?Cm9isN64ZEG6W6+uEmzaBTvIoJ3Ulj2wW947gN546yewqJxhUytH2kOVDhVtpgoG6?= =?utf-8?q?CJKYtK3On1jDwvBLuJYKXFqQhAdbwWkGESEQZxV/Dkx7IoD9bg6ADr8QC3ywgcFjx?= =?utf-8?q?sSr4VYqk3T4TxEZQAs9tFScp/ummyBmBsfMYtR4uWP3mppSLIbvuzSouOyKv8N3sz?= =?utf-8?q?FE3RFxPHmt9RBu2fmVQNzmLYEYftL1YS5leyKxtgHMiJ791LLPqR+l0g9u5GicuTD?= =?utf-8?q?bvShqV3AEFwlPRiqvZHpLwTeWMWoXJHFZrz4CxqjyvRugOs1nLsdDo3KtuyCvgMlL?= =?utf-8?q?L5p01bKJiiwgLrs3A3NfKU+zC9IvMJjN7eVaeugioP5U7IleeqDxlUJ0uzkHuJeEa?= =?utf-8?q?tyxXgfM65ekpOuweiIYsbPzVY9XxfZlRsDGOd2baF72iXhFseNkLlnBrl7LZjEslF?= =?utf-8?q?SeSDMNlVCZYThwCG3XNcM1r/JJPF3Wy12Qc2/1F+PfLzhPt9Z333dGeYoDQ5bHbrO?= =?utf-8?q?TqmV801l3lmEkTCt9C0TliPq4rS7WPhbKq4MJBh1V5kVbjwsI6BYOekbaAZ7uvh23?= =?utf-8?q?33HNHSxqSYDJCNr8/zDduglW07YVAYSPAcWnzp3yp0Xk8fR0y2AtzlFNsaJrIaFd1?= =?utf-8?q?1J4R0sjTY67cv2fCI9ld+p5K7Uj4zbNXpHmZnqwljESu7qLsKep333jqAaz4w9PLK?= =?utf-8?q?IpSUe0nlRNsmhKh3gDO75jZPFR+Kc/yYqo4LvYnG5DWKOK3e7Bw+8rtWuHpQIp2rE?= =?utf-8?q?epV6sfGuuqy6cR07xSaE/H87MJc7VCjcGzmv2sQPa/26T34lxLmSo6rJYjI0mQ373?= =?utf-8?q?URpWm3T282t6ENY02w0bsQYTO3Az+cKj7F5bHrbwMvo9nknYLlbOK4nqMZQoemn5I?= =?utf-8?q?uKLCy0yLixe4yveT1fk0WYNtKEsydWmRc6megyKyc6yMf1XsxOuiFQDrZGHkP6Axy?= =?utf-8?q?wGiltiZqB2Suts3BkMygmeVlMt/pxhQMEyDR+s/LDcxp7rbQzkIavGVFYeOJB9EM8?= =?utf-8?q?rMlpxN9dk2o4TR/8bZkLKccb6rkuVg0KETYI9PYQKm6bP3iOOgZTm91NtNwLMzyuX?= =?utf-8?q?FdOw886qsLDuVh815cpvVX0hoCGaC7/JQMqWG4YriHu+beBUWxuiuOJuZpGA4bEPc?= =?utf-8?q?X0FnDy5Z92tlv7U29fidk/EUl2zjP7o69EmCduGHJ0tYTyZvSgcGqxvPAs5SScBcn?= =?utf-8?q?jfBxmCxIgLDFuB/V3GdtacqqpGXcSvfMog=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FhaqpJu/MRosiGS1w3PlS0AJQa15?= =?utf-8?q?rR+Nt1UnXPMHXpLutn4HSvLbGZ5X0fEk8hvN8GDTPI+ou0On9gmJsDC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ip3K1vswmY3J7/Sec27ORZtpciTEuI/aN5G874xQiyUoW9NIdGkKhNeTeYeEl3?= =?utf-8?q?PDXZ33Xov9GskimVqPDYy0S4lpC4oeQtQQzmsQ7y7yntbrspSP5jZ7siZYtelSv0+?= =?utf-8?q?zHwEBy16HjglpIpIEemmkIUf5MQgqheePlrsdOubicYh7NrL9i0omEOUMBuJGbs4p?= =?utf-8?q?aAb449I/vTTHv4sIdqZS7JdM2VkpRBNfYy3v+6ESxma7J8BQDzGJWBjVMpFbv+0/V?= =?utf-8?q?Q6+uzAXCMH3opH1uJDk/a6yOAYjrKlcQKxWTDQWzOwhaULqxkwP+ZNFs32gt9Dm3i?= =?utf-8?q?+YAN6KscaUwd7hyvgMap4jXIhlB7uTS2SP1Gta16aSRmiwuetJAqcWvze5JRSgMV3?= =?utf-8?q?LlTqYm1++MyFuqy8six+t6gpjO0CuocaHtaLls6um39NAu3ciB57SpPRi9izLcxEY?= =?utf-8?q?0j6QmjBVsesPXFJdoKOXCZbZRLSF9lVM+5W6qs5CVCOnujTqwQRe6svwuORLEWSxW?= =?utf-8?q?aFovb6xfdNs8O7GQDxiVsG/Vaf5a101mjd2qvpj6+uQZLOXAygCHrHDHltPQ/EXAH?= =?utf-8?q?kdsREo5y5Qkn?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7e5e182-66f3-414b-66cb-08dccbe74fdc X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2024 07:09:11.8492 (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: ygYaIs5cntoYQj+9frr1SfSQsjCjHgnyTj6uW8Kw5yrJ1/Sht1GXWWbG0y8nVJTut41UiTTVQPxIE+lfEje8/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9365 From: Peng Fan i.MX95 has two on-chip temperature sensors, one is inside anamix block. This is to add the anamix temperature thermal zone and its cooling device. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx95.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi index 2cba7a889030..d031b9548aaf 100644 --- a/arch/arm64/boot/dts/freescale/imx95.dtsi +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi @@ -372,6 +372,38 @@ map0 { }; }; }; + + ana-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&scmi_sensor 0>; + trips { + ana_alert: trip0 { + temperature = <105000>; + hysteresis = <2000>; + type = "passive"; + }; + + ana_crit0: trip1 { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&ana_alert>; + cooling-device = + <&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; }; psci {