Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4322307ybl; Mon, 9 Dec 2019 08:56:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwTzLesK0MGAZj0ormw44fvxKRZYD0OSlBSPIKck1B2+IWtbPTKw6lPwnQ0UwY94LclbIqL X-Received: by 2002:a05:6830:50:: with SMTP id d16mr23360706otp.155.1575910601554; Mon, 09 Dec 2019 08:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575910601; cv=none; d=google.com; s=arc-20160816; b=WMluKawsV/IAQCGleG44ZR/e/sgTNWPV8DWbbUf5HDAM64Pr6uFFAnbmcTUmtqWLdl MvY8sn1b8PG/BwW/TQfcCpvr9Wxn+FZaiQ30plIVISCxH7k8JFDECFRVgkUAJiAR+t16 l08mQVcOIfjzwLT827e7Bg3RGkCZIuBGR0dZQrMQD28ROM/avGohLBeCuL1iUE+sDoxP z/PxOl4TCowdtwK44rQ28/TkcZP8/PUhR/DnDpgnWUs4wsSyHgeWkI6lq+ZWxB4JRRLK g2mTu+RvHjixbOt2o2q3yLqLm/v4x3nRERzCioouuQ7ZPZHZUOW513EfsK8JrZDST1/X BYJw== 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=TAjCFxEWhFeIviTd6L4eZXNDR+LI0cpC/XErlPSwiIw=; b=xbpRprR423g3tj2sH2eifOmyJ0oxDYGTPWAS6ERfwMa/xKa5N0D1pUi8AmPzsVmreJ YTXY6hapUZgIRCqYa4Sxh9BFJncshqfirZiUJAIWqGpWrnkQUAk80RLv4mMWoPz001VJ Fv/iv/vaEIz7vKNl1sZxPwuoql1mS51iKcM+YKxrXuHzMnGkzJaLkLTWCmPOPV+yQoE/ VYUvAj4mRoPWjFnwn88dA0pO+7RvyiJ+eNRYkU8BB6ooDtMkigCpgkdCJ9bSj1+pYb/X 44uPrdokNcFMF94ilkFc7//E8oq+O3m+6Q+p2rD8TtJBRwYeTmACWJGjmw2ATRR1apBT 8uMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b="pv/qQ4oR"; 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 a14si140785otk.2.2019.12.09.08.56.28; Mon, 09 Dec 2019 08:56:41 -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="pv/qQ4oR"; 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 S1726605AbfLIQ4A (ORCPT + 99 others); Mon, 9 Dec 2019 11:56:00 -0500 Received: from onstation.org ([52.200.56.107]:39240 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfLIQz7 (ORCPT ); Mon, 9 Dec 2019 11:55:59 -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 C5F0A3E8F7; Mon, 9 Dec 2019 16:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1575910558; bh=IOou9TpV+L1zTliwsDvEweGpQGlqyMJMFaeFEvowmJk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pv/qQ4oRIKZXzsuVDiX+sBNfpA+09Ne97DInXCT6Wpym9V3Dt113bUDVb+iNGWMcJ CGoTHeGIVsZudI8+KLLM3KRF6QLbX/a+6PX6nB4wzjlMD3QIs4wDD5pFGjCYtu8Zjd tKkd8akm416FTOfVJRHg5lSyXOC4lRlSfm8c5MsA= Date: Mon, 9 Dec 2019 11:55:58 -0500 From: Brian Masney To: Rob Herring , Stephen Boyd Cc: 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 , Linus Walleij , thierry.reding@gmail.com Subject: Re: [PATCH 4/7] dt-bindings: Input: introduce new clock vibrator bindings Message-ID: <20191209165558.GA3212@onstation.org> References: <20191205002503.13088-1-masneyb@onstation.org> <20191205002503.13088-5-masneyb@onstation.org> <20191209005436.GA13647@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 Mon, Dec 09, 2019 at 10:16:26AM -0600, Rob Herring wrote: > 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... Yes... See this message from Stephen with some more background information about why this is in the clk subsystem: https://lore.kernel.org/lkml/20190627234929.B78E520815@mail.kernel.org/ Brian