Skip to content

Add SMBLite charger support for PM4125 - #2415

Merged
kotarake merged 3 commits into
qualcomm-linux:tech/pmic/allfrom
raryan-qcom:smblite-charger-for-qli
Nov 26, 2026
Merged

kotarake merged 3 commits into
qualcomm-linux:tech/pmic/allfrom
raryan-qcom:smblite-charger-for-qli

Conversation

@raryan-qcom

Copy link
Copy Markdown

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.

CRs-Fixed: 4759514

Raj Aryan added 3 commits November 26, 2026 17:00
PM4125 integrates the SMBLite switch-mode battery charger IP, which
differs enough from the SMB2 IP already supported on PMI8998/PM660
(separate SPMI peripheral bases per block, a different interrupt
set, raw ADC-based JEITA thresholds) that it has no existing binding
to reuse. Add one to describe it.

Link: https://lore.kernel.org/all/20261126-smblite-charger-for-pm4125-v2-1-20656509518b@oss.qualcomm.com/
Signed-off-by: Raj Aryan <raj.aryan@oss.qualcomm.com>
Signed-off-by: Rakesh Kota <rakesh.kota@oss.qualcomm.com>
PM4125 uses the SMBLite charger IP, a reduced-feature variant of SMB2.
While both use the same SPMI bus and driver model, they differ in register
layout, status reporting, recharge mode and JEITA configuration. Extend
qcom_smbx to handle these differences so PM4125 can use the existing
charger driver. Select register bases and handling based on chip->type,
allowing SMB2 and SMBLite to share one driver and power-supply class
device.

Link: https://lore.kernel.org/all/20261126-smblite-charger-for-pm4125-v2-2-20656509518b@oss.qualcomm.com/
Signed-off-by: Raj Aryan <raj.aryan@oss.qualcomm.com>
Signed-off-by: Rakesh Kota <rakesh.kota@oss.qualcomm.com>
… bridge

PM4125 integrates an SMBLite switch-mode battery charger. Add its
charger node to the PM4125 device tree and enable it on the Shikra
CQM SOM.

Shikra's primary HS phy endpoint was wired directly to the dwc3
controller, leaving no place to switch the USB role at runtime.
Route it through an intermediate connector/controller port pair and
mark the phy usb-role-switch capable, needed by the upcoming QUSB2
charger-detection work.

Link: https://lore.kernel.org/all/20261126-smblite-dt-v1-1-0f4f4401db3b@oss.qualcomm.com/
Signed-off-by: Raj Aryan <raj.aryan@oss.qualcomm.com>
Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Signed-off-by: Rakesh Kota <rakesh.kota@oss.qualcomm.com>
@qswat-orbit-external

Copy link
Copy Markdown

Dev Completion validation failed

CR: 4759514
Change Task: kernel.qli.0.0
Error: GenAI Assisted field must be set before moving change tasks to Development Complete. Please provide GenAI information.

The change task for this CR could not be moved to Dev Complete because of the error above. Please resolve the issue in Orbit and re-run the failed Orbit check.

@kotarake
kotarake merged commit c0aa927 into qualcomm-linux:tech/pmic/all Nov 26, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants