Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp85322ybk; Tue, 12 May 2020 16:10:20 -0700 (PDT) X-Google-Smtp-Source: APiQypJcli9zSXgbvIOTUhiTlar2c20fSaS+MAIMc1JVHiwqQqcBxXC1o2janKlY5nRzKZUUglCr X-Received: by 2002:aa7:d513:: with SMTP id y19mr20732334edq.367.1589325020043; Tue, 12 May 2020 16:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589325020; cv=none; d=google.com; s=arc-20160816; b=e5i6ZvJLWXzSIPQ0esiW/lgRG1x2gawpfOqTX+SXf2tpwa4lwKI6kvW3djuFlQ6iQ+ ZW2WtgckSImRzAxraB/t3ItWaISEZhNBAIGvqPgyeNzFOhU1qaqbKMHRvLf0D9s+peUN gVFY9GCDzqv8hVNl2e6a6L2GSXA+QjQ1HXQOJRTjC5WvS9+wsCzYZUROuncYL9dJB93p 94giF3UzX9TssimtuDEpXUsOh2geKT5H5PBKxNN0tVVQAHJyWWBtyVEHYF7ETwPrjsPd DTiRzm2KZs/Wb23FamSIJ69XRr6CUxowif8FJM3p7jLbLLoMWVXSDUPSkDXBF30hcjaX hAOA== 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:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=PNiGDixUDSq/ail6M4chV/3UEsE9jTssfk6F+dOxHoU=; b=fFB1tCawvWKUtD1EU6xLvi5VssxR9AxlqtCXD7QETnuymy1vlY+xVFdJALWHuHKclJ RePpgiSqaTn70fudKZ8I4mvjFY7duLpcgoX9wKTU10o3q9nfO0D+vBYgu21ftPm+TnGS Lz+jf6bPF6Iw7A5q3ZtXV3aU5nLbAjIF6JI/AFhYdJi0FyidD0bWOYdbfNeKRTg9LIA6 +U4mDky9d/ajADODHJRLG8+Ft1fFj66Ehw983vHDS1hJZiVFpc+sfj6i02fcPZx79wWm 1Rs2FOcDSrxAvN7a7RvJ5oNBOmFcRUazzYuv1b4c/+c6NDLi3KFRNpiGIJ+lb7SIyNrw bYAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=MbiVsmNq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si8122475ejr.170.2020.05.12.16.09.56; Tue, 12 May 2020 16:10:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=MbiVsmNq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731344AbgELXGA (ORCPT + 99 others); Tue, 12 May 2020 19:06:00 -0400 Received: from vps.xff.cz ([195.181.215.36]:42250 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727104AbgELXF7 (ORCPT ); Tue, 12 May 2020 19:05:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1589324757; bh=blZoiLTu+A/avnSXLStZACMQViZsw7dUh1Z6i4t2+kc=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=MbiVsmNqQbA3s6tCEZDKId9/06UVSeWvW3s2p5J+RiuGPnl2vmJ23ft11kWJu1pe3 9j9B+V77r87Y6tThPEuo6W7svzgEbvQaZcoaRMYtWwj9aHdsEfiTByqxM6d3r+D5xJ fK5AiiQOLtJPtWhlb3tG0auFZF432GWb7dAZwNd4= Date: Wed, 13 May 2020 01:05:57 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Dmitry Torokhov Cc: linux-sunxi@googlegroups.com, Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Luca Weiss , Tomas Novotny , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring Subject: Re: [PATCH v2 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios Message-ID: <20200512230557.zvdgwhbqygc2fufv@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Dmitry Torokhov , linux-sunxi@googlegroups.com, Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Luca Weiss , Tomas Novotny , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring References: <20200512222205.1456300-1-megous@megous.com> <20200512222205.1456300-2-megous@megous.com> <20200512225212.GE89269@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200512225212.GE89269@dtor-ws> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 03:52:12PM -0700, Dmitry Torokhov wrote: > On Wed, May 13, 2020 at 12:22:02AM +0200, Ondrej Jirman wrote: > > It is possible to turn the motor on/off just by enabling/disabling > > the vcc-supply. > > > > Signed-off-by: Ondrej Jirman > > Acked-by: Rob Herring > > --- > > Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/input/gpio-vibrator.yaml b/Documentation/devicetree/bindings/input/gpio-vibrator.yaml > > index 2384465eaa19..c700b640bd53 100644 > > --- a/Documentation/devicetree/bindings/input/gpio-vibrator.yaml > > +++ b/Documentation/devicetree/bindings/input/gpio-vibrator.yaml > > @@ -24,7 +24,6 @@ properties: > > > > required: > > - compatible > > - - enable-gpios > > Hmm we need at least one of the 2 (gpio and supply). Should we encode it > in the binding? Not sure how to encode either one or the other property being required, but not both at once. Maybe I can add a supply-vibrator compatible to the driver and binding and make requirements dependent on the compatible? > Also, in the dirver code, I guess we need to switch to have regulator > optional (so we are not given the dummy one) and bail if neither > regulator nor GPIO is found. Though nothing bad will happen in the driver if binding will lack both of these. The driver will just not control any HW, so at least it's failsafe as is. regards, o. > Thanks. > > -- > Dmitry