public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Daniel Schultz <d.schultz@phytec.de>
To: <nm@ti.com>, <vigneshr@ti.com>, <kristo@kernel.org>,
	<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<robertcnelson@gmail.com>, <francesco.dolcini@toradex.com>
Cc: <upstream@lists.phytec.de>, <w.egorov@phytec.de>,
	Daniel Schultz <d.schultz@phytec.de>
Subject: [PATCH 1/4] arm64: dts: ti: k3-am62-thermal: Add Files for each Temp. Grade
Date: Tue, 6 May 2025 22:08:44 -0700	[thread overview]
Message-ID: <20250507050847.912756-1-d.schultz@phytec.de> (raw)

The AM62x SoC supports three temperature ranges:
* A: -40 to 105C - Extended Industrial
* H:   0 to  95C - Commercial
* I: -40 to 125C - Automotive

Add device tree include files to adjust the alert and critical trip
points in k3-am62-thermal based on the temperature grade.

Passive trip points are always set 10C below critical.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
 .../dts/ti/k3-am62-thermal-automotive.dtsi    | 20 +++++++++++++++++++
 .../dts/ti/k3-am62-thermal-commercial.dtsi    | 20 +++++++++++++++++++
 .../dts/ti/k3-am62-thermal-industrial.dtsi    | 20 +++++++++++++++++++
 3 files changed, 60 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-am62-thermal-automotive.dtsi
 create mode 100644 arch/arm64/boot/dts/ti/k3-am62-thermal-commercial.dtsi
 create mode 100644 arch/arm64/boot/dts/ti/k3-am62-thermal-industrial.dtsi

diff --git a/arch/arm64/boot/dts/ti/k3-am62-thermal-automotive.dtsi b/arch/arm64/boot/dts/ti/k3-am62-thermal-automotive.dtsi
new file mode 100644
index 000000000000..7de461da16ac
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-am62-thermal-automotive.dtsi
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (C) 2025 PHYTEC Messtechnik GmbH
+ */
+
+&main0_alert {
+	temperature = <115000>;
+};
+
+&main0_crit {
+	temperature = <125000>;
+};
+
+&main1_alert {
+	temperature = <115000>;
+};
+
+&main1_crit {
+	temperature = <125000>;
+};
diff --git a/arch/arm64/boot/dts/ti/k3-am62-thermal-commercial.dtsi b/arch/arm64/boot/dts/ti/k3-am62-thermal-commercial.dtsi
new file mode 100644
index 000000000000..a6845a0c513c
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-am62-thermal-commercial.dtsi
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (C) 2025 PHYTEC Messtechnik GmbH
+ */
+
+&main0_alert {
+	temperature = <85000>;
+};
+
+&main0_crit {
+	temperature = <95000>;
+};
+
+&main1_alert {
+	temperature = <85000>;
+};
+
+&main1_crit {
+	temperature = <95000>;
+};
diff --git a/arch/arm64/boot/dts/ti/k3-am62-thermal-industrial.dtsi b/arch/arm64/boot/dts/ti/k3-am62-thermal-industrial.dtsi
new file mode 100644
index 000000000000..eece26eebdef
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-am62-thermal-industrial.dtsi
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (C) 2025 PHYTEC Messtechnik GmbH
+ */
+
+&main0_alert {
+	temperature = <95000>;
+};
+
+&main0_crit {
+	temperature = <105000>;
+};
+
+&main1_alert {
+	temperature = <95000>;
+};
+
+&main1_crit {
+	temperature = <105000>;
+};
-- 
2.25.1



             reply	other threads:[~2025-05-07  5:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-07  5:08 Daniel Schultz [this message]
2025-05-07  5:08 ` [PATCH 2/4] arm64: dts: ti: k3-am625-*: Specify Temperature Grade Daniel Schultz
2025-05-07  7:57   ` Francesco Dolcini
2025-05-07  5:08 ` [PATCH 3/4] arm64: dts: ti: k3-am62a-thermal: Add Files for each Temp. Grade Daniel Schultz
2025-05-07  5:08 ` [PATCH 4/4] arm64: dts: ti: k3-am62a7-*: Specify Temperature Grade Daniel Schultz
2025-05-07  6:17   ` [Upstream] " Primoz Fiser
2025-05-08  8:39   ` kernel test robot
2025-05-07 15:41 ` [PATCH 1/4] arm64: dts: ti: k3-am62-thermal: Add Files for each Temp. Grade Rob Herring (Arm)

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=20250507050847.912756-1-d.schultz@phytec.de \
    --to=d.schultz@phytec.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=francesco.dolcini@toradex.com \
    --cc=kristo@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=robertcnelson@gmail.com \
    --cc=robh@kernel.org \
    --cc=upstream@lists.phytec.de \
    --cc=vigneshr@ti.com \
    --cc=w.egorov@phytec.de \
    /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