Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Fenglin Wu" <fenglin.wu@oss.qualcomm.com>
Cc: dmitry.torokhov@gmail.com, devicetree@vger.kernel.org,
	conor+dt@kernel.org, linux-input@vger.kernel.org,
	robh@kernel.org
Subject: Re: [PATCH v7 1/2] dt-bindings: input: Add Qualcomm SPMI PMIC haptics
Date: Fri, 28 Aug 2026 09:59:32 +0000	[thread overview]
Message-ID: <20260828095932.EF7541F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260828-qcom-spmi-haptics-v7-1-0367b3ac2e1e@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The new `haptics` device tree node will cause validation failures because it is not permitted by its parent MFD schema.
--

commit 69b46ca6dd857a336fadfc81c3a26d260c9c10ea
Author: Fenglin Wu <fenglin.wu@oss.qualcomm.com>

dt-bindings: input: Add Qualcomm SPMI PMIC haptics

Add binding document for the haptics module inside Qualcomm PMIC PMIH0108.

> diff --git a/Documentation/devicetree/bindings/input/qcom,spmi-haptics.yaml b/Documentation/devicetree/bindings/input/qcom,spmi-haptics.yaml
> new file mode 100644
> index 0000000000000..ce2c9e893a0d7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/qcom,spmi-haptics.yaml

[ ... ]

> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +    #include <dt-bindings/spmi/spmi.h>
> +
> +    pmic@7 {
> +        compatible = "qcom,pmih0108", "qcom,spmi-pmic";
> +        reg = <0x7 SPMI_USID>;
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        haptics@f000 {
> +            compatible = "qcom,pmih0108-haptics", "qcom,spmi-haptics";

[Severity: Low]
Will the haptics child node cause device tree validation failures against the
parent MFD schema?

The parent schema for qcom,spmi-pmic enforces additionalProperties: false,
but it does not define a patternProperties regular expression that permits
a haptics node. Running dt_binding_check or dtbs_check on this example, or
any actual device tree using this node under the SPMI PMIC, will fail
validation.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260828-qcom-spmi-haptics-v7-0-0367b3ac2e1e@oss.qualcomm.com?part=1

  reply	other threads:[~2026-08-28  9:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-28  9:49 [PATCH v7 0/2] input: misc: Add an initial driver for haptics inside Qcom PMIH010x PMIC Fenglin Wu
2026-08-28  9:49 ` [PATCH v7 1/2] dt-bindings: input: Add Qualcomm SPMI PMIC haptics Fenglin Wu
2026-08-28  9:59   ` sashiko-bot [this message]
2026-08-28  9:49 ` [PATCH v7 2/2] input: misc: Add Qualcomm SPMI PMIC haptics driver Fenglin Wu
2026-08-28 12:12   ` David Heidelberg

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=20260828095932.EF7541F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=fenglin.wu@oss.qualcomm.com \
    --cc=linux-input@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox