From patchwork Thu Oct 31 12:22:39 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: 178165 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2759995ill; Thu, 31 Oct 2019 05:23:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/X3yyl6RlaasdbdV+Pah5b9OQV8wxGp1oIum+4ZamzjiM2d83RHzfRWQIHwgiER64iGAX X-Received: by 2002:a05:6402:1006:: with SMTP id c6mr5730931edu.2.1572524617722; Thu, 31 Oct 2019 05:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572524617; cv=none; d=google.com; s=arc-20160816; b=HzuF4CWDnXqoFEvOG+kvFhKMHTVpWpUIStSGg8KI5vEe0tMhCsvIo4SyOaKE+9q5l4 1v+AsG/Yh5dWtodJVtZ9zlLIr880mSn+NiC8Q+s+alwS6A+RNYa0hYt1xeGOR+oVLqp9 PKA0UUyDVTyjf4/+o7s/jZ67+X9PZs6OW6Ce3KsxJx6DXIj20iv4RdWaSQkLz/v927qi Em5KZHUfBftHJ1+bHFPkLxWrsjTrV+2S+VLFbOHSvjuRVHkBY3VLM90h2gvf3HbP+Mri zgep3Vb6IkgVboQ+ZZ7KGBBGEV2G30IMORlhTLH2L0dvXSwuc58Ztm0YanUlF5ZRm/Tq 5bZg== 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=L7FbNq4GtcEGuMrNoamJkpzDtDF+1hg78dDxcjF8GrA=; b=zYlpvHXtaoDX+LamJZ1u+i4OGlUaTpPd2m6BmNvStVKOJY3A3POIXZCD8J8yurZEZ+ t8RK+fvbtuBChOwhD4/OxYviyKaZunEwmgZR+sldl1o60SsAxavd2Q8G5B9jbdaWVqeW k6NH4KM6eC6+033A5SNBLPoBNmxgTNjJQK2RvFzhWH1BPj6CLnvFgkR4dNRT+gozQvhz 8CZNwQ06I6GPz1fywpu08Au2jYuQIn85nGt3XBD8LOxvdBCKJ7aAYzfFaoupFFfeF3bg Mc3Gaf49SXDb0OZs3IKJKLX/fSzhvxC4SySJYRC0ndBUulUGDfVhpIT/k7pKmhBKyJ57 j64Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yoTArB90; 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 k19si3921035ede.293.2019.10.31.05.23.37; Thu, 31 Oct 2019 05:23:37 -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=yoTArB90; 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 S1726772AbfJaMXh (ORCPT + 8 others); Thu, 31 Oct 2019 08:23:37 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45563 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbfJaMXg (ORCPT ); Thu, 31 Oct 2019 08:23:36 -0400 Received: by mail-pg1-f193.google.com with SMTP id r1so3935110pgj.12 for ; Thu, 31 Oct 2019 05:23:36 -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=L7FbNq4GtcEGuMrNoamJkpzDtDF+1hg78dDxcjF8GrA=; b=yoTArB90N55H99xOlmJsXTlX5Q4PdrQV2uSRnS11/me3WlG9q7aAWgOJjafBlLqLz2 JOi5ezGa/Q/VE6g75yQmuFb29m7vFH7/gKIGz3b/RvsoUWVYM21Hj0Ly7PoDvYb45wHP ntHx4AkgwlGfAIHnOfHVMcQVxHhOMr0n/xikhaRl+QVGIqAHdOLFRkChL7eKRtHP+Ise pRoH/2YffkBa92Mlswd0f/wyi3PU9lIhTE0dtndJ5v3tf2JGgDdfc8vm2SJQrp/cTeGY 3WLB3mIXHHn0OKZzq4FbUHFHaQlAAProeAAcniPwRBNNllznqIZHTQIlVd5Vndg+1hDW y0SA== 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=L7FbNq4GtcEGuMrNoamJkpzDtDF+1hg78dDxcjF8GrA=; b=MA34ZRijrmbT0uNWeQdm3MJv2tuxoUuqZvEjAsg8acpxYhDY7/E1kFT/RR4eif4YsX qV5MivHzD6cYJKycekX2RI+YOKizcIufQ+/BZUSCUaG7s39X+NNxXOmuBpKnP7JYHjX0 qQ1vvuAQAjLG6dSOdM9KM7KJm+NDF4/C1AljD8DI38xiRO/madBi2I6oQg+NavdP7h9I eiSixrK9E94bRCwIzNhDr9MJ0BGglIbTsbtkdPpzw2xtGAlhw01ZBg1Ndq4PMdr0CmdU 4czovRTyUjkT/lNstAufqnYFpScFRSKcggCeRIDeiAukDi6I5ASrT8fK4o/i2n7VibrD WxmQ== X-Gm-Message-State: APjAAAWQUrrVsvBdbugVqT21fKODP3Gx723VgDAj9nScqB9ALmic3Um1 yGdLsSulgblvjmxcXThS9dhrtA== X-Received: by 2002:a17:90a:48:: with SMTP id 8mr6777617pjb.82.1572524616055; Thu, 31 Oct 2019 05:23:36 -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.31 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Oct 2019 05:23:34 -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 0/5] Improve the SC27XX fuel gauge controller Date: Thu, 31 Oct 2019 20:22:39 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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. Changes from v1: - Fix the order of values in resistance-temp-table property's description. - Add an unit suffix for FGU resistance property. 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 | 3 + 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, 130 insertions(+), 4 deletions(-) -- 1.7.9.5