Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2150102rwi; Tue, 11 Oct 2022 05:34:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46kQox3f9302t1ZXBOZJxArjFnfqKE5CRBejwpZsZ05L2rQJDKVx1//5xfrVR4i1VJbEQ2 X-Received: by 2002:a05:6402:d75:b0:459:fad8:fbf with SMTP id ec53-20020a0564020d7500b00459fad80fbfmr22150005edb.0.1665491679664; Tue, 11 Oct 2022 05:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665491679; cv=none; d=google.com; s=arc-20160816; b=jq4VyOnf0LQsDnkEOqh+ohJ44d3bNJRhckqjZ3FWqYHtsVU9oik1TkOjSksuZh0EGO UQ9uINqr5iJobU0Bq4hm447AXjUn7myW7STMQ2jfYslTSZfARjpZwX7buAeDPBJYqbeM js8gXApDuPNyO31g0JGSZMIumGgVKvV3WxmwTkvKlX6y1+WIoZJ8HMFTYlx1ffxxz2Be +8LoU9Kz6Z+afvkNbDDU6Vave9bXmDDQZIpFfBcv2ECS2BScLXaHnn0btB3E8jpuHJzF zOkIlAyk+DMznMKtxgnEyOM5yO9UqxjcFL3a7syKmu9OL4bLwfVk0jZDndlRQ9Yu9vJJ G67w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/YakFhNpLpumvOh5oHDunclA+gkTRZwRtWWXCJ8zRl8=; b=C15exJrFN9DgK/LfqddDRWpZocTvxhhIVTfif00P3CzBEmjW+IMvvIwpFumDclHozt 2mGFhkefaGYJMgYtKSKbYPr47laDObP7oQk8///1pAzktrK3w9uamy/L66j+dgxmGuNj OBn+fYM1D8Hx6Oo093pZIQxY4EdUbK+LRKFIsng49hW6gtavtTQ8XYSLTllPPxEdj0Or SNuJVG3RpIYLXkVwbsHxKg+VV954mwoiFeVDH+pJu6/N7PZDAX6CCfSQDa5+86ePvbg7 nE4RrCptQHpe8RXRI1DFowM2sAs/pTJ+UQG5gw4dn9rRFjhjgFzK+Ex+WwqlJcHoZ9iU ydvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jhOz86q+; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a056402274400b00459c73bd1c6si89146edd.550.2022.10.11.05.34.12; Tue, 11 Oct 2022 05:34:39 -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=@linaro.org header.s=google header.b=jhOz86q+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229598AbiJKMUY (ORCPT + 99 others); Tue, 11 Oct 2022 08:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiJKMUU (ORCPT ); Tue, 11 Oct 2022 08:20:20 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A842578AD for ; Tue, 11 Oct 2022 05:20:16 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id z8so3558053qtv.5 for ; Tue, 11 Oct 2022 05:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/YakFhNpLpumvOh5oHDunclA+gkTRZwRtWWXCJ8zRl8=; b=jhOz86q+hE4Tl/6wOHJGFEWqFbyw8x+EKAvrco08gfgBy80fcwjZipZU2w4+1Lk12g imuWft0S/KkaxjwCRHY1jWIUwzvF+UpZzGnnLYBSXOMalVKtYq8YMYcvNd5Bjz7Wa12s cATv6WR2Ib0WgHHUEdbDPxaYu5kCo/58kmY3tY7CAF01NjR/iOHwMCZNT0n7qKcf0mOs isz4f2ku3VuewEFctR0EF319aMwEaBLIXgZ7w8k+LGFKXHqhW0+6WAeYE5/bLm/t3Agy GLNkifIVQMprhorNHpNbmZKGst0y9Bbn13nDtpzP5VPLu964O02c8oZmng/MXZ39W1/8 UejQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/YakFhNpLpumvOh5oHDunclA+gkTRZwRtWWXCJ8zRl8=; b=gfV1OekwntB4Xrv57D3MHzWotKivP0S3nbsNbLPi5TwX6TgikagEm70nyEFsjt/0q4 XACHEOamWDxLvuYNsT4e0dm1V4FJ7GiORvKhS+iYisUEKEAzBWuVzj/eIAvw38uU1GzF /pkO+Z8S0fC3BdM4t+mntiJs+QA/rSnGM+m4J0yFY5o2iigKF/puYqyPFSJpE7/R9zRI FOrXnpYUXDobBY7KcFk722EjJDW+Vai8LGHiwjPOiygxMuW4y0wdbYC4PHPSX/STnGf4 4OhWb7AND8wmEyBK+47gltBcttiSzYizEOY/qUcYmRumocj6W64LdsQ47VfnSQxZy5Re CstQ== X-Gm-Message-State: ACrzQf2be/IM1K3Z/4+/mql89vbk6dYXABYSp/Bk6Ovy3qsuuTVpOgkn XP1E6ye8WaBP2sFLNJJ6u/2yGw== X-Received: by 2002:ac8:7f4b:0:b0:35c:bfa2:8bd2 with SMTP id g11-20020ac87f4b000000b0035cbfa28bd2mr18401847qtk.644.1665490813776; Tue, 11 Oct 2022 05:20:13 -0700 (PDT) Received: from [192.168.1.57] (cpe-72-225-192-120.nyc.res.rr.com. [72.225.192.120]) by smtp.gmail.com with ESMTPSA id dt39-20020a05620a47a700b006ec59941acasm7243990qkb.11.2022.10.11.05.20.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Oct 2022 05:20:13 -0700 (PDT) Message-ID: Date: Tue, 11 Oct 2022 08:18:02 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v6 1/2] dt-bindings: input: document Qualcomm PMI8998 haptics driver Content-Language: en-US To: 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 References: <20221010162945.1325770-1-caleb@connolly.tech> <20221010162945.1325770-2-caleb@connolly.tech> From: Krzysztof Kozlowski In-Reply-To: <20221010162945.1325770-2-caleb@connolly.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 10/10/2022 12:30, Caleb Connolly wrote: > Add bindings for qcom PMIC PMI8998 haptics driver. > > Signed-off-by: Caleb Connolly > --- > .../bindings/input/qcom,pmi8998-haptics.yaml | 71 +++++++++++++++++++ > 1 file changed, 71 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..9f51c527595c > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/qcom,pmi8998-haptics.yaml > @@ -0,0 +1,71 @@ > +# 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 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: s/rate/duration/ ? > + description: | > + Wave sample duration in microseconds, 1/f where f > + is the resonant frequency of the actuator. > + minimum: 0 > + maximum: 20475 > + > +required: > + - compatible > + - reg > + - interrupts > + - qcom,wave-play-rate-us > + > +additionalProperties: false > + > +examples: > + - | > + #include Align it with -| above. > + > + spmi { > + #address-cells = <1>; > + #size-cells = <0>; > + pmi8998_haptics: haptics@c000 { > + compatible = "qcom,pmi8998-haptics"; > + reg = <0xc000>; > + > + interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>, > + <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>; Align with previous < > + interrupt-names = "short", "play"; > + > + qcom,wave-play-rate-us = <4255>; > + }; > + }; > -- > 2.38.0 > > Best regards, Krzysztof