Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6397537rwi; Tue, 18 Oct 2022 11:51:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Ddo57GhrNvKpXPFEj/LW+WOyRhk5mij5otJT2/VFIioH6R/2bmUoL6hwx6rqjxBDCxffr X-Received: by 2002:a17:906:9c82:b0:781:5752:4f2b with SMTP id fj2-20020a1709069c8200b0078157524f2bmr3466188ejc.561.1666119095071; Tue, 18 Oct 2022 11:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666119095; cv=none; d=google.com; s=arc-20160816; b=j+gXrkscZuOggSI9HHvvN18j3dPemcvYd4O1wpQyDLcd4//vyrl98SJy7niFNJ1y+y AIH5gfklDvomXU5sdgR4jvNO9IoWYt7vQO/4VUWDeZK7mq+uFABTun/ubfvrr3X+SSlU b5ARRJ+LMgeYm/Sd+EHEIb8fEW/JqdgrpemXR4/FPiguWTLUkUAUKILapr+sXiWZS4Go wFnFdIjXyiqIxqF2PnZHRHgZQfqFxeICdix44qsZEoAMK/khEtS8XyGqSzwvTrfBTebx nzzg/aBfMBWAL2uRhoBrbIKe+Q0l/TG5oWDGNUcKbNnzymYck5vGo2y7U2Jx+tJ/Vq+U Mz0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from :dkim-signature:date; bh=39j/N8FEDTlg592aMy449d8TbNb26ue3BrX+9fClMEM=; b=jOL1vb+vtllwiWJYqGP5TzREQWNuGCl7EHVkI3rIVjNGaNi2uG4McBrjatjobjjPXr htyIANQYMMG4ckA9kJpCla09GwX02Kg7oKE7nZ+NssjS97mSRJdcgKFKBES8E22VrofQ xudqlcpdOv/qNpV4KG53rH5f0rd8gkAEqAK5Y5eftaq4Gz4PV37wtnCUbXLJn4ONjkGX IrocWeQbfA5ev6jTduZZR2w7FLNJQa0caNxHcB0TVPFCdeYXvyaSCjn4U7gCy+coWuLq 1Zpsze2+fsjeX88Bm3aR3TtYE5C1BemFze7E7WF97EoI5faSpXskZFCeSBzCKiZgTbSC r3lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=Qpcad0zW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf26-20020a0564021a5a00b0045c83fb19d4si11503236edb.578.2022.10.18.11.51.09; Tue, 18 Oct 2022 11:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=Qpcad0zW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbiJRS3o (ORCPT + 99 others); Tue, 18 Oct 2022 14:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbiJRS3h (ORCPT ); Tue, 18 Oct 2022 14:29:37 -0400 Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25F011B7A7; Tue, 18 Oct 2022 11:29:31 -0700 (PDT) Date: Tue, 18 Oct 2022 18:29:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1666117769; x=1666376969; bh=39j/N8FEDTlg592aMy449d8TbNb26ue3BrX+9fClMEM=; h=Date:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=Qpcad0zWnJwbQrjv1rdxAt5LKpcayscF7lm64ACGbl5l7l/uQayJSBgXpzh6Zc6vi 520RxBhqtNNxC/RgCVhxYGnaSVaPqdl4vA9CsehNB/ULSbWdSsAwkt8hH8QmkLpB+X 4hB2Wv+ASQsbEBztvIzLrPcTGiRC90f9SngAovCk= From: Caleb Connolly Cc: krzysztof.kozlowski@linaro.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Bjorn Andersson , devicetree@vger.kernel.org, Dmitry Torokhov , Jeff LaBundy , Konrad Dybcio , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor , Nick Desaulniers , Rob Herring , Tom Rix Subject: Re: [PATCH v7 1/2] dt-bindings: input: document Qualcomm PMI8998 haptics driver Message-ID: In-Reply-To: <20221015172915.1436236-2-caleb@connolly.tech> References: <20221015172915.1436236-1-caleb@connolly.tech> <20221015172915.1436236-2-caleb@connolly.tech> Feedback-ID: 10753939:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MISSING_HEADERS, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/10/2022 18:30, Caleb Connolly wrote: > Add bindings for qcom PMIC PMI8998 haptics driver. > > Signed-off-by: Caleb Connolly > --- > .../bindings/input/qcom,pmi8998-haptics.yaml | 73 +++++++++++++++++++ > 1 file changed, 73 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..d43324cceb89 > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.yaml > @@ -0,0 +1,73 @@ > +# 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,pmi8998-haptics.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm PMI8998/PM660 Haptics > + > +maintainers: > + - Caleb Connolly > + > +description: | > + Qualcomm SPMI haptics is a peripheral on some QTI PMICs. It supports l= inear resonant > + actuators and eccentric rotating mass type haptics commonly found in m= obile 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 I've just noticed this typo! Will respin and fix... > + - qcom,pmi8996-haptics > + - qcom,pmi8941-haptics > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 2 > + > + interrupt-names: > + items: > + - const: short > + - const: play > + > + qcom,wave-play-duration-us: > + description: | > + Wave sample duration in microseconds, 1/f where f > + is the resonant frequency of the actuator. > + This property is named qcom,wave-play-rate-us in > + downstream kernels. > + minimum: 0 > + maximum: 20475 > + > +required: > + - compatible > + - reg > + - interrupts > + - qcom,wave-play-rate-us > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + spmi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + pmi8998_haptics: haptics@c000 { > + compatible =3D "qcom,pmi8998-haptics"; > + reg =3D <0xc000>; > + > + interrupts =3D <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>, > + <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>; > + interrupt-names =3D "short", "play"; > + > + qcom,wave-play-rate-us =3D <4255>; > + }; > + }; > -- > 2.38.0 > -- Kind Regards, Caleb