Le lundi 10 octobre 2022 à 16:18 +0000, Caleb Connolly a écrit : > Add bindings for qcom PMIC PMI8998 haptics driver. > > Signed-off-by: Caleb Connolly <caleb@xxxxxxxxxxxxx> > --- > .../bindings/input/qcom,pmi8998-haptics.yaml | 72 +++++++++++++++++++ > 1 file changed, 72 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.yaml > > 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 000000000000..cdffe893c77a > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.yaml > @@ -0,0 +1,72 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright 2020 Unisoc Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/qcom,spmi-haptics.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm PMI8998/PM660 Haptics > + > +maintainers: > + - Caleb Connolly <caleb@xxxxxxxxxxxxx> > + > +description: | > + Qualcomm SPMI haptics is a peripheral on some QTI PMICs. It supports linear resonant > + actuators and eccentric rotating mass type haptics commonly found in mobile devices. > + It supports multiple sources of wave data such as an internal buffer, direct play > + (from kernel or userspace) as well as an audio output mode. > + > +properties: > + compatible: > + items: > + - enum: > + - qcom,pmi8998-haptics > + - qcom,pm660-charger > + - qcom,pmi8996-haptics > + - qcom,pmi8941-haptics > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 2 > + > + interrupt-names: > + items: > + - const: short > + - const: play > + > + qcom,wave-play-rate-us: > + description: | > + Wave sample durection in microseconds, 1/f where f duration, I guess ?