Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1007898rwi; Mon, 10 Oct 2022 09:57:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5XTfdr0ykYOlH+o18HACBwOtMbJl2qZ2FY4bQDZzug5GYaocJf3wVbqSTRaYtfSVN6oPzK X-Received: by 2002:aa7:c643:0:b0:458:d2be:6b9b with SMTP id z3-20020aa7c643000000b00458d2be6b9bmr18531217edr.397.1665421046499; Mon, 10 Oct 2022 09:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665421046; cv=none; d=google.com; s=arc-20160816; b=ZjW1sLQdVmEaLJYTH2yamNWCzDEJK+otzc4Rqtqu6w1238nIOpgGkqA3f19X5dDlKO Gzplw9C37BzqJ67sbDd4zoMEAKq718nPkpcbJ//IfqKfrZmtwl5OsVbqS5MkiCSYlyPS vYBxsaZ5RJcJ2j16bHbDvjfwma7lndLCZ27oFVvp3m39aXRhXVaaP0nZFVnuXa78bgYr hHS9b7XshjSBEz0vKxnvlNXgO0Ex5MZ7vc9Y9Hqp8cn3CdsUfM6ERS2DgjVCp4B7j0/I s0gxAVV9/RUXjHVR4gkfWWguN9faWPDtX3G1vaoZefj8SfGD7aUSBPF65qUYSwwNKmbb fttQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=37U2KQIzutjIDYR/q24e+F5cwQxJPW/uMG0055MRTfk=; b=KezExOjh6mh37Ggvg3QcR9yETkZzqvRBv7v2PAmujIl8sJrqsZ2JfSJG6Pldo34tui +XUvfuZCQd/Dl223C8vFbE8qBMEdJlSsMZepzbr0Ezdoy7sRJTEk1da/fmZG4Ymff0Z3 hOTzk7HYVVlYEm8TWlUK3kCuTxTnRmNQltgRp9MAJb4ICGZg7QlXe49XZR8r+pR2U10J S/aQygwHPEuT+seIUWgCjmma935aT7pX4qrIiGOf9VUss2iEKTflIZHWZiF39QcHHFfg VF0U9Q3q7L1o44Z39iPW1Km7WSm7idZFr79aziET3KvOsEVJdhQNuI4OOaoc7xhrg5ed qzGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@connolly.tech header.s=protonmail header.b=jIWRzkZH; 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=pass (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 g22-20020a1709065d1600b0078049ab4bbasi12866221ejt.526.2022.10.10.09.57.01; Mon, 10 Oct 2022 09:57:26 -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=pass header.i=@connolly.tech header.s=protonmail header.b=jIWRzkZH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229514AbiJJQS3 (ORCPT + 99 others); Mon, 10 Oct 2022 12:18:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbiJJQSU (ORCPT ); Mon, 10 Oct 2022 12:18:20 -0400 Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F90274E31 for ; Mon, 10 Oct 2022 09:18:17 -0700 (PDT) Date: Mon, 10 Oct 2022 16:18:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1665418695; x=1665677895; bh=37U2KQIzutjIDYR/q24e+F5cwQxJPW/uMG0055MRTfk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=jIWRzkZHSlOlg/mjdid+TNcMnxh3Vuw+1RI/ORkkTei3Fuw5DLr+lN0xUu1hTygaX odsePbVMaVtsRZUqZOzd5s/NDzZ8eZhePBWwKac7umqZBCJOCuMq4OTCnYBBsSk7Kd U0JXDKjREvX3qIsygEl68ohDj+NOme8X4W7HhxKw= To: caleb@connolly.tech From: Caleb Connolly Cc: 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: [PATCH v5 1/2] dt-bindings: input: document Qualcomm PMI8998 haptics driver Message-ID: <20221010161727.1298112-2-caleb@connolly.tech> In-Reply-To: <20221010161727.1298112-1-caleb@connolly.tech> References: <20221010161727.1298112-1-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,SPF_HELO_PASS,SPF_PASS, TO_EQ_FM_DIRECT_MX autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings for qcom PMIC PMI8998 haptics driver. Signed-off-by: Caleb Connolly --- .../bindings/input/qcom,pmi8998-haptics.yaml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/qcom,pmi8998-ha= ptics.yaml diff --git a/Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.y= aml 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 + +description: | + Qualcomm SPMI haptics is a peripheral on some QTI PMICs. It supports lin= ear resonant + actuators and eccentric rotating mass type haptics commonly found in mob= ile devices. + It supports multiple sources of wave data such as an internal buffer, di= rect 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 + is the resonant frequency of the actuator. + $ref: /schemas/types.yaml#/definitions/uint32 + 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