From patchwork Mon Jul 3 22:47:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 115504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp833828vqx; Mon, 3 Jul 2023 15:49:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlFRQVD6m4/VTFZ0DPuJ3t/s3PStxV4LY25n0M9Bj0OIbZIVgB353ykxHJeCt7bphXyE2ym6 X-Received: by 2002:a05:6a21:9982:b0:12e:3394:e2c5 with SMTP id ve2-20020a056a21998200b0012e3394e2c5mr9462845pzb.2.1688424548303; Mon, 03 Jul 2023 15:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688424548; cv=none; d=google.com; s=arc-20160816; b=c4A2u0A+WS5Y0I0wXhSMugqAF8FjdVCALwiJSiVe3x6WCk+2HyIFae/FE0OGJRdTTS Z/YnC1Oo62LJeCmwzQxgqF4AAwyo9UZ3NwBW1gF9Dot9OxNo527XvGnHeIp1s/YeoBa2 rHvGbvBawy4UtV85Y+TK1Scg3QCltvP/cdLOO9L5iVmb6u7Vz9d2umxPjf1YbXjOH8QH nHd9Jpjo6+quUDDM8wImB0vRL0gcGV0HzjpxgmrwsEWjIqYSNn3iChrXACaonguW0Gdt UFf0zHFVOuUOdGefci3LRKTEgXLCwfvZvIYg9inyweUAqWNSV3rPIXsaPeDON4N4LVlC 5imQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=euJPDeOiuTEats7Rj+ck668NwC+qbdeR73ZJ/9S4euw=; fh=SJTuxLYrChWJ12CtNEzYST8jY5euYblYcmVxRsS6cXM=; b=wXVLcT8KQ+plmaeINiLKErVySy48CMwDIuneTjtYrvv5aodqAkN4yD6kNi69WMt00E aZoLYcO+QI/2a+kDZ+PkHiOE74DOqEK706kF+i7oQQL1ecaRim4/bjjxgTE6XQ34hh1W rwuEoR/ZAq4IiNrmZhmwNjwKZfaeoS4h//H8Z/HQT1dxWQGFfclGDETGr79q8hKLNHQ+ IcSNZvglEHOaiOXpY76Vl8GDt321K+zYgTpnNmsqkjOr4Jxj+n5leeTE4GFKwZzVFgYB 0DuaOKqdDGUTm1fdk6tZ82kFXqsVAkXKuzcKPVdBHKRFiHQbw9nlGFkDcfoxinhJTdSo 0C4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M3C4yi+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j63-20020a638042000000b0055b52a7959esi8842233pgd.195.2023.07.03.15.48.56; Mon, 03 Jul 2023 15:49:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M3C4yi+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229947AbjGCWrY (ORCPT + 99 others); Mon, 3 Jul 2023 18:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjGCWrX (ORCPT ); Mon, 3 Jul 2023 18:47:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE417E59; Mon, 3 Jul 2023 15:47:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 097B56106C; Mon, 3 Jul 2023 22:47:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 485E7C433C7; Mon, 3 Jul 2023 22:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688424440; bh=bOBJJtP5RiRGHnONa4i8/TIYLGK0hCJ1cQZticwJ4Xw=; h=Date:From:To:Cc:Subject:From; b=M3C4yi+r3Dbp3jRaFdEU1gy7nzHzzvt0O4vv1K8b6ZCnjDdfx8uK0GAfKq4939RaK 0IySrbtTWZOu2CBgXO7MRIrWXALJ36MEsJy8RqwmcB60DGm5SLVzRlHgMhILj8ZuCV lGyX+w4p+ROoZfgEYpXNnBY9TG+GeJTds1yt/gYYOXrYwS1PIU5S6YMxeLek0Rk6zg v3TwGGW57XYw3bxmiElBJ0gRpq7PDqyQShgWolAx5eBcjZJKrQhL5oIuRbqcV6EPa0 QYMrCZIxV7qvF9dTfbHJWcKS1VDupyjeFjyShzXmVaiQmY71d7wNxA6eT+MDHIvFlf QheaYiLE4gO2Q== Received: by mercury (Postfix, from userid 1000) id 745581061814; Tue, 4 Jul 2023 00:47:17 +0200 (CEST) Date: Tue, 4 Jul 2023 00:47:17 +0200 From: Sebastian Reichel To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [GIT PULL] power-supply changes for 6.5 Message-ID: <20230703224717.r74bjlyx5ikbk4bh@mercury.elektranox.org> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770441458822896504?= X-GMAIL-MSGID: =?utf-8?q?1770441458822896504?= Hi Linus, Here is the power-supply pull request for 6.5. No merge conflicts are expected. Patches have been in next for two weeks. Greetings, -- Sebastian The following changes since commit ac9a78681b921877518763ba0e89202254349d1b: Linux 6.4-rc1 (2023-05-07 13:34:35 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git tags/for-v6.5 for you to fetch changes up to ef8d95b4a3af4ebfe47e3563c3bc5767dda28207: MAINTAINERS: add documentation file for Microchip SAMA5D2 shutdown controller (2023-06-19 23:48:07 +0200) ---------------------------------------------------------------- power supply and reset changes for the 6.5 series * Add new Qualcomm PMI8998/PM660 SMB2 charger * bq256xx: support systems without thermistors * cros_pchg: fix peripheral device status after system resume * axp20x_usb_power: add support for AXP192 * qcom-pon: add support for pm8941 * at91-reset: prepare to expose reset reason to sysfs * switch all I2C drivers back to use .probe instead of .probe_new * convert some more DT bindings to YAML * misc. cleanups ---------------------------------------------------------------- Aidan MacDonald (7): power: supply: axp20x_usb_power: Simplify USB current limit handling power: supply: axp20x_usb_power: Use regmap fields for VBUS monitor feature power: supply: axp20x_usb_power: Use regmap fields for USB BC feature power: supply: axp20x_usb_power: Use regmap field for VBUS disabling power: supply: axp20x_usb_power: Remove variant IDs from VBUS polling check power: supply: axp20x_usb_power: Add support for AXP192 dt-bindings: power: supply: axp20x: Add AXP192 compatible Bartosz Golaszewski (1): dt-bindings: power: reset: convert nvmem-reboot-mode bindings to YAML Caleb Connolly (2): dt-bindings: power: supply: qcom,pmi8998-charger: add bindings for smb2 driver power: supply: add Qualcomm PMI8998 SMB2 Charger driver ChiYuan Huang (1): power: supply: rt9467: Make charger-enable control as logic level Christophe JAILLET (1): power: supply: rk817: Simplify an error message Claudiu Beznea (3): dt-bindings: power: reset: atmel,at91sam9260-shdwc: convert to yaml dt-bindings: power: reset: atmel,sama5d2-shdwc: convert to yaml MAINTAINERS: add documentation file for Microchip SAMA5D2 shutdown controller Daisuke Nojiri (1): power: supply: cros_pchg: Sync port status on resume Dmitry Baryshkov (2): dt-bindings: power: reset: qcom-pon: define pm8941-pon power: reset: qcom-pon: add support for pm8941-pon Hans de Goede (2): power: supply: max17042_battery: Refactor max17042_external_power_changed() power: supply: twl4030_madc_battery: Refactor twl4030_madc_bat_ext_changed() Hermes Zhang (2): dt-bindings: power: supply: bq256xx: Add ti,no-thermistor property power: supply: bq256xx: Apply TS_IGNORE from devicetree Konrad Dybcio (1): dt-bindings: power: reset: qcom-pon: Only allow reboot-mode pre-pmk8350 Krzysztof Kozlowski (1): power: supply: hwmon: constify pointers to hwmon_channel_info Miquel Raynal (1): power: reset: at91-reset: change the power on reason prototype Niklas Schnelle (1): power: reset: add HAS_IOPORT dependencies Uwe Kleine-König (2): power: reset: gpio-restart: Convert to platform remove callback returning void power: supply: Switch i2c drivers back to use .probe() .../devicetree/bindings/arm/atmel-sysregs.txt | 94 -- .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 + .../power/reset/atmel,at91sam9260-shdwc.yaml | 82 ++ .../bindings/power/reset/atmel,sama5d2-shdwc.yaml | 114 +++ .../bindings/power/reset/nvmem-reboot-mode.txt | 26 - .../bindings/power/reset/nvmem-reboot-mode.yaml | 52 + .../devicetree/bindings/power/reset/qcom,pon.yaml | 20 +- .../devicetree/bindings/power/supply/bq256xx.yaml | 18 + .../power/supply/qcom,pmi8998-charger.yaml | 82 ++ .../supply/x-powers,axp20x-usb-power-supply.yaml | 1 + MAINTAINERS | 1 + drivers/power/reset/Kconfig | 1 + drivers/power/reset/at91-reset.c | 9 +- drivers/power/reset/gpio-restart.c | 7 +- drivers/power/reset/qcom-pon.c | 22 +- drivers/power/supply/Kconfig | 9 + drivers/power/supply/Makefile | 1 + drivers/power/supply/adp5061.c | 2 +- drivers/power/supply/axp20x_usb_power.c | 307 +++--- drivers/power/supply/bd99954-charger.c | 2 +- drivers/power/supply/bq2415x_charger.c | 2 +- drivers/power/supply/bq24190_charger.c | 2 +- drivers/power/supply/bq24257_charger.c | 2 +- drivers/power/supply/bq24735-charger.c | 2 +- drivers/power/supply/bq2515x_charger.c | 2 +- drivers/power/supply/bq256xx_charger.c | 30 +- drivers/power/supply/bq25890_charger.c | 2 +- drivers/power/supply/bq25980_charger.c | 2 +- drivers/power/supply/bq27xxx_battery_i2c.c | 2 +- drivers/power/supply/cros_peripheral_charger.c | 25 +- drivers/power/supply/cw2015_battery.c | 2 +- drivers/power/supply/ds2782_battery.c | 2 +- drivers/power/supply/ip5xxx_power.c | 2 +- drivers/power/supply/lp8727_charger.c | 2 +- drivers/power/supply/ltc2941-battery-gauge.c | 2 +- drivers/power/supply/ltc4162-l-charger.c | 2 +- drivers/power/supply/max14656_charger_detector.c | 2 +- drivers/power/supply/max17040_battery.c | 2 +- drivers/power/supply/max17042_battery.c | 9 +- drivers/power/supply/max77976_charger.c | 2 +- drivers/power/supply/power_supply_hwmon.c | 2 +- drivers/power/supply/qcom_pmi8998_charger.c | 1059 ++++++++++++++++++++ drivers/power/supply/rk817_charger.c | 2 +- drivers/power/supply/rt5033_battery.c | 2 +- drivers/power/supply/rt9455_charger.c | 2 +- drivers/power/supply/rt9467-charger.c | 4 +- drivers/power/supply/rt9471.c | 2 +- drivers/power/supply/sbs-battery.c | 2 +- drivers/power/supply/sbs-charger.c | 2 +- drivers/power/supply/sbs-manager.c | 2 +- drivers/power/supply/smb347-charger.c | 2 +- drivers/power/supply/twl4030_madc_battery.c | 8 +- drivers/power/supply/ucs1002_power.c | 2 +- drivers/power/supply/ug3105_battery.c | 2 +- 54 files changed, 1699 insertions(+), 343 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/reset/atmel,at91sam9260-shdwc.yaml create mode 100644 Documentation/devicetree/bindings/power/reset/atmel,sama5d2-shdwc.yaml delete mode 100644 Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt create mode 100644 Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml create mode 100644 Documentation/devicetree/bindings/power/supply/qcom,pmi8998-charger.yaml create mode 100644 drivers/power/supply/qcom_pmi8998_charger.c