[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <437b6676-0669-410b-ae77-ec22aa0f66db@linaro.org>
Date: Wed, 3 Sep 2025 10:57:25 +0200
From: Neil Armstrong <neil.armstrong@...aro.org>
To: fenglin.wu@....qualcomm.com, Sebastian Reichel <sre@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>,
Bryan O'Donoghue <bryan.odonoghue@...aro.org>,
Konrad Dybcio <konrad.dybcio@....qualcomm.com>
Cc: Subbaraman Narayanamurthy <subbaraman.narayanamurthy@....qualcomm.com>,
David Collins <david.collins@....qualcomm.com>,
György Kurucz <me@...uczgy.com>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
kernel@....qualcomm.com, devicetree@...r.kernel.org,
linux-usb@...r.kernel.org
Subject: Re: [PATCH v3 0/8] power: supply: Add several features support in
qcom-battmgr driver
Hi,
On 26/08/2025 09:18, Fenglin Wu via B4 Relay wrote:
> Add following features in qcom-battmgr drivers as the battery management
> firmware has provided such capabilities:
> - Add resistance power supply property in core driver and qcom-battmgr
> driver to get battery resistance
> - Add state_of_health power supply property in core driver and
> qcom-battmgr driver to get battery health percentage
> - Add charge control start/end threshold control by using
> charge_control_start_threshold and charge_control_end_threshold power
> supply properties
>
> The changes have been tested on QRD8650 and X1E80100-CRD devices based on
> qcom/linux.git for-next commit a679f3f6931cdb0c2ef5dc0c26f895ae3f6c1ddc.
Gnome sets the properties and they are correctly loaded back at reboot.
Tested-by: Neil Armstrong <neil.armstrong@...aro.org> # on Thinkpad T14S OLED
Thanks,
Neil
>
> Signed-off-by: Fenglin Wu <fenglin.wu@....qualcomm.com>
> ---
> Changes in v3:
> - Change power supply property "RESISTANCE" to "INTERNAL_RESISTANCE" and
> update the ABI document accordingly.
> - Update the ABI document for "STATE_OF_HEALTH" property to explain it
> better.
> - Drop following patches, as they were made due to my misunderstanding of
> the compats fallback behavior. Thank you to Krzysztof for the correction
> with patience.
> [PATCH v2 6/8] dt-bindings: soc: qcom: pmic-glink: Move X1E80100 out of fallbacks
> [PATCH v2 7/8] usb: typec: ucsi_glink: Add UCSI quirk for X1E80100 platform
> [PATCH v2 8/8] arm64: dts: qcom: x1*: Remove qcom,sm8550-pmic-glink fallback
> - Addressed several comments in [PATCH v2 5/8]:
> - Separated the compat string addition change
> - Fixed the coding style issues in several places to address this
> checkpatch error:
> "CHECK: Alignment should match open parenthesis"
> - Add logic to read charge control thresholds from SDAM registers in driver
> probe. It addresses the issue on X1E80100, where there is no interface
> to retrieve the thresholds from the battery management firmware after
> boot-up.
> - Add a DT binding change for charge_limit_xx "nvmem" DT properties.
> - Add a DT change to specifiy charge_limit_xx "nvmem" properties for X1E80100
> devices.
> - Link to v2: https://lore.kernel.org/r/20250530-qcom_battmgr_update-v2-0-9e377193a656@oss.qualcomm.com
>
> Changes in v2:
> - Corrected "qcom-battmgr" to "qcom_battmgr" in the commit subject of
> patch 4/5.
> - Added charge control support for X1E80100 platform in patch 5.
> - X1E80100 is no longer a fallback of SM8550 in pmic-glink battmgr support,
> hence added patch 6 in the pmic-glink binding to move X1E80100 out of the
> fallbacks.
> - Added patch 7 in glink-ucsi driver to include UCSI quirk for X1E80100
> platform
> - Added patch 8 to remove "qcom,sm8550-pmic-glink" compatible string in
> x1* board files.
> - Rebased the changes on qcom/linux.git for-next commit 44ef9ab4baaf496d227ab98d368016700f0b9300.
> - Link to v1: https://lore.kernel.org/r/20250523-qcom_battmgr_update-v1-0-2bb6d4e0a56e@oss.qualcomm.com
>
> ---
> Fenglin Wu (8):
> power: supply: core: Add resistance power supply property
> power: supply: core: Add state_of_health power supply property
> power: supply: qcom_battmgr: Add resistance power supply property
> power: supply: qcom_battmgr: Add state_of_health property
> power: supply: qcom_battmgr: update compats for SM8550 and X1E80100
> dt-bindings: soc: qcom,pmic-glink: Add charge limit nvmem properties
> power: supply: qcom_battmgr: Add charge control support
> arm64: dts: qcom: x1e80100-crd: Add charge limit nvmem
>
> Documentation/ABI/testing/sysfs-class-power | 31 ++
> .../bindings/soc/qcom/qcom,pmic-glink.yaml | 14 +
> arch/arm64/boot/dts/qcom/x1-crd.dtsi | 2 +
> arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi | 20 ++
> drivers/power/supply/power_supply_sysfs.c | 2 +
> drivers/power/supply/qcom_battmgr.c | 316 ++++++++++++++++++++-
> include/linux/power_supply.h | 2 +
> 7 files changed, 378 insertions(+), 9 deletions(-)
> ---
> base-commit: abbf1025002e4966bfcbf8a069234e485d49edf1
> change-id: 20250520-qcom_battmgr_update-3561dc526c05
>
> Best regards,
Powered by blists - more mailing lists