From: Ninad Malwade Date: Mon, 7 Dec 2015 10:22:29 +0000 (+0800) Subject: ARM64: tegra21: enable shutdown_warning X-Git-Tag: tegra-l4t-r23.2~23 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/nv-tegra/linux-3.10.git/commitdiff_plain/129edd70ce85ec172a431134a36b646dee88f1fe ARM64: tegra21: enable shutdown_warning -Added entries for warning trip points Bug 200105533 Change-Id: I12f780221caa9f92e1f2a40d1771a8895889ff2e Signed-off-by: Ninad Malwade 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 --- diff --git a/arch/arm64/boot/dts/tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi b/arch/arm64/boot/dts/tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi index 54253a7662f..a384ed93949 100644 --- a/arch/arm64/boot/dts/tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi +++ b/arch/arm64/boot/dts/tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi @@ -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, @@ -62,6 +62,27 @@ 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"; + }; + }; }; }; };