From patchwork Wed Nov 14 09:07:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10682219 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BC57014E2 for ; Wed, 14 Nov 2018 09:07:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A68DE2AF3D for ; Wed, 14 Nov 2018 09:07:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97EBB2AF46; Wed, 14 Nov 2018 09:07:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 301DA2AF3D for ; Wed, 14 Nov 2018 09:07:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731899AbeKNTKF (ORCPT ); Wed, 14 Nov 2018 14:10:05 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45355 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728391AbeKNTKF (ORCPT ); Wed, 14 Nov 2018 14:10:05 -0500 Received: by mail-pl1-f194.google.com with SMTP id a14so2875209plm.12 for ; Wed, 14 Nov 2018 01:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=6T859OE4NJWTqvgX+TL0bubLH0enxBhyUjtGnzBSLI0=; b=Zps0wWv7/q7ZRQZ/iIe4l6G9gOy8DfuTwF5+MwHJD71ousE10RZOLRTwGN1HJWc09N n2juAVMnPBg+TCT3Khi77cMx/bUD9xoLHSdxKoXUXlOOzkhrOsBZNen+Fr1ZsoRVvzvv IVzTIoPjfi0hR1R3qZdwCGa3taAWv3pjcXYFY= 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=6T859OE4NJWTqvgX+TL0bubLH0enxBhyUjtGnzBSLI0=; b=V71d396SPNCEB6O7UmhUPWI0TlmXMw+NbMA1HOo+Og6iDcd5oriGnnZXCt1Jj6VvYt 0OWCsZU1/SSXvq6E8E8ElHGwzYN5v+h3Oi2TdUfmJtU6ykpaLRaVn6hKG2IDOEi91F8G A3bkGPOtwXHlmkrqRNBupntMl9TNhBlL8KZF678eZG9vHqIvEPsWALnvE3SGa7dFZBcC 1Qe4p1g3hGPauUpaFzP7Pb79/Hc/uKAddaqQl9E3saq+RHCt3dij4SpMdlZSSptusj8l ieydqeuFULOIyD4sXb/hvdgSyrhDmc8o+kwdbpZ5pZwu2rm07NQJUiZe1FCPcR5RcmuW v8cA== X-Gm-Message-State: AGRZ1gJwKCB61dPZJIzvKVRQKHJ+Hqlv2+7WPgaaNGR4ntShezv5X2Cs YGUlcuu8eZri/31qvbY3LSR7mA== X-Google-Smtp-Source: AJdET5f9KenepdN4HJ6ifPtXw/elJ1lBsbR2AZ3rV0o/uKkRE3vKyI4mJwm8wx0u/KuqrB9pGjcEPA== X-Received: by 2002:a17:902:a58a:: with SMTP id az10mr1115186plb.151.1542186463648; Wed, 14 Nov 2018 01:07:43 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 127-v6sm25048814pfx.91.2018.11.14.01.07.40 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Nov 2018 01:07:42 -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, broonie@kernel.org Subject: [PATCH 0/5] Add new features for SC27XX fuel gauge driver Date: Wed, 14 Nov 2018 17:07:03 +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 X-Virus-Scanned: ClamAV using ClamSMTP This patch set adds some new features for SC27XX fuel gauge driver. 1. Read calibration data from eFuse device to calibrate fuel gauge. 2. Add low voltage alarm to adjust the battery capacity in lower voltage stage. 3. Add power management interfaces 4. Save last optimized battery capacity to be used as the initial battery capacity if system is not first power-on. Baolin Wang (2): dt-bindings: power: supply: Add nvmem properties to calibrate FGU power: supply: sc27xx: Add fuel gauge calibration Yuanjiang Yu (3): power: supply: sc27xx: Add fuel gauge low voltage alarm power: supply: sc27xx: Add suspend/resume interfaces power: supply: sc27xx: Save last battery capacity .../devicetree/bindings/power/supply/sc27xx-fg.txt | 4 + drivers/power/supply/sc27xx_fuel_gauge.c | 453 +++++++++++++++++++- 2 files changed, 444 insertions(+), 13 deletions(-)