Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3517137ybl; Sun, 8 Dec 2019 16:55:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwdaTEqWDrIsEtRz6oTx357uyh0UB/fNa+Sdee2/lHc7Td97BMuflI1W7lxycg+4Q0V77Sf X-Received: by 2002:a05:6830:148d:: with SMTP id s13mr20326518otq.323.1575852916493; Sun, 08 Dec 2019 16:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575852916; cv=none; d=google.com; s=arc-20160816; b=m/LMQG/NBB00Rbkcp78awqTErgeY2CzUzVA+tUsgarZsWDrjclqRPJCyE+yVeHpDPK rxIJOqZI0hSvdJj9UgnxzQufimF+pLFayy4sDXWYEMeIUdNdb2YVBzVsu4tvqpzAHFem OkSKZ/1cHBF23MHHpAt+dym7S051oyp7kXnSIH567E4x3ZksVicWY5QA7mslMvwaRhSD NwOwM1PpACGTlYlNA4hLdTpqybn/SP9cvoEVnPJdPdkuWRWeZRKoem2gaMwziVBtJfZ/ wiymyGObVto2O5mLGlQdE2UNx1iYjUeS03aSzz+Ot6Vn0IgpJVQXJfhYQu7reWkg4Q0u wAgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PZB9u0q0m5zm7ek28L5fru7t6Mnor+/7d+VjB8d/+/Y=; b=ZksGThvDrXBpVPA2s2i4ID8bsjVeyIpuqn7sxpbOZop6BSkE8Im/jDm9PRAnSXWcAN BG3UuRdVH0272oTRLpR2tIxhg/ZySaHIUON8hjPC/B54LQ8AwqbUm2anX6W2GUfyk2+C YjZXDerCMjO4i6kcPQyydkb2kFgTXFkDrL+nFf2Cb/fhEp68Eq0rIMWEQ1BU3e1Wmv0n StJuXbt7O/APsYCkUF/njYC5k1+Chs/e/me2sSDjdl1tVY4H9PzNRoN7QLsciTG5c6GM ZDoIJ+Wk+0Kq4ReFKQ16WSVXJVta4Ns29sQyuMxSfTnsB0AfD/AaH93Atekqo6TdwlV5 xGDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=h7AuxBaB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l131si11204193oib.174.2019.12.08.16.55.04; Sun, 08 Dec 2019 16:55:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=h7AuxBaB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbfLIAyi (ORCPT + 99 others); Sun, 8 Dec 2019 19:54:38 -0500 Received: from onstation.org ([52.200.56.107]:37092 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726596AbfLIAyh (ORCPT ); Sun, 8 Dec 2019 19:54:37 -0500 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 68F983E995; Mon, 9 Dec 2019 00:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1575852876; bh=dGqyMsBDrjQ3UdfK1DQX10vVAD15A+SKxZss7KlSu8M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h7AuxBaB5JPI1qheJo50SFsN2MviAWGUESZ7PpykmcfMNvvhnSolh+oUw1MiElcxr ezki8sak4GRO0UF6Bz5RGhcRNTmrvTXS6YDFqhYprO+geG5oaKA7KPze3Y5a7QjgaE HVtZmJnXTNqGIg8u9b9SHAsVZs36q42UCsBbclYw= Date: Sun, 8 Dec 2019 19:54:36 -0500 From: Brian Masney To: Rob Herring Cc: Stephen Boyd , Dmitry Torokhov , Mark Rutland , Andy Gross , Bjorn Andersson , Michael Turquette , Linux Input , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-arm-msm , linux-clk Subject: Re: [PATCH 4/7] dt-bindings: Input: introduce new clock vibrator bindings Message-ID: <20191209005436.GA13647@onstation.org> References: <20191205002503.13088-1-masneyb@onstation.org> <20191205002503.13088-5-masneyb@onstation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 05, 2019 at 07:56:10AM -0600, Rob Herring wrote: > On Wed, Dec 4, 2019 at 6:25 PM Brian Masney wrote: > > > > Add support for clock-based vibrator devices where the speed can be > > controlled by changing the duty cycle. > > > > Signed-off-by: Brian Masney > > --- > > .../bindings/input/clk-vibrator.yaml | 60 +++++++++++++++++++ > > 1 file changed, 60 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/input/clk-vibrator.yaml > > > > diff --git a/Documentation/devicetree/bindings/input/clk-vibrator.yaml b/Documentation/devicetree/bindings/input/clk-vibrator.yaml > > new file mode 100644 > > index 000000000000..2103a5694fad > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/input/clk-vibrator.yaml > > @@ -0,0 +1,60 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/bindings/input/clk-vibrator.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Clock vibrator > > + > > +maintainers: > > + - Brian Masney > > + > > +description: | > > + Support for clock-based vibrator devices where the speed can be controlled > > + by changing the duty cycle. > > + > > +properties: > > + compatible: > > + const: clk-vibrator > > + > > + clocks: > > + maxItems: 1 > > + > > + clock-names: > > + description: output clock that controls the speed > > + items: > > + - const: core > > No point in making up a name when there's only one clock, so drop. OK, will do. > > > + > > + clock-frequency: true > > Given the frequency is variable, what does this mean in this case? The clock frequency is fixed. The duty cycle is what's variable. Brian > > > + enable-gpios: > > + maxItems: 1 > > + > > + vcc-supply: > > + description: Regulator that provides power > > + > > +required: > > + - compatible > > + - clocks > > + - clock-names > > + - clock-frequency > > Add: > > additionalProperties: false > > > + > > +examples: > > + - | > > + #include > > + #include > > + > > + vibrator { > > + compatible = "clk-vibrator"; > > + > > + vcc-supply = <&pm8941_l19>; > > + > > + clocks = <&mmcc CAMSS_GP1_CLK>; > > + clock-names = "core"; > > + clock-frequency = <24000>; > > + > > + enable-gpios = <&msmgpio 60 GPIO_ACTIVE_HIGH>; > > + > > + pinctrl-names = "default"; > > + pinctrl-0 = <&vibrator_pin>; > > + }; > > -- > > 2.21.0 > >