Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3634177ybl; Sun, 8 Dec 2019 19:57:59 -0800 (PST) X-Google-Smtp-Source: APXvYqymHQ7GHVM+4yVxRMcUDdKuG9GZXXtrItyHwsvGDWna/Zz4nOwRjyuQ7zva0f8b1e6l0uzP X-Received: by 2002:a05:6830:9:: with SMTP id c9mr20127396otp.94.1575863879576; Sun, 08 Dec 2019 19:57:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575863879; cv=none; d=google.com; s=arc-20160816; b=jVv2WwWbcsRGsDSwjdVJOXpKHxkO5UMinPfqY0/lRdzddFHIj2WPpJNR306u+Y6rBF 1CseQHlHj3kCSzHIWWw5n5E5V3MX26D49CZRsQLW7/+gkoJh/rHA+f/DcoOrhAvM0QAW GZp8Sey+pPevU1GSNfdFeWvI+H+jZQ9QdzsdI1Dvl+TyhjPKEsBv3dhi1lnSbvzAA8rx vOQfZL34aZUGmU6a9UliIn4+cgZNZQe8AWd43Om+4nh5MCnyOpZhCjKEZM/SppYDnCBW Ryzgy3NkPjuIIoTAwYBydBpbSJqwUWDqoRauDOwAe7qKo4wJ28hZiA4TWPTV6/xW9DVu 9Qnw== 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=b2DE6cCWenynH+3sM3YT1LF1L+GzZk/gsLFYvvT9TE4=; b=TNsYewsq1bUA4774AGs+7q+7pV8OB3x4RylHy4g5RW83+OBndAnkZbyXGpE93UuKWf Fqahfq+jIoXkIQPo+/P53b4OXDbx7cMQXWzr6EZhYEdb8uD6tmcLMJT/1iEw+6UYEX46 VEV1X2TwEVf1qO8KGocWrrmB1XZYcy0sJOPaLGSZZToStyTO8wWlqU+QVprVi+MvKwpN 0PBb9yZt/NEYG7h+MqjGAxL9HHm8WYzBnRocxJatCAXFm4EcSMQHo9NpmJOsnOKp2eu2 +SHoCGllu0xdXDH2ZWTqujjlMiKdifosVf8WRzFwagY+IUG/KIsm0kItupKq//RuEBda IxNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HNZv0zOE; 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 d17si2200183otp.315.2019.12.08.19.57.47; Sun, 08 Dec 2019 19:57:59 -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=HNZv0zOE; 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 S1727060AbfLID5O (ORCPT + 99 others); Sun, 8 Dec 2019 22:57:14 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35390 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbfLID5O (ORCPT ); Sun, 8 Dec 2019 22:57:14 -0500 Received: by mail-pl1-f193.google.com with SMTP id s10so5221215plp.2; Sun, 08 Dec 2019 19:57:13 -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; bh=b2DE6cCWenynH+3sM3YT1LF1L+GzZk/gsLFYvvT9TE4=; b=HNZv0zOE8dpgtmk2B3oPwnIYgyQaFVErECx5/4bdBiR8MXCFWi7cnDnB6wk1zX0432 nc/LL9IaTGj24zce2GNyO6UDhOCmu7dbcYU+HUpNzizf1HSwMnQobBH1MkvKet8hIWiL gwgtgfr53bpBQ0FdymlUQDhdWSZTvkcJVZ+jlE3QTAKEcwTBne/ixmHeoN5vucOZbnDz QzXzt3vCBFTI88xqVhiZePxfZFKsL3wni9ThR5hTTkiUG70YIeUNtzPC2prm+RdAGb0a AGaZyP+40RX0jO+hNPe9FGzvMg7AbTdmtEjHTNQ+r96akB9V5R7N2G9vHEE9jk9E5pIK 5tog== 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=b2DE6cCWenynH+3sM3YT1LF1L+GzZk/gsLFYvvT9TE4=; b=bWpmwZcQmGJaXBCD2miDm32kEpZUzfZmDhy3UENISXDYi/v91Kk+Ifvzd7EJToslEC Lq8wppypojRmenSeokIkUyEn5kdq0yHfryCBzhy7qGttecLixOj/TE9j7+LVMFZufL2u QtbKZZVeYDXBKrNKGqITPFRWyiJpGEEebelgjM8dJYuhRup8I8+3qDusrRbxHXUu1/e+ hRYtYEJWrcZ2t3IXurVwRJdVJb3Hw95wKx1ZJfbiEYrwlcxU1fb2XwnnGxHVn7UVv8U1 9EnXECJQD+QBqhjYmyAEsMb01rAiLzSKOwvVAJVKAqhINhY8qCH738JUSOjWh0BM80XZ 9xdA== X-Gm-Message-State: APjAAAWH0nQWUkZf9e69R6mTV99nsd0NMbdEGekIhHvGZX3FFkc9qWOd 3fcjwbO2Mwdj3gPZBO8gQmA= X-Received: by 2002:a17:90a:21ee:: with SMTP id q101mr30050690pjc.94.1575863833276; Sun, 08 Dec 2019 19:57:13 -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.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Dec 2019 19:57:12 -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 0/5] Improve the SC27XX fuel gauge controller Date: Mon, 9 Dec 2019 11:56:20 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 v2: - Add reviewed tag from Rob. - Rebased. 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