From: Raj Aryan <raj.aryan@oss.qualcomm.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: 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>,
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: Wed, 25 Nov 2026 14:48:49 +0530 [thread overview]
Message-ID: <awan+SRMtZs6c9jQ@hu-raryan-hyd.qualcomm.com> (raw)
In-Reply-To: <a5f859c1-0779-4ae1-88f0-bfa12268e09c@kernel.org>
On Tue, Nov 24, 2026 at 10:55:57AM +0100, Krzysztof Kozlowski wrote:
> 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.
>
ACK.
> 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
>
ACK.
> > 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.
>
I apologise sincerly. I will correct this in V2.
> >
> > - 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.
>
ACK.
> > +
> > + 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?
>
I made io-channels flexible to allow an optional usbin_i channel. The
shared driver requires that channel for SMB2, but PM4125 uses SMBLite,
which doesn’t request it. Since this binding is PM4125-specific, I will drop it.
> > + 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.
>
ACK.
>
>
> Best regards,
> Krzysztof
Thanks & Regards
Raj Aryan
next prev parent reply other threads:[~2026-11-25 9:18 UTC|newest]
Thread overview: 9+ 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
2026-11-25 9:18 ` Raj Aryan [this message]
2026-11-24 13:35 ` Rob Herring (Arm)
2026-11-25 8:25 ` Raj Aryan
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
2026-11-25 9:24 ` Raj Aryan
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=awan+SRMtZs6c9jQ@hu-raryan-hyd.qualcomm.com \
--to=raj.aryan@oss.qualcomm.com \
--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=krzk@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=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