From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 5592F40E8E0; Mon, 27 Jul 2026 12:29:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785155365; cv=none; b=t8iEO/EqrZucgcYPF/2xxrtqu99iYACIWEGSGql/of72IKBFkYNgdcER7aQKzMdFBdXieslkCiProWNaOZhRzBsOE38crjCTxOdfrV6UwmMRf+ckdGbrRkbtpGSAcLIiAFcoKZ4V4ypZ7lA4BdKZkziq4hLI5RU03eXVJmR8ZQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785155365; c=relaxed/simple; bh=XNeG3M4dWAfIsmDBbwjWj2IXhD+Qtz4KOR6R5jwR+jw=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LJqbLHnbdChzJSaZW7AnaUSYXhomTmd+tL+ga5skw2wIfH7Baq1IZqtj7LByNs8mFihMJkYTdypOt/F3mlk1MjJEGx0dIxbFizfWro2t/BW1GcxYkoe3LqI5RAQ/qjv+j0N7vN91ZG0bty8uUsUhUpvn56GM/+Uo90NBuAwEueI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=GTl25PJI; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="GTl25PJI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1785155367; x=1816691367; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=XNeG3M4dWAfIsmDBbwjWj2IXhD+Qtz4KOR6R5jwR+jw=; b=GTl25PJIKwGK2cCyiy4bX5+Ar7XlveqgBXeYeQWdyjxrq/qDCI65Ar+Q gMfYxWs1xwVGEsMVzcoB5IZfEIJW0fHtoD/8MnDBxadPkKr3B2VdkvfXi 3NZgNYQRejK59vfyHX+khENjWLzhfzWfZ8IV2LF01oYwpQ40BGKJhldzL 13EtBV1XTRYsti+BrdguG8d99na9j3SvIJNSCuyMbT+Hd6ZgJAR31oxtY JXE3nW/KQ6zGc4g56K5vjJL7pZnZByz87Cuf+0hq8a/Tnn/1pjglQuQyq 3yAuAFWje42choxLAdXkXcDOIbrSCi90uCq6ZOo41Exqp2e9OZw7Y9VQr A==; X-CSE-ConnectionGUID: xCbyCcchQKSJ1HjxOy1ocg== X-CSE-MsgGUID: 1XSeyO65RRqUF998n1qeQQ== X-IronPort-AV: E=Sophos;i="6.25,188,1779174000"; d="scan'208";a="228368897" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 27 Jul 2026 05:29:26 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Mon, 27 Jul 2026 05:29:22 -0700 Received: from che-ll-i67070.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 27 Jul 2026 05:29:14 -0700 From: Varshini Rajendran To: , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v4 16/16] ARM: dts: microchip: sama7d65: add thermal zones node Date: Mon, 27 Jul 2026 17:56:33 +0530 Message-ID: <20260727122633.117435-17-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260727122633.117435-1-varshini.rajendran@microchip.com> References: <20260727122633.117435-1-varshini.rajendran@microchip.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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