From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754787AbbCQJAT (ORCPT ); Tue, 17 Mar 2015 05:00:19 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162]:9150 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752679AbbCQJAL convert rfc822-to-8bit (ORCPT ); Tue, 17 Mar 2015 05:00:11 -0400 X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcKdUCnXG6JabOfSXKWrat9jNPszuWM X-RZG-CLASS-ID: mo00 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH v3 3/6] Documentation: DT: Document twl4030-madc-battery bindings From: "Dr. H. Nikolaus Schaller" In-Reply-To: <20150317084849.GB9761@amd> Date: Tue, 17 Mar 2015 09:59:34 +0100 Cc: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Mark Rutland , Tony Lindgren , "devicetree@vger.kernel.org" , LKML , "linux-omap@vger.kernel.org" , linux-arm-kernel , Linux PM mailing list , GTA04 owners , Belisko Marek Content-Transfer-Encoding: 8BIT Message-Id: <86E29CFB-0345-400E-8085-CC2DA549B79A@goldelico.com> References: <1423088075-10025-1-git-send-email-marek@goldelico.com> <1423088075-10025-4-git-send-email-marek@goldelico.com> <20150316210532.GA11441@amd> <20150317084849.GB9761@amd> To: Pavel Machek X-Mailer: Apple Mail (2.1878.6) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 17.03.2015 um 09:48 schrieb Pavel Machek : >> >> Temperature calibration should have already been done in the underlaying twl4030 iio driver. >> >> Discharge rate is the real current flow reported in uA. Also >> reported by iio. > > Ack, but there's rather severe temperature dependency of the lithium > battery, which you should take into account if you want to compute > “percentage charged". We just want to estimate it as good as possible. 5-10% is sufficient and better than no value at all (which is what you get without this driver). And, we just convert the (existing) driver from non-DT to DT and to use iio, so we do not want to change the inner logic what it does and how it works. BR, Nikolaus