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

Commit 38e21711 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

ARM: dts: msm: Add wakeup capable flag to thermal zones for SDM670/QCS605



All TSENS and ADC sensor interrupts are wakeup capable. More over all
cooling devices are platform cooling devices and will not loose
mitigation state after suspend resume. So add wakeup capable sensor
flag to all TSENS, ADC sensors, pmic alarm sensor and BCL thermal
zones for SDM670/QCS605. This will ignore post suspend thermal zone
re-evaluation for these thermal zones.

Change-Id: I18f38bb37431b77e46f923263738b28228dfbce4
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 4de3bade
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2019, 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
@@ -398,6 +398,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x4c>;
		wake-capable-sensor;
		thermal-governor = "user_space";

		trips {
@@ -413,6 +414,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x4d>;
		wake-capable-sensor;
		thermal-governor = "user_space";

		trips {
@@ -428,6 +430,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x4e>;
		wake-capable-sensor;
		thermal-governor = "user_space";

		trips {
@@ -443,6 +446,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x4f>;
		wake-capable-sensor;
		thermal-governor = "user_space";

		trips {
@@ -458,6 +462,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x51>;
		wake-capable-sensor;
		thermal-governor = "user_space";

		trips {
@@ -474,6 +479,7 @@
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&bcl_sensor 0>;
		wake-capable-sensor;

		trips {
			ibat-high {
@@ -489,6 +495,7 @@
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&bcl_sensor 1>;
		wake-capable-sensor;

		trips {
			ibat-vhigh {
@@ -504,6 +511,7 @@
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&bcl_sensor 2>;
		wake-capable-sensor;
		tracks-low;

		trips {
@@ -520,6 +528,7 @@
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&bcl_sensor 3>;
		wake-capable-sensor;
		tracks-low;

		trips {
@@ -536,6 +545,7 @@
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&bcl_sensor 4>;
		wake-capable-sensor;
		tracks-low;

		trips {
@@ -552,6 +562,7 @@
		polling-delay = <0>;
		thermal-governor = "low_limits_cap";
		thermal-sensors = <&bcl_sensor 5>;
		wake-capable-sensor;
		tracks-low;

		trips {
@@ -568,6 +579,7 @@
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm660_tz>;
		wake-capable-sensor;

		trips {
			pm660_trip0: pm660-trip0 {
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2017, 2019 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
@@ -298,6 +298,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm660l_tz>;
		wake-capable-sensor;

		trips {
			pm660l_trip0: pm660l-trip0 {
+1 −0
Original line number Diff line number Diff line
@@ -138,6 +138,7 @@
		polling-delay-passive = <2000>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x4c>;
		wake-capable-sensor;
		thermal-governor = "step_wise";
		status = "ok";
	};
+30 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&tsens0 0>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
@@ -96,6 +97,7 @@
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&tsens0 1>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
@@ -110,6 +112,7 @@
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&tsens0 2>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
@@ -124,6 +127,7 @@
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&tsens0 3>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
@@ -137,6 +141,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 4>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -151,6 +156,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 5>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -165,6 +171,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 6>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -179,6 +186,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 7>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -193,6 +201,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 8>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -207,6 +216,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 9>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -221,6 +231,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 10>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -235,6 +246,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens0 11>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -250,6 +262,7 @@
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&tsens0 12>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
@@ -263,6 +276,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 0>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -277,6 +291,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 1>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -291,6 +306,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 2>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -305,6 +321,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 3>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -319,6 +336,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 4>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -333,6 +351,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 5>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -347,6 +366,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 6>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -361,6 +381,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 7>;
		wake-capable-sensor;
		thermal-governor = "user_space";
		trips {
			active-config0 {
@@ -375,6 +396,7 @@
		polling-delay-passive = <10>;
		polling-delay = <100>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		trips {
			gpu_trip0: gpu-trip0 {
				temperature = <95000>;
@@ -396,6 +418,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		trips {
			silver-trip {
				temperature = <120000>;
@@ -409,6 +432,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		wake-capable-sensor;
		trips {
			gold-trip {
				temperature = <120000>;
@@ -422,6 +446,7 @@
		polling-delay-passive = <10>;
		polling-delay = <0>;
		thermal-sensors = <&tsens1 2>;
		wake-capable-sensor;
		thermal-governor = "step_wise";
		trips {
			pop_trip: pop-trip {
@@ -451,6 +476,7 @@
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens0 0>;
		wake-capable-sensor;
		tracks-low;
		trips {
			aoss0_trip: aoss0-trip {
@@ -503,6 +529,7 @@
		polling-delay = <0>;
		thermal-governor = "low_limits_floor";
		thermal-sensors = <&tsens1 0>;
		wake-capable-sensor;
		tracks-low;
		trips {
			aoss1_trip: aoss1-trip {
@@ -555,6 +582,7 @@
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&lmh_dcvs1>;
		wake-capable-sensor;

		trips {
			active-config {
@@ -570,6 +598,7 @@
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&lmh_dcvs0>;
		wake-capable-sensor;

		trips {
			active-config {
@@ -584,6 +613,7 @@
		polling-delay-passive = <2000>;
		polling-delay = <0>;
		thermal-sensors = <&pm660_adc_tm 0x4c>;
		wake-capable-sensor;
		thermal-governor = "step_wise";

		trips {