From: sashiko-bot@kernel.org
To: "Fenglin Wu" <fenglin.wu@oss.qualcomm.com>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH RESEND v7 1/2] dt-bindings: input: Add Qualcomm SPMI PMIC haptics
Date: Wed, 04 Nov 2026 04:58:51 +0000 [thread overview]
Message-ID: <sashiko-outbox-196665@kernel.org> (raw)
In-Reply-To: <20261103-qcom-spmi-haptics-v7-1-418de67ef84a@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: input: qcom,spmi-haptics example fails spmi-pmic schema check
--
commit f214feaff6e5674dfe8f6c74a27c54575bdbebcc
Author: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
dt-bindings: input: Add Qualcomm SPMI PMIC haptics
This commit adds the Device Tree binding schema for the haptics module inside
Qualcomm SPMI PMICs such as 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
> @@ -0,0 +1,139 @@
[ ... ]
> +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";
> + reg = <0xf000>, <0xf100>;
> + reg-names = "cfg", "ptn";
> + interrupts = <0x7 0xf0 0x1 IRQ_TYPE_EDGE_RISING>;
> + interrupt-names = "fifo-empty";
> +
> + qcom,vmax-microvolt = <1300000>;
> + qcom,lra-period-us = <5880>;
> + };
> + };
[Severity: Low]
As reported by Sashiko on v6 [1], in the examples section of
Documentation/devicetree/bindings/input/qcom,spmi-haptics.yaml, the child
node haptics@f000 is placed under a parent pmic@7 node with
compatible = "qcom,pmih0108", "qcom,spmi-pmic".
When dt-validate checks this example against all schemas, pmic@7 is validated
against Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml, which lists
allowed child node patterns under patternProperties and sets
additionalProperties: false:
"^vibrator@[0-9a-f]+$":
type: object
$ref: /schemas/input/qcom,pm8xxx-vib.yaml#
...
additionalProperties: false
Because patternProperties in Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
does not include a pattern for "^haptics@[0-9a-f]+$" referencing
/schemas/input/qcom,spmi-haptics.yaml#, will a full dt_binding_check (and
dtbs_check on device trees using this node) fail schema validation on
haptics@f000?
[1] https://lore.kernel.org/r/20260807062927.548EF1F000E9@smtp.kernel.org
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103-qcom-spmi-haptics-v7-0-418de67ef84a@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-11-04 4:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 4:51 [PATCH RESEND v7 0/2] input: misc: Add an initial driver for haptics inside Qcom PMIH010x PMIC Fenglin Wu
2026-11-04 4:51 ` [PATCH RESEND v7 1/2] dt-bindings: input: Add Qualcomm SPMI PMIC haptics Fenglin Wu
2026-11-04 4:58 ` sashiko-bot [this message]
2026-11-04 8:29 ` Krzysztof Kozlowski
2026-11-04 8:44 ` Krzysztof Kozlowski
2026-11-04 4:51 ` [PATCH RESEND v7 2/2] input: misc: Add Qualcomm SPMI PMIC haptics driver Fenglin Wu
2026-11-04 5:16 ` sashiko-bot
2026-11-04 8:31 ` 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=sashiko-outbox-196665@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