From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C82FD606A336 for ; Thu, 3 Dec 2026 15:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=rNAZnsz2; dkim=pass (2048-bit key, unprotected) header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256 header.s=selector2 header.b=KBDdfxOA 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:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=0aCoK6QLlN4yCWgmbnac0TtdjPScLuFpPTAzE+L1RHI=; b=rNAZnsz2RMvwmi t1RbMYX9MD2ZubuWtFF6J0xP+45pqf0PB87+PwO6/LiqrkOQ0sLMUginUwdBuyo4H+R2NfJWPS3M+ CSYx81Uk9VQAF/hY2DjlhBeloAKYU2YKh86F5s0xra/3ReHgsO/aL53qoa0fP/MHky5Cqtkny3xpw rRVsmiMN64QPF5cLRMaQN6k35OVhgehVVG4VROLnVKcFestTrzBNY0nQnG7liXGWTQiuIbI8g0rTH Pr6/HLFqM6RN6i8TIZTSljItHx0RTbULfhApA67fkoori3iK/iiAtdvJTOfmSypF1Yzp6+A3yJ3OC tWvXyhbkuhbSWaW4ItRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ7wR-0000000EygU-0n0h; Thu, 03 Dec 2026 14:37:47 +0000 Received: from mail-northeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ7wB-0000000EyXQ-0ZJT for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 14:37:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cOl1LA2lwwUClXDmWfK+y9eZSKO3SUWtzmq94iplNFAoMnlTpjV5I34Om9tBvhZ7nI7iQfi8YYOh9TWqgD2PuzqnccqZcJBaMJ8SDKOEY+u62IUnJUfAG7l3WPhcss37HFJD0ANq3hZGiyWyKj6vGBzG9K4dISOUz0ZCdRCTKxPUOO/UgHZRTZc2zwTYugfy/LQP4hOrGe/HSH5AAY8ndH90Sgd84a4SzcW9DakBb3mJaXl9qRQOU336nOOq0EAxx1/FPtFgtAImnneD3oBorQm6YfLQZ5JpV8NpNSBOAadtJcKxhU9PYARgNvBMZ2dGA791kqtXPHRXX5G1alBlkg== 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=0aCoK6QLlN4yCWgmbnac0TtdjPScLuFpPTAzE+L1RHI=; b=u19RR8/M/893U66L2CjAfHn2dP2Pf7EwItpoWXYReoEuRk2WoiUkW73xLHdwnouwm52uWCMCw1/PVD5YtXCHk+rDWOWQPSy3n7KUFu08ko0hxJp5rx3Hl67cp1/ib4BaxcNHQg2LXsZz/yq9qe6uM/eTxUcm/46Y5Lhtjl7Od39gFkNpwqLpmo5vECJNZEDclD5acm25/i8L9pHe+4EQVQHXMAfBRJXL3EgRDSvDVWyUOeOflUrQXCTTUpdUDTf9mapbTpp/AXkc7s5wiBMScpQjdp5m9YPFfUdI6oGioD1WgxrMuamoc0PTOLudmAav9PnTY+q2xMY8Mvkk0xF1ng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 164.130.1.59) smtp.rcpttodomain=posteo.net smtp.mailfrom=foss.st.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=foss.st.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0aCoK6QLlN4yCWgmbnac0TtdjPScLuFpPTAzE+L1RHI=; b=KBDdfxOAY9mxRT+khaPdGp0NQKIV670V/txh05CMp4oOD6y3NuPprNu8+UyJDAg0PuD+8ege75cSlo/7NqyjZG7dT1EGmsnGgitb/BtsCj4WaXGw0Gua79aGKTyWlW4oNM8s4CClsgxWLy9vUtGuu5gIqRmBtuwyNZeETInf0TgIt+/qBHfCOBwwjCwM0/wxMYo7BEjLZY3oimNtnzUFV3ySKFNQ0uZh4yb7CeKHpaeSKW2Q2kuRiCG5jxvstJ1vJWXDqdonWALG6ZTp69RDTHwecklea5fKIijuiGQoXX//DGkAaTV0+sqF0PSD53yMJyWI0Y7zZwyIkjRcm2CHMw== Received: from PAZP264CA0051.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fc::11) by GV2PR10MB9822.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:308::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.5; Thu, 3 Dec 2026 14:37:22 +0000 Received: from MAD0EPF000008C2.eurprd05.prod.outlook.com (2603:10a6:102:1fc:cafe::46) by PAZP264CA0051.outlook.office365.com (2603:10a6:102:1fc::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.12 via Frontend Transport; Thu, 3 Dec 2026 14:37:21 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=fail (sender IP is 164.130.1.59) smtp.mailfrom=foss.st.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=foss.st.com; Received-SPF: Fail (protection.outlook.com: domain of foss.st.com does not designate 164.130.1.59 as permitted sender) receiver=protection.outlook.com; client-ip=164.130.1.59; helo=smtpO365.st.com; Received: from smtpO365.st.com (164.130.1.59) by MAD0EPF000008C2.mail.protection.outlook.com (10.167.241.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.3 via Frontend Transport; Thu, 3 Dec 2026 14:37:21 +0000 Received: from STKDAG1NODE2.st.com (10.75.128.133) by smtpo365.st.com (10.250.44.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Thu, 3 Dec 2026 15:38:27 +0100 Received: from [10.48.86.79] (10.48.86.79) by STKDAG1NODE2.st.com (10.75.128.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Thu, 3 Dec 2026 15:37:20 +0100 Message-ID: Date: Thu, 3 Dec 2026 15:37:18 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] arm64: dts: st: add thermal zones on stm32mp251 To: Mateusz Nowicki , Maxime Coquelin CC: Patrick Delaunay , Valentin Caron , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , , , , References: <20261009093709.19907-1-mateusz.nowicki@posteo.net> Content-Language: en-US From: Alexandre TORGUE In-Reply-To: <20261009093709.19907-1-mateusz.nowicki@posteo.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: ENXCAS1NODE2.st.com (10.75.128.138) To STKDAG1NODE2.st.com (10.75.128.133) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MAD0EPF000008C2:EE_|GV2PR10MB9822:EE_ X-MS-Office365-Filtering-Correlation-Id: cb470a77-5138-42c0-c20c-08df514af075 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|23010399003|1800799024|82310400026|376014|56012099006|261102123227099003|261022105027099003|261028144727099003|261021123027099003|261026121527099003|261026140227099003|261021121427099003|10067099003|261009223027099003|22082099003|18002099003|11063799006; X-Microsoft-Antispam-Message-Info: 6x2a7igdWDIqoVUvrMADvgdptimecan/OrhT+qp54RPY/us8uYWAiYxuVna75joK4el5oAE4fs1VY2KqJbLH5tgkx1lXRmNgiXSS+DorHR8Fb9RxzGXz1pMjRE93tHLGoxe2VrBeLqs401eRD4D9th1USV8B+1s9omYmI62U+MpYIJM/HwziFKEzrGHG2U3ZGfldKUvUTF5Rdm1v7qukA+C1PPIjc1cqBXUkwuwsZZ3yJntfyhMcZ5pUVADNuiJXG+I9Gz4ZvEN3kEoehsB+OqS3vrGovsFF2rMerf31OKXXG1Z/WL7xZMuJRW6lypnTFsjg1yR021w3gvvJAiui+3gPLvNT3Kp5DKFjHwab4o8MYzqy7dWJlE9M3wrLI6XslJuyrovB7L2pBaYvmhscoaN023HufEIQnXpm3KMB6YBvCU92e4R98qw+6N9HeCkySqhZvnDpzK1d0KejjU2HVuXV6Xo3F96qA/cDNVHuG8CiI8Bj5etkMegdebH8gGJ1y2zanqG8PBOc95yk6Wb1RBcUxgYQeLbaeYDvWDwpPpMDPadJpOFZhzPX3XL99XYPnNsGjvWIx24p+/XMsoLrGpj8reZgareK3UoQfMGLSlTrRI2TeCERvcpyFHEnCuwKinQMbm868lFrp1RjjS4nCingBRHlhD6hFPIfsriH2Fc= X-Forefront-Antispam-Report: CIP:164.130.1.59;CTRY:IT;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:smtpO365.st.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(23010399003)(1800799024)(82310400026)(376014)(56012099006)(261102123227099003)(261022105027099003)(261028144727099003)(261021123027099003)(261026121527099003)(261026140227099003)(261021121427099003)(10067099003)(261009223027099003)(22082099003)(18002099003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eBD0mRmCuyBtAWX9o33nGxmAQG+I+s1KTphrqaDLQoDZJXciYP3UuE/w7QwmfNoZW+9MfNbtW4rONxatlSGHFjnVUs1oQsnYW9HL9ZEYfm+Jza09SXeXS7OvV/xYhiU9qZqK63io3XRYpj5Nz5qaRsSzPvxEpoU9J+Z1eecs8ZYMdzdL2Gx1BQu3Rpdmvcb0xc0VqrJJLZx9En+SzyHXlOYLEM6PlM00K2ssSLPcZ/ZOHJ0m4q/YU8XGeu1fk5DUrqJw7MwriRhrZVhcRmW2JeeRGjTJPgUryvleva8j/WHy2H9bjhO3KgX8mgeGjCJvYYrv9BdKbjWXA0hVqbWWfQOxMbl4Zc4Azz7bS48L8CjK4DqO4KOtYEOi8zPsax0sGLmQSuMpt3k1pUAOFqG+2atWsRRh/OnRX5BDZvpnU6FfGAv24Rgk3XZN90SKjV6Y X-OriginatorOrg: foss.st.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 14:37:21.2510 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cb470a77-5138-42c0-c20c-08df514af075 X-MS-Exchange-CrossTenant-Id: 75e027c9-20d5-47d5-b82f-77d7cd041e8f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=75e027c9-20d5-47d5-b82f-77d7cd041e8f;Ip=[164.130.1.59];Helo=[smtpO365.st.com] X-MS-Exchange-CrossTenant-AuthSource: MAD0EPF000008C2.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR10MB9822 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_063731_386907_8CA598D0 X-CRM114-Status: GOOD ( 14.92 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi On 10/9/26 11:37, Mateusz Nowicki wrote: > Add a CPU and a SoC thermal zone for the two DTS sensors. The sensors > have no interrupt, so both zones are polled. > > Each zone has a critical trip point at 122 C (Tj max 125 C minus > 3 C sensor tolerance). > > Signed-off-by: Mateusz Nowicki > --- > Changes in v2: > - Set critical trip to 122 C with 1 C hysteresis (Tj max minus sensor > tolerance), as suggested by Patrick > - Add polling-delay-passive, the sensors have no interrupt > > Link to v1: https://lore.kernel.org/r/20261004121200.64034-1-mateusz.nowicki@posteo.net/ > > arch/arm64/boot/dts/st/stm32mp251.dtsi | 30 ++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi > index b624f998b87c..da75e02f7c8f 100644 > --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi > +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi > @@ -158,6 +158,36 @@ RET_PD: power-domain-retention { > }; > }; > > + thermal-zones { > + cpu-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + thermal-sensors = <&dts 1>; > + > + trips { > + cpu-crit { > + temperature = <122000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + soc-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + thermal-sensors = <&dts 0>; > + > + trips { > + soc-crit { > + temperature = <122000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + }; > + > timer { > compatible = "arm,armv8-timer"; > interrupt-parent = <&intc>; > > base-commit: f831584128ac2a36fb4fa62fe106793d08c2dbf1 Applied on stm32-next. regards Alex