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

Commit c9bca9b5 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

ARM: dts: qcom: Add modem skin mitigation for Kona QRD

Add modem skin mitigation rule for Kona QRD.

algo_type      step_wise
sensor         skin-therm-step
polling_delay  0
passive_delay  0
set_temp       52000      55000      62000
clr_temp       47000      50000      60000
device         modem_skin modem_skin modem_skin
upper_limit    01         02         03
lower_limit    01         02         03

Above is the configuration that is added.

Change-Id: Ia1e8a6114659b09f75b57fac790707499aaf0c29
parent 3445144e
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
@@ -908,6 +908,52 @@
			};
		};
	};

	skin-therm-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "step_wise";
		thermal-sensors = <&pm8150_adc_tm ADC_AMUX_THM1_PU2>;
		wake-capable-sensor;

		trips {
			skin_therm0: active-config0 {
				temperature = <52000>;
				hysteresis = <5000>;
				type = "passive";
			};

			skin_therm1: active-config1 {
				temperature = <55000>;
				hysteresis = <5000>;
				type = "passive";
			};

			skin_therm2: active-config2 {
				temperature = <62000>;
				hysteresis = <2000>;
				type = "passive";
			};
		};

		cooling-maps {
			skin_lvl0 {
				trip = <&skin_therm0>;
				cooling-device = <&modem_skin 1 1>;
			};

			skin_lvl1 {
				trip = <&skin_therm1>;
				cooling-device = <&modem_skin 2 2>;
			};

			skin_lvl2 {
				trip = <&skin_therm2>;
				cooling-device = <&modem_skin 3 3>;
			};
		};

	};
};

&sdhc_2 {