All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Val Packett" <val@packett.cool>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/5] dt-bindings: power: supply: add Qualcomm QGauge fuel gauge
Date: Thu, 12 Nov 2026 17:20:34 +0000	[thread overview]
Message-ID: <sashiko-outbox-211581@kernel.org> (raw)
In-Reply-To: <20261112170841.2189322-2-val@packett.cool>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: power: supply: qcom,qg: unconstrained nvmem and
  schema refs
--

commit 3e127648f3c0c46268041b3bde4ad7d6e88f27b3
Author: Marc Lainez <marc.lainez@gmail.com>

dt-bindings: power: supply: add Qualcomm QGauge fuel gauge

This commit adds the Device Tree binding schema for the Qualcomm QGauge fuel
gauge block on PMI632 and PM6150 PMICs and adds a corresponding MAINTAINERS
entry.

> diff --git a/Documentation/devicetree/bindings/power/supply/qcom,qg.yaml b/Documentation/devicetree/bindings/power/supply/qcom,qg.yaml
> new file mode 100644
> index 0000000000000..79dd18d878793
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/supply/qcom,qg.yaml
> @@ -0,0 +1,105 @@
[ ... ]
> +allOf:
> +  - $ref: /schemas/power/supply/power-supply.yaml#
> +  - $ref: /schemas/nvmem/nvmem-consumer.yaml#
[ ... ]
> +  monitored-battery: true
> +
> +  nvmem: true
> +
> +  power-supplies: true
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - interrupt-names
> +  - monitored-battery
> +
> +additionalProperties: false

[Severity: Low]
Should nvmem specify maxItems: 1 instead of true, and should this binding
use unevaluatedProperties: false without referencing nvmem-consumer.yaml#
in allOf?

nvmem-consumer.yaml is a base consumer schema with select: true that
dtschema applies automatically, and it only constrains each nvmem entry to
a single phandle while leaving the outer array length to the device
binding.  Dropping nvmem-consumer.yaml# from allOf and switching
additionalProperties: false to unevaluatedProperties: false also avoids
having to redeclare monitored-battery and power-supplies from
power-supply.yaml#.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261112170841.2189322-1-val@packett.cool?part=1

  reply	other threads:[~2026-11-12 17:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-12 17:07 [PATCH 0/5] Add driver for Qualcomm QGauge (qcom_qg) fuel gauge Val Packett
2026-11-12 17:07 ` [PATCH 1/5] dt-bindings: power: supply: add Qualcomm QGauge " Val Packett
2026-11-12 17:20   ` sashiko-bot [this message]
2026-11-12 17:07 ` [PATCH 2/5] power: supply: add Qualcomm QGauge (qcom_qg) fuel gauge driver Val Packett
2026-11-12 17:29   ` sashiko-bot
2026-11-12 17:07 ` [PATCH 3/5] iio: adc: qcom-spmi-adc5: Add ADC5_BAT_THERM_100K_PU Val Packett
2026-11-12 17:07 ` [PATCH 4/5] arm64: dts: qcom: pmi632: Add missing bat_therm ADC channel Val Packett
2026-11-12 17:07 ` [PATCH 5/5] arm64: dts: qcom: pmi632: Add battery fuel gauge node Val Packett
2026-11-12 17:30   ` sashiko-bot

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-211581@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=val@packett.cool \
    /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.