Devicetree
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@kernel.org>
To: Thierry Reding <thierry.reding@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	 linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
	 devicetree@vger.kernel.org, linux-tegra@vger.kernel.org,
	 Thierry Reding <treding@nvidia.com>
Subject: [PATCH 1/4] arm64: tegra: Add PWM fan on Jetson AGX Orin DevKit
Date: Thu, 27 Aug 2026 17:07:50 +0200	[thread overview]
Message-ID: <20260827-tegra264-fan-v1-1-3c55f0c748b1@nvidia.com> (raw)
In-Reply-To: <20260827-tegra264-fan-v1-0-3c55f0c748b1@nvidia.com>

From: Thierry Reding <treding@nvidia.com>

Without a PWM fan device node to actively control the PWM, the fan will
either stop or run at full speed, depending on the state of the PWM when
the controller's clock gets turned off during boot.

One is bad for the system's lifetime and the other is very annoying for
anyone in close proximity to the device, so add the PWM fan in device
tree to fix this.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra264-p4071-0000+p3834.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra264-p4071-0000+p3834.dtsi b/arch/arm64/boot/dts/nvidia/tegra264-p4071-0000+p3834.dtsi
index 45f8df9bbfd6..4550e843f513 100644
--- a/arch/arm64/boot/dts/nvidia/tegra264-p4071-0000+p3834.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra264-p4071-0000+p3834.dtsi
@@ -9,4 +9,17 @@ aliases {
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	bus@0 {
+		pwm@c6a0000 {
+			status = "okay";
+		};
+	};
+
+	fan: pwm-fan {
+		compatible = "pwm-fan";
+		cooling-levels = <77 102 140 192 255>;
+		pwms = <&pwm4 0 40000>;
+		#cooling-cells = <2>;
+	};
 };

-- 
2.55.0


  reply	other threads:[~2026-08-27 15:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-27 15:07 [PATCH 0/4] arm64: tegra: Add cooling device on Jetson AGX Thor DevKit Thierry Reding
2026-08-27 15:07 ` Thierry Reding [this message]
2026-08-27 15:18   ` [PATCH 1/4] arm64: tegra: Add PWM fan on Jetson AGX Orin DevKit sashiko-bot
2026-08-27 15:07 ` [PATCH 2/4] dt-bindings: thermal: Add Tegra264 header Thierry Reding
2026-08-27 15:14   ` sashiko-bot
2026-08-27 16:35   ` Conor Dooley
2026-08-27 17:17     ` Thierry Reding
2026-08-27 17:33       ` Conor Dooley
2026-08-27 15:07 ` [PATCH 3/4] arm64: tegra: Add thermal zones for Tegra264 Thierry Reding
2026-08-27 15:07 ` [PATCH 4/4] arm64: tegra: Add cooling device on Jetson AGX Thor DevKit 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=20260827-tegra264-fan-v1-1-3c55f0c748b1@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-pm@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