Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1078038ybx; Thu, 31 Oct 2019 05:26:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNO0Sp4s+bI8NrY7viBQSHcs8sooinMCJoFRyTf8xVT/R8xvUMRUexbp7CtAav4ZB4rhRU X-Received: by 2002:a17:906:a44:: with SMTP id x4mr3609733ejf.64.1572524812093; Thu, 31 Oct 2019 05:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572524812; cv=none; d=google.com; s=arc-20160816; b=YEGhNIz3LWWk2QgHU9y43Cq7veSrsf02xlCSM1QHrIjSl47YUaYfYeBdDPjFClBcxu IT4JNjJZ63vgFY5n4I6b6ONYCwv58AL8CBJGCL+rg3B4vxB3LoAq08oABXdwW2f1AGKt dEQrKsZmQop0uYOP45APeLVWZN+jahGSbneccDtTbkNcfbx29ncr11rpEANJpe7rcSl5 HRxTCrQOWxMypaGgQ5ls6NJeWvRdSP/JVdCk4n4mnjWqrILKZ5i1RIRGigzuq/Yhv9YD Kyj6hJy+U9LijN21e9x0usz5XffhsI5BeXYVWH2Ey5npad7Z6dCtTrvFCIxizGpoQyk9 TYeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=3EOM5oayeFhI5olpubTkJZc1yJ+pE3t3ormYT5/k2xU=; b=UUP0eEdNNFjjC22FYk4HsycIfeJotST3JWCcUzRn/TQGjwztn7leQBGs5CmLkEgpP+ 1bVX8V1VuL7JPWT6MjwdtZ3iYU1Fa0OKI7YW7urOdAZNeo+QnG2CKEGcgggBgr12qD+B 6pLTh1ZRfFddTsFRZx6AH7+c9U/XiyZ6i2HnGisYU4M6n2tAb+gUMDPQSBU1Jj2KNjKx aAO1Azr946i3mFt4CifQyJ1lHXJ+yq/CxNLPHIAuLg7oc3cjuPzPoBM/mM2GiC+RQgpn WQ0PdkAdL+LsT2+ggg7dfXempvkPYwSwp0tS53bTczIP7MeuLW3hcqleD1ixI01Jny3q LOQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yHGo5PEL; 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 x25si3166528eju.357.2019.10.31.05.26.28; Thu, 31 Oct 2019 05:26:52 -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=yHGo5PEL; 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 S1727276AbfJaMXl (ORCPT + 99 others); Thu, 31 Oct 2019 08:23:41 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38683 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbfJaMXl (ORCPT ); Thu, 31 Oct 2019 08:23:41 -0400 Received: by mail-pl1-f195.google.com with SMTP id w8so2646963plq.5 for ; Thu, 31 Oct 2019 05:23:40 -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:in-reply-to:references :in-reply-to:references; bh=3EOM5oayeFhI5olpubTkJZc1yJ+pE3t3ormYT5/k2xU=; b=yHGo5PELukGJE9+DlmbPU9ub+QasVUdgD0N6BsJWeVaWMmn7fCQNlwxtZgV/XnQLOz Qlo5JOuq8hYX2/7b1uW0HABZKfHq4/zHXVp2aKGUEPdQpOwBU7Jy0X4iKRwplLfgg9Uy j2TnRv6GlHf5qJDXpiA2SviX4bypaq5Co22dQcrH34GYKMIQmUqatwcUCGhoCsMQR3d+ zXwrI0zu23eKq11aQOybq4T9cYaTEE+PNGNiHafUL+cwmpZGePBZXwVQE3ffFNrHJf0T vvaD8KMx34m14qG4r0mnvV1Ply8Y+jnVM2OnpQeYEwGf0nnMnkNDcGNqPUVGT/CIL9/f uegQ== 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:in-reply-to :references:in-reply-to:references; bh=3EOM5oayeFhI5olpubTkJZc1yJ+pE3t3ormYT5/k2xU=; b=dVfcl3Ww3wW5LO21kdhpnGZh1P4UGy/JG+1LtoIOoQGzvl6WjmAlLD/5EqIszipAGL 0msejib3UN+zY4QcM5yCjKshlmyTWLOBw8yd3ZaY3Uj6h4sTFVD4BuPw53bVoujdZYdq zalZ3YgZNxyc1WVCAhEhcqDwiE7ni2gxC8MFA5YFlZsEJGnr1zdn9nz1K3hGB4Tkv8HT CQpKM3VjxQcgJ0Br5bW78VDV1votUOmSkWnFliJ0ASMjmZTsKy7nTcXiSk3yY1mjobFt eQYz7WCtisvs9+SvArOs//DwTgSa3yrvjIRulPyvF9u151NUa7UUZF/WQpk//l7Re2kQ t2Hg== X-Gm-Message-State: APjAAAVmgfvBObD2BsrBg0g2LKYo836qfZWcddq6tbFnyTc6ZJRACm0m UwqKzKV7GmCKOKs6DNV+tS5/fw== X-Received: by 2002:a17:902:fe89:: with SMTP id x9mr6340644plm.62.1572524620180; Thu, 31 Oct 2019 05:23:40 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id j25sm2983077pfi.113.2019.10.31.05.23.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Oct 2019 05:23:39 -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, baolin.wang7@gmail.com, zhang.lyra@gmail.com, orsonzhai@gmail.com Subject: [PATCH v2 1/5] dt-bindings: power: Introduce one property to describe the battery resistance with temperature changes Date: Thu, 31 Oct 2019 20:22:40 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the battery internal resistance can be changed as the temperature changes, thus add one table to describe the battery resistance percent in different temperatures to get a accurate battery internal resistance. Signed-off-by: Baolin Wang --- .../devicetree/bindings/power/supply/battery.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/battery.txt b/Documentation/devicetree/bindings/power/supply/battery.txt index 5c913d4c..3049cf8 100644 --- a/Documentation/devicetree/bindings/power/supply/battery.txt +++ b/Documentation/devicetree/bindings/power/supply/battery.txt @@ -35,6 +35,10 @@ Optional Properties: for each of the battery capacity lookup table. The first temperature value specifies the OCV table 0, and the second temperature value specifies the OCV table 1, and so on. + - resistance-temp-table: An array providing the temperature in degree Celsius + and corresponding battery internal resistance percent, which is used to look + up the resistance percent according to current temperature to get a accurate + batterty internal resistance in different temperatures. Battery properties are named, where possible, for the corresponding elements in enum power_supply_property, defined in @@ -61,6 +65,7 @@ Example: ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>, ...; ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>, ...; ocv-capacity-table-2 = <4250000 100>, <4200000 95>, <4185000 90>, ...; + resistance-temp-table = <20 100>, <10 90>, <0 80>, <(-10) 60>; }; charger: charger@11 { -- 1.7.9.5