Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1470437ima; Sun, 21 Oct 2018 12:30:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV63e8eKFHFR/9A/YyrAFiH0HjgEcKF4p0pFyQDh7GertBoEPWSZDjsN2impuu4Msm1F8WVeD X-Received: by 2002:a63:e818:: with SMTP id s24-v6mr38716918pgh.90.1540150209540; Sun, 21 Oct 2018 12:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540150209; cv=none; d=google.com; s=arc-20160816; b=LAD/t6psSeIKc0CLJued7yB1TkMSP4QmgSK0VV50aAkdL5aIUBOsPe69nlhtCo9EDW yiaZIBsU8O2Dch3d1J4xHIg8JEgSdij051X8YwlKdsDK9donwsBRXwoz+Sk9qZJNdQKG c1J1J48fPdjES4KuwzOShxtkmo+akoIV/PxLuktHkFyJTBYpdg3mQbx8UR1BEJoQnXHh LPB4sI3HStuXPJW1TqjeDX2/Vn5PMZBnAC8U0l/vCoMYYJI9I7C5pQJgWgtbhnvvNSqD pfcEDdHs1MrcEpjGTAIvr2WSESGDQG0MjYv8cm6FZihqxTgaqd7uoMtbjjJgpJMdwwvb 8idw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hD6usUSm41or/5KlRCI5HH6OfjwdD2JmWAoBU0DtqBE=; b=PsYA1scqEI3h5dIqy7WkrklGxezgS1Ucu/7wCwTEkNWK4kJc8s7YwJTc/61rJxQDx7 ngPIR8TJTD+2IZ9gcSF6pCkCosqFBYTBAywiOrH5BFikntIN+VNdsq3HtGRuD66uUXa2 LOD8mQ6or9TH0egD5CSJC+tVk1iy7vxl1dJYN+FG7JbORV7V3V+D/P2xndwS45XUwNPe aRMJhWYhP+LU5NGUcGxUCR7FGmvpBcgqw9tQAnokb2e+Vv//IK7Pa2R0Rkl+hPipafgA fuRUYxGnhG0pOKSNvDNuAP8Cb0dIKbk2k7XGLT3AQz8hIs1LHGGdTN8vMyhwFOpxJzFl ESWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=psOjuuoW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9-v6si31570011pgk.594.2018.10.21.12.29.53; Sun, 21 Oct 2018 12:30:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=psOjuuoW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728267AbeJVDm4 (ORCPT + 99 others); Sun, 21 Oct 2018 23:42:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:33386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728088AbeJVDm2 (ORCPT ); Sun, 21 Oct 2018 23:42:28 -0400 Received: from earth.universe (unknown [62.214.5.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98BC92083E; Sun, 21 Oct 2018 19:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540150027; bh=ye1UdEZn3AUISRD9R869LkGTca/aciSUVnPUccbr68E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=psOjuuoWo7JFNgPS1wkNXUHJ8xKF5oeCqGjrO3hD9dfLUDsU5qd11z+HIpXwthFsa 0o9aHKhB9ehHGexEpMIUccRxP8b9P+7vATcyMbHR0TF5xayMbl1H82QNsv3BrAbaqq QqvYHuKZLng2oKMTGCJM3qO12T/J9NtYwT99vshU= Received: by earth.universe (Postfix, from userid 1000) id 954223C098C; Sun, 21 Oct 2018 18:21:39 +0200 (CEST) Date: Sun, 21 Oct 2018 18:21:39 +0200 From: Sebastian Reichel To: Baolin Wang Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, yuanjiang.yu@unisoc.com, broonie@kernel.org, ctatlor97@gmail.com, linus.walleij@linaro.org Subject: Re: [PATCH v5 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance Message-ID: <20181021162139.4nr5j6vztbcpt6ak@earth.universe> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="buyipfsg5mgqpdut" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --buyipfsg5mgqpdut Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Oct 19, 2018 at 06:53:10PM +0800, Baolin Wang wrote: > The internal resistance of a battery is not a constant in its life cycle, > this varies over the age of the battery or temperature and so on. But we > just want use one constant battery internal resistance to estimate the > battery capacity. Thus this patch introduces one property to present > the battery factory internal resistance for battery information. >=20 > Signed-off-by: Baolin Wang > Reviewed-by: Linus Walleij > --- Looks good to me. -- Sebastian > Changes from v4: > - None. >=20 > Changes from v3: > - Split binding into one separate patch. > - Add LinusW reviewed tag. >=20 > Changes from v2: > - Rename the property. > - Improve the commit message. >=20 > Changes from v1: > - New patch in v2. > --- > .../devicetree/bindings/power/supply/battery.txt | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/power/supply/battery.txt b= /Documentation/devicetree/bindings/power/supply/battery.txt > index f4d3b4a..938d027 100644 > --- a/Documentation/devicetree/bindings/power/supply/battery.txt > +++ b/Documentation/devicetree/bindings/power/supply/battery.txt > @@ -22,6 +22,7 @@ Optional Properties: > - charge-term-current-microamp: current for charge termination phase > - constant-charge-current-max-microamp: maximum constant input current > - constant-charge-voltage-max-microvolt: maximum constant input voltage > + - factory-internal-resistance-micro-ohms: battery factory internal resi= stance > =20 > Battery properties are named, where possible, for the corresponding > elements in enum power_supply_property, defined in > @@ -42,6 +43,7 @@ Example: > charge-term-current-microamp =3D <128000>; > constant-charge-current-max-microamp =3D <900000>; > constant-charge-voltage-max-microvolt =3D <4200000>; > + factory-internal-resistance-micro-ohms =3D <250000>; > }; > =20 > charger: charger@11 { > --=20 > 1.7.9.5 >=20 --buyipfsg5mgqpdut Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlvMp4sACgkQ2O7X88g7 +prRKQ/+I4JhijYPh+yUYarxP0GvbDOiCWU15l1dKSkBHcAOxBIEqx2LavMKzp6I X8nEeSovUB1l/8GJrClT5PTy218OCn5LfwQPl0Aphyi0DXIiWLlxk2COVKdXRgE6 hZAg6mUoU4eQfSHRa2Tfbuw1y3XjScjCSBNbau5yQpc3uH2sQf2nAJIZs/zgrssa UUz5Ode2oSB93GNzWRrHfSO5LyaT8CiYYdUCzGjmLMk3AMxUTT7aMb2MM1Urn6Oe 4YCCyg+BQL2svFGTPYG9mHOR+TNP9K3eSkex2MTYfhqAdFv/HI3/hDsixkG/lR1c 1hFsOoWP2q0ZdDSIo4FC/H73PSDkuwFhJVj4GrW+e2b+GfqMvu8yviVuLdtR2K0V am5cgWjdDPNq3xfuoNap5xN8eLcfF4QvxzgxbTeS6mE7uVr1Uq7JZnVgYgt+XP+K 7L4bs+pnVhBJxLPetqOVjgczNI7Fx+ADIHheARfp6a/mZEZRmDBZr80JoTidOwjA T9tDYv+bzOF9Y9kBOe/az68C6Z84/m2ADfw4H8E0EDb+V6yNrMtkZ3a9blIiN5xu EqsXqutVxf7qSd4Ao2d5ICGIDek4RqG1ZXRoajOggUUacgydCP5YEEd0BBRfEZnY qq6XF0s4JvdC2Iy0Q1kziaMSdMg7KcdNsPperzfU3UNOLAd3xFg= =DLLA -----END PGP SIGNATURE----- --buyipfsg5mgqpdut--