From patchwork Tue Apr 2 06:30:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 10881059 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 96A351669 for ; Tue, 2 Apr 2019 06:30:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C846286D5 for ; Tue, 2 Apr 2019 06:30:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F94A286E6; Tue, 2 Apr 2019 06:30:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0DA26286D5 for ; Tue, 2 Apr 2019 06:30:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JjrTLqjHzGO3ftk6OFbdsA8MMDd2RygS7EdETHva6Qg=; b=dP/qMGJ3gXAtuQ GxiQ0uidKohMiRtQ+lJjjQLFc3OVKkXuWbX4qaqgBa8oDHz+nd715h5XkuVJCWycSmtgd3fwyCN4u 1cwn6hXtg9h7IaE+rolkeq7o8aOEhfBsRlqklN1qCpcNziOG+1Umiik8T6xmWjKG2B6pYlegLBNap zyJda2sJupnDtxN4ZpAJTTP44Ea51u7eDSVGtvtvstA0D4EpUHJdvScXl47fYpVQMYZkykZmr976/ 513I/3IuSNnXLn8cAqcRdx1NJdcuPnGd7seM25k2dAuCM/lXA2MqPxiUOB63+9fIaEASGeKybcG0D k4XSgwetFQeg/ft0/JjA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBCw2-0007Zb-1y; Tue, 02 Apr 2019 06:30:14 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBCvz-0007Z0-Dl for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2019 06:30:13 +0000 Received: by mail-pg1-x543.google.com with SMTP id p6so6008176pgh.9 for ; Mon, 01 Apr 2019 23:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9BsIkZBYglgWK6GSpo0aZ/aTtxs6mxHN7TKHXjgH19w=; b=J3KMmyURzg8DeGMM5fCBb5O7IQPLqTE8ub/+e9g46rgM4dWjPbrr622Ll/K7l2kx3L hiRECEl2fztLifmV5Aw3FsFGshcfrLdlgHoQXqEGgO0uVlFLdz4w3S2GnMUKT0HPhPP2 3Vji6Bxk5MwrUYUPbwRs6/0Cn+Y5ac3pUDVg5bWmJrEKzX2cub3jXqU0VT6DyTrElb0r S3GgLiBF2fXjwnRLnZLm4SGlBlqRcOpIVQ26fXVnfjp00hWE6PYjSM/h5szHhNAlNGxs cU65ms9pRRf5wE2wAbsScI4pgkERCUks4kPtGB+dzxxucfWH+yRtQ50WFZXaqKRR3290 EGFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9BsIkZBYglgWK6GSpo0aZ/aTtxs6mxHN7TKHXjgH19w=; b=mT7kakAMs8d7nV1pWqngQ0m4JwHqFrL75fTj08QxrPYOd2m0FEzsOgaK8+8hhO/w0H AbYIH3ZWQssXvlXezesG/JVA5H2mBhvwVd9fyis05wuYg3ftBzzYQi8SrHviZ2RRbd74 +qgrL+a4vF++vbO2SUkjPhFXOghAagq9XrrHab8SkJy6SQ24VMT2bsL2BrG5bqAgaH5k 5CUGZZBuH8RltUSdKaQqphtsh38Sb9xAs6HTlNufQQMWygbAuxta3t05EpM7xRV/W9/l pea0pIxFRj0wm42fkzAP9aiE5aeKoCk1xeonzBK+EsTUKZJfjiG7EeZD1RsHfbmH8FhU o7VQ== X-Gm-Message-State: APjAAAVUVRh3Pe0klLKotUzd5/lMmHSxriM9GeZnC89KN6ieqnR/8BPN bkgWeans8y40qkRHExE/XjY= X-Google-Smtp-Source: APXvYqx0obJ8Ofk/95VNnfqwJ+f0hgu5fXiFV5AoyB+rJy+OxFNtuGvsiF99EFeuOhGjc5ANiU5clA== X-Received: by 2002:a63:ff18:: with SMTP id k24mr66050078pgi.140.1554186610293; Mon, 01 Apr 2019 23:30:10 -0700 (PDT) Received: from localhost.localdomain ([2001:268:c0a5:4ce0:c70:4af9:86e2:2]) by smtp.gmail.com with ESMTPSA id a17sm19327289pfj.123.2019.04.01.23.30.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 23:30:09 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Subject: [PATCH v10 00/18] Introduce the Counter subsystem Date: Tue, 2 Apr 2019 15:30:35 +0900 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190401_233011_493576_B83C64B4 X-CRM114-Status: GOOD ( 12.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, benjamin.gaignard@st.com, linux-pwm@vger.kernel.org, linux-iio@vger.kernel.org, patrick.havelange@essensium.com, thierry.reding@gmail.com, pmeerw@pmeerw.net, lars@metafoo.de, daniel.lezcano@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, david@lechnology.com, William Breathitt Gray , robh+dt@kernel.org, tglx@linutronix.de, fabrice.gasnier@st.com, esben@haabendal.dk, shawnguo@kernel.org, linux-kernel@vger.kernel.org, leoyang.li@nxp.com, knaack.h@gmx.de, akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org, jic23@kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Changes in v10: - Fix minor typographical errors in documentation - Merge the FlexTimer Module Quadrature decoder counter driver patches This revision is functionally identical to the last; changes in this version were made to fix minor typos in the documentation files and also to pull in the new FTM quadrature decoder counter driver. The Generic Counter API has been and is still in a feature freeze until it is merged into the mainline. The following features will be investigated after the merge: interrupt support for counter devices, and a character device interface for low-latency applications. Benjamin Gaignard (2): counter: Add STM32 Timer quadrature encoder dt-bindings: counter: Document stm32 quadrature encoder Fabrice Gasnier (2): counter: stm32-lptimer: add counter device dt-bindings: counter: Adjust dt-bindings for STM32 lptimer move Patrick Havelange (7): include/fsl: add common FlexTimer #defines in a separate header. drivers/pwm: pwm-fsl-ftm: use common header for FlexTimer #defines drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines dt-bindings: counter: ftm-quaddec counter: add FlexTimer Module Quadrature decoder counter driver counter: ftm-quaddec: Documentation: Add specific counter sysfs documentation LS1021A: dtsi: add ftm quad decoder entries William Breathitt Gray (7): counter: Introduce the Generic Counter interface counter: Documentation: Add Generic Counter sysfs documentation docs: Add Generic Counter interface documentation iio: 104-quad-8: Update license boilerplate counter: 104-quad-8: Add Generic Counter interface support counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation iio: counter: Add deprecation markings for IIO Counter attributes Documentation/ABI/testing/sysfs-bus-counter | 230 +++ .../ABI/testing/sysfs-bus-counter-104-quad-8 | 36 + .../ABI/testing/sysfs-bus-counter-ftm-quaddec | 16 + Documentation/ABI/testing/sysfs-bus-iio | 8 + .../testing/sysfs-bus-iio-counter-104-quad-8 | 16 + .../bindings/counter/ftm-quaddec.txt | 18 + .../{iio => }/counter/stm32-lptimer-cnt.txt | 0 .../bindings/counter/stm32-timer-cnt.txt | 31 + .../devicetree/bindings/mfd/stm32-lptimer.txt | 2 +- .../devicetree/bindings/mfd/stm32-timers.txt | 7 + Documentation/driver-api/generic-counter.rst | 342 ++++ Documentation/driver-api/index.rst | 1 + MAINTAINERS | 15 +- arch/arm/boot/dts/ls1021a.dtsi | 28 + drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/clocksource/timer-fsl-ftm.c | 15 +- drivers/{iio => }/counter/104-quad-8.c | 782 +++++++- drivers/counter/Kconfig | 60 + drivers/counter/Makefile | 10 + drivers/counter/counter.c | 1567 +++++++++++++++++ drivers/counter/ftm-quaddec.c | 356 ++++ drivers/{iio => }/counter/stm32-lptimer-cnt.c | 361 +++- drivers/counter/stm32-timer-cnt.c | 390 ++++ drivers/iio/Kconfig | 1 - drivers/iio/Makefile | 1 - drivers/iio/counter/Kconfig | 34 - drivers/iio/counter/Makefile | 8 - drivers/pwm/pwm-fsl-ftm.c | 44 +- include/linux/counter.h | 510 ++++++ include/linux/counter_enum.h | 45 + include/linux/fsl/ftm.h | 88 + 32 files changed, 4877 insertions(+), 148 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-counter create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-104-quad-8 create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-ftm-quaddec create mode 100644 Documentation/devicetree/bindings/counter/ftm-quaddec.txt rename Documentation/devicetree/bindings/{iio => }/counter/stm32-lptimer-cnt.txt (100%) create mode 100644 Documentation/devicetree/bindings/counter/stm32-timer-cnt.txt create mode 100644 Documentation/driver-api/generic-counter.rst rename drivers/{iio => }/counter/104-quad-8.c (44%) create mode 100644 drivers/counter/Kconfig create mode 100644 drivers/counter/Makefile create mode 100644 drivers/counter/counter.c create mode 100644 drivers/counter/ftm-quaddec.c rename drivers/{iio => }/counter/stm32-lptimer-cnt.c (51%) create mode 100644 drivers/counter/stm32-timer-cnt.c delete mode 100644 drivers/iio/counter/Kconfig delete mode 100644 drivers/iio/counter/Makefile create mode 100644 include/linux/counter.h create mode 100644 include/linux/counter_enum.h create mode 100644 include/linux/fsl/ftm.h