From patchwork Mon Oct 15 08:09:20 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: 148808 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3507295lji; Mon, 15 Oct 2018 01:10:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV61i22V08Q434FhAGv/F4QjYsMuLMTWIy+rjcyWhPZ1ZtfThL0FqBfSCzK1VApbgHkbOCNTb X-Received: by 2002:a17:902:a509:: with SMTP id s9-v6mr159593plq.323.1539591040663; Mon, 15 Oct 2018 01:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539591040; cv=none; d=google.com; s=arc-20160816; b=NP+q4cB2ugMqpguFMXBrUxmGqm0/qW2nKMwaesP2faktUs08a4Hs1ZoNhpGaphUlsM 2hBtGUhwHjyLR3hqFoCEuXb8FuunnGe/cO+4DTDXl2D7axME6RXySLNTclapKNrXMZCy EA3wTCjkuJ/7YHcdfNhSrtRNhqNjT9yIpyjDEhcNF6QQpLC3UhxCTCw0ffXZbJOZOnEq oOJun8lo63/gMBPQmU2u4NYAUvHqNrUxMBHUC9eg+rZwHC8YHxEE6U8S7R3KNb3egGo5 4hv9p+7aVQFCeJMexZEjh+eQ7UT9a6kIUbmYfWda7spE4sb169cl+AfC8xxGwhghf3/L izFQ== 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=qHyP6TsbxwsK1CWpa8UGFv4TSz40JyDBtFelVTbFr7I=; b=SnBZJeAPyKEYuKg3F0gI+ZehSk0h0Y9Frs98rb0BI1/v/INIHgqHhtPaPoJRGb7e0P vroKd7+t+N5QH2v81iU+ENniIBiGmNxiwBjSXga7ak4jKYkd6fMudfKtPctu86FFl9Bm zfpjaVg3eq0S6pHZraf2+sTLhI4IBKIb5mykJ3drDdYVgSy7Ad6NsiQlQQAp220iwA3j aFRgbAV3GPrU3bR6r3/X1h/X664NV3OcOkQLvQt+xRrXwPpUOoa0FGiTpENhnSw1SAW3 PQUmli6XPmBk/WMnmkmHzuEXBbNGy3/yO483BrG0QwTjWt/qyx59WxAcrFvSutJW7+g4 +T3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ftQgyFOo; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 z11-v6si9854958pgo.470.2018.10.15.01.10.39; Mon, 15 Oct 2018 01:10:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=ftQgyFOo; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1726571AbeJOPys (ORCPT + 10 others); Mon, 15 Oct 2018 11:54:48 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34170 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbeJOPys (ORCPT ); Mon, 15 Oct 2018 11:54:48 -0400 Received: by mail-pg1-f196.google.com with SMTP id g12-v6so8795086pgs.1 for ; Mon, 15 Oct 2018 01:10:37 -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=qHyP6TsbxwsK1CWpa8UGFv4TSz40JyDBtFelVTbFr7I=; b=ftQgyFOo5C0d/7+jFBQZD2G+oul+jXzsiTdvXYmVE6J5cWMwQfXS5Nz6LAxwF/Py9S GiGCyO+Zz6AJ9XK5tMyKt8AsMIgKGIxDZ5Xm9RilBApC8ABgjV6VvKcRfkmFKxKI7AFx xIz0N04MGPGvP4KfnDRMqCd3G74K2zamCMvBU= 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=qHyP6TsbxwsK1CWpa8UGFv4TSz40JyDBtFelVTbFr7I=; b=Z+3vXNWFOzOOi0wf3EExJDBpc4s6KCpWrDu4h0tlQMuVSSbUw9Aj0/RYvao1g/QEfx JFABzM0bvEjGS+1MbkAaiKLxLv6hOdy7+Ss+R/YDuxp3dZ/nH7Rfb/RQCGiXYITFcEJ/ JrNHF5HU3eW4cCNIG3S4C8UYbpTB/+ie6xoKuc9viXtN+Uja5fCwnnuenGBGMRhBEOP7 gEF9iauykq9+4OhU2YwhUW7e7mFeb2tH6TqGGR0zDSNDLh5JQKI0Q0veCYko9v6Fjt+5 NVRMVNHjFVzPrP6dbkQ2Sn/Mqz8VB/qJguT5qC7TxyT5hnf8Qid1JjQ4iPEQ3OWQDUMF kSMQ== X-Gm-Message-State: ABuFfoj6XwY2RYjR7Bp31WYC9zf3ge/qNOtL9hvO6PgWqf86E1962pVa qJXCQyAYJAgVWYqclY8pEBlTxw== X-Received: by 2002:a63:1c1b:: with SMTP id c27-v6mr15233801pgc.351.1539591037343; Mon, 15 Oct 2018 01:10:37 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id m27-v6sm16375855pff.187.2018.10.15.01.10.33 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Oct 2018 01:10:36 -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 v4 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance Date: Mon, 15 Oct 2018 16:09:20 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 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 {