Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: qcom: Add SMBLite charger support for PM4125
@ 2026-11-24  9:15 Raj Aryan
  2026-11-24  9:15 ` [PATCH 1/2] dt-bindings: power: supply: Add qcom,pm4125-charger binding Raj Aryan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Raj Aryan @ 2026-11-24  9:15 UTC (permalink / raw)
  To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Casey Connolly, Liam Girdwood, Mark Brown
  Cc: linux-pm, devicetree, linux-kernel, linux-arm-msm, Rakesh Kota,
	Raj Aryan

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 both
  PM4125 and PM2250 (which share the same SMBLite IP)
- 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@oss.qualcomm.com>
Signed-off-by: Raj Aryan <raj.aryan@oss.qualcomm.com>
---
Raj Aryan (2):
      dt-bindings: power: supply: Add qcom,pm4125-charger binding
      power: supply: qcom_smbx: Add SMBLite charger support

 .../bindings/power/supply/qcom,pm4125-charger.yaml |  109 ++
 drivers/power/supply/qcom_smbx.c                   | 1094 ++++++++++++++++++--
 2 files changed, 1090 insertions(+), 113 deletions(-)
---
base-commit: f1ac44c32cba88ad65dcecd4a279661d14e93651
change-id: 20260827-smblite-charger-for-pm4125-d3168a705520
prerequisite-message-id: 20261111-shikra-qusb2-charger-det-v1-0-5a9d919c66b5@oss.qualcomm.com
prerequisite-patch-id: 7e516155b3e55cfdf0e368296b467c6d89565b9d
prerequisite-patch-id: 85a40d3799c93e0ff515f7ae2f9642435acea45a

Best regards,
-- 
Raj Aryan <raj.aryan@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-24  9:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24  9:15 [PATCH 0/2] arm64: qcom: Add SMBLite charger support for PM4125 Raj Aryan
2026-11-24  9:15 ` [PATCH 1/2] dt-bindings: power: supply: Add qcom,pm4125-charger binding Raj Aryan
2026-11-24  9:26   ` sashiko-bot
2026-11-24  9:55   ` Krzysztof Kozlowski
2026-11-24  9:15 ` [PATCH 2/2] power: supply: qcom_smbx: Add SMBLite charger support Raj Aryan
2026-11-24  9:32   ` sashiko-bot
2026-11-24  9:48 ` [PATCH 0/2] arm64: qcom: Add SMBLite charger support for PM4125 Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox