From: Thierry Reding <thierry.reding@kernel.org>
To: Thierry Reding <thierry.reding@kernel.org>
Cc: Thierry Reding <treding@nvidia.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
devicetree@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 2/3] arm64: tegra: Add thermal zones for Tegra264
Date: Fri, 28 Aug 2026 13:51:38 +0200 [thread overview]
Message-ID: <20260828-tegra264-fan-v2-2-a460389d8ef5@nvidia.com> (raw)
In-Reply-To: <20260828-tegra264-fan-v2-0-a460389d8ef5@nvidia.com>
From: Thierry Reding <treding@nvidia.com>
Add the thermal zones exposed by the BPMP on Tegra264 so that cooling
devices can be attached to them in board-level DTS files.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Changes in v2:
- move thermal header below DTS directory
- fix typo in include guard comment
---
arch/arm64/boot/dts/nvidia/tegra264.dtsi | 29 ++++++++++++++++++++++
.../boot/dts/nvidia/thermal/nvidia,tegra264-bpmp.h | 20 +++++++++++++++
2 files changed, 49 insertions(+)
diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
index 630c20523dcf..953d50af0c08 100644
--- a/arch/arm64/boot/dts/nvidia/tegra264.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
@@ -7,6 +7,8 @@
#include <dt-bindings/power/nvidia,tegra264-bpmp.h>
#include <dt-bindings/reset/nvidia,tegra264.h>
+#include "thermal/nvidia,tegra264-bpmp.h"
+
/ {
compatible = "nvidia,tegra264";
interrupt-parent = <&gic>;
@@ -4625,6 +4627,33 @@ sound {
status = "disabled";
};
+ thermal-zones {
+ cpu-thermal {
+ thermal-sensors = <&{/bpmp/thermal} TEGRA264_THERMAL_ZONE_CPU_MAX>;
+ status = "disabled";
+ };
+
+ gpu-thermal {
+ thermal-sensors = <&{/bpmp/thermal} TEGRA264_THERMAL_ZONE_GPU_MAX>;
+ status = "disabled";
+ };
+
+ soc012-thermal {
+ thermal-sensors = <&{/bpmp/thermal} TEGRA264_THERMAL_ZONE_SOC_012_MAX>;
+ status = "disabled";
+ };
+
+ soc345-thermal {
+ thermal-sensors = <&{/bpmp/thermal} TEGRA264_THERMAL_ZONE_SOC_345_MAX>;
+ status = "disabled";
+ };
+
+ tj-thermal {
+ thermal-sensors = <&{/bpmp/thermal} TEGRA264_THERMAL_ZONE_TJ_MAX>;
+ status = "disabled";
+ };
+ };
+
timer {
compatible = "arm,armv8-timer";
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
diff --git a/arch/arm64/boot/dts/nvidia/thermal/nvidia,tegra264-bpmp.h b/arch/arm64/boot/dts/nvidia/thermal/nvidia,tegra264-bpmp.h
new file mode 100644
index 000000000000..29695881f4cc
--- /dev/null
+++ b/arch/arm64/boot/dts/nvidia/thermal/nvidia,tegra264-bpmp.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/* SPDX-FileCopyrightText: Copyright (c) 2023-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */
+
+#ifndef DT_BINDINGS_THERMAL_NVIDIA_TEGRA264_BPMP_H
+#define DT_BINDINGS_THERMAL_NVIDIA_TEGRA264_BPMP_H
+
+#define TEGRA264_THERMAL_ZONE_TJ_MAX 0
+#define TEGRA264_THERMAL_ZONE_TJ_MIN 1
+#define TEGRA264_THERMAL_ZONE_GPU_AVG 2
+#define TEGRA264_THERMAL_ZONE_CPU_AVG 3
+#define TEGRA264_THERMAL_ZONE_SOC_012_AVG 4
+#define TEGRA264_THERMAL_ZONE_SOC_45_AVG 5
+#define TEGRA264_THERMAL_ZONE_SOC_3_AVG 6
+#define TEGRA264_THERMAL_ZONE_GPU_MAX 7
+#define TEGRA264_THERMAL_ZONE_CPU_MAX 8
+#define TEGRA264_THERMAL_ZONE_SOC_012_MAX 9
+#define TEGRA264_THERMAL_ZONE_SOC_345_MAX 10
+#define TEGRA264_THERMAL_ZONE_TJ_AVG 11
+
+#endif /* DT_BINDINGS_THERMAL_NVIDIA_TEGRA264_BPMP_H */
--
2.55.0
next prev parent reply other threads:[~2026-08-28 11:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 11:51 [PATCH v2 0/3] arm64: tegra: Add cooling device on Jetson AGX Thor DevKit Thierry Reding
2026-08-28 11:51 ` [PATCH v2 1/3] arm64: tegra: Add PWM fan " Thierry Reding
2026-08-28 11:51 ` Thierry Reding [this message]
2026-08-28 11:51 ` [PATCH v2 3/3] arm64: tegra: Add cooling device " Thierry Reding
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=20260828-tegra264-fan-v2-2-a460389d8ef5@nvidia.com \
--to=thierry.reding@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jonathanh@nvidia.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=robh@kernel.org \
--cc=treding@nvidia.com \
/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