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

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

Merge "iio: adc: Add DRAX_TEMP channel support"

parents 363bb319 b335ec27
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -794,6 +794,8 @@ static const struct adc_channels adc_chans_rev2[ADC_MAX_CHANNEL] = {
					SCALE_HW_CALIB_THERM_100K_PULLUP)
	[ADC_XO_THERM_PU2]	= ADC_CHAN_TEMP("xo_therm", 1,
					SCALE_HW_CALIB_THERM_100K_PULLUP)
	[ANA_IN]		= ADC_CHAN_TEMP("drax_temp", 1,
					SCALE_HW_CALIB_PMIC_THERM)
};

static int adc_get_dt_channel_data(struct device *dev,
+1 −0
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@
#define ADC_GPIO7				0x18
#define ADC_SBUx				0x99
#define ADC_MID_CHG_DIV6			0x1e
#define ANA_IN					0x1d
#define ADC_OFF					0xff

/* 30k pull-up1 */