From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 1/3] iio: adc: cpcap: Fix default register values and battery temperature Date: Tue, 6 Jun 2017 23:22:00 -0700 Message-ID: <20170607062200.GD3730@atomide.com> References: <20170523005146.726-1-tony@atomide.com> <20170523005146.726-2-tony@atomide.com> <20170524201831.3504c42d@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20170524201831.3504c42d-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jonathan Cameron Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Marcel Partap , Michael Scott , Sebastian Reichel List-Id: linux-omap@vger.kernel.org * Jonathan Cameron [170524 12:22]: > On Mon, 22 May 2017 17:51:44 -0700 > Tony Lindgren wrote: > > > Looking at the register dumps from Android kernel on droid 4, I noticed > > the values with the mainline kernel don't match. Let's fix this by > > initializing the ADC registers to what Android does. > > > > For getting correct values from the battery thermistor, we need to > > toggle the CPCAP_BIT_THERMBIAS_EN when measuring battery temperature > > to get correct battery temperatures. And looks like we also need to > > wait a little bit before reading the battery temperature as otherwise > > the results are inaccurate. > > > > Cc: Marcel Partap > > Cc: Michael Scott > > Cc: Sebastian Reichel > > Signed-off-by: Tony Lindgren > Applied to the togreg branch of iio.git and will be shortly pushed > out as testing for the autobuilders to play with it. Not seeing these in your togreg brach or in next? The branch I just checked is the one below, maybe I'm looking at a wrong branch or something. Regards, Tony https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/log/?h=togreg