]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM64: tegra21: enable shutdown_warning
authorNinad Malwade <nmalwade@nvidia.com>
Mon, 7 Dec 2015 10:22:29 +0000 (18:22 +0800)
committerWinnie Hsu <whsu@nvidia.com>
Thu, 7 Jan 2016 20:59:47 +0000 (12:59 -0800)
-Added entries for warning trip points

Bug 200105533

Change-Id: I12f780221caa9f92e1f2a40d1771a8895889ff2e
Signed-off-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-on: http://git-master/r/842237
(cherry picked from commit 2f452740443197de8ada80fd0cb4b23068482f91)
(cherry picked from commit 04c9bf7e381b6b49044a34e4b79986649bc1feaf)
Reviewed-on: http://git-master/r/929364
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
arch/arm64/boot/dts/tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi

index 54253a7662fd1cff4a5d30728a39f2ba90ad0403..a384ed93949fc6a7950b951e3da36bfae5dabb90 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * arch/arm64/boot/dts/tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi
  *
- * Copyright (c) 2014 - 2015, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2014 - 2016, NVIDIA CORPORATION. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
                        thermal-zone-params {
                                governor-name = "pid_thermal_gov";
                        };
+
+                       tdiode_shutdown_warn_cool_dev: shutdown-warn-cool-dev {
+                               #cooling-cells = <2>; /* min followed by max */
+                       };
+
+                       trips {
+                               tdiode_shutdown_warn: shutdown-warn-throttle {
+                                       temperature = <104000>;
+                                       hysteresis = <1000>;
+                                       type = "passive";
+                               };
+                       };
+
+                       cooling-maps {
+                               map-shutdown-warn {
+                                       trip = <&tdiode_shutdown_warn>;
+                                       cooling-device = <&tdiode_shutdown_warn_cool_dev
+                                                       THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                                       cdev-type = "shutdown_warning";
+                               };
+                       };
                };
        };
 };