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

Commit 589ac82f authored by Jishnu Prakash's avatar Jishnu Prakash Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add conn_therm on PM2250 on scuba

Add VADC node, GPIO configuration and ADC_TM_IIO node for
conn_therm on PM2250 on scuba.
In addition, correct name of charger skin thermistor.

Change-Id: Iad1f19ab9856e27f7f137319ccfeb9da232a81ad
parent 98f2fa90
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -250,7 +250,7 @@
		};
	};

	skin-therm-usr {
	chg-skin-therm-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
@@ -264,5 +264,20 @@
			};
		};
	};

	conn-therm-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm2250_adc_tm_iio ADC_GPIO4_PU2>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
				hysteresis = <1000>;
				type = "passive";
			};
		};
	};
};
+24 −2
Original line number Diff line number Diff line
@@ -1236,7 +1236,7 @@
	#address-cells = <1>;
	#size-cells = <0>;
	pinctrl-names = "default";
	pinctrl-0 = <&skin_therm_default>;
	pinctrl-0 = <&conn_therm_default &skin_therm_default>;

	xo_therm {
		reg = <ADC_XO_THERM_PU2>;
@@ -1277,6 +1277,14 @@
		qcom,hw-settle-time = <200>;
		qcom,pre-scaling = <1 1>;
	};

	conn_therm {
		reg = <ADC_GPIO4_PU2>;
		label = "conn_therm";
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
		qcom,pre-scaling = <1 1>;
	};
};

&pm2250_gpios {
@@ -1286,6 +1294,13 @@
			bias-high-impedance;
		};
	};

	conn_therm {
		conn_therm_default: conn_therm_default {
			pins = "gpio6";
			bias-high-impedance;
		};
	};
};

&spmi_bus {
@@ -1300,7 +1315,8 @@
					<&pm2250_vadc ADC_AMUX_THM1_PU2>,
					<&pm2250_vadc ADC_AMUX_THM2_PU2>,
					<&pm2250_vadc ADC_AMUX_THM3_PU2>,
					<&pm2250_vadc ADC_GPIO3_PU2>;
					<&pm2250_vadc ADC_GPIO3_PU2>,
					<&pm2250_vadc ADC_GPIO4_PU2>;

			xo_therm {
				reg = <ADC_XO_THERM_PU2>;
@@ -1331,6 +1347,12 @@
				qcom,ratiometric;
				qcom,hw-settle-time = <200>;
			};

			conn_therm {
				reg = <ADC_GPIO4_PU2>;
				qcom,ratiometric;
				qcom,hw-settle-time = <200>;
			};
		};
	};
};