Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1378012imm; Wed, 19 Sep 2018 17:47:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbSNAmsw1eTcwRJVBJd3Xn4nK64kbKB1tgCy4c75wNxDhZXYNMHr+ftNGDko9Vri+QTFyy5 X-Received: by 2002:a17:902:8308:: with SMTP id bd8-v6mr36474916plb.134.1537404428747; Wed, 19 Sep 2018 17:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537404428; cv=none; d=google.com; s=arc-20160816; b=HTIrSrWfT1He2Bfe0hXofdFqALuTQoANtdYJ67vxXj3awo+NUwGX51bQNQRovAXcFd uS8mCFEsVNzLZu7qC33AYO7Yvypm+0zp0IslnoRALdiFfiyiv24tnjskmldHHdzUgeqU mDtxMb/Vw0Km8TKYFIKz2pIRZlOuy0FUaeYVOtVuSoMY8Cfnz2HijSO/1nRy3Gv2ZImq 4fO35f+qxJJK+1NnjunvKLESt3rwWCxPLrLf8VJTJfX49nqhpE/AqyQeEncjpa8aUUNs WBlwQBrcRbzBzWSo8x6b/yAB+WfIcwA0VBT9Yenjrb99hOmX9m3KZEfxVtQ/Ud3US2oi c4WA== 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; bh=Ga2O+i97lhK72+E7N1ho3fJvK8FpJH9WXIUEdWFZuyw=; b=ofum5/jucGHj1boe6X3shsQBNBsKUnamc+hFAlz5PEMx/oAVMdJWnDKL4Qay6ffzhy Dq6O3N+yE2G3CHi4YkyfhpMw0AsK1hNdzUasIIXVzM8aEXvu9mW4V+Q7nrSL/ZH1K1RW ZJd4+AsjOdKcvhfMHDiDkKUYRmgBgw6r9Kz/XPTRrAtB/NC1htdHcdwemO9POBv+WWz4 ovKCxPmNdB/FRG8ViYBTh5Vu6VqAb8YZjHI0n8m7F+T2r+3qxgVQNRBYdpPkoj65sl5x ncm8HW0GZdbQRBmIbKvuyV2qTqdH5waIs6wNhn40RHt4f2qNTJEWuS6eO0+8dmh+arF8 kcCw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20-v6si21454959plr.110.2018.09.19.17.46.22; Wed, 19 Sep 2018 17:47:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731219AbeITG0t (ORCPT + 99 others); Thu, 20 Sep 2018 02:26:49 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41806 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbeITG0t (ORCPT ); Thu, 20 Sep 2018 02:26:49 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id D7645263B12 Received: by earth.universe (Postfix, from userid 1000) id 5EDBC3C0A85; Thu, 20 Sep 2018 02:46:12 +0200 (CEST) Date: Thu, 20 Sep 2018 02:46:12 +0200 From: Sebastian Reichel To: Baolin Wang Cc: Craig Tatlor , Rob Herring , Mark Rutland , Linux PM list , DTML , LKML , yuanjiang.yu@unisoc.com, Mark Brown Subject: Re: [PATCH 1/2] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation Message-ID: <20180920004612.63biirau5qxnbxxo@earth.universe> References: <1b3f165e2a806dd3d4b7712160ee3bda72f7d675.1536736399.git.baolin.wang@linaro.org> <20180916135721.rhu3rn4fsrmmgnbf@earth.universe> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xcwdf3hh3w7gnphb" 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 --xcwdf3hh3w7gnphb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Sep 17, 2018 at 11:43:30AM +0800, Baolin Wang wrote: > Hi Sebastian, >=20 > On 16 September 2018 at 21:57, Sebastian Reichel > wrote: > > Hi, > > > > On Wed, Sep 12, 2018 at 03:29:38PM +0800, Baolin Wang wrote: > >> This patch adds the binding documentation for Spreadtrum SC27XX series= PMICs > >> fuel gauge unit device, which is used to calculate the battery capacit= y. > >> > >> Signed-off-by: Baolin Wang > >> --- > >> .../devicetree/bindings/power/supply/sc27xx-fg.txt | 55 +++++++++++= +++++++++ > >> 1 file changed, 55 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/power/supply/sc2= 7xx-fg.txt > >> > >> diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.= txt b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt > >> new file mode 100644 > >> index 0000000..7447bae > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt > >> @@ -0,0 +1,55 @@ > >> +Spreadtrum SC27XX PMICs Fuel Gauge Unit Power Supply Bindings > >> + > >> +Required properties: > >> +- compatible: Should be one of the following: > >> + "sprd,sc2720-fgu", > >> + "sprd,sc2721-fgu", > >> + "sprd,sc2723-fgu", > >> + "sprd,sc2730-fgu", > >> + "sprd,sc2731-fgu". > >> +- reg: The address offset of fuel gauge unit. > >> +- bat-detect-gpio: GPIO for battery detection. > >> +- io-channels: Specify the IIO ADC channel to get temperature. > >> +- io-channel-names: Should be "bat-temp". > >> +- sprd,inner-resist: Specify the the battery inner resistance (mOhm). > > > > This should be a property of the battery.without the sprd, prefix. >=20 > Right. But I did not find one proper property of the battery, so I > will add one new standard property of battery Thanks. > named 'inner-resistance-microohm' in next version. Is it OK for you? The proper suffix is -micro-ohms according to Documentation/devicetree/bindings/property-units.txt Also the proper English term is internal resistance as far as I know (and Wikipedia also names it this way), so I suggest to name the property 'internal-resistance-micro-ohms'. > >> +- sprd,ocv-cap-table: Provide the battery capacity percent with corre= sponding > >> + open circuit voltage (ocv) of the battery, which is used to look up= current > >> + battery capacity according to current baterry ocv values. > > > > This should also be part of the battery binding. I just reviewed a > > patchset for the Qualcomm Battery Monitoring System, which needs the > > same functionality. The Qualcomm binding is more advanced, but > > should also support this simpler case. Thus I think it makes sense > > to use its description as base for adding support for this feature > > to Documentation/devicetree/bindings/power/supply/battery.txt >=20 > That's great. But could you give me the link of Qualcomm binding, > which I can change my bindings. Thanks for your comments. https://patchwork.kernel.org/patch/10464633/ -- Sebastian --xcwdf3hh3w7gnphb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlui7dQACgkQ2O7X88g7 +pqS/g/9FnEPHKRIBRw/MTICOD5x5VMJlGCPl5dqZfRkxQwLlwPCY3LnhrNjTE5e i2xn34dV8o5jIMiZvrnbobBejknjl2w8wbRoXzFZaOurTT+in3ECEqGtL/7y/H6U RI75GNgMcST4y+FRH0UCI3+6gg2gDmWKChzoBgLii71BFKTZlVmFzSjInIpr6bjV xMbfz8eT5xV8iVdy6/GbDpV4+yHIko/MiMznf8GjaSHjhcF66f/HKegOqGauMXCt yBaSC3nLhryGRLkdo08U1H2XYWJ3cD2P55Crix5Qlk8WR5bK/OGHEaHWsQPKqNgD L9CBrytcHQP5BjCO/aTudt826n7NiPDAfk1+ACBwKV17yAd2nlWDVhi3X3fzRBts IsWpytu2eYvT2Qb7A0AmHcoPV+2yIQ/EolNsf0HgA1cg7CKRg5B2jxWhXsV9w2SP 67JI3O/7xLh2gpkcxGkmeYhmJf27y1/kvp1Xtqak3IMCFk7oGq6MykKdErn9wBma i1n4GNLcAMrgkaTJ1Uk6JFDjipsR0J+Vd2Vwqjau0MLdlefksZP9XdfRIMnBJqR3 nh/q7hI2bIkv8EY2ZpmAL+8Gibe2l9Y/71yuRy1+JQn5ZmXPNAk+m/XrpfW4l0DT JE8YAs+Gzdp2OEdohymSzgaK5A8gogqchRqh/BOC+vc50c1GRH8= =aiuD -----END PGP SIGNATURE----- --xcwdf3hh3w7gnphb--