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

From: Raj Aryan

Date: Thu Nov 26 2026 - 06:00:43 EST


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.

Signed-off-by: Raj Aryan <raj.aryan@xxxxxxxxxxxxxxxx>
Signed-off-by: Rakesh Kota <rakesh.kota@xxxxxxxxxxxxxxxx>
---
.../devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 +
.../bindings/power/supply/qcom,pm4125-charger.yaml | 119 +++++++++++++++++++++
2 files changed, 120 insertions(+)

diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
index 7a889d888383..8c8eec87a765 100644
--- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
@@ -160,6 +160,7 @@ patternProperties:
"^charger@[0-9a-f]+$":
type: object
oneOf:
+ - $ref: /schemas/power/supply/qcom,pm4125-charger.yaml#
- $ref: /schemas/power/supply/qcom,pm8916-lbc.yaml#
- $ref: /schemas/power/supply/qcom,pm8941-charger.yaml#
- $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml#
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..4c88d836355b
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.yaml
@@ -0,0 +1,119 @@
+# 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
+
+ interrupts:
+ maxItems: 4
+
+ interrupt-names:
+ items:
+ - const: usb-plugin
+ - const: bat-ov
+ - const: wdog-bark
+ - const: usbin-icl-change
+
+ io-channels:
+ maxItems: 1
+ description:
+ USB input voltage channel (ADC5_USB_IN_V_16).
+
+ io-channel-names:
+ items:
+ - const: usbin_v
+
+ monitored-battery: true
+
+ qcom,jeita-soft-thresholds:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ items:
+ - description: COOL threshold as a raw ADC comparator value.
+ maximum: 0xffff
+ - description: WARM threshold as a raw ADC comparator value.
+ maximum: 0xffff
+ 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
+ items:
+ - description: COLD threshold as a raw ADC comparator value.
+ maximum: 0xffff
+ - description: HOT threshold as a raw ADC comparator value.
+ maximum: 0xffff
+ 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
+
+dependencies:
+ qcom,jeita-soft-thresholds:
+ - qcom,jeita-hard-thresholds
+ qcom,jeita-hard-thresholds:
+ - qcom,jeita-soft-thresholds
+
+allOf:
+ - $ref: power-supply.yaml#
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/iio/qcom,spmi-vadc.h>
+
+ pmic {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ 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>;
+ io-channel-names = "usbin_v";
+
+ qcom,jeita-soft-thresholds = <0x5314 0x25e3>; /* COOL, WARM */
+ qcom,jeita-hard-thresholds = <0x58cd 0x20b8>; /* COLD, HOT */
+ };
+ };

--
2.34.1