Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4281871ybl; Mon, 9 Dec 2019 08:17:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxwOuHDEFUW8T7czQK7jcF5zAMni86qHLBb6jCBmUt1U7LG1zKvSjUzCKGukPBmOOSkc08U X-Received: by 2002:aca:3012:: with SMTP id w18mr25705582oiw.33.1575908245539; Mon, 09 Dec 2019 08:17:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575908245; cv=none; d=google.com; s=arc-20160816; b=PFEfS857bSN9Pk2K8o1Cqe/xaA4/WPLgppnALttQ8PgyvFU3+o38nVusxaFSXwBE7i TGJzQGCL+6PwSddxGlvHXHTUrYoROS1TAmYYgc7VqFGtH+hCMSYS2SK7mfUmAKmPxWoW 6LWbLPoK8WC2mtNuvt/UVlYrnJKVRUotZ9bJB1IgDWzLFeTD6jwTvCU4Yd8pjzaAi6h1 g7WGw4L2ixGX8R/gMkfU1xL6eGzWP4pF+3flpLHQjmk1ck4OVf3KTPXKm2cCtHE0pamg FgdU8cvu5sp2oUQKnKfHPGDFr4DC77KZFcJD6xd7i52lnUyqS7TfwKUthCJ1VAN8awsZ FjVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gbURIuvse54P9BFOlXt9zKomDjy1RPr+C38Q8Un5hZo=; b=hdEOcxQRi4D/8+xDqhlmLiWyFW2FjuRf/4wiGemsjEJmxqvd2dDfjrwz3BinuuQKXn jN2SNxHwSofBYCRwCfyE8cc8oTfwDm29kN4mXHiMBa9c8cBHe0sfGfU2QHnq8XLwoIpg LIBVxDlfrCjKYS16nrVx2cMv8uMKza77eKCF5PrydPD63EHJZP9lL0NZn3YLrdb5m27t Byy0BUpKuCp/EE7P3Sky6xpm/sMRwjEbR7qyRSyEdm8BduqPW+tU5I/gG0IxrhrD1BXV 6jFNdaEczuLhLCG6wMUEPsY/+Us2Arur37bftScw88IZLBhIqebtamO2uw2oAXadYR5w 9z9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0wDWFAou; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si28220otc.189.2019.12.09.08.17.13; Mon, 09 Dec 2019 08:17:25 -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 header.i=@kernel.org header.s=default header.b=0wDWFAou; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbfLIQQl (ORCPT + 99 others); Mon, 9 Dec 2019 11:16:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:54984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfLIQQl (ORCPT ); Mon, 9 Dec 2019 11:16:41 -0500 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B251920828; Mon, 9 Dec 2019 16:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575908199; bh=l4AhqF+61Jiy/j68RJXORhPY3suI4I2IVJ52J64y4Zk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0wDWFAoulgr5XplI38skCakA+bNiEcj2Wxof1qA3rXeM9rIeY4K0yEcqH3yvjr05P QIGUWPh6AIJCl7capcigI94Qpb2MYx7Ja+ANKu/yNtAKWaChuWo/kjXO4LCf5i+dRa XHkcsS0d1WFvuMnWFd56LGf7qF4UGCmZm6SHt7lg= Received: by mail-qk1-f180.google.com with SMTP id v23so13563567qkg.2; Mon, 09 Dec 2019 08:16:39 -0800 (PST) X-Gm-Message-State: APjAAAXIAKnW6A0hfaI7t6Vh7HPGUTtMSOfFxMYyg+r5j7Ny+cAqXnz7 IZAA+SUip30trvJbj/39EdOrnC+EgoPZ8doxng== X-Received: by 2002:a37:85c4:: with SMTP id h187mr28125112qkd.223.1575908198803; Mon, 09 Dec 2019 08:16:38 -0800 (PST) MIME-Version: 1.0 References: <20191205002503.13088-1-masneyb@onstation.org> <20191205002503.13088-5-masneyb@onstation.org> <20191209005436.GA13647@onstation.org> In-Reply-To: <20191209005436.GA13647@onstation.org> From: Rob Herring Date: Mon, 9 Dec 2019 10:16:26 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/7] dt-bindings: Input: introduce new clock vibrator bindings To: Brian Masney 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 8, 2019 at 6:54 PM Brian Masney wrote: > > 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. That sounds like a PWM then... Rob