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

Commit ff2af06e authored by Minghao Zhang's avatar Minghao Zhang
Browse files

ARM: dts: qcom: enable conn_thermal in thermal core for LITO QRD

Expose conn_thermal to ADC_TM and register it to thermal
framework, to follow thermal recommendation.

Change-Id: I4b45cab33cb55dcf213d89c6da380f9b720ffc3c
parent b4253f97
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -201,6 +201,19 @@
	status = "ok";
};

&pm7250b_adc_tm {
	io-channels = <&pm7250b_vadc ADC_AMUX_THM1_PU2>,
			<&pm7250b_vadc ADC_AMUX_THM3_PU2>,
			<&pm7250b_vadc ADC_GPIO2_PU2>,
			<&pm7250b_vadc ADC_GPIO4_PU2>;

	conn_therm@4f {
		reg = <ADC_AMUX_THM3_PU2>;
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
	};
};

&pm7250b_charger {
	status = "ok";
	io-channels = <&pm7250b_vadc ADC_USB_IN_V_16>,
@@ -254,6 +267,21 @@
};

&thermal_zones {
	conn-therm-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm7250b_adc_tm ADC_AMUX_THM3_PU2>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
				hysteresis = <1000>;
				type = "passive";
			};
		};
	};

	xo-therm-step {
		polling-delay-passive = <2000>;
		polling-delay = <0>;