* [PATCH] arm64: tegra: Add 35°C trip point for Jetson Orin NX/Nano
@ 2023-07-17 16:30 Thierry Reding
[not found] ` <DM6PR12MB5698F386CB76C29D3EE24D24B438A@DM6PR12MB5698.namprd12.prod.outlook.com>
0 siblings, 1 reply; 2+ messages in thread
From: Thierry Reding @ 2023-07-17 16:30 UTC (permalink / raw)
To: Thierry Reding; +Cc: Jon Hunter, Yi-Wei Wang, linux-tegra
From: Thierry Reding <treding@nvidia.com>
It turns out that these devices can get quite hot to the touch with the
standard cooling configuration, so add another trip point at 35°C along
with a cooling map to help keep the system reasonably cool at very low
system load.
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
arch/arm64/boot/dts/nvidia/tegra234-p3767.dtsi | 8 +++++++-
.../boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts | 7 ++++++-
.../boot/dts/nvidia/tegra234-p3768-0000+p3767-0005.dts | 7 ++++++-
3 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3767.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3767.dtsi
index a8aa6e7d8fbc..5f592f1d81e2 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3767.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3767.dtsi
@@ -106,12 +106,18 @@ tj-thermal {
trips {
tj_trip_active0: active-0 {
- temperature = <74000>;
+ temperature = <35000>;
hysteresis = <4000>;
type = "active";
};
tj_trip_active1: active-1 {
+ temperature = <74000>;
+ hysteresis = <4000>;
+ type = "active";
+ };
+
+ tj_trip_active2: active-2 {
temperature = <95000>;
hysteresis = <4000>;
type = "active";
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts
index 2de2f8ac640d..072e45ce2631 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dts
@@ -205,7 +205,7 @@ key-suspend {
};
pwm-fan {
- cooling-levels = <0 187 255>;
+ cooling-levels = <0 88 187 255>;
};
vdd_3v3_pcie: regulator-vdd-3v3-pcie {
@@ -233,6 +233,11 @@ map-active-1 {
cooling-device = <&fan 1 2>;
trip = <&tj_trip_active1>;
};
+
+ map-active-2 {
+ cooling-device = <&fan 2 3>;
+ trip = <&tj_trip_active2>;
+ };
};
};
};
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0005.dts b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0005.dts
index 9b86aa6f7dbe..9e9bb9ca8be4 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0005.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0005.dts
@@ -12,7 +12,7 @@ / {
model = "NVIDIA Jetson Orin Nano Developer Kit";
pwm-fan {
- cooling-levels = <0 187 255>;
+ cooling-levels = <0 88 187 255>;
};
thermal-zones {
@@ -27,6 +27,11 @@ map-active-1 {
cooling-device = <&fan 1 2>;
trip = <&tj_trip_active1>;
};
+
+ map-active-2 {
+ cooling-device = <&fan 2 3>;
+ trip = <&tj_trip_active2>;
+ };
};
};
};
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: tegra: Add 35°C trip point for Jetson Orin NX/Nano
[not found] ` <DM6PR12MB5698F386CB76C29D3EE24D24B438A@DM6PR12MB5698.namprd12.prod.outlook.com>
@ 2023-07-21 12:56 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2023-07-21 12:56 UTC (permalink / raw)
To: Yi-Wei Wang; +Cc: Jonathan Hunter, linux-tegra@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 556 bytes --]
On Tue, Jul 18, 2023 at 04:26:10AM +0000, Yi-Wei Wang wrote:
> Hi Thierry,
>
> The patch looks good to me.
I've turned that into a Reviewed-by. Please see the kernel documentation
here (Documentation/process/submitting-patches.rst) for how to use
these. In a nutshell: if you respond with a Reviewed-by: line, several
of the tools that maintainers use can pick that up automatically during
patch application and simplify that task.
Also, don't top-post. The above document also goes into the details
about how to properly reply.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-21 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-17 16:30 [PATCH] arm64: tegra: Add 35°C trip point for Jetson Orin NX/Nano Thierry Reding
[not found] ` <DM6PR12MB5698F386CB76C29D3EE24D24B438A@DM6PR12MB5698.namprd12.prod.outlook.com>
2023-07-21 12:56 ` Thierry Reding
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).