Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3228590ybg; Mon, 28 Oct 2019 09:25:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyH8y0XgDFBwGXPfAV3hyJHq8ZZ33LDMc4gAMAjMdvS5598hpf00Ogkb32POrmf78Hs23/q X-Received: by 2002:aa7:cdc2:: with SMTP id h2mr9232599edw.4.1572279931803; Mon, 28 Oct 2019 09:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572279931; cv=none; d=google.com; s=arc-20160816; b=swRWW82wjdCgYAj6QquQ6Ja9uAdrWEHyCxHS0VR8KzFBx+Rm85OwNwAdE/MqBUmaI5 g/quHWa3vctjjIQAqGzZF5hrYM1RPPtwu+nZz5P8YHV11NKudYt20WiA9m/MJUqDHy59 EJAZPoofrvoxCt3vXNQhc8CFoLAi3Yj95907V1lFrV3muY7oTgVuXJPeMlHv1f7BPmHt YRU1BvpU9MtJ91BqA05nheyJToNN5erzhf9jckZTBpq8pvay/lqmDHmc9KgEEb5MrOes hBMUs1hFGduNLT9yKFs1GK3Y34QwBYHReapf9wGhnvTbvmeKo5PnOGLRfkNEwTvLfIeJ ep/A== 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=ssMFBj43632FcWk2CcxAhFxBDGN9BLK5UqZaapoI3EI=; b=ekPFx2EzdW/vzwl7qinFAozqQPwtzRFRJhKuEOGUVT/XQdfRwzZ8/KduMOArUNMcLQ oi+4LwIi+05O4yLidV0vqA94f1pMmz2YYBq5rNNVBRZxykOBmvprkI9mNlhHK62S1qj9 NXGrGiBTq1IAFXF0HAUdGqpMvw9hNL48nltdG3esdIbQjDLj5wMh0/0EGVGJt1OU7B2v kj/6xxWA4YdlHd8rrcS4x7ibR+ZbsvzKtxGFuNShUGMAoVg449dA9GZJL55Op9zlw1DN Vuf/i3udZnCysV7SWC5KGSw64w+//IslmfvzT504RYrzry5kgMpk46QTvYs/S9vnOl/J yNLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SrgmiIPW; 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 i47si8200163eda.91.2019.10.28.09.25.07; Mon, 28 Oct 2019 09:25:31 -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=SrgmiIPW; 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 S1732521AbfJ1HTz (ORCPT + 99 others); Mon, 28 Oct 2019 03:19:55 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37717 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732503AbfJ1HTy (ORCPT ); Mon, 28 Oct 2019 03:19:54 -0400 Received: by mail-pg1-f193.google.com with SMTP id p1so6295444pgi.4 for ; Mon, 28 Oct 2019 00:19:54 -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=ssMFBj43632FcWk2CcxAhFxBDGN9BLK5UqZaapoI3EI=; b=SrgmiIPW0C51iZX8hYKQ2hSUsynSut8k+7kzklaDe3hpral131t906w1kTxvTbV5tI 3AJFcoHHfri+SAsbQwrHOkCumk9s5R6sxf0Lsy79Eu3J5KBusj0Cen9tu0V/2wqWGbOH RETMM4ndBRk1j1in/GGXg8h7nnVqMSf39k7vZ9ymw67v30mM/OouHrZs1i+tJqqJyyOF E3KORbX1/MWIMAzbqYg5QFuWzs2eufjGB9AgaqQiuXq3TcGvlFZyGGOLnDd9ObkzVP+4 sNMQvk6FIeWdhMOwKBK32SKHR1/sO5Itv7GXMlIUpon3uADMjv1Nqvuf//N/tlfER0f+ 1T/g== 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=ssMFBj43632FcWk2CcxAhFxBDGN9BLK5UqZaapoI3EI=; b=DRgfrfbYfsIwv04cdKWdfd2MMhTnDTYGBe5RMunGNihN2qra1pE+CWdGBGH/MYudN2 bL1u8YPr2zEiHYgHoDAVqi74Z1p3JgW0MeHbCa+ShdOCNATjQa7DeaChQ7OkrIZS8Xom DNyPNYk9LRD69XVZzggmWqGZea5+0WeY1eeOCVeRn+65eoISMDOxRS27EO4/ucK9OqpJ 7RYViPHfuqGOh2ntV/VLxrTHq0iDTBMRQ7QuBRhvf7Mr7jqrxVkXNqhburQiqoQV1c3y J6/P2OO3LF6rB072gRBCrshBENohwcd3ipN1qVrfSa5C525TzCn5NeiuXLY3H2YmXkWz JHSw== X-Gm-Message-State: APjAAAU0MXk0FdM3piivXqQcxE9XxXfoeiqcMo51tTJjCzuis0Zv/tDS /Z+fJybFaEe9xsqtXYxjeI3MQg== X-Received: by 2002:a17:90b:f10:: with SMTP id br16mr20271382pjb.111.1572247194072; Mon, 28 Oct 2019 00:19:54 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id 13sm11504703pgq.72.2019.10.28.00.19.50 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Oct 2019 00:19:53 -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 1/5] dt-bindings: power: Introduce one property to describe the battery resistance with temperature changes Date: Mon, 28 Oct 2019 15:18:57 +0800 Message-Id: <44f0c19510c7317cb4ee6cac54b3adfa81c2d6d0.1572245011.git.baolin.wang@linaro.org> 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 temperature 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..1a6f951 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 resistance percent and + corresponding temperature in degree Celsius, which is used to look up the + resistance percent according to current temperature to get a accurate + batterty internal resistance. 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