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

Commit 7c8f83ce authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

ARM: dts: msm: Enable ADC_TM on PM8150B



ADC_TM registers supported VADC thermistors with of_thermal
and allows clients to set trip thresholds for thermal
mitigation. Also fix the channel number used for reading
the WP thermistor on PM8150B ADC_TM.

Change-Id: Ia4f0126f6b839c0e944ec1151d7c92daf75ec099
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 35a52a17
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -158,8 +158,8 @@
			#address-cells = <1>;
			#size-cells = <0>;
			#thermal-sensor-cells = <1>;
			io-channels = <&pm8150b_vadc ADC_AMUX_THM2_PU2>;
			status = "disabled";
			io-channels = <&pm8150b_vadc ADC_AMUX_THM1_PU2>;
			qcom,pmic-revid = <&pm8150b_revid>;
		};

		pm8150b_charger: qcom,qpnp-smb5 {
+2 −2
Original line number Diff line number Diff line
@@ -455,7 +455,7 @@

&pm8150b_adc_tm {
	wp_therm {
		reg = <ADC_AMUX_THM2_PU2>;
		reg = <ADC_AMUX_THM1_PU2>;
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
	};
@@ -494,7 +494,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm8150b_adc_tm ADC_AMUX_THM2_PU2>;
		thermal-sensors = <&pm8150b_adc_tm ADC_AMUX_THM1_PU2>;
		trips {
			active-config0 {
				temperature = <125000>;
+2 −2
Original line number Diff line number Diff line
@@ -454,7 +454,7 @@

&pm8150b_adc_tm {
	wp_therm {
		reg = <ADC_AMUX_THM2_PU2>;
		reg = <ADC_AMUX_THM1_PU2>;
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
	};
@@ -493,7 +493,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm8150b_adc_tm ADC_AMUX_THM2_PU2>;
		thermal-sensors = <&pm8150b_adc_tm ADC_AMUX_THM1_PU2>;
		trips {
			active-config0 {
				temperature = <125000>;
+2 −2
Original line number Diff line number Diff line
@@ -410,7 +410,7 @@

&pm8150b_adc_tm {
	wp_therm {
		reg = <ADC_AMUX_THM2_PU2>;
		reg = <ADC_AMUX_THM1_PU2>;
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
	};
@@ -449,7 +449,7 @@
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm8150b_adc_tm ADC_AMUX_THM2_PU2>;
		thermal-sensors = <&pm8150b_adc_tm ADC_AMUX_THM1_PU2>;
		trips {
			active-config0 {
				temperature = <125000>;