Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3634251ybl; Sun, 8 Dec 2019 19:58:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwYippF6c6AWkgc08jNwBEPqXqJiFXI0Yu2FmKlbE2xXK5rlO0EjWH/bjccFK5y9COLRzBa X-Received: by 2002:a05:6830:1047:: with SMTP id b7mr5690174otp.77.1575863884587; Sun, 08 Dec 2019 19:58:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575863884; cv=none; d=google.com; s=arc-20160816; b=epjwya3PbRdxVhu61o1mPkxsEeRYzEJprwUTm5y4ln5TinsaBBD8qL1YHI/qaKjr5K 7ek/DdZJGvSJK0qz0P1ngroKdCTEodKinhbiZZ4SFjDrxB1lS1Lh6utmF09ejx5GdfgN Dms/ee9jPCVwY+VkwJyGuysmD/Z53UDakopjqz5o7F8IrQvwVZjTs4gLk5FANTYolLSC Ea0ZsmWbo2C5+oKxyKDMfR36YzMHlyHzV+7pCF3+R2o6Zo56MgXT61GHP22fSQ9TcOB5 dyFIN/GINH2wGAwIySM/LfMuHTsYfHaUQxX1LsS4GM/c1K4mOUMBb3SshI4hLGR72B8t cTOg== 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=3b0Ff4l5EWpR1AKOGsi1ZTAFeOOljeGZ0Ba9az61bbo=; b=dzebFQaKaPHuWoO5/aiskft6xkdJ/F5i0JDbJvXWZ3AvVySXMcmtEYjkyeHn50/DZ5 ZLnjxzlJPiWxuvaea4PIflnN14UiT+3n0i8SJLrCNOMGxUSlydtoyPZ1551UY2v2mOBL iWlJB/jY8wcLqn54n7+oJF/NTJls6kaENH6VUuqgiB7jEJf+zOWfSoifja/y/1GNW4p+ fnBz99fFGrdzMWGbpW0pcJG0pPoD1EztQgBDEaGXYqXmgfaSdvtSYPV5JCYJ4yvUYvas zjphBU0sjyhHuTJ3JicMtuN02ezSBGN1j9G6UYT5X/YVfuONAInnPNaYZgpYaeKUy5Gq Vm/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qOHIXbSa; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si10497022otk.122.2019.12.08.19.57.52; Sun, 08 Dec 2019 19:58:04 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=qOHIXbSa; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727089AbfLID5S (ORCPT + 99 others); Sun, 8 Dec 2019 22:57:18 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46410 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbfLID5R (ORCPT ); Sun, 8 Dec 2019 22:57:17 -0500 Received: by mail-pg1-f196.google.com with SMTP id z124so6398122pgb.13; Sun, 08 Dec 2019 19:57:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=3b0Ff4l5EWpR1AKOGsi1ZTAFeOOljeGZ0Ba9az61bbo=; b=qOHIXbSag1W5InPqUdbn7d/Ikj1LLoCTAWrgTp9dtA91oPhVvxOG1InnSDm8o+8Hiv vLNMNp0OOoIN3ou/EYB0tl2SrEQ/m7VqCUoH619+5mQKayOjG9aG1CFq3OvQkXcVi88j x1FjvPeENgr4uGVQUUF2ldSmIqyst1osL5idJMvSHP/oheex/g1ZGdVrtTvFbUSk5b9e x+OZSFw5xW1wRpg/GE+b0d49ByNyrzl7QnntbSC5/9vR1XAAeqeQYrJBuGmibMB8DIs1 zZrCxb/hQ38mCbLt3EydsyVl9bz60Wf0Epm9E09sSCmATZPd5v6UQvizOibFEe1JW3Mg OIeA== 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=3b0Ff4l5EWpR1AKOGsi1ZTAFeOOljeGZ0Ba9az61bbo=; b=ppXKpkqXmu63aruGGvLe6nIJEjcy8q+Gm3lpEWJe/NFJmc8lpDlc2Txefs/K67SQzA 4badDHqptkSUWoT5MjQUa4apMH8h3+gd/gj8l5AXYRhxvOuTqiLU6RVYoeKdHg71PCOi i9Z86qlOzbQ5Cp3uPY+b+UhPHHv2xyaSBpcBbjODlSs7owL6gUQUDfTz+cYmPi4qnKgR 2b79LWe/8OpjgBXbKHi7WsMX0i62xjGUZwOiySnfQnk+ZeUOEdcO+gyE0RPv877iBDym qKGNHRk9aqxdEFqp3md/RIUK8HTXJGKZUnqKDqUN1KBuJrO6Oj04pam8PUnHKongXbx1 4SAQ== X-Gm-Message-State: APjAAAWSPNjcc2Fc2smHRC87sD2aobilGCEiX14fn9Tkk9F8BWmITOzc jfuWPBZp01GcRlUMidZGJsE= X-Received: by 2002:a63:5d06:: with SMTP id r6mr16310502pgb.249.1575863836705; Sun, 08 Dec 2019 19:57:16 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id b129sm24606111pfb.147.2019.12.08.19.57.13 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Dec 2019 19:57:16 -0800 (PST) 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 v3 1/5] dt-bindings: power: Introduce one property to describe the battery resistance with temperature changes Date: Mon, 9 Dec 2019 11:56:21 +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 From: Baolin Wang 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. Reviewed-by: Rob Herring Signed-off-by: Baolin Wang 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