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

Commit 69aae542 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 6b1c550d 60b130a9
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -987,6 +987,8 @@ static const struct adc_channels adc_chans_rev2[ADC_MAX_CHANNEL] = {
					SCALE_HW_CALIB_THERM_100K_PULLUP)
					SCALE_HW_CALIB_THERM_100K_PULLUP)
	[ADC_XO_THERM_PU2]	= ADC_CHAN_TEMP("xo_therm", 1,
	[ADC_XO_THERM_PU2]	= ADC_CHAN_TEMP("xo_therm", 1,
					SCALE_HW_CALIB_THERM_100K_PULLUP)
					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 adc_chip *adc,
static int adc_get_dt_channel_data(struct adc_chip *adc,
+1 −0
Original line number Original line Diff line number Diff line
@@ -139,6 +139,7 @@
#define ADC_GPIO7				0x18
#define ADC_GPIO7				0x18
#define ADC_SBUx				0x99
#define ADC_SBUx				0x99
#define ADC_MID_CHG_DIV6			0x1e
#define ADC_MID_CHG_DIV6			0x1e
#define ANA_IN					0x1d
#define ADC_OFF					0xff
#define ADC_OFF					0xff


/* 30k pull-up1 */
/* 30k pull-up1 */