From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=68.232.154.123 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796195207; b=fPjY2MprbY957YDSM+VvjRsPgUAClQYVLDS/V+L6rSw7x5/f7ff+3Q6k29WJbfe016Fi px+QF+TYV4q7ffnvqurNasqYvTLUOocjUJmGPiKnW3vf7LnFWGnuzgWbE48wxee9f2UgX 4/OYP3bkxLuENHbU0bw41qrHFNx74iwxNNxkzqnWWvYDdbO3W5FDG96KFsz+Pqf5HE26q fMNAQrUKpmBKp8yCCG0pJcHjdBmM3v3jnch0qHe8ifsAO2hV1dRcS/vk7sAitOqTXjtRP l2HaK87aeko2qjC4Fq1tZCPHrPFZP2Ob6mJHrUKTQ1yss5HvNQEfVLop2bjzgXYruXw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796195207; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-Amp-Result:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=lip9PRWmdFEw6kYFGY2JPQHYIOrK1sktSgIoUi+rydM=; b=BtdZKAN5f3zTRMgoQHvxenI4s78hWVYaZuRPUaVSgEtLUX6tvODsUmH0TJ18AdjjiRyO UqMN0kUyRxOasf55lhO3M14YtHFD1LC68pwXjEm7FCojJqnKptf1yU8VTEfTbkTgFjAbi h65eIYKsxqICYa5Or9O1VZleUTJAkV2CnD74ZsE7eX3bEKawu3qnXUKY5A1F2azR8nblu VP+7Wze1zwHxDia8xlkRarI4pvp50ER2MMY8Z1V2U6tz9tXlb2e/y4AjcbAqoQiTYrziJ 4eHBZgnRPVPoROh4DsS6MFsEN22pdRWz+vxDiRKeI2d10Oskuqrj4hg2m7J9XSFZ60w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b="OT1g/mti"; arc=none smtp.remote-ip=68.232.154.123 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 5F44E606A31A; Wed, 2 Dec 2026 07:06:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5F44E606A31A 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.a=rsa-sha256 header.s=mchp header.b=OT1g/mti DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1796195207; x=1827731207; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Syxf4mNhYQYubKYFR+3L2HfsRWeiYJVL9kJel1s4SNQ=; b=OT1g/mtiwGgjJrV5Ca0F+uuefgJshcg/NHVV5J1XAAULYGzrqI5s9j52 17ZLLSOHWG+H4ejKbyexqiS0At+d80nAZV/SXmcMcOpjz/S1D8Nr+fXb5 FuXmzJB7mqdx+ZrD6Y2JnysX0xtbRigQqisTnDip31vSoA9XnPS2aWyxC sKpzH4ejhV40fEq5T/cpOOs3aWUXkMm0bJKkDIfMaZb/w+VLK9a5ssdS9 AsotFZgIsSzXlHMO4DEglpc2QTnapdy68ZwYQ7Vuvsb/TFyZXnWT7i3Q0 A2Wqz+SGJoFMMCffixfL/01sOtF6ZRVW7A0HVCbe98BjqedSqEvRwlBan w==; X-CSE-ConnectionGUID: RgEums/FQJqZpMwup2r9+Q== X-CSE-MsgGUID: MEhE+AD0TwCf/p42igymIw== X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="67550481" 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-AES256-GCM-SHA384; 02 Dec 2026 00:06:46 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.87.151) by chn-vm-ex3.mchp-main.com (10.10.87.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.57; Wed, 2 Dec 2026 00:06:45 -0700 Received: from che-ll-i67070a.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Wed, 2 Dec 2026 00:06:40 -0700 From: Varshini Rajendran To: Jonathan Cameron , Srinivas Kandagatla , Claudiu Beznea CC: Eugen Hristev , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , "Nicolas Ferre" , Alexandre Belloni , , , , , Subject: [PATCH v7 18/18] ARM: dts: microchip: sama7d65: add thermal zones node Date: Wed, 2 Dec 2026 12:34:56 +0530 Message-ID: <20261202070458.87970-19-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261202070458.87970-1-varshini.rajendran@microchip.com> References: <20261202070458.87970-1-varshini.rajendran@microchip.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 59eb66ca6f15..43773d04b867 100644 --- a/arch/arm/boot/dts/microchip/sama7d65.dtsi +++ b/arch/arm/boot/dts/microchip/sama7d65.dtsi @@ -15,6 +15,7 @@ #include #include #include +#include / { model = "Microchip SAMA7D65 family SoC"; @@ -37,6 +38,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"; @@ -125,6 +127,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.43.0