mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: tegra: Add pwm-fan profile settings
@ 2020-04-17 13:32 Sandipan Patra
  2020-04-17 13:32 ` [PATCH 2/2] hwmon: pwm-fan: Add profile support and add remove module support Sandipan Patra
  2020-05-04  7:12 ` [PATCH 1/2] arm64: tegra: Add pwm-fan profile settings Sandipan Patra
  0 siblings, 2 replies; 4+ messages in thread
From: Sandipan Patra @ 2020-04-17 13:32 UTC (permalink / raw)
  To: treding, robh+dt, u.kleine-koenig, jonathanh
  Cc: bbasu, bbiswas, linux-pwm, devicetree, linux-tegra, linux-kernel,
	Sandipan Patra

Add support for profiles in device tree to allow
different fan settings for trip point temp/hyst/pwm.

Signed-off-by: Sandipan Patra <spatra@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts
index e15d1ea..ff2b980 100644
--- a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts
@@ -219,10 +219,19 @@
 
 	fan: fan {
 		compatible = "pwm-fan";
-		pwms = <&pwm4 0 45334>;
-
-		cooling-levels = <0 64 128 255>;
 		#cooling-cells = <2>;
+		pwms = <&pwm4 0 45334>;
+		profiles {
+			default = "quiet";
+			quiet {
+				state_cap = <4>;
+				cooling-levels = <0 77 120 160 255 255 255 255 255 255>;
+			};
+			cool {
+				state_cap = <4>;
+				cooling-levels = <0 77 120 160 255 255 255 255 255 255>;
+			};
+		};
 	};
 
 	gpio-keys {
-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-04  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 13:32 [PATCH 1/2] arm64: tegra: Add pwm-fan profile settings Sandipan Patra
2020-04-17 13:32 ` [PATCH 2/2] hwmon: pwm-fan: Add profile support and add remove module support Sandipan Patra
2020-05-04  7:14   ` Sandipan Patra
2020-05-04  7:12 ` [PATCH 1/2] arm64: tegra: Add pwm-fan profile settings Sandipan Patra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®