Re: [PATCH 1/2] dt-bindings: power: supply: Add qcom,pm4125-charger binding
From: Krzysztof Kozlowski
Date: Tue Nov 24 2026 - 04:56:28 EST
On 24/11/2026 10:15, Raj Aryan wrote:
> Add YAML devicetree binding for the Qualcomm SMBLite switch-mode
YAML devicetree binding, you hit combo... Drop YAML.
A nit, subject: drop second/last, redundant "bindings". The
"dt-bindings" prefix is already stating that these are bindings.
See also:
https://elixir.bootlin.com/linux/v7.1-rc7/source/Documentation/devicetree/bindings/submitting-patches.rst#L23
> 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:
Do not explain what the patch is doing. We can read the diff. Please
read submitting patches or look at other commits to learn what is
supposed to be here.
>
> - 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
...
> +
> +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).
Drop description.
> +
> + 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
Why is this flexible?
> + 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.
Express temperatures with proper units.
Best regards,
Krzysztof