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

Commit c2bcb39c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iio: adc: Add channels AMUX1 and AMUX3 for voltage reading"

parents dc0d2cc3 f719967e
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -300,3 +300,21 @@
		};
	};
};

&pms405_vadc {
	pa_therm1 {
			/delete-property/ qcom,ratiometric;
			/delete-property/ qcom,hw-settle-time;
			label = "pa_therm1";
			reg = <ADC_AMUX_THM1>;
			qcom,pre-scaling = <1 1>;
	};

	pa_therm3 {
			/delete-property/ qcom,ratiometric;
			/delete-property/ qcom,hw-settle-time;
			label = "pa_therm3";
			reg = <ADC_AMUX_THM3>;
			qcom,pre-scaling = <1 1>;
	};
};
+4 −0
Original line number Diff line number Diff line
@@ -796,6 +796,10 @@ static const struct adc_channels adc_chans_rev2[ADC_MAX_CHANNEL] = {
					SCALE_HW_CALIB_THERM_100K_PULLUP)
	[ANA_IN]		= ADC_CHAN_TEMP("drax_temp", 1,
					SCALE_HW_CALIB_PMIC_THERM)
	[ADC_AMUX_THM1]		= ADC_CHAN_VOLT("amux_thm1", 1,
					SCALE_HW_CALIB_DEFAULT)
	[ADC_AMUX_THM3]		= ADC_CHAN_VOLT("amux_thm3", 1,
					SCALE_HW_CALIB_DEFAULT)
};

static int adc_get_dt_channel_data(struct device *dev,