From patchwork Thu Oct 31 12:22:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 178166 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2760102ill; Thu, 31 Oct 2019 05:23:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVCePyq/YriDb84bUQcgucQDuwfLdCjDqzjE9TejHzqZip1+Jcstol0WAHL4fZKxa+CHpQ X-Received: by 2002:aa7:d305:: with SMTP id p5mr5799713edq.80.1572524622450; Thu, 31 Oct 2019 05:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572524622; cv=none; d=google.com; s=arc-20160816; b=SL+AgGxoL95zZubqyJIL4JmcqOcxZeGc5nWbM3LcL8okhnht3diebK+CbZNl/9fVfq UwT4fFiE95j1bwHYxLRTYSllhv4VVg4Up9FyH2oRMIerzsaniWEsXJtOI49XOZ+hp983 KJGNNghRxQewTZ4Eaoyd+vfjLbnRTk0v9o7XZBcxAQV9BWnQZRYI983pF+2T6ccGyRSz iOxJLxw/Y8GZMQqsYiCs9JGgDUchLYpzDJ62Uc6T0lJPtbYZD2XIPfE4bA9vAK+pjUX+ d4sxn7V3E4b34DR08jGzf71pPTJ/ewhW9wQe6jXDdEc9SFl5heHvLfpqmM0Irou1vrGi 6EHA== 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=kP+vxuSvOmj1bVSEList6BBOZ3j5oBCGF+lVHu0/Kj57SVaYCfKrnxti9aChBE0nwH XqsbupVeyYzHL1e/onvaGedFHy7ShMHHo2B7makQn+9oax50hIM5M025i5JB13l2+tIV 98iRVR00/4z2EtCvKxcULNl+gS6Ulv0rDmGOqow1jLdUs0WBpdJN8I3CLIwOAbc56e/G Wsupo818ITOC3p8q2aOKubkNS+I6zs+HQgqpcuGaYGbIh0qMaxe0UhYycAkgIrOAW95p yJZRPXpHfrQwjdOsZjgJd4GbbDi7S22pnOxoT72xzla502Pxh1iapmHAT7u1wzjZFDWP xLpg== 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 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 y15si3461700ejq.159.2019.10.31.05.23.42; Thu, 31 Oct 2019 05:23:42 -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=yHGo5PEL; 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 S1726952AbfJaMXl (ORCPT + 8 others); Thu, 31 Oct 2019 08:23:41 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45113 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727054AbfJaMXl (ORCPT ); Thu, 31 Oct 2019 08:23:41 -0400 Received: by mail-pl1-f196.google.com with SMTP id y24so2637257plr.12 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=tH3XXfK105ZDOaW2Q6frXV47fJGMGBV8SdUbnZ/ovGRUJrxn0odIG8qhzEbaVQ61jU piP5w9vhGRmnvkTCBxdwfpAuESWANTRA4rOb1OkPrEHpOpyzmn/cp5VH1FRKmkXU2KQI 0tZRuJM2MfWpexuZJd43G0XxZJePfVr1Q0qPg920p6Gq6yhI5FTor7P2eqoAPu7rp8+3 7SNyZ0h1bqW8XfJDABSPcUVxPG7ZpnY5QSdvaq3yD/f510zOfQS4yv51y01pCak5LQoH OEvY+sSKaJoqgqCl5sNvtfRAX+iNrNGWWMUtBweb5wWB9wjGOeFxHRlObnXdAWIkb6kb Qm5w== X-Gm-Message-State: APjAAAXZMblc+49heP2FlwsenRG4P6jPCL+K2JgXQ6mzlo5fsgi8n8HX ritVIKx95WDHXcNzSWQDQMQ9zg== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(+) -- 1.7.9.5 Reviewed-by: Rob Herring 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 {