From patchwork Fri Aug 7 22:59:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 11706173 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5724E138A for ; Fri, 7 Aug 2020 22:59:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B11322CA1 for ; Fri, 7 Aug 2020 22:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596841188; bh=OKlwQpmZVQ3qO7aGJBHKETrCWwGnjbQlj5eQ6u796b4=; h=Date:From:To:Cc:Subject:List-ID:From; b=qBRUGlMq682RTOc9fgqrneOeNvLZMqztBsakhflVttjzPe+hglpH/dDVzouWSN1kB fqZECLHCIUre+OYtTPFVjTuoGL2s73uGVx+6vs6OEQS5Ee+/ehcfCbV/oR3xTnXiXd evuSbGopMUptIj8myjjaVFS35+r6tMKulPEfYdds= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726066AbgHGW7r (ORCPT ); Fri, 7 Aug 2020 18:59:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:58694 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbgHGW7q (ORCPT ); Fri, 7 Aug 2020 18:59:46 -0400 Received: from earth.universe (unknown [95.33.152.0]) (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 5B61F20866; Fri, 7 Aug 2020 22:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596841185; bh=OKlwQpmZVQ3qO7aGJBHKETrCWwGnjbQlj5eQ6u796b4=; h=Date:From:To:Cc:Subject:From; b=BauPeCuOtKayFdlD3gtWq1yeXNsC3Xe2DCx5McCH/MrAv6RpNcPLX4M1rUltS3QDW cOdr7zzSlkz9VytYHyjxoGvDSs61gnT1L377vWn/VDtL83IrM50U7gFFNxgbYZvGf8 ve/cW35XKcQXEApLrz9Yymf4dD83/FZ0y9ByzYT4= Received: by earth.universe (Postfix, from userid 1000) id BEFD83C0C80; Sat, 8 Aug 2020 00:59:43 +0200 (CEST) Date: Sat, 8 Aug 2020 00:59:43 +0200 From: Sebastian Reichel To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Stephen Rothwell Subject: [GIT PULL] power-supply changes for 5.9 Message-ID: <20200807225943.cdfvw5m6h7ywgrmc@earth.universe> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi Linus, Please pull the power-supply changes for the 5.9 development cycle. Stephen mentioned one trivial merge conflict between the power-supply tree and the set_fs tree and has the correct solution: https://lore.kernel.org/linux-next/20200727210137.01a5d03d@canb.auug.org.au/ The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git tags/for-v5.9 for you to fetch changes up to 46cbd0b05799e8234b719d18f3a4b27679c4c92e: power: supply: wilco_ec: Add long life charging mode (2020-07-31 14:33:56 +0200) ---------------------------------------------------------------- power supply and reset changes for the v5.9 series power-supply core: * add COOL/WARM/HOT state from JEITA JISC8712:2015 specification * convert simple-battery DT binding to YAML * add long-life charging mode battery/charger drivers: * bq25150: new charger driver * bq27xxx: add support for BQ27z561 and BQ28z610 * max17040: support CAPACITY_ALERT_MIN * sbs-battery: add PEC support * wilco-ec: support long-life charging mode * bq25890: fix DT binding * misc. fixes and cleanups reset drivers: * linkstation: new reset driver ---------------------------------------------------------------- Alexander A. Klimov (2): power: reset: keystone-reset: Replace HTTP links with HTTPS ones power: supply: bq2xxxx: Replace HTTP links with HTTPS ones Chunyan Zhang (2): math64: New DIV_S64_ROUND_CLOSEST helper power: supply: sc27xx: prevent adc * 1000 from overflow Crag Wang (1): power: supply: wilco_ec: Add long life charging mode Dan Murphy (6): power_supply: Add additional health properties to the header dt-bindings: power: Convert battery.txt to battery.yaml dt-bindings: power: Add BQ27Z561 compatible power: supply: bq27xxx_battery: Add the BQ27Z561 Battery monitor dt-bindings: power: Add BQ28z610 compatible power: supply: bq27xxx_battery: Add the BQ28z610 Battery monitor Daniel González Cabanelas (1): power: reset: add driver for LinkStation power off Dinghao Liu (1): power: supply: bq24190_charger: Fix runtime PM imbalance on error Jonathan Bakker (1): power: supply: max8998_charger: Correct ONLINE and add STATUS props Keyur Patel (1): power: supply: axp20x_usb_power: fix spelling mistake Krzysztof Kozlowski (4): dt-bindings: power: supply: bq25890: Indent example with tabs dt-bindings: power: supply: bq25890: Document required interrupt power: supply: cpcap-battery: Fix kerneldoc of cpcap_battery_read_accumulated() power: supply: Fix kerneldoc of power_supply_temp2resist_simple() LH Lin (1): power: supply: test_power: Fix battery_current initial value Matheus Castello (1): power: supply: max17040: Add POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN Peng Fan (1): power: supply: rt5033_battery: Fix error code in rt5033_battery_probe() Randy Dunlap (1): power: fix duplicated words in bq2415x_charger.h Ricardo Rivera-Matos (2): dt-bindings: power: Add the bindings for the bq2515x family of chargers. power: supply: bq25150 introduce the bq25150 Sebastian Reichel (4): dt-bindings: power: supply: gpio-charger: convert to yaml power: supply: gpio-charger: Make gpios optional power: supply: sbs-battery: use i2c_smbus_read_block_data() power: supply: sbs-battery: add PEC support Tom Rix (1): power: supply: check if calc_soc succeeded in pm860x_init_battery Wang Qing (1): power: supply: use kobj_to_dev Yongqiang Liu (1): power: Convert to DEFINE_SHOW_ATTRIBUTE Documentation/ABI/testing/sysfs-class-power | 3 +- Documentation/ABI/testing/sysfs-class-power-wilco | 4 + .../devicetree/bindings/power/supply/battery.txt | 86 +- .../devicetree/bindings/power/supply/battery.yaml | 144 +++ .../devicetree/bindings/power/supply/bq2515x.yaml | 93 ++ .../devicetree/bindings/power/supply/bq25890.txt | 30 +- .../devicetree/bindings/power/supply/bq27xxx.yaml | 2 + .../bindings/power/supply/gpio-charger.txt | 31 - .../bindings/power/supply/gpio-charger.yaml | 63 ++ drivers/power/reset/Kconfig | 11 + drivers/power/reset/Makefile | 1 + drivers/power/reset/keystone-reset.c | 2 +- drivers/power/reset/linkstation-poweroff.c | 136 +++ drivers/power/supply/88pm860x_battery.c | 6 +- drivers/power/supply/Kconfig | 13 + drivers/power/supply/Makefile | 1 + drivers/power/supply/axp20x_usb_power.c | 2 +- drivers/power/supply/bq2415x_charger.c | 16 +- drivers/power/supply/bq24190_charger.c | 4 +- drivers/power/supply/bq24257_charger.c | 6 +- drivers/power/supply/bq2515x_charger.c | 1169 ++++++++++++++++++++ drivers/power/supply/bq27xxx_battery.c | 160 ++- drivers/power/supply/bq27xxx_battery_hdq.c | 2 +- drivers/power/supply/bq27xxx_battery_i2c.c | 6 +- drivers/power/supply/cpcap-battery.c | 2 +- drivers/power/supply/da9030_battery.c | 12 +- drivers/power/supply/gpio-charger.c | 38 +- drivers/power/supply/max17040_battery.c | 51 +- drivers/power/supply/max8998_charger.c | 25 +- drivers/power/supply/power_supply_core.c | 2 +- drivers/power/supply/power_supply_sysfs.c | 6 +- drivers/power/supply/rt5033_battery.c | 2 +- drivers/power/supply/sbs-battery.c | 89 +- drivers/power/supply/sc27xx_fuel_gauge.c | 9 +- drivers/power/supply/test_power.c | 2 +- drivers/power/supply/wilco-charger.c | 5 + include/linux/math64.h | 19 + include/linux/power/bq2415x_charger.h | 4 +- include/linux/power/bq27xxx_battery.h | 2 + include/linux/power_supply.h | 4 + 40 files changed, 2044 insertions(+), 219 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/supply/battery.yaml create mode 100644 Documentation/devicetree/bindings/power/supply/bq2515x.yaml delete mode 100644 Documentation/devicetree/bindings/power/supply/gpio-charger.txt create mode 100644 Documentation/devicetree/bindings/power/supply/gpio-charger.yaml create mode 100644 drivers/power/reset/linkstation-poweroff.c create mode 100644 drivers/power/supply/bq2515x_charger.c