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: 13788148 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76964CD342E for ; Tue, 3 Sep 2024 07:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QFYdnIftNb6EmSTKPe2WBvrftuWHy+K2KeZBsTQltr4=; b=BmJbZf47p2BIB4/YPIqy31FFwz wzalJfzrJoONbjlnFi37fEw6yZ/VUCSSDg3BbsCTnv4ZFpPLqLL+DymujtQlbsRTNLZCu4vzP81p/ VQR5Vxi1GzfPPhCgn9dUMADaN4k5K0XiqIM0ko/pC62wjJtu7ng27uYtqU40NMP0LLEcQsQI4B7kb BHnQ+SDqWRxV0WSU7T+CRF3cICxR1tmJ9hdIUGMHlAPr1EWchcx7izAqH//yCcdmTc7k9mFvMOHY/ YisYsAzij/LgYwoJtnNlEiUkz4sIr18WXyiwkpbDd2qPjjXszmYihxogBseTOJSIDea4Xtt3WtDCe 2PCrUzhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slNk9-0000000Gcti-2uUq; Tue, 03 Sep 2024 07:14:25 +0000 Received: from mail-am6eur05on20617.outbound.protection.outlook.com ([2a01:111:f403:2612::617] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slNf9-0000000GbTX-3HL3 for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 07:09:17 +0000 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) 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+ou0On9gmJsDCnxg40H6cux?= =?utf-8?q?EUGLiAmwvntfcLG8UopX6E9PgQQss6Ti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NeTeYeEl3?= =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240903_000915_830444_A71D58A0 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 {