Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b052279 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: define thermal zone for pm8005_tz sensor for PM8005"

parents 4a1c434c 00515646
Loading
Loading
Loading
Loading
+28 −2
Original line number Diff line number Diff line
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -25,11 +25,12 @@
			reg = <0x100 0x100>;
		};

		qcom,temp-alarm@2400 {
		pm8005_tz: qcom,temp-alarm@2400 {
			compatible = "qcom,qpnp-temp-alarm";
			reg = <0x2400 0x100>;
			interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
			label = "pm8005_tz";
			#thermal-sensor-cells = <0>;
		};

		pm8005_gpios: pinctrl@c000 {
@@ -79,3 +80,28 @@
		};
	};
};

&thermal_zones {
	pm8005_tz {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm8005_tz>;
		trips {
			pm8005-trip0 {
				temperature = <105000>;
				hysteresis = <0>;
				type = "passive";
			};
			pm8005-trip1 {
				temperature = <125000>;
				hysteresis = <0>;
				type = "passive";
			};
			pm8005-trip2 {
				temperature = <145000>;
				hysteresis = <0>;
				type = "passive";
			};
		};
	};
};