From patchwork Fri Dec 28 13:08:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 10744457 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 9DF3613AD for ; Fri, 28 Dec 2018 13:08:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F47626E7B for ; Fri, 28 Dec 2018 13:08:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D68D274D1; Fri, 28 Dec 2018 13:08:58 +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 B6B9C26E7B for ; Fri, 28 Dec 2018 13:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729622AbeL1NI4 (ORCPT ); Fri, 28 Dec 2018 08:08:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:56676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729469AbeL1NI4 (ORCPT ); Fri, 28 Dec 2018 08:08:56 -0500 Received: from earth.universe (unknown [151.217.27.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD8602080D; Fri, 28 Dec 2018 13:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546002535; bh=oOtk1GoxE096Y9fZJo5oxpF9o0p5PXC4Fq0o8eBvHNE=; h=Date:From:To:Cc:Subject:From; b=pwETASHxa70Kcec9adNTSddH3pWYgeu5+iZZDsw0ojntJDD3GEEjTW2AIoEiI9Q4G P0/MEYCapEYz5fel3wMYvoHh+UQYuAQ08PhpkPQdtA+4z4yZIRO+7Bo5AafZl15191 s/SxlFw8Kto7TA6g9XX5fKerwNyxPthKA4rcdbCU= Received: by earth.universe (Postfix, from userid 1000) id DE7FF3C08E4; Fri, 28 Dec 2018 14:08:52 +0100 (CET) Date: Fri, 28 Dec 2018 14:08:52 +0100 From: Sebastian Reichel To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [GIT PULL] power-supply changes for 4.21 Message-ID: <20181228130852.vqihu6gdyzczddq3@earth.universe> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 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 Hi Linus, All changes have been in linux-next for multiple weeks, no issues were reported to me. I don't expect any problems during or after merging this pull request. Happy New Year! -- Sebastian The following changes since commit 651022382c7f8da46cb4872a545ee1da6d097d2a: Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) are available in the Git repository at: ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git tags/for-v4.21 for you to fetch changes up to 9580913966488dc78d8d2893c7427d0a84124e74: power: supply: bq25890: fix BAT_COMP field definition (2018-12-18 00:21:16 +0100) ---------------------------------------------------------------- power supply and reset changes for the v4.21 series * New core support - battery internal resistance - battery OCV capacity lookup table - support for custom sysfs attributes * Convert all drivers to use power-supply core support for custom sysfs attributes * bq24190-charger: bq24196 support * axp20x-charger: AXP813 support * sc27xx-battery: new fuel gauge driver * gpio-poweroff: support for specific active and inactive delays * Misc fixes ---------------------------------------------------------------- Alexandre Belloni (1): power: reset: ocelot: switch the SI to boot mode Baolin Wang (16): dt-bindings: power: Introduce one property to present the battery internal resistance power: supply: core: Add one field to present the battery internal resistance dt-bindings: power: Introduce properties to present the battery OCV capacity table power: supply: core: Add some helpers to use the battery OCV capacity table dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation power: supply: Add Spreadtrum SC27XX fuel gauge unit driver power: supply: charger-manager: Remove unused index counting power: supply: charger-manager: Fix some misspelled words power: supply: charger-manager: Fix incorrect return value power: supply: charger-manager: Make code more readable power: supply: sc2731_charger: Add one work to charge/discharge power: supply: sc2731_charger: Add charger status detection power: supply: sc2731_charger: Avoid repeated charge/discharge power: supply: sc2731_charger: Free battery information dt-bindings: power: supply: Add nvmem properties to calibrate FGU power: supply: sc27xx: Add fuel gauge calibration Brian Masney (2): dt-bindings: power: supply: bq24190_charger: add bq24192 and usb-otg-vbus power: supply: bq24190_charger: add extcon support for USB OTG Claudiu Beznea (1): power: reset: at91-poweroff: move shdwc related data to one structure Claudiu.Beznea@microchip.com (2): power: reset: at91-poweroff: use one poweroff function for at91-poweroff power: reset: at91-poweroff: remove at91_ramc_of_match Colin Ian King (2): power: supply: cpcap-battery: make array cpcap_battery_irqs static, shrinks object size power: supply: cpcap-charger: clean an indentation issue, remove tab Heiko Stuebner (2): power: reset: gpio-poweroff: add ability to specific active and inactive delays power: supply: bq24190_charger: add support for bq24196 variant Jonathan Marek (2): power: supply: bq24190_charger: add support for bq24192 variant power: supply: bq24190_charger: add of_match for usb-otg-vbus regulator Lubomir Rintel (1): power: supply: olpc_battery: correct the temperature units Michał Mirosław (1): power: supply: bq25890: fix BAT_COMP field definition Olliver Schinagl (2): power: supply: axp20x: add missing include bitops.h power: supply: axp288: use the BIT() macro Oskari Lemmela (2): dt-bindings: power: supply: axp20x: add AXP813 AC power DT binding power: supply: add AC power supply driver for AXP813 Randy Dunlap (1): power/supply: fix sc27xx_fuel_gauge build errors Sebastian Reichel (16): Merge tag 'psy-mfd-axp813-immutable-for-v4.21-signed' into psy-next power: supply: core: add support for custom sysfs attributes power: supply: bq2415x: fix race-condition in sysfs registration power: supply: ds2780: fix race-condition in sysfs registration power: supply: ds2781: fix race-condition in sysfs registration power: supply: lp8788: fix race-condition in sysfs registration power: supply: bq24190_charger: fix race-condition in sysfs registration power: supply: bq24257: fix race-condition in sysfs registration power: supply: charger-manager: simplify generation of sysfs attribute group name power: supply: charger-manager: fix race-condition in sysfs registration power: supply: pcf50633: fix race-condition in sysfs registration power: supply: ds2780: fix race-condition in bin attribute registration power: supply: ds2781: fix race-condition in bin attribute registration power: supply: ds2780: switch to devm_power_supply_register power: supply: ds2781: switch to devm_power_supply_register power: supply: gpio-charger: Do not use deprecated POWER_SUPPLY_TYPE_USB_* 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 .../bindings/power/reset/gpio-poweroff.txt | 2 + .../bindings/power/supply/axp20x_ac_power.txt | 3 + .../devicetree/bindings/power/supply/battery.txt | 17 + .../devicetree/bindings/power/supply/bq24190.txt | 10 + .../devicetree/bindings/power/supply/sc27xx-fg.txt | 56 + drivers/power/reset/at91-poweroff.c | 86 +- drivers/power/reset/gpio-poweroff.c | 10 +- drivers/power/reset/ocelot-reset.c | 12 + drivers/power/supply/Kconfig | 8 + drivers/power/supply/Makefile | 1 + drivers/power/supply/axp20x_ac_power.c | 94 ++ drivers/power/supply/axp20x_usb_power.c | 1 + drivers/power/supply/axp288_charger.c | 35 +- drivers/power/supply/bq2415x_charger.c | 119 +-- drivers/power/supply/bq24190_charger.c | 91 +- drivers/power/supply/bq24257_charger.c | 15 +- drivers/power/supply/bq25890_charger.c | 2 +- drivers/power/supply/charger-manager.c | 89 +- drivers/power/supply/cpcap-battery.c | 2 +- drivers/power/supply/cpcap-charger.c | 2 +- drivers/power/supply/ds2780_battery.c | 87 +- drivers/power/supply/ds2781_battery.c | 82 +- drivers/power/supply/gpio-charger.c | 6 +- drivers/power/supply/lp8788-charger.c | 62 +- drivers/power/supply/olpc_battery.c | 4 +- drivers/power/supply/pcf50633-charger.c | 17 +- drivers/power/supply/power_supply_core.c | 141 ++- drivers/power/supply/sc2731_charger.c | 54 +- drivers/power/supply/sc27xx_fuel_gauge.c | 1075 ++++++++++++++++++++ include/linux/mfd/axp20x.h | 1 + include/linux/power/charger-manager.h | 3 +- include/linux/power_supply.h | 23 + 32 files changed, 1791 insertions(+), 419 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt create mode 100644 drivers/power/supply/sc27xx_fuel_gauge.c