Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4430506ybb; Tue, 7 Apr 2020 07:23:40 -0700 (PDT) X-Google-Smtp-Source: APiQypIdHLlySO0KwNDPs7Cm7DRX8gTs9F+msvxXErH/tnFkwgsp6/zmm95x8a+YmCDjTT0Ves2M X-Received: by 2002:a9d:7a9:: with SMTP id 38mr1783475oto.60.1586269420653; Tue, 07 Apr 2020 07:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586269420; cv=none; d=google.com; s=arc-20160816; b=lZcywbrfcdMAOsMC9QOOBIHeMn0mYca93WsLR8zagZlqLAkJhBBOq9mG2zREoDxyXT CPClGSG+0r58FPW7z1BqPa/Xpq1+koDOEeoHJydRjbbIVpA3Pj+Mj8Nxwrh1wcVixEEY K4Dv17szDxSHhLZAaotnFB94YmXFS/gpIxPwMjFJsBbYGSNAS8rhI2DuKNH46OGp93bm pfu3pw8eyKxJ+eJb7vBOZA8euS12x1UEUNlwaPRWd72YgQTiTStevxUk3p6OtNFbQXXq ILA6OhxrBZttsUepDge31mQJ/f/kHoDPUdbq/uhJjMWzdKMp0guOnv/bKDjdjVCtUDGC RaIw== 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:dkim-signature; bh=WZZOGhHApCSV1L4UtRpjl8cMVmsLTISqTdlhGk83/tE=; b=RZM4tAbPnVJNNojS5lzMqPgPVtTCwWNJQprki3HGN7FXy18pDmbUh9uX+lH4FrsX3s BsGeFcfWxtXGDwKFdi3T4+UGSXHHjUdg0C8hMMQhqxeJCFlSGH2dc+OsFoNQ50RChYCd YjFrB2kGRT+Vq1SIi9AlC2q/7m1vdFL4gxofSDH6zLGvS7sh1XR9cbgMGG1QDBTXDoky Al0f/GZxfjpBEID2t+3MhQRCQdKo9r4Ug8ijtIBzAqr55S3PQUEANOn0ZzJxLcl+x7Pg sXb7maswGRqRXEiDMxu6Eh8eefDAmzUQvAUBkdaVWpnHR1ufZkWNSaKy5OIClCfLV3zT T0ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=wdop+Ryp; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="u7Ar+N/L"; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l131si1096737oih.10.2020.04.07.07.23.22; Tue, 07 Apr 2020 07:23:40 -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; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=wdop+Ryp; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="u7Ar+N/L"; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729062AbgDGOWq (ORCPT + 99 others); Tue, 7 Apr 2020 10:22:46 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:57187 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728776AbgDGOWq (ORCPT ); Tue, 7 Apr 2020 10:22:46 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id E14165800FB; Tue, 7 Apr 2020 10:22:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 07 Apr 2020 10:22:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=WZZOGhHApCSV1L4UtRpjl8cMVms LTISqTdlhGk83/tE=; b=wdop+RypTY1L95rFhllqkRhtWYgEAFYClfhAPgL7V8o qMlLR5SE6GWLIa1ZSoQ79+Z0W44kt9OiHmZ3CvUvzPb9jnW8UTnki0vTUO07qO/M IH6Du1/ArFs7vqpgdxcGBcasaf/y7tUY/Qy7R0LaqaiV+vdq3gWWG69cu1/Db2d2 tSYjGHL62GfQ854q3eGFOokJ2aVePEbHQyaKzerNy29ZfdIMewn63SjOEecLL7SC keWTudwlRGyEJlyAtfcF1aiupSS+Bt6ZxO/lAXvD3cJrOSGcwc7fHwYCw97oo/XP B09l3Pen7zFk/wx6bMLUR9LR0LM1186/fRdBfVdHAjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WZZOGh HApCSV1L4UtRpjl8cMVmsLTISqTdlhGk83/tE=; b=u7Ar+N/LF2C6DeXvp3SLmb v1Aty03403E8GzS/l7ZKt6hE1iFd1OjUSMadk8vZhO0FHQa5CTGzPnz2qMBxScGh VM3E1KLQdyBaBxleBRWqGLabrDiHLEfgPjVNddjZEVwztIaWE4P5pY5cKXNJff1G m4v7B7IbDgM7MLt99bro9rRdWjB2MqQrm0rgPulYrJ6qwW00bE6wZ8PNYhUPXcpA NpZlR0RsXbdqFhNsP68Mf/Bl8eF9YLBED3W7NW8d0Dgna7s6UMubPnxtj7zz17PK db20zhWWFiQbOMl2mISNojJH+Obdtsrx2/DuH48sMTHeAJRm9Yrwpn1QMT9SoKvA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehgdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucffohhmrghinh epuggvvhhitggvthhrvggvrdhorhhgnecukfhppeeltddrkeelrdeikedrjeeinecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvse gtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 0064F3280066; Tue, 7 Apr 2020 10:22:39 -0400 (EDT) Date: Tue, 7 Apr 2020 16:22:38 +0200 From: Maxime Ripard To: Kamel Bouhara 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: <20200407142238.ik67isetbggn2rh3@gilmour.lan> References: <20200406155806.1295169-1-kamel.bouhara@bootlin.com> <20200406155806.1295169-3-kamel.bouhara@bootlin.com> <20200407094159.xtbhtsxorvs2g22c@gilmour.lan> <20200407110339.GA1489441@kb-xps> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cmea35pc2hxci5l3" Content-Disposition: inline In-Reply-To: <20200407110339.GA1489441@kb-xps> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cmea35pc2hxci5l3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. > > > +%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"? Maxime --cmea35pc2hxci5l3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXoyMrgAKCRDj7w1vZxhR xaGoAP0Rk4zze3+M3tv+xBVv0PmMPLNoqDCmIQF259PcWDF2FQEAovMUQKsz/fRB 40V3ClfoNka1Z3kbhlkiwiHDy75R/Q0= =HdTF -----END PGP SIGNATURE----- --cmea35pc2hxci5l3--