From patchwork Sat Oct 12 11:19:11 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: 13833971 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 D8016CF2566 for ; Sat, 12 Oct 2024 11:17:50 +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=ZrQ6jKU0AJLDfllKE2ZgYAATDSvxAHyoSqY/Z6rqkBc=; b=kMI6U1ZgK4fBi2gC4POx6Qcvhg fD7R5Pbit0IIainZlmKrQkHp7hmXN4HT809lcDVZwJn+YFyQ4esh3o4707lp+mXfM4dQuck2AAfzp /kLBa8KLem0BKYOioayU/wtXQloX3F4XOIq9VZ/xQw6/K5M3AMG09CP/GKlrPRlxI1X1wcYITgio9 A2TbmOhFs/zfaPiDB/3TtXJ8a915gZTxWxqyUQqj2nsO2vm0ORSJwkYUke/wA+PXB7CTn3ivC2vDH 5a1+QJKtsyHBe+juYRh8ebHYZZqHZDmQLoOXevOgU9eyGQNwKwdhjSciT1OrIK7pIEwtfwZncwNfv GJivaWFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sza7v-000000012a4-1bsL; Sat, 12 Oct 2024 11:17:39 +0000 Received: from mail-am6eur05on20611.outbound.protection.outlook.com ([2a01:111:f403:2612::611] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sza1M-000000011oy-0CGB for linux-arm-kernel@lists.infradead.org; Sat, 12 Oct 2024 11:10:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XxNiMUsDvGNFdJFa+vyWUwMfoYHeaMBFefnvPEK7EDoLYk0Ox1QuY4BEbUM72Z6FmWzJMUEv62N8WC22evMCmbPRtjKdIU7oVJYdGdbVVA/Y2jDVS0e3XZHqQsVjgr4Bg/LvD7h55E9icVaW1o730WB9SHMZoR7RkX/1lSrL58MBdoPGECws8f1yIEJhoTPG+74RlBITQZe6bX+CCpCyqMwVLwEAGjGpLTPwaExi63Yr7yS+yeUD9ySoQ/5N7ye+fI2DCyAmzfYYIi8EgRlxE0bZ9xAsH3TsYXZ2kqOp7tFzilXuq63ZFlHyLwZPL4hj+K5yWkAGKSwVlVcB3DI89w== 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=ZrQ6jKU0AJLDfllKE2ZgYAATDSvxAHyoSqY/Z6rqkBc=; b=HjWZrr31qOgrwOzKBZ/fCeE+P9L4nxVUIFlge8mir8vkRNZSWDjpFGIHX7fSao9Rs6mSoaKlTH+0ZvzZ6bPoxjApBYde/qO0RmXuVkg7nOQQ9qFI6kIDiFbN6S+KnjlmQUVqBahQTlqw9TC+T3B/H4cGOpkdX1pu8rzSB+c30dbSeXEpDv1ONIMvfskQyVN09k0Aue+y0dJ+KBUoc13fLVeYhg3+3Gy/Fw3UAh5kJFAGi3C2M3GtcPo8Vb9aXuJesZkDJLYQAdKVCPhxIlXaeF3FLK7mVfg49AHh/ex/PI4RjzSrsavCFJ195TxCxl2QaNOIHu5KcD7i20wj9MCkcQ== 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=ZrQ6jKU0AJLDfllKE2ZgYAATDSvxAHyoSqY/Z6rqkBc=; b=KkLqg1Ac2ozylg2RlE3hW4IfltHh3V3VkOF2JPTXPkfO54YLHBTy3aCpOAUvquPVPNwjo7Y1hFilOSpLjg54UdQ2sI52jpvZWNprYHNJkGyDzfVyotI//hOkh/gfyF76iO5C4+XSRuLTSf/sDngVPXAHpQRXlk0Jm1jparDXJVR1kEq3Iiafzhtsr6gUUzZ16Q1/2M2F9QGBIxxyzojO68eEOLASDSKM09fsStr2xhCRs9CLN5tbmFWTbMO2OVBOx0TsAtbXHhALAHCUC1AWUSkIwEqnB3eFyUed6wfDIrJqDq4FsZGSjrhpeL4IDjJk3pHqynIpMb44h2MwJO7JmA== 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 AM0PR04MB6771.eurprd04.prod.outlook.com (2603:10a6:208:18d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Sat, 12 Oct 2024 11:10:48 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%5]) with mapi id 15.20.8048.020; Sat, 12 Oct 2024 11:10:48 +0000 From: "Peng Fan (OSS)" Date: Sat, 12 Oct 2024 19:19:11 +0800 Subject: [PATCH v3 4/7] arm64: dts: imx95: add anamix temperature thermal zone and cooling node Message-Id: <20241012-imx95-dts-new-v3-4-edfab0054c71@nxp.com> References: <20241012-imx95-dts-new-v3-0-edfab0054c71@nxp.com> In-Reply-To: <20241012-imx95-dts-new-v3-0-edfab0054c71@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.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728731962; l=1509; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=nCRcwJhSRqLnt+OnvdUbCBk2WTYPwx4bH32IgXyfYu4=; b=j+PJsxnztcqFmCMuDAFilBRFzaSIUFlNdeQpJVr50T//ffts3VYz5p1LoWSy3Xjw993bm7esW yFpMx0Pu5MtDYt+MBn6QJIhGpVvcUHPga8qGdXghUeW33UYl6NYrLX3 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG3P274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::32) 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_|AM0PR04MB6771:EE_ X-MS-Office365-Filtering-Correlation-Id: 61ca1bff-d045-4654-0d31-08dceaae86ad 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|7416014|52116014|1800799024|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hQoYhUGldK+vrPuKwzg+JMC8npBITf8?= =?utf-8?q?zcRENBs4CbR4R7XrW882xGDKrASxih7MFLb9ZFjPZtDj4EaSgw8VPmgh5k5xcGwws?= =?utf-8?q?+ZYMKuAzcaxqQgBwr+MVz18EyGBsMa10gYR+Zj0SUGntIryInZPJtdEOBNp46PGVX?= =?utf-8?q?v2xGO7W1DuOghdW/IC7bcDw74jooBVSLXLcousdi4KUNvLeLqH4GqAxLsYfxLXRqZ?= =?utf-8?q?rfclbZ7+wbGDeflkwKi+5FuwlOFczMRI1mbJ04kVDZ8Am4Y7FqggsN1P4XVZegf0w?= =?utf-8?q?wabuNyRBValjEdzBKOtatGgoSmymHUSlsa/qiojORCcwwOjXmfQ5hpGt2SZSJek/a?= =?utf-8?q?V2+GnLIFQWYQ8Lf7IyigI4Ho1YiNp2e4EGbN9YcU8vnmsoUszcyu/AKYVaqTX5LXV?= =?utf-8?q?Wq0ZR8KzXuiZDBrnIJ9X1CKxR+e3SXwSnDnq2tchPQ3mkSYx9LQkxlR9prLKmxAjS?= =?utf-8?q?mnWU+xMEptSETmNVDRmgR0b/T8mByISycCX1J9h0gy9UyKESXWaGyTI65kI2J3BND?= =?utf-8?q?f7XcPDx3gdRTYQOtmHsVtiMFE/V7tWQUkzDz98tgprEfHLMVZgm7seMU/uKSznc5o?= =?utf-8?q?R6thskv2j/+IRpsWYCgX6zU5kUJuCkmQ5ESFz8qrY3BHnizwgmsw01t08nCqWM6Kz?= =?utf-8?q?c5AK6q1nQgDvi30R16HV+CWFjlfh/6b5zy40J/KLtjGpoqKzcEerdAJRcIk6lbzLy?= =?utf-8?q?o7aOgLvB62JpBfD/M3VnGDRnt6OpjZasS/xa7U9PKkZmlDfP0ZLroRy88fY/P/kG/?= =?utf-8?q?7UqwVbXPiI19rsaF/e+qDghn6QChoa4wpOy6XJr3bLCeJ0SUQ2/Wan2h+Qx3Ktf8R?= =?utf-8?q?92tE9cxCT9az1p4gCDRjRThU7zwy8WAxx3UNoybKrEn0jC3upyeGBHpuFDi35juB6?= =?utf-8?q?wRO11x/jg6n3JQ+fWY/7AJ4aUTyBXzCL3OGkXGNNF19S4xrYiNTvhg7tmbkEPrzvn?= =?utf-8?q?tiNi3lwi4pGyUKjIGdZiXgGhpfmGKuG4FpEocrhnEHr7JiGtGDePf6trzhNLFEFM5?= =?utf-8?q?/T5izvO5ceNTGMQ2eNjw6xgTitN0rkMsMsm8H2KxjZFOqZrfAaspEa3+kttuHUja0?= =?utf-8?q?QHcux4D7Dgw6sIC8ZP+2LfnU4L03AFxQiSf+DV0XCFv0AR6rV+iH+1ZpQThYMIptd?= =?utf-8?q?eUHSA3M7kBcZl0fvsxQRZ6Lx0EGEmZ1SZnYm3bV2duAzFNErZbjg/L2PVBCKa4h4t?= =?utf-8?q?PoK+zzebKOPCT3+cOO5c9+lX7Jpg3H/9UtmKNMreu02WB2qoLhAS9//yglwRAtyy8?= =?utf-8?q?uhcAKDEBavqseUjOGIrqqVG5Esut5t1tq3w=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)(7416014)(52116014)(1800799024)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5z/IYMAc74Wh0vPOsf/DaGFm/TQL?= =?utf-8?q?lQZ2npAAwMwIixQTugN8BdDWy96odMSSDHuJV1TRKTlB2A2aW+NBKdllYq3jJzjkl?= =?utf-8?q?MLCcUrpNMcVqeP0lkI/xCVCRlyg9QyacXHBUnKnESrxTk+5WcY/N90DbTGNT14tdh?= =?utf-8?q?Z3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49//eXCVmTDCJwoREBLh2jRrazBUFU5QKyT82zDJXAzjrSlTbDad?= =?utf-8?q?6Ay5Atjzd0SDPhxG10NOD4EdfWVuvOqCC1FUG4I9ODfOCowZqCN5FGfTfc0un9g+Y?= =?utf-8?q?EsMpFu6hRVD3rksziIeONZM8cjaZ2IIFdkMwG8BWyNkyuyqev2DES3u0nw3XSwejz?= =?utf-8?q?FUwJXq3cA0AGsQggBj/5mLcDmFYEaHJCtA9SqbGytyg8ZkTozWFtOz9ZZN4l5z5Ax?= =?utf-8?q?qHLeJ+oLTzOGbYTd9m/JkaafFJBYbqhOimTennknBGXVk7qoqSz7rCWudTRBmhYSl?= =?utf-8?q?PYaSc8IipKKB4rZ+blRPwQldq6PGYKQ7+4ocXZZ2NbssKNxyOqQqYZANCoeKjUvXE?= =?utf-8?q?cggZnsb7L/mpzV3OxvK01ufBdOxZu5vCbugCr7lZlCy2RieBpLeBCdDrYcmjDOzvy?= =?utf-8?q?bi4mvlAP+j9pIhd1xlX27z5kojo1FO5uWAR7qd66yaajpNoY0NPvFSzEyIZkS5xx8?= =?utf-8?q?x8dYFqhRX0tH?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 61ca1bff-d045-4654-0d31-08dceaae86ad X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2024 11:10:48.5322 (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: fqulKtWHQOmxaKkRsAlUFysGkbgSW6ZFw3yx6/jLDGVrgHKt8y8UmlmtjK1VSAR/SP0lJnfCmoyNjMZd4gEM4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6771 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241012_041052_130405_59A713D1 X-CRM114-Status: UNSURE ( 9.00 ) 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 a96bf8e6a1a29f06741cdf5ac20e414ce71b5c03..ae8e09203ef431d8869fdce79df9f31a3e55971c 100644 --- a/arch/arm64/boot/dts/freescale/imx95.dtsi +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi @@ -371,6 +371,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 {