Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3022009imm; Fri, 19 Oct 2018 03:54:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV60HIRZJkqmd7jmIHPucq/P6g9JH9mYdup0cIPuRy+pvqtbOtE3AsSPrgDPmAbycQbtM9OQz X-Received: by 2002:aa7:80cd:: with SMTP id a13-v6mr33746831pfn.86.1539946477359; Fri, 19 Oct 2018 03:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539946477; cv=none; d=google.com; s=arc-20160816; b=aKR29pPN0l92MdMY1blas3ijz5iRRuCG7LTTjS3R7p77EvCGr2n0hsWgmVyKufahvO 27tvKmiA2H34nQ9STZYKgYlFNtlBMyQ5n2jrPHhr6an81m/gIDAvj2f9/oGnFmuZL94t UHPKlgPQaCgXmuCpjEUnWFvvSOzz4O4/9STfq+OXe9q/HiMPvCeIByyh8ylN/1y1Awfw 1mXAiUwoIjAttAzNbqfz5c6MoH8zsRJcwsrkZtEP5zwdSj4lOI1eBHiUt5/1miVHrw4Z 5DLQuazuHOliyPBMmgUNaYHsPEBumSgsk4orDsvp7WIMlL+5H3HDap3LyxQkQHpb9PId Q8dQ== 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=YwLobw4FEJ/t0HBaO90g8yUN0iLZ1QONutfOOzmFDtjOhpsri970J8XNT5CNRepOuA xt22TpSt4nZmPEIu2YhkASbVjeP7Dai5AxFu+wogk5ZJLzB078rjxMyjhYUkWBzDLP8g Lq87a2H0A/nqZMU0leTEBf9cGml+9SbMEmOh7tokKgfPym/lvukzfSxoTAFPc+Z8j7tO dKmqcMljFIhZhgTJQluL8UiZkfhr1nRCc+hrmDnRBaFWbhQd6j7NRyvH4m3AAsEoYNfA jRyf/NzyTm7fSna9HaKfTpRUyXOx/8hoN2LI6gDmchf792YAfgxbKnmtXXJOrWzAQy06 iOsw== 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 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 1-v6si21970220plz.312.2018.10.19.03.54.06; Fri, 19 Oct 2018 03:54:37 -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=NzKaUFA7; 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 S1727004AbeJSS7F (ORCPT + 99 others); Fri, 19 Oct 2018 14:59:05 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37013 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbeJSS7F (ORCPT ); Fri, 19 Oct 2018 14:59:05 -0400 Received: by mail-pl1-f194.google.com with SMTP id bh10-v6so2331784plb.4 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=n0+glMikWtRMjPgjdnP9Xga3P1t+MBBeO1nmVEOiI5q34pRtY6VvqbXxbPrRKMYHgw OJJlDA79IcDmVXc9QSt3I2nKBwT5aRRXTJPcLyCWq5X07eK634D2/7QyPN93VrJm6L/1 LljF6tNv7V/ck3j4lU/pDjaT7Z9tNt2TePaCpnlvSpefr7LkaEbtVUO7duuAZu7o1wfz rkkb7hVJEY0glCZZ5dUhK8ZtqxBUH+dc68Wc6nB4IU5xcOB6uPTt/aEhjuLeOiJebuha V0grD4NBLaik6mJekK5Vi0wRyVMGBuc/eKYu++55GsqtcNCEefT+E3NL9zKoFtQ+tUXw CnOw== X-Gm-Message-State: ABuFfoiaKxqoP/DzReJfnosX01kpIBB1gz6UIbIEkfI3SAceonImuA77 HxdKxPiZGUNLg9LSWOnkap1ecg== 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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 { -- 1.7.9.5