devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Shawn Guo <shawnguo@kernel.org>,
	 Sascha Hauer <s.hauer@pengutronix.de>,
	 Pengutronix Kernel Team <kernel@pengutronix.de>,
	 Fabio Estevam <festevam@gmail.com>, Frank Li <Frank.Li@nxp.com>
Cc: devicetree@vger.kernel.org, imx@lists.linux.dev,
	 linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,  Peng Fan <peng.fan@nxp.com>
Subject: [PATCH v2 10/11] arm64: dts: imx95-19x19-evk: Add pf09 and pf53 thermal zones
Date: Mon, 18 Aug 2025 09:25:40 +0800	[thread overview]
Message-ID: <20250818-imx9-dts-v2-10-8ba787fb5280@nxp.com> (raw)
In-Reply-To: <20250818-imx9-dts-v2-0-8ba787fb5280@nxp.com>

System Manager supports reading out pf09 and pf53 temperature and
SCMI Agent could get the values through SCMI sensor protocol. So add
the nodes to allow Linux to get the temperature.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 73 +++++++++++++++++++++++
 1 file changed, 73 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
index 11393bd57582dd9097732c84e6281be2662145f7..d0c7c9fa43beda4aed83c4b4ecfc4e7f65ae0386 100644
--- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts
@@ -1058,6 +1058,79 @@ map3 {
 			};
 		};
 	};
+
+	pf09-thermal {
+		polling-delay = <2000>;
+		polling-delay-passive = <250>;
+		thermal-sensors = <&scmi_sensor 2>;
+
+		trips {
+			pf09_alert: trip0 {
+				hysteresis = <2000>;
+				temperature = <140000>;
+				type = "passive";
+			};
+
+			pf09_crit: trip1 {
+				hysteresis = <2000>;
+				temperature = <155000>;
+				type = "critical";
+			};
+		};
+	};
+
+	pf53arm-thermal {
+		polling-delay = <2000>;
+		polling-delay-passive = <250>;
+		thermal-sensors = <&scmi_sensor 4>;
+
+		cooling-maps {
+			map0 {
+				trip = <&pf5301_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>;
+			};
+		};
+
+		trips {
+			pf5301_alert: trip0 {
+				hysteresis = <2000>;
+				temperature = <140000>;
+				type = "passive";
+			};
+
+			pf5301_crit: trip1 {
+				hysteresis = <2000>;
+				temperature = <155000>;
+				type = "critical";
+			};
+		};
+	};
+
+	pf53soc-thermal {
+		polling-delay = <2000>;
+		polling-delay-passive = <250>;
+		thermal-sensors = <&scmi_sensor 3>;
+
+		trips {
+			pf5302_alert: trip0 {
+				hysteresis = <2000>;
+				temperature = <140000>;
+				type = "passive";
+			};
+
+			pf5302_crit: trip1 {
+				hysteresis = <2000>;
+				temperature = <155000>;
+				type = "critical";
+			};
+		};
+	};
 };
 
 &tpm6 {

-- 
2.37.1


  parent reply	other threads:[~2025-08-18  1:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-18  1:25 [PATCH v2 00/11] arm64: dts: imx95: various updates Peng Fan
2025-08-18  1:25 ` [PATCH v2 01/11] arm64: dts: imx95: Correct the lpuart7 and lpuart8 srcid Peng Fan
2025-08-18 15:54   ` Frank Li
2025-08-18  1:25 ` [PATCH v2 02/11] arm64: dts: imx95: Add System Counter node Peng Fan
2025-08-18  1:25 ` [PATCH v2 03/11] arm64: dts: imx95: Add LMM/CPU nodes Peng Fan
2025-08-18  1:25 ` [PATCH v2 04/11] arm64: dts: imx95: Add more V2X MUs Peng Fan
2025-08-18  1:25 ` [PATCH v2 05/11] arm64: dts: imx95: Add OCOTP node Peng Fan
2025-08-18  1:25 ` [PATCH v2 06/11] arm64: dts: imx95: Add coresight nodes Peng Fan
2025-08-18 15:55   ` Frank Li
2025-08-18  1:25 ` [PATCH v2 07/11] arm64: dts: imx95-evk: Update alias Peng Fan
2025-08-18  1:25 ` [PATCH v2 08/11] arm64: dts: imx95-19x19-evk: Add Tsettle delay in m2 regulator Peng Fan
2025-08-18  1:25 ` [PATCH v2 09/11] arm64: dts: imx95-19x19-evk: Add pca9632 node Peng Fan
2025-08-18  1:25 ` Peng Fan [this message]
2025-08-18  1:25 ` [PATCH v2 11/11] arm64: dts: imx95-15x15-evk: Change pinctrl settings for usdhc2 Peng Fan
2025-08-18 18:24 ` [PATCH v2 00/11] arm64: dts: imx95: various updates Rob Herring (Arm)
2025-08-19  1:19   ` Peng Fan
2025-08-22  9:17 ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250818-imx9-dts-v2-10-8ba787fb5280@nxp.com \
    --to=peng.fan@nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).