From patchwork Mon Apr 6 15:53:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamel BOUHARA X-Patchwork-Id: 11475715 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A7A871744 for ; Mon, 6 Apr 2020 15:54:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 84F17248E2 for ; Mon, 6 Apr 2020 15:54:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729196AbgDFPyN (ORCPT ); Mon, 6 Apr 2020 11:54:13 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:35465 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729195AbgDFPyM (ORCPT ); Mon, 6 Apr 2020 11:54:12 -0400 Received: from localhost (unknown [78.193.40.249]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 009DC200014; Mon, 6 Apr 2020 15:54:08 +0000 (UTC) From: Kamel Bouhara To: William Breathitt Gray , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org Cc: Thomas Petazzoni , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, Kamel Bouhara Subject: [PATCH 0/3] Atmel TCB capture driver Date: Mon, 6 Apr 2020 17:53:17 +0200 Message-Id: <20200406155320.1291701-1-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Hello, Here is a new counter driver to support Atmel TCB capture devices. Each SoC has two TCB blocks, each one including three independent channels.The following series adds support for two counter modes: increase and quadrature decoder. As for the atmel clocksource and pwm, the counter driver needs to fill some tcb capabilities in order to operate with the right configuration. This is achieved in first patch of this series. Please feel free to comment. Cheers, Kamel Bouhara (3): ARM: at91: add atmel tcb capabilities dt-bindings: counter: atmel-tcb-capture counter counter: Add atmel TCB capture counter .../bindings/counter/atmel-tcb-capture.yaml | 35 ++ drivers/counter/Kconfig | 11 + drivers/counter/Makefile | 1 + drivers/counter/atmel-tcb-capture.c | 388 ++++++++++++++++++ include/soc/at91/atmel_tcb.h | 3 +- 5 files changed, 437 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/counter/atmel-tcb-capture.yaml create mode 100644 drivers/counter/atmel-tcb-capture.c --- 2.25.0