Linux Power Management development
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Raj Aryan <raj.aryan@oss.qualcomm.com>,
	Sebastian Reichel <sre@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Casey Connolly <casey.connolly@linaro.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>
Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	Rakesh Kota <rakesh.kota@oss.qualcomm.com>
Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add qcom,pm4125-charger binding
Date: Tue, 24 Nov 2026 10:55:57 +0100	[thread overview]
Message-ID: <a5f859c1-0779-4ae1-88f0-bfa12268e09c@kernel.org> (raw)
In-Reply-To: <20261124-smblite-charger-for-pm4125-v1-1-2132c9f0601f@oss.qualcomm.com>

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@oss.qualcomm.com>
> +  - Rakesh Kota <rakesh.kota@oss.qualcomm.com>
> +
> +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

  reply	other threads:[~2026-11-24  9:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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:55   ` Krzysztof Kozlowski [this message]
2026-11-24  9:15 ` [PATCH 2/2] power: supply: qcom_smbx: Add SMBLite charger support Raj Aryan
2026-11-24  9:48 ` [PATCH 0/2] arm64: qcom: Add SMBLite charger support for PM4125 Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a5f859c1-0779-4ae1-88f0-bfa12268e09c@kernel.org \
    --to=krzk@kernel.org \
    --cc=broonie@kernel.org \
    --cc=casey.connolly@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=raj.aryan@oss.qualcomm.com \
    --cc=rakesh.kota@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox