Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4459311ybb; Tue, 7 Apr 2020 07:56:14 -0700 (PDT) X-Google-Smtp-Source: APiQypI0EjXpslyd5W42vWBplyxBVdnHq/CG3QBSXSWRU1Mjl1Eo9F2tJ6jxTh8AgdZLmgwQOXwr X-Received: by 2002:aca:3c82:: with SMTP id j124mr2075106oia.89.1586271374875; Tue, 07 Apr 2020 07:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586271374; cv=none; d=google.com; s=arc-20160816; b=QAPkDe2iWIG6uECkpbm1Q1Cfyy2uQMrP/vBU9/exLPUfukfbRpwrl/QBDgMBOeUIgH NZ2kpATC/b2/JOGqJWPt6jMdQghSIeoHl1lXblLnvFJuaocSa7CB3fG5K9jGSBOJp19u R3Qvhiau0/e4rNvkBvquuDMuvGJMcz8kN1DdTMOXdZnqMHU2wd7yLyYEVawOeltMVAzd RomUAHqFu9LTid159IJ2YZjoMTdZgGFJd6aJkKGK7H05Qsn4aVej0Na6KJ3kM36YApPJ 0elUIPWSIR/vn11T4y1YTzJZMwxVCJ+uStArOq+dG5HYEEuBL0C3+KcQQz7iTifhKtHa lPPw== 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; bh=wTlciahRyyM6loYZRnki7b6y3qMb0L+IsExg8CCDRto=; b=l5j42Zg47dgiyFOCZk+Xv89e9MVvriA5ADSO/AHon1RIE42Tk/QJMXJSSg3ZLxe2Oa Y6aWxVH1uuZPH18g1kbkqwryyaw1ftXBpsAsXcEMqK4xtXgWMsy9jS4Lq/BI5f7ron7T mSxNiTOmCOsIUqUs5jaGuYudaPiClbcFdGEoY/frAzmZVYyI5XW58ScfR7UzUCxJ0Bd2 jll2I/icGWEqOanraMwAyI1arljpcgB5rTr726K01sh0vtTzmWzvbN9XW5Ezd0UUCuw+ 3DsnnaB3PtopcCXdVPujZ17gVC6spTIu4Ia3FnaOvvAPhmHh2sS/Q223KyXo29HyHq2F YtkA== ARC-Authentication-Results: i=1; mx.google.com; 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 d63si732582oib.224.2020.04.07.07.56.01; Tue, 07 Apr 2020 07:56:14 -0700 (PDT) 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; 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 S1729287AbgDGOzW (ORCPT + 99 others); Tue, 7 Apr 2020 10:55:22 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:42197 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729268AbgDGOzW (ORCPT ); Tue, 7 Apr 2020 10:55:22 -0400 Received: from kb-xps (unknown [78.193.40.249]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id DE9D2240009; Tue, 7 Apr 2020 14:55:11 +0000 (UTC) Date: Tue, 7 Apr 2020 16:55:10 +0200 From: Kamel Bouhara To: Maxime Ripard Cc: Dmitry Torokhov , William Breathitt Gray , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH 2/3] Input: rotary-encoder-counter: add DT bindings Message-ID: <20200407145510.GC1489441@kb-xps> References: <20200406155806.1295169-1-kamel.bouhara@bootlin.com> <20200406155806.1295169-3-kamel.bouhara@bootlin.com> <20200407094159.xtbhtsxorvs2g22c@gilmour.lan> <20200407110339.GA1489441@kb-xps> <20200407142238.ik67isetbggn2rh3@gilmour.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200407142238.ik67isetbggn2rh3@gilmour.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 04:22:38PM +0200, Maxime Ripard wrote: > On Tue, Apr 07, 2020 at 01:03:39PM +0200, Kamel Bouhara wrote: > > > On Mon, Apr 06, 2020 at 05:58:05PM +0200, Kamel Bouhara wrote: > > > > Add dt binding for the counter variant of the rotary encoder driver. > > > > > > > > Signed-off-by: Kamel Bouhara > > > > --- > > > > .../input/rotary-encoder-counter.yaml | 67 +++++++++++++++++++ > > > > 1 file changed, 67 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/input/rotary-encoder-counter.yaml > > > > > > > > diff --git a/Documentation/devicetree/bindings/input/rotary-encoder-counter.yaml b/Documentation/devicetree/bindings/input/rotary-encoder-counter.yaml > > > > new file mode 100644 > > > > index 000000000000..a59f7c1faf0c > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/input/rotary-encoder-counter.yaml > > > > @@ -0,0 +1,67 @@ > > > > +# SPDX-License-Identifier: GPL-2.0 > > > > > > Bindings are usually used by other OS's, so you should consider > > > putting it under a more permissive license, usually that would be GPL2 > > > and the BSD-2-Clause > > > > Well to be honest I just looked into an existing binding and I guess > > the wrong one :). > > Not the wrong ones, but the old ones :) > > It's painful to change a license on existing files, whereas it's > pretty easy to mention it during review. > Alright. > > > > +%YAML 1.2 > > > > +--- > > > > +$id: http://devicetree.org/schemas/input/rotary-encoder-counter.yaml# > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > + > > > > +title: Rotary Encoder Counter > > > > + > > > > +maintainers: > > > > + - Kamel Bouhara > > > > + > > > > +description: > > > > + Registers a Rotary encoder connected through a counter device. > > > > > > You shouldn't really describe the action here, but more what the > > > binding is about. The registration will not depend on the presence of > > > the node following that binding, but rather on whether or not the OS > > > that uses it has support for it. > > > > > > > Then shall it be better with just : > > "A rotary encoder device using a generic counter interface." ? > > The generic counter interface is a Linux-only stuff though, some other > OS might want to implement something else. Something like "based on a > counter"? > Indeed, that's fair enough. Thanks. > Maxime -- Kamel Bouhara, Bootlin Embedded Linux and kernel engineering https://bootlin.com