[PATCH v2 0/2] power: supply: Add SMBLite charger support for PM4125
From: Raj Aryan
Date: Thu Nov 26 2026 - 06:00:36 EST
The PM4125 PMIC, used on the Qualcomm CQ2390 platform (cocos),
integrates the SMBLite switch-mode battery charger IP. The existing
qcom_smbx charger driver only supports the SMB2 charger IP found on
PMI8998 and PM660, so PM4125 currently has no charger support at
all.
SMBLite is a reduced-feature variant of SMB2: it shares the same
SPMI bus and overall driver model, but uses a different register base
layout (five separate SPMI peripheral bases instead of a single base
with fixed offsets), a different battery-overvoltage status
register, SOC-based recharge instead of VBAT-based recharge, and a
different JEITA configuration sequence.
This series extends the existing qcom_smbx driver to support both chip
types side by side, selecting the correct register bases and handling
logic based on chip->type. This keeps a single driver and power-supply
class device covering both SMB2 and SMBLite hardware.
This series:
- Adds the qcom,pm4125-charger devicetree binding, covering PM4125.
- Extends qcom_smbx to add SMBLite register support, JEITA
threshold configuration, and SOC-based recharge, while preserving
all existing SMB2 (PMI8998/PM660) behavior
Signed-off-by: Rakesh Kota <rakesh.kota@xxxxxxxxxxxxxxxx>
Signed-off-by: Raj Aryan <raj.aryan@xxxxxxxxxxxxxxxx>
---
Changes in v2:
- dt-bindings: add per-entry maximum bounds to the JEITA threshold
arrays, and a dependency requiring both or neither to be present.
- driver: defer enabling SMBLite charging until after float voltage
is configured, and explicitly disable charging at probe start, so
the charger always comes up in a known disabled -> configured ->
enabled sequence; leave charging disabled on probe failure instead of
restoring the prior state.
- driver: propagate JEITA threshold write failures, require both
soft and hard thresholds to be present together, and check the
other previously-ignored SMBLite init register writes.
- driver: add watchdog-bark IRQ wake support for SMBLite.
- driver: treat missing battery info as a probe failure for SMB2,
matching the existing monitored-battery binding requirement.
- usbin_v is required, and channel lookup errors fail probe.
- The USB-plugin handler checks the charger-status read and both
charging-enable writes.
- Link to v1: https://lore.kernel.org/r/20261124-smblite-charger-for-pm4125-v1-0-2132c9f0601f@xxxxxxxxxxxxxxxx
- It depends on charger type detection mentioned below.
- Depends-on: https://lore.kernel.org/all/20261111-shikra-qusb2-charger-det-v1-0-5a9d919c66b5@xxxxxxxxxxxxxxxx/
---
Raj Aryan (2):
dt-bindings: power: supply: Add qcom,pm4125-charger
power: supply: qcom_smbx: Add PM4125 SMBLite charger support
.../devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 +
.../bindings/power/supply/qcom,pm4125-charger.yaml | 119 +++
drivers/power/supply/qcom_smbx.c | 1081 ++++++++++++++++++--
3 files changed, 1089 insertions(+), 112 deletions(-)
---
base-commit: 9437046953b2fb3bf55b36582450ea0267df82a7
change-id: 20260827-smblite-charger-for-pm4125-d3168a705520
Best regards,
--
Raj Aryan <raj.aryan@xxxxxxxxxxxxxxxx>