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

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

ARM: dts: msm: Add Battery voltage ADC line for APQ8084



Add the Vph ADC line for battery voltage monitoring.
Add configuration to do periodic reads on the ADC line.
Remove the redundant mpp6_div1 ADC line definition.

CRs-Fixed: 629894
Change-Id: Iced3d8fdbe05092d6b6bc6dbf8a0178387dfa440
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent e7e72293
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -3829,6 +3829,17 @@
		qcom,fast-avg-setup = <0>;
	};

	chan@15 {
		label = "mpp6_div1";
		reg = <0x15>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "absolute";
		qcom,scale-function = <0>;
		qcom,hw-settle-time = <0>;
		qcom,fast-avg-setup = <0>;
	};

	chan@7 {
		label = "vph_pwr";
		reg = <7>;
@@ -3889,8 +3900,22 @@
		qcom,scale-function = <0>;
		qcom,hw-settle-time = <0>;
		qcom,fast-avg-setup = <0>;
		qcom,meas-interval-timer-idx = <0>;
		qcom,btm-channel-number = <0x78>;
	};

	chan@7 {
		label = "vph_pwr";
		reg = <0x07>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <1>;
		qcom,calibration-type = "absolute";
		qcom,scale-function = <0>;
		qcom,hw-settle-time = <0>;
		qcom,fast-avg-setup = <0>;
		qcom,meas-interval-timer-idx = <2>;
		qcom,btm-channel-number = <0x80>;
	};
};

&krait_regulator_pmic {
+0 −11
Original line number Diff line number Diff line
@@ -306,17 +306,6 @@
				qcom,hw-settle-time = <0>;
				qcom,fast-avg-setup = <0>;
			};

			chan@15 {
				label = "mpp6_div1";
				reg = <0x15>;
				qcom,decimation = <0>;
				qcom,pre-div-channel-scaling = <0>;
				qcom,calibration-type = "absolute";
				qcom,scale-function = <0>;
				qcom,hw-settle-time = <0>;
				qcom,fast-avg-setup = <0>;
			};
		};

		pma8084_adc_tm: vadc@3400 {