[PATCH 1/2] dt-bindings: power: supply: Add qcom,pm4125-charger binding

From: Raj Aryan

Date: Tue Nov 24 2026 - 04:16:18 EST


Add YAML devicetree binding for the Qualcomm SMBLite switch-mode
battery charger found on the PM4125 PMIC.

SMBLite is a reduced-feature charger IP sharing a common SPMI
interface with the SMB2 family (PMI8998, PM660) but using separate
SPMI peripheral bases for CHGR, DCDC, USB, MISC and BATIF blocks.

The binding covers:

- compatible string: qcom,pm4125-charger
- reg property for the CHGR peripheral base address
- Four interrupts: usb-plugin, bat-ov, wdog-bark and
usbin-icl-change
- Two IIO channels: usbin_v (USB input voltage via ADC5_USB_IN_V_16)
and usbin_i (USB input current via ADC5_USB_IN_I)
- Optional JEITA soft and hard threshold configuration as raw
16-bit ADC comparator values written to BATIF ADC comparator
registers
- Optional monitored-battery phandle for battery parameters such
as float voltage and charge termination current

Signed-off-by: Raj Aryan <raj.aryan@xxxxxxxxxxxxxxxx>
Signed-off-by: Rakesh Kota <rakesh.kota@xxxxxxxxxxxxxxxx>
---
.../bindings/power/supply/qcom,pm4125-charger.yaml | 109 +++++++++++++++++++++
1 file changed, 109 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.yaml b/Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.yaml
new file mode 100644
index 000000000000..5651b428b0a1
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.yaml
@@ -0,0 +1,109 @@
+# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/supply/qcom,pm4125-charger.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm PM4125 SMBLite Switch-Mode Battery Charger
+
+maintainers:
+ - Raj Aryan <raj.aryan@xxxxxxxxxxxxxxxx>
+ - Rakesh Kota <rakesh.kota@xxxxxxxxxxxxxxxx>
+
+description: |
+ The Qualcomm SMBLite is a switch-mode battery charger IP found on
+ the entry-level Qualcomm PM4125 PMIC. It exposes five separate
+ SPMI peripheral bases for CHGR, DCDC, USB, MISC and BATIF blocks and
+ supports USB input current limiting, JEITA temperature protection,
+ battery overvoltage detection and a hardware watchdog.
+
+properties:
+ compatible:
+ const: qcom,pm4125-charger
+
+ reg:
+ maxItems: 1
+ description: Base address of the CHGR SPMI peripheral (e.g. 0x1000).
+
+ interrupts:
+ maxItems: 4
+
+ interrupt-names:
+ items:
+ - const: usb-plugin
+ - const: bat-ov
+ - const: wdog-bark
+ - const: usbin-icl-change
+
+ io-channels:
+ minItems: 1
+ maxItems: 2
+ description: |
+ IIO ADC channels used by the charger. usbin_v is the USB input
+ voltage channel (ADC5_USB_IN_V_16). usbin_i is the USB input
+ current channel (ADC5_USB_IN_I).
+
+ io-channel-names:
+ minItems: 1
+ items:
+ - const: usbin_v
+ - const: usbin_i
+
+ monitored-battery: true
+
+ qcom,jeita-soft-thresholds:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ minItems: 2
+ maxItems: 2
+ description: |
+ JEITA soft temperature thresholds (COOL, WARM) as raw 16-bit ADC
+ comparator values written to the BATIF ADC comparator registers.
+ Example: <0x5314 0x25e3> for COOL=15°C, WARM=45°C.
+
+ qcom,jeita-hard-thresholds:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ minItems: 2
+ maxItems: 2
+ description: |
+ JEITA hard temperature thresholds (COLD, HOT) as raw 16-bit ADC
+ comparator values written to the BATIF ADC comparator registers.
+ Example: <0x58cd 0x20b8> for COLD=0°C, HOT=60°C.
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - interrupt-names
+ - io-channels
+ - io-channel-names
+
+allOf:
+ - $ref: power-supply.yaml#
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/iio/qcom,spmi-vadc.h>
+
+ pm4125_charger: charger@1000 {
+ compatible = "qcom,pm4125-charger";
+ reg = <0x1000>;
+
+ interrupts = <0x0 0x13 0x0 IRQ_TYPE_EDGE_BOTH>,
+ <0x0 0x12 0x3 IRQ_TYPE_EDGE_BOTH>,
+ <0x0 0x16 0x1 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x13 0x6 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "usb-plugin",
+ "bat-ov",
+ "wdog-bark",
+ "usbin-icl-change";
+
+ io-channels = <&pm4125_vadc ADC5_USB_IN_V_16>,
+ <&pm4125_vadc ADC5_USB_IN_I>;
+ io-channel-names = "usbin_v", "usbin_i";
+
+ qcom,jeita-soft-thresholds = <0x5314 0x25e3>; /* COOL, WARM */
+ qcom,jeita-hard-thresholds = <0x58cd 0x20b8>; /* COLD, HOT */
+ };

--
2.34.1