From patchwork Mon Oct 28 07:18:56 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: 177882 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3012561ill; Mon, 28 Oct 2019 00:19:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVTkJUBOO32oQ62VL5lIAzDVyI0b8Nu3FbtRftxmDKrmhlFtUksYtnNVOZlxxURqhVBxju X-Received: by 2002:a17:906:27ce:: with SMTP id k14mr15203860ejc.72.1572247192030; Mon, 28 Oct 2019 00:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572247192; cv=none; d=google.com; s=arc-20160816; b=R7CiADGI+OUJFZxwfCvsmploamJZY8b52IAPd7ApNq0CJQts5NvfnvOokaJeN8LdJa meO+2CsnqSviQWKtyDhDJdCoj2bF73IcfDmYLVyzD/5sQkPj4Zkt9VUHjJ+88eT8GB4+ 8BROoGqiVT1B7qT8DPMpxsuMTrlxX5EDXHsPM9Y52Y56Jei8aYXxm9tWqUyFd/8Ivf+x neLDWab70JYwsYQhixs+SSCNBK2fNVdzoHpQ2Gh+K4aXvgrLs1CGs2D5HOL5gal494rB D8YITLWFH+rVl+mJqrtz4Fvmj58bBwQEom1fC7TNKPMQPqQYDjDOrrOg4vqdGCbQXQ0E dzUQ== 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=ruFTA66AHlVe9lksioBMwwIdADskrYqVYX9wRS0DjSA=; b=H21neCFsZCGbhxBcHUEIghtnO+n8K1pzd9kCw0X54GVNd8v5zhh5+WrYdLY+TiA8pu CBWlPJ0WwLnOG5P+TpMl9RhhXrpUHX3My8/Gc38s0g+3UwM+32YDmMNL6HIsvJF+v7gj zH1wfPlUrx5Y3MRHR0FFq6h3z4bvsGFaDHlp5IOARIl3FzaJEfGae4GtCZ6N+tv+mrvL h3ACp3egA0bVJmy5UBo/DdDs32q2SWaF3EeN+gSaY/sTCL4+PpHwc4G6KhvIu5yN7F1g GibtNWyMciq/SzydLUlnsJl5o6ihu3gcEtOTM4XpfAMN09Fw1EoEM/7fWXG3AHLt3zCn Ds2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vTL+jOMS; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 v3si5207105eju.230.2019.10.28.00.19.51; Mon, 28 Oct 2019 00:19:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=vTL+jOMS; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1732467AbfJ1HTv (ORCPT + 10 others); Mon, 28 Oct 2019 03:19:51 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46795 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730751AbfJ1HTv (ORCPT ); Mon, 28 Oct 2019 03:19:51 -0400 Received: by mail-pf1-f194.google.com with SMTP id b25so6265602pfi.13 for ; Mon, 28 Oct 2019 00:19:50 -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=ruFTA66AHlVe9lksioBMwwIdADskrYqVYX9wRS0DjSA=; b=vTL+jOMSUKziFxGvmULpDuosEPrE9KNb5fxyiR+KvMpwfnMbiRIvHpP2o5MjkeTB7D p9IzmnmSdzH9Ebhsgv9/FEJ3GvtMf7K0tcnXKQUEuX02OlyaqugYFxSTQoFmQ8ZVki6R oms977+Ts142oOpF5S2arRJX+8lgoKQAYGD23LlOqe4Fo/ZNpttBx6kqD2o1kJBUjj9G gCQKnJxj+vAPwE0GDYuhcZj9GXOEQJS0u2ZDtQYOwt2kq74qAJ0UDhKxoMBgk2SutMI1 8XCULjpZnMYTYz+Cvs0NaAyWVsjaeDwquo63f33xc4yZrvZ76gbBILwyNUGSLaNNN+Dk iPCQ== 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=ruFTA66AHlVe9lksioBMwwIdADskrYqVYX9wRS0DjSA=; b=sF47JvwJlh6gZRIN+ozQRMFrxJvUufVBKPl0ILn0VKnF7KiBRCM/uB7p+YPXY4HDvE 2v8R3p65hIF3MLw2z51sBS5M8yQNPWMQAjMJSv9Bt+FY0Qqy31hIz7BXwHSguLHKWb4y K8aXnCxfuSscaUoJAu7o8wfcTurFK6aFvuFIiGDsB//oai76GPUPgJlvVsOnKbGBvEkS QJRpxBDkuaixbqeTs1dA46iI47xaOtzpOebTQWd5f7obx6sLYUZvcQbRpiuieDnLEFLN zxbY/B/CrYlLrBc1JaeQNr2CdpfPkhlixi352KUGpFEU1TtnXu5EO0V9xySXLPZ+WfC9 IZzw== X-Gm-Message-State: APjAAAVnuLEY2XMfMjPcCr5DHP7Vh6Ipyj5ffaP2NDIhwPZ0Dm80/Wkn g0Yz3bwJhTcRRaS0BaC/Zb8lbQ== X-Received: by 2002:a17:90a:9a9:: with SMTP id 38mr10789292pjo.45.1572247190245; Mon, 28 Oct 2019 00:19:50 -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.46 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Oct 2019 00:19:49 -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 0/5] Improve the SC27XX fuel gauge controller Date: Mon, 28 Oct 2019 15:18:56 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi, This patch set adds one battery resistance-temperature table to optimize the real battery internal resistance in different tempertures, and calibrates the resistance of coulomb counter to improve the accuracy of the coulomb counter. Any comments are welcome. Thanks. Baolin Wang (4): dt-bindings: power: Introduce one property to describe the battery resistance with temperature changes power: supply: core: Add battery internal resistance temperature table support dt-bindings: power: sc27xx: Add a new property to describe the real resistance of coulomb counter chip power: supply: sc27xx: Calibrate the resistance of coulomb counter Yuanjiang Yu (1): power: supply: sc27xx: Optimize the battery resistance with measuring temperature .../devicetree/bindings/power/supply/battery.txt | 5 ++ .../devicetree/bindings/power/supply/sc27xx-fg.txt | 2 + drivers/power/supply/power_supply_core.c | 67 +++++++++++++++++++- drivers/power/supply/sc27xx_fuel_gauge.c | 49 +++++++++++++- include/linux/power_supply.h | 10 +++ 5 files changed, 129 insertions(+), 4 deletions(-) -- 1.7.9.5