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

From: Rob Herring (Arm)

Date: Tue Nov 24 2026 - 08:35:23 EST



On Tue, 24 Nov 2026 14:45:44 +0530, Raj Aryan wrote:
> 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(+)
>

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.example.dts:29.13-28: Warning (reg_format): /example-0/charger@1000:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.example.dtb: Warning (pci_device_reg): Failed prerequisite 'reg_format'
Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.example.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.example.dtb: Warning (simple_bus_reg): Failed prerequisite 'reg_format'
Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.example.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.example.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'

doc reference errors (make refcheckdocs):

See https://patchwork.kernel.org/project/devicetree/patch/20261124-smblite-charger-for-pm4125-v1-1-2132c9f0601f@xxxxxxxxxxxxxxxx

The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.