From mboxrd@z Thu Jan 1 00:00:00 1970 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 912F5C55ABF for ; Thu, 6 Aug 2026 08:49:47 +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:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7U1LmfJSqa24lJH2SEn+qA/TeRuZ2252NEslGpBzkeU=; b=hse5Gu1F/TG5IyhWu47eLQpI9e AJ6AoS4m9YQlvjystE3zdsKx0Iaqdfsw9vt8rc7cbexkgZK7ZNefVN/oZZa9NVvB6iOXK00Xh/smu gp877q7+Er85Qf1OnNmvlkpKWdKn8X29nr93P45oYvERB1WxwqIPT/2j4FxnVT8Fb6KDgBmVDP0TJ 3HXBGAMR1dD0AhwAiHrefCUZfaJzv2MdbmeVOGS/oTkBW9p+dx9cvCB/gpAcZMGz0eSeLoxnF92zQ 6z+BoNmmfGyf/oo+sBmaUdwQgtxkYo7e22dR+Vmd31T+Ls3m/4BTZWaABfzfFyf0KXrW1fGt4fN34 UI2si7Pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrtnE-00000005Imz-1qR0; Thu, 06 Aug 2026 08:49:36 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrtn9-00000005Ikn-2mj6 for linux-arm-kernel@lists.infradead.org; Thu, 06 Aug 2026 08:49:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1786006171; x=1817542171; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=XNeG3M4dWAfIsmDBbwjWj2IXhD+Qtz4KOR6R5jwR+jw=; b=QB7+1JW3MG2S8SrsDeHNuguKv6q2IjfbXWR8aAmy24ygeTbv8KB0dlOc ig7g5eEWbtI8y/n011vvLDNtnXraHNXXswld41ymtC7aqf0QWgPrUSia+ FEZHlx7QdB21SHATh9IdOh3vYtKPcSd9g3dRHuKFySSvloYXdReNnA2ei pbVtxQMVhkK1B+mO7bO7usFeeKCFn3RrxoMOp8Vu2qhAYSsgDRsiX8dQG FzocncnY7IQBdeWL9Vt3xMrcN/0Baw1fJiokzvSy6eMraOfJFjvMy3h2J hzWqaecO4kKTh+zG4mhQUHAYcc9EXBdzrJSpWCYntDzrQAjl3/g6nLK/J A==; X-CSE-ConnectionGUID: fSnijaBeTzGVn5jrl+q6+w== X-CSE-MsgGUID: bF4lcckWRjCECWByfLDleg== X-IronPort-AV: E=Sophos;i="6.25,208,1779174000"; d="scan'208";a="62050920" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 Aug 2026 01:49:31 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Thu, 6 Aug 2026 01:49:30 -0700 Received: from che-ll-i67070.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Thu, 6 Aug 2026 01:49:21 -0700 From: Varshini Rajendran To: , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v6 17/17] ARM: dts: microchip: sama7d65: add thermal zones node Date: Thu, 6 Aug 2026 13:10:24 +0530 Message-ID: <20260806074024.531259-18-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260806074024.531259-1-varshini.rajendran@microchip.com> References: <20260806074024.531259-1-varshini.rajendran@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260806_014932_362326_A019BCBF X-CRM114-Status: GOOD ( 10.40 ) 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 Add thermal zones node for SAMA7D65 with trip points for passive cooling and critical shutdown. Signed-off-by: Varshini Rajendran Reviewed-by: Claudiu Beznea --- arch/arm/boot/dts/microchip/sama7d65.dtsi | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/microchip/sama7d65.dtsi b/arch/arm/boot/dts/microchip/sama7d65.dtsi index 3aba73983c79..7743f9e8f692 100644 --- a/arch/arm/boot/dts/microchip/sama7d65.dtsi +++ b/arch/arm/boot/dts/microchip/sama7d65.dtsi @@ -16,6 +16,7 @@ #include #include #include +#include / { model = "Microchip SAMA7D65 family SoC"; @@ -38,6 +39,7 @@ cpu0: cpu@0 { i-cache-size = <0x8000>; // L1, 32 KB next-level-cache = <&L2>; operating-points-v2 = <&cpu_opp_table>; + #cooling-cells = <2>; /* min followed by max */ L2: l2-cache { compatible = "cache"; @@ -126,6 +128,46 @@ thermal_sensor: thermal-sensor { io-channel-names = "sensor-channel"; }; + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&thermal_sensor>; + + trips { + cpu_normal: cpu-alert0 { + temperature = <90000>; + hysteresis = <0>; + type = "passive"; + }; + + cpu_hot: cpu-alert1 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + + cpu_critical: cpu-critical { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_normal>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + + map1 { + trip = <&cpu_hot>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + soc { compatible = "simple-bus"; ranges; -- 2.34.1