Repository navigation
Add SMBLite charger support for PM4125 - #2415
Merged
kotarake merged 3 commits intoNov 26, 2026
Merged
Conversation
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>
|
Dev Completion validation failed CR: 4759514 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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