From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
mfd@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org,
dmitry.torokhov@gmail.com, lee@kernel.org
Subject: Re: [PATCH v8 1/9] dt-bindings: input: Add Qualcomm PMI8998 / PM660 haptics
Date: Mon, 30 Nov 2026 00:22:56 +0000 [thread overview]
Message-ID: <sashiko-outbox-240146@kernel.org> (raw)
In-Reply-To: <20261130-qcom-pmi8998-haptics-v8-1-a64ecd72d3bb@ixit.cz>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: input: qcom,pmi8998-haptics: examples fail
dt_binding_check against qcom,spmi-pmic.yaml
- [Low] dt-bindings: input: qcom,pmi8998-haptics: license is
GPL-2.0-only instead of dual license
--
commit 0d5bdb76b37b9f96253eeb21cb110ab27febe66e
Author: David Heidelberg <david@ixit.cz>
dt-bindings: input: Add Qualcomm PMI8998 / PM660 haptics
This commit adds the devicetree binding schema and constants header for the
Qualcomm PMI8998 and PM660 PMIC haptics module.
> diff --git a/Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.yaml b/Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.yaml
> new file mode 100644
> index 0000000000000..2a296b6096e02
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.yaml
> @@ -0,0 +1,256 @@
> +# SPDX-License-Identifier: GPL-2.0-only
[Severity: Low]
Should this new binding schema be dual-licensed as (GPL-2.0-only OR
BSD-2-Clause), matching include/dt-bindings/input/qcom,haptics.h?
[ ... ]
> +examples:
> + - |
> + #include <dt-bindings/input/qcom,haptics.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/spmi/spmi.h>
> +
> + pmic@3 {
> + compatible = "qcom,pmi8998", "qcom,spmi-pmic";
> + reg = <0x3 SPMI_USID>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + haptics@c000 {
> + compatible = "qcom,pmi8998-haptics";
> + reg = <0xc000>;
> + interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>,
> + <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>;
> + interrupt-names = "short", "play";
> +
> + qcom,lra-auto-res-mode = <QCOM_LRA_AUTO_RES_MODE_ZXD_EOP>;
> + qcom,lra-high-z = <QCOM_HAPTICS_LRA_HIGH_Z_OPT1>;
> + qcom,lra-period-us = <4255>;
> + qcom,lra-res-cal-period = <32>;
> + qcom,play-mode = <QCOM_HAPTICS_PLAY_MODE_BUFFER>;
> + qcom,vmax-microvolt = <2088000>;
> + qcom,wave-shape = <QCOM_HAPTICS_WAVE_SHAPE_SINE>;
> + };
> + };
> +
> + - |
> + #include <dt-bindings/input/qcom,haptics.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/spmi/spmi.h>
> +
> + pmic@1 {
> + compatible = "qcom,pm660";
> + reg = <0x1 SPMI_USID>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + haptics@c000 {
> + compatible = "qcom,pm660-haptics";
[Severity: Medium]
Do these examples pass make dt_binding_check?
In the second example, pmic@1 matches
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml via "qcom,pm660",
which requires the "qcom,spmi-pmic" fallback compatible.
Also, at this point in the series, qcom,spmi-pmic.yaml only allows
/schemas/input/qcom,spmi-haptics.yaml# for "^haptics@[0-9a-f]+$" child
nodes until commit "dt-bindings: mfd: qcom,spmi-pmic: Allow the PMI8998
haptics child node", so both examples fail dt_binding_check on this commit
unless the parent MFD schema update is ordered first or untyped pmic
wrapper nodes are used.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-qcom-pmi8998-haptics-v8-0-a64ecd72d3bb@ixit.cz?part=1
next prev parent reply other threads:[~2026-11-30 0:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 0:13 [PATCH v8 0/9] input: Add support for the Qualcomm PMI8998 and PM660 haptics David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 1/9] dt-bindings: input: Add Qualcomm PMI8998 / " David Heidelberg via B4 Relay
2026-11-30 0:22 ` sashiko-bot [this message]
2026-11-30 0:13 ` [PATCH v8 2/9] dt-bindings: mfd: qcom,spmi-pmic: Allow the PMI8998 haptics child node David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 3/9] Input: qcom-pmi8998-haptics - Add Qualcomm PMI8998 haptics driver David Heidelberg via B4 Relay
2026-11-30 0:26 ` sashiko-bot
2026-11-30 0:13 ` [PATCH v8 4/9] arm64: dts: qcom: pmi8998: Add haptics node David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 5/9] arm64: dts: qcom: sdm845-oneplus: Enable haptics David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 6/9] arm64: dts: qcom: sdm845-xiaomi-beryllium: " David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 7/9] arm64: dts: qcom: sdm845-shift-axolotl: " David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 8/9] arm64: dts: qcom: pm660: Add haptics node David Heidelberg via B4 Relay
2026-11-30 0:13 ` [PATCH v8 9/9] arm64: dts: qcom: sdm660-xiaomi-lavender: Enable haptics David Heidelberg via B4 Relay
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-240146@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=lee@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--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