Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1710614ybl; Thu, 5 Dec 2019 05:57:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxeYH+QudtSsD0Kx/Bww8e84L8ZASHwkU7ukQhHJjcju1OzO7suAbRXyZXApG63N9yEGVzE X-Received: by 2002:aca:fc06:: with SMTP id a6mr1301191oii.12.1575554232992; Thu, 05 Dec 2019 05:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575554232; cv=none; d=google.com; s=arc-20160816; b=YrHvuvJFkrHscygeMziK7S3zbrxNLXouum9NRrSLzHFYKVzWJuStVp15/p4qO+oNP+ dkRXDkOvkgtsZwZCk1kOQyekudAmB1vlM/toWnJ50AMPohKfVB7Td24a1LzNYcpoqxLy 3H6YRfp7Fv6Ek7dVk+0hO0HhBnBMZbnh6h7VyCONdiL6xqO65CaslYXfOHTPPpwvL5gB I9du8WjXupUFLht2N8huSO9Q5DUir7FW6M6Q8fcR1XlEZtwmiZwPwAbX/U7Bq208FcSr 6kEYVWvH75L0RwBf4C81U3K91yJ6olmRbvTicrH4L2u/yxnhhR+PRJuP3Pv1XvNvibgT I6jQ== 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=eD5OR5CXS6u5kHHdB1jC7CEC9gWUsZVtp0qZI58ON3I=; b=Tib1v1tK/DrBb2NkI//+8NFk+EjDC/HAmxfzOgfwQMQpsMv5RVroVtin7HyWPglzXo C2rghum8T4A/K6rJriDitcLtzwBfKigzdoaSP3Ff89Nxo3XnvDkfbs1f2ZI6+KxzSpk+ aozyqzQtSuVoXjLwgmYOfrmVfjaBXhCjfpF6yQRaCOiOU/5V4dktWrmKsAZEB5WARHrg iyFuZMuKZGClBoKNkFJS/vDRsJcZ4GoFnQKVzIXnFkM5GZceHCHfP7Vb6XcLBDvXnPO8 bh6/kKpLoSuM0aNo/n3hL/3+xV799PFahWPAjSFSq3oyx4drB40emT1dsB2N7DlJBrfR VtgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yg7lntnX; 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 19si4481175oiq.128.2019.12.05.05.56.56; Thu, 05 Dec 2019 05:57:12 -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=yg7lntnX; 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 S1729430AbfLEN4Y (ORCPT + 99 others); Thu, 5 Dec 2019 08:56:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:39286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729099AbfLEN4Y (ORCPT ); Thu, 5 Dec 2019 08:56:24 -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 41D1422525; Thu, 5 Dec 2019 13:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575554183; bh=SI5/UqDvOLdW/ebXgeRPP0F1wEDuikwE8BLTviwj7zI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=yg7lntnXFYlbDO+rC98Zawl9736UXE/JoMSwLlGu7DSzz7ZIVo1Fn+kvVe5wFj8oX ORE1V1NZRCFe2OD/LgTnjmhjR3dknHNDXRNDSgqnudzCaVzxk3wXXypAPX4W9yBJo/ IvY/jADxsCi/U5vhAWde20l3rRE8DKIdnpbdYnKY= Received: by mail-qk1-f180.google.com with SMTP id g15so3351553qka.8; Thu, 05 Dec 2019 05:56:23 -0800 (PST) X-Gm-Message-State: APjAAAXnxAyCdpUF/kT0rPEg9X/NRMCpzg9nVS5m0TdkobzL+7eVYT7R K4mWvs+KgtYlesl2KJcDMSb2LPvlcoSLOk0E9w== X-Received: by 2002:ae9:f205:: with SMTP id m5mr8502354qkg.152.1575554182339; Thu, 05 Dec 2019 05:56:22 -0800 (PST) MIME-Version: 1.0 References: <20191205002503.13088-1-masneyb@onstation.org> <20191205002503.13088-5-masneyb@onstation.org> In-Reply-To: <20191205002503.13088-5-masneyb@onstation.org> From: Rob Herring Date: Thu, 5 Dec 2019 07:56:10 -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 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. > + > + clock-frequency: true Given the frequency is variable, what does this mean in this case? > + 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 >