From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD84BC33C8C for ; Tue, 7 Jan 2020 12:03:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 958972080A for ; Tue, 7 Jan 2020 12:03:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=onstation.org header.i=@onstation.org header.b="GA0fdnhn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727834AbgAGMDT (ORCPT ); Tue, 7 Jan 2020 07:03:19 -0500 Received: from onstation.org ([52.200.56.107]:59186 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726690AbgAGMDT (ORCPT ); Tue, 7 Jan 2020 07:03:19 -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 C829B3EE6F; Tue, 7 Jan 2020 12:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1578398598; bh=G1NgPRmqbaXrZt93MHof7xiFvsWe6mnmfknmDsCSABw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GA0fdnhnOSDm5j34rjSDsYJaMexcgJedMapRAkvYbkjiOTfLhhDYqXNnvO57AAsK1 kDxUvPA5pzm4TWkzT+gSXhXnYN7pB+YqvFyQvCrwhdx59Vi9S1z2O4Pnc+JBa1MprS bu2enSjcwniB+kfLJFfY8gNVtjf6Ew9/NeesMMq0= Date: Tue, 7 Jan 2020 07:03:17 -0500 From: Brian Masney To: Stephen Boyd Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 4/7] dt-bindings: Input: introduce new clock vibrator bindings Message-ID: <20200107120317.GB8083@onstation.org> References: <20191205002503.13088-1-masneyb@onstation.org> <20191205002503.13088-5-masneyb@onstation.org> <20200105083534.01EB12071A@mail.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200105083534.01EB12071A@mail.kernel.org> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On Sun, Jan 05, 2020 at 12:35:33AM -0800, Stephen Boyd wrote: > Quoting Brian Masney (2019-12-04 16:25:00) > > +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>; > > I'm still trying to wrap my head around this. I think we can have a pwm > provider in a clk controller node (so imagine &mmcc has #pwm-cells) and > then this 'clk-vibrator' binding wouldn't exist? Instead we would have > some sort of binding for a device that expects a pwm and whatever else > is required, like the enable gpio and power supply. Is there an actual > hardware block that is this way? Does it have a real product id and is > made by some company? Right now this looks a little too generic to not > just be a catch-all for something that buzzes. So have some of the Qualcomm clocks like this one register with both the clk and the pwm frameworks? I feel that approach would better represent the hardware in device tree. If we did that, then the pwm-vibra driver in the input subsystem could be used. Brian