From patchwork Fri Oct 19 10:53:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 149251 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3143134lji; Fri, 19 Oct 2018 03:53:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV60LAUkOuZQzULuO/DfqM3AoIMYQEHJM+YErvDNRasPqiqW78TJllblo+XDYUNwB3TbwsDLB X-Received: by 2002:a17:902:24c:: with SMTP id 70-v6mr24049354plc.324.1539946414812; Fri, 19 Oct 2018 03:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539946414; cv=none; d=google.com; s=arc-20160816; b=zj/bGjRWBQUMNjn3F4vcrNsTbOOO3cLxs5nxjiU9BzcH8sNVBkTCXcFSi3ei5x6duC rVa2vvOASO8dZmuAauj/zUfSAeVQP32iRsWEvshGjf/zokZk+x67Z6QKlux2Lbk3VZzu VnKwnqGlH2vbEMltOxzNs7tbRrph2ti10wv3Hq/1F2dkO2gV6qrDkeKdCNQWE4rpwBZg 8MuR/LbiBz9pkEOcDdeLe5hq3YRxA3vYtBbTspK10y5WtQeWaM8Ls8jZ6mdS2K5k62UL NJeVADLPDQ61zWQrJV/B9mnJ2P7/bXwXA9WD4PlJgHNuLXI3R4Z9OYu+OgM6tY+J4dkI py6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=SosU5iF7Ey+1v+4vcDwsnnSkHEG3BRB043fFaX95JpI=; b=EiWW31BOe58+v9ShsEWPDNq/9BDfZankBgxuSwodnzwIM1qcTzlswrUowB49CRkjqx 8ZEl+FcieKDlacfHqV+1HNg9Pve/xwWZlTJO+m/fgp89MsObpPp2CqaamD7QwWkou3qr +BfdVN6eQoY9aTCSzKhN7dnsCe3Pc92ZrwIAGk9rVgYUvC5ulfJcjDELtk8WRNC6xztf x/WB5mIaOoXeJvx70VqHchdlr653Oiu4c7MEvxczKZgL10JIkaIt/j9fH9dCBBpbAzG1 XoCA6XfCm2aYi1wSZaNFug0TbQIyAiUntXS48u7W2vMPqLwPVlch6rIxOWUo2xq3Phht j6qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NzKaUFA7; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 x10-v6si22994631plo.100.2018.10.19.03.53.34; Fri, 19 Oct 2018 03:53:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=NzKaUFA7; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726609AbeJSS7F (ORCPT + 6 others); Fri, 19 Oct 2018 14:59:05 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42977 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726542AbeJSS7F (ORCPT ); Fri, 19 Oct 2018 14:59:05 -0400 Received: by mail-pl1-f195.google.com with SMTP id c8-v6so15695778plo.9 for ; Fri, 19 Oct 2018 03:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SosU5iF7Ey+1v+4vcDwsnnSkHEG3BRB043fFaX95JpI=; b=NzKaUFA7uW8Qqw8bJsA1H+ca3lfOsCI6241EZDrw0IQeIIQalm5JvoUuM84ae154wx VCkdfzJnHGvuUbuWHqxSza5v7L+9rNuKO8LCsxBUYOs4iyw9z3ldq7WXnVN5qRZzQdZ1 o72Vob3LeIT0oOHbUcfZoMmONULWd17TwL51g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SosU5iF7Ey+1v+4vcDwsnnSkHEG3BRB043fFaX95JpI=; b=DR9kEJpX1lODNh7jhW0NkMmCWnhESaIBi8v+XuyCQ6Z4nnEelPEqmj9vrw2yp+gyB2 qt/bWC8+PP+P9MspiVqrxHZehTMpyV/bOjWYAlIDjDhM0ZSs2AzYhPN9vxt0L9VqVLq0 tQeontkOWI8s20X8txRlIe7e1PltENE1ObSAIkYg/muONHe8Ffu6zLQfuviFDyu4jKja JMNaKTRtDqu7MtbeTdQZLbsXV7I9OoDDVs/5lSeejphTJxlAkB/SixyBLrHNqpoA6eNW z7fVA00J0GvAq0Z4nLP84cx51g++IRMB/Je5HX5qBqWigILa9oO/i7d2XFHZKNRrhRKh o8yQ== X-Gm-Message-State: ABuFfojvchETzPxkBLcDCOnAqXmh4CG0fwy17FfST0IGzIvVdsjesJJt X9SQJqBRZq824Itru6aPugjY+g== X-Received: by 2002:a17:902:a7:: with SMTP id a36-v6mr20823295pla.87.1539946412361; Fri, 19 Oct 2018 03:53:32 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id m67-v6sm54918pfm.13.2018.10.19.03.53.28 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Oct 2018 03:53:31 -0700 (PDT) From: Baolin Wang To: sre@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, yuanjiang.yu@unisoc.com, baolin.wang@linaro.org, broonie@kernel.org, ctatlor97@gmail.com, linus.walleij@linaro.org Subject: [PATCH v5 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance Date: Fri, 19 Oct 2018 18:53:10 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v4: - None. Changes from v3: - Split binding into one separate patch. - Add LinusW reviewed tag. Changes from v2: - Rename the property. - Improve the commit message. Changes from v1: - New patch in v2. --- .../devicetree/bindings/power/supply/battery.txt | 2 ++ 1 file changed, 2 insertions(+) -- 1.7.9.5 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 resistance 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 = <128000>; constant-charge-current-max-microamp = <900000>; constant-charge-voltage-max-microvolt = <4200000>; + factory-internal-resistance-micro-ohms = <250000>; }; charger: charger@11 {