Re: [PATCH v8 1/9] dt-bindings: input: Add Qualcomm PMI8998 / PM660 haptics

From: Rob Herring (Arm)

Date: Mon Nov 30 2026 - 08:59:54 EST



On Mon, 30 Nov 2026 01:13:48 +0100, David Heidelberg wrote:
> Document the haptics module found in the Qualcomm PMI8998 PMIC. It drives
> an LRA or ERM actuator from an 8-sample waveform buffer, a fixed voltage,
> an audio stream or a PWM input, and reports short circuits and buffer
> completion through two interrupts.
>
> The module predates the HAP530 design covered by qcom,spmi-haptics.yaml
> and has a different register layout, so it gets its own schema and no
> qcom,spmi-haptics fallback compatible. The resonance period and maximum
> drive voltage properties reuse the qcom,lra-period-us and
> qcom,vmax-microvolt names from that binding.
>
> Add the shared constants header include/dt-bindings/input/qcom,haptics.h
> for the actuator type, auto-resonance detection mode, play mode, waveform
> shape and high-impedance options, along with properties for ERM sample
> duration, repeat counts, brake pattern and accepted auto-resonance drive
> period variation. LRA-only properties are required for LRA actuators (the
> default) and disallowed for ERM actuators.
>
> Based on work of Casey Connolly.
>
> Signed-off-by: David Heidelberg <david@xxxxxxx>
> ---
> .../bindings/input/qcom,pmi8998-haptics.yaml | 256 +++++++++++++++++++++
> MAINTAINERS | 8 +
> include/dt-bindings/input/qcom,haptics.h | 46 ++++
> 3 files changed, 310 insertions(+)
>

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:

dtschema/dtc warnings/errors:
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000: "reg-names" is a required property
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000:compatible: ["qcom,pmi8998-haptics"] has less than 2 items
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000:compatible:0: "qcom,pmih0108-haptics" was expected
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000:interrupt-names: ["short","play"] has more than 1 item
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000:interrupt-names:0: "fifo-empty" was expected
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000:interrupts: [[3,192,0,3],[3,192,1,3]] has more than 1 item
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000:qcom,vmax-microvolt:0:0: 2088000 is not a multiple of 50000
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000:reg: [[49152]] has less than 2 items
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@3 (qcom,pmi8998): haptics@c000: Additional properties are not allowed ('qcom,lra-auto-res-mode', 'qcom,lra-high-z', 'qcom,lra-res-cal-period', 'qcom,play-mode', 'qcom,wave-shape' were unexpected)
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000: "reg-names" is a required property
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000: "qcom,lra-period-us" is a required property
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000:compatible: ["qcom,pm660-haptics"] has less than 2 items
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000:compatible:0: "qcom,pmih0108-haptics" was expected
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000:interrupt-names: ["short","play"] has more than 1 item
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000:interrupt-names:0: "fifo-empty" was expected
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000:interrupts: [[1,192,0,3],[1,192,1,3]] has more than 1 item
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000:qcom,vmax-microvolt:0:0: 3132000 is not a multiple of 50000
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000:reg: [[49152]] has less than 2 items
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml
Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.example.dtb: pmic@1 (qcom,pm660): haptics@c000: Additional properties are not allowed ('qcom,actuator-type', 'qcom,play-mode', 'qcom,play-rate-us' were unexpected)
from schema $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml

doc reference errors (make refcheckdocs):

See https://patchwork.kernel.org/project/devicetree/patch/20261130-qcom-pmi8998-haptics-v8-1-a64ecd72d3bb@xxxxxxx

The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.