Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1382064imm; Wed, 19 Sep 2018 17:53:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYid0j/Jo/f1tG3swRPtJ3hBSLpAhKyJ1qHdAHUjFijhKqNRc+ppX9/YimzG/6R9ltBW0Xj X-Received: by 2002:a17:902:bcc6:: with SMTP id o6-v6mr36794978pls.117.1537404821636; Wed, 19 Sep 2018 17:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537404821; cv=none; d=google.com; s=arc-20160816; b=yNhzffogvSBNkv2PUeeQKHdwxZ3XoEFerHuvx4ktAqenBe9+CXoP/oXpryxxm+SeWz 128GT3fKEVip+QHm4VPmGwq4llMymymx/O9ylABTEbbym9CtqC3TOGV63E7WnWDW1fN0 A6j9R1gZhsk5n8WyTkDG4+rpY6eAq0bVG5h1M4xcax3mSAf6w0vutQZPVHeS4F99QVhV YYnvO4Bv/Qvv/mo+66w7yR01NKfcXGh2a4mDt3cqATmS0HG4/2Fqix71M6TEFPqGRkyT s2xUTS/bITKfE6TOvEpZHi0Kg/bRso4vM0t34rBOwxAHurEPqUrclYsdw1QQFUaoyHWM WJoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=ikyanQYd1z9KhSTiyG0OPdJh+9zvOANzP3K2C1DjKkQ=; b=KBC2PSl1wmBW7bBVjB9Tys4FLUWB+u/VSuBNbsOT9wugfB8FDP455yuYeCPcEmLoRA RZpG/ntsh8PA2hELsaoU7/qx2irLw51NhFeyil8o6r4ofH4eEcGRnlVfjd1qa561hBgu rkE7f2OeMSlicW3uYsxnEa0C/Wcm1GYE/j6um5b7WFzd2zrRztSp5fYbHkc5mpskCSwG zLqpcWMGR7O39OXiM09ejkkJiXDAEpgZouWjn6umfMnJRHvz/CUAkbLbmTTD7hdRuYSo BJ8e3UUE/mbki+f9T3RAchz2yy79m25m+j8W/QMlZGgvKctOeQNreYVIYxVwDnCR0bVV C08A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i3SkKpA2; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c31-v6si3204684pgb.348.2018.09.19.17.53.24; Wed, 19 Sep 2018 17:53:41 -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=@linaro.org header.s=google header.b=i3SkKpA2; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731480AbeITGdw (ORCPT + 99 others); Thu, 20 Sep 2018 02:33:52 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46514 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727632AbeITGdw (ORCPT ); Thu, 20 Sep 2018 02:33:52 -0400 Received: by mail-lf1-f66.google.com with SMTP id q22-v6so6766181lfa.13 for ; Wed, 19 Sep 2018 17:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ikyanQYd1z9KhSTiyG0OPdJh+9zvOANzP3K2C1DjKkQ=; b=i3SkKpA2sEje1X0kwKmc1MQTMRFEkBug+yfaG1rNoBhP2E36ec6GO7Zk0X/1ovFQKP A872XDCjk8rrDHPGPcXthuIwROyBdtR/pRTjLbh29vxWDT3pCnCKV4fHTrfQcFw+6YpT 5w06os4zEgQsAV0OV8QJ+4g+EppkpQD1Jf5hA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ikyanQYd1z9KhSTiyG0OPdJh+9zvOANzP3K2C1DjKkQ=; b=dJHsRqEW/3VoZV5TeqnSxqXJ3Xba3eF5ttC7rGKqug3IrQU9qi/EUbB+6l1xS+ivkb LYPvy5Zuag1OO5wExaweDE3kYxTjAu1fhCmZ6JdsLWJhsyp1ujH+44KrwgtriaVIMjzo TWhG7YOihDhA/BEU9A/aR2M3mNyYrcQuPEg7nlQRf7AfFs7Ck70LUn9HQhHy7ASx+aeY +NvH2iWI8IOYdJOWk/1oq1WjxH6xIi9KhB/hrmCOaEKYWUcMpJXu9kTHD/guPF79B/5T Ogf2Ys8KgaySQOklURmLbwnhkRFYFwj1M42lEP9/NKrw3yxIz9bUMJjmJWhsKPkSWuEn TrTg== X-Gm-Message-State: APzg51DpkeeFNgtMuR/6PMrM64bCg72VxrugOl6XsNtmdODZ2dSNMkQQ VL5nBQatz8HYKjTAeTLrlJAT1KmECwbtY0Nd5h55xg== X-Received: by 2002:a19:124b:: with SMTP id h72-v6mr10911455lfi.72.1537404797121; Wed, 19 Sep 2018 17:53:17 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:9045:0:0:0:0:0 with HTTP; Wed, 19 Sep 2018 17:53:16 -0700 (PDT) In-Reply-To: <20180920004612.63biirau5qxnbxxo@earth.universe> References: <1b3f165e2a806dd3d4b7712160ee3bda72f7d675.1536736399.git.baolin.wang@linaro.org> <20180916135721.rhu3rn4fsrmmgnbf@earth.universe> <20180920004612.63biirau5qxnbxxo@earth.universe> From: Baolin Wang Date: Thu, 20 Sep 2018 08:53:16 +0800 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation To: Sebastian Reichel Cc: Craig Tatlor , Rob Herring , Mark Rutland , Linux PM list , DTML , LKML , yuanjiang.yu@unisoc.com, Mark Brown Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sebastian, On 20 September 2018 at 08:46, Sebastian Reichel wrote: > Hi, > > On Mon, Sep 17, 2018 at 11:43:30AM +0800, Baolin Wang wrote: >> Hi Sebastian, >> >> 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 capacity. >> >> >> >> 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/sc27xx-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. >> >> 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'. Sure. > >> >> +- sprd,ocv-cap-table: Provide the battery capacity percent with corresponding >> >> + 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 >> >> 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/ Thanks. -- Baolin Wang Best Regards