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

Commit 02197345 authored by Jishnu Prakash's avatar Jishnu Prakash
Browse files

ARM: dts: msm: Update ADC support for SDM450



Add thermal_zones entries for ADC channels that register in
thermal framework, to prevent registration failure in
PM8953 in SDM450.

Change-Id: Ia0cd7dec8e328cacd47f25724ea697fba24dfffb
Signed-off-by: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent 8b7300fd
Loading
Loading
Loading
Loading
+31 −0
Original line number Original line Diff line number Diff line
@@ -106,6 +106,7 @@
			qcom,adc-bit-resolution = <15>;
			qcom,adc-bit-resolution = <15>;
			qcom,adc-vdd-reference = <1800>;
			qcom,adc-vdd-reference = <1800>;
			qcom,vadc-poll-eoc;
			qcom,vadc-poll-eoc;
			#thermal-sensor-cells = <1>;


			chan@5 {
			chan@5 {
				label = "vcoin";
				label = "vcoin";
@@ -305,6 +306,36 @@
};
};


&thermal_zones {
&thermal_zones {
	xo-therm-adc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm8953_vadc 0x32>;
		thermal-governor = "user_space";

		trips {
			active-config0 {
				temperature = <65000>;
				hysteresis = <1000>;
				type = "passive";
			};
		};
	};

	xo-therm-buf-adc {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&pm8953_vadc 0x3c>;
		thermal-governor = "user_space";

		trips {
			active-config0 {
				temperature = <65000>;
				hysteresis = <1000>;
				type = "passive";
			};
		};
	};

	pm8953_tz {
	pm8953_tz {
		polling-delay-passive = <0>;
		polling-delay-passive = <0>;
		polling-delay = <0>;
		polling-delay = <0>;