Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3439844ybb; Mon, 6 Apr 2020 08:58:57 -0700 (PDT) X-Google-Smtp-Source: APiQypJ86Eydezf1qkXHDpYvLz82Nsnq58Rn4/vVMLcjxODm0NVJHVMYLBanPGgpOJsoho1+mhem X-Received: by 2002:aca:b144:: with SMTP id a65mr40413oif.75.1586188736983; Mon, 06 Apr 2020 08:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586188736; cv=none; d=google.com; s=arc-20160816; b=Swl/qGDZRLQrXy6s/h2Gfs+jdCmF7HzzAT+wC+u6LXKmhhs69VU5iqfJ/8U5cwmckE T6j+huxpVHpPqWXfjjgfha+tSyKXLz0zHCM77WlKIJ3BZUbol5lrCeN4bt1wHTQYXVti v8prHycZd3DU6JP9BLlkEf92BeG8O7pkU7zK0NWBUKO75RKt42U4maYVZ2KdwU5Teq26 vzxZvrEHJByfRbV09a1Aek22Zyzz/fSPJrB1RwloJ+qvlO1SoMTGgwdoSnbG1hrHZikd nuxPmZ4zLEFDY+6RcwZ8IEVl2lnxYO03PXBw/hGzQDVyk0K77oFHtxybJwTaGcSshSfM L96A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ia8UiWhGIdNEGvM2fOXICjT6B8Is2NF+n/PBXtc7wzk=; b=OZzZlH8NAC0fAkHxt3omqboURqJXchjwacTwWhVHERDOpKZSvMsf+mL9I0fUYvkPPu VSdSN0AaGgpusbMh19CKHRCCURHTI4l6rGCj32EEGultuMbT7pJT+X8FpnYVq/IYLLZ/ zXMStLQTkElRUnCExobmfQBuk9xj8lH0SE13hpodx6f0tmVnkMkBrgzeyNygpuVO38ik VywrsaB9x2JxhKTwB+l7wqulPDL3ALDURJlmaegoFY7U845tYLZkZ78wGzFUR73/N3TF W2IoOPtqG1h8HcrxZsjd3Wl0WuTaPzfKQLV5U5tI010I8UzzwiNrdzz0EGSsYuVOtSfV b52Q== 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 c13si7346574oiy.199.2020.04.06.08.58.44; Mon, 06 Apr 2020 08:58:56 -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 S1729159AbgDFP60 (ORCPT + 99 others); Mon, 6 Apr 2020 11:58:26 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35897 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728817AbgDFP60 (ORCPT ); Mon, 6 Apr 2020 11:58:26 -0400 X-Originating-IP: 78.193.40.249 Received: from localhost (unknown [78.193.40.249]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id B5283C0009; Mon, 6 Apr 2020 15:58:22 +0000 (UTC) From: Kamel Bouhara To: Dmitry Torokhov , William Breathitt Gray , Rob Herring , Mark Rutland Cc: 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, Kamel Bouhara Subject: [PATCH 0/3] Introduce a counter inkernel API Date: Mon, 6 Apr 2020 17:58:03 +0200 Message-Id: <20200406155806.1295169-1-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello everyone, This series introduce a basic inkernel API for the counter subsystem and add a new rotary encoder driver that use a counter interface instead of the GPIO existing one. See commit log in 0001-counter-add-an-inkernel-API.patch for further details. Kamel Bouhara (3): counter: add an inkernel API Input: rotary-encoder-counter: add DT bindings Input: add a rotary encoders based on counter devices .../input/rotary-encoder-counter.yaml | 67 ++++++ drivers/counter/counter.c | 213 ++++++++++++++++++ drivers/input/misc/Kconfig | 9 + drivers/input/misc/Makefile | 1 + drivers/input/misc/rotary_encoder_counter.c | 152 +++++++++++++ include/linux/counter.h | 27 +++ 6 files changed, 469 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/rotary-encoder-counter.yaml create mode 100644 drivers/input/misc/rotary_encoder_counter.c -- 2.25.0