From: sashiko-bot@kernel.org
To: "Raj Aryan" <raj.aryan@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add qcom,pm4125-charger binding
Date: Tue, 24 Nov 2026 09:26:55 +0000 [thread overview]
Message-ID: <sashiko-outbox-230834@kernel.org> (raw)
In-Reply-To: <20261124-smblite-charger-for-pm4125-v1-1-2132c9f0601f@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] dt-bindings: power: supply: example lacks parent pmic node
and has unused label
- [Low] dt-bindings: power: supply: redundant word binding in commit
subject
- [Low] dt-bindings: power: supply: fixed-entry arrays lack per-entry
items list
- [Low] dt-bindings: power: supply: qcom,pm4125-charger missing from
qcom,spmi-pmic.yaml
--
commit 45ce3860e319677782a8540cf93046fcf2b07086
Author: Raj Aryan <raj.aryan@oss.qualcomm.com>
dt-bindings: power: supply: Add qcom,pm4125-charger binding
This commit adds a YAML Devicetree binding schema for the Qualcomm SMBLite
switch-mode battery charger found on the PM4125 PMIC.
> dt-bindings: power: supply: Add qcom,pm4125-charger binding
[Severity: Low]
The dt-bindings: prefix already indicates that this adds a binding, so the
trailing word "binding" in the subject can be dropped ("dt-bindings: power:
supply: Add qcom,pm4125-charger").
> 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 0000000000000..5651b428b0a11
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/supply/qcom,pm4125-charger.yaml
> @@ -0,0 +1,109 @@
> +# 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
[ ... ]
> +properties:
> + compatible:
> + const: qcom,pm4125-charger
[Severity: Low]
Should this schema be referenced under ^charger@[0-9a-f]+$ in
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml (or folded into
Documentation/devicetree/bindings/power/supply/qcom,pmi8998-charger.yaml)?
qcom,spmi-pmic.yaml validates ^charger@[0-9a-f]+$ child nodes against a
closed oneOf list and sets additionalProperties: false, so any SPMI PMIC
node containing a qcom,pm4125-charger child node will fail dtbs_check.
[ ... ]
> + io-channels:
> + minItems: 1
> + maxItems: 2
> + 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.
[Severity: Low]
Should io-channels, qcom,jeita-soft-thresholds, and
qcom,jeita-hard-thresholds use an items list with per-entry descriptions
instead of maxItems and free-form descriptions enumerating the entries?
In addition, the JEITA thresholds encode raw 16-bit ADC register values in
uint32-array without a maximum: 0xffff bound, rather than using the
standard alert-celsius and operating-range-celsius properties from
battery.yaml via monitored-battery.
[ ... ]
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/iio/qcom,spmi-vadc.h>
> +
> + pm4125_charger: charger@1000 {
> + compatible = "qcom,pm4125-charger";
> + reg = <0x1000>;
[Severity: Medium]
Does this example pass make dt_binding_check?
Top-level example nodes default to #address-cells = <1> and
#size-cells = <1>, so a single-cell reg = <0x1000> without an enclosing
pmic node specifying #address-cells = <1> and #size-cells = <0> triggers a
dtc reg_format error. The pm4125_charger label is also unused, which fails
the unused-labels check.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-smblite-charger-for-pm4125-v1-0-2132c9f0601f@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-11-24 9:26 UTC|newest]
Thread overview: 11+ 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:26 ` sashiko-bot [this message]
2026-11-24 9:55 ` Krzysztof Kozlowski
2026-11-25 9:18 ` Raj Aryan
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:32 ` sashiko-bot
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=sashiko-outbox-230834@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=raj.aryan@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.