Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4036240imb; Wed, 6 Mar 2019 03:46:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwX8PRdlNgLrYhea0uqQkRwTCIQvT69m4kBxhmTTzU91cIX7bUa9t6LURRJwhoYhpYlQyDJ X-Received: by 2002:a17:902:1122:: with SMTP id d31mr6553039pla.246.1551872792931; Wed, 06 Mar 2019 03:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551872792; cv=none; d=google.com; s=arc-20160816; b=jR3X7hiTJe7InaIA+3eemhwrd9a53bHgwr/geCLQ7mzLEpIpePu5CGKBptTWpSER9e yeE+Aa0yaJHt6Os9/jDheE7pPqd5dZGfcfJ2rDyIHif/Mub+6M1dR+mC1LGhCznSZEkX yhwjixgdD1kiIgoMCfIfn5l+MkGA76VF6H1Q94LTF8bitU9zzPh/Xqsix76C6qvSzcT/ giJ0rE0viPTu83afqR0AMOIN9mUrbgiPU4InW1ePnfD/r/Se5q7tI/ThzNs/WXubrafF Ob3JxaQAP5EXemlvPVnbI/vkrPfFyrSRIv59uAVrgtTexwZ915r5lvO/3P/DaoijCkAU QPuA== 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:dkim-signature; bh=peBwF4s7AcJireIW9aEtgVMb0skheqT5dujZbapujjU=; b=waqTcCEWZU3grJRrEP6h5X2Q0mP2frM4DR9G4g58Et7gNZ5iBLas0sIfPYa6sUR0pX d2fmJgjAPIOlZfl3Q7zJMbQltHljvC3T2nyGE+w8yoCmqdlPy/a36ja5wNyS6vqy5m3z ghCbQXKavLZigzOEbxHfRXZd+wOfUmTJuO0/5BCqXBas0xWF5+bz9WgvTQ2dYq8ZGaCt pDubrZKahFfMPV6kgGosMjnsWB8bKX5Qqli13YCz/OkTAM+RgPXL8SwUURW59Fgeyrgy kLJ/Uu2tqLjIh5Xo2tPZlvls2RCWCK0E+ySYOvj0DGx0mYjEoNWPHYQTeiWKIYuW5nvN oDJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=U+Q4puwi; 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 a23si1278588pls.338.2019.03.06.03.46.17; Wed, 06 Mar 2019 03:46:32 -0800 (PST) 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=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=U+Q4puwi; 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 S1730345AbfCFLM1 (ORCPT + 99 others); Wed, 6 Mar 2019 06:12:27 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:42329 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729573AbfCFLM1 (ORCPT ); Wed, 6 Mar 2019 06:12:27 -0500 Received: by mail-ed1-f67.google.com with SMTP id j89so9990561edb.9 for ; Wed, 06 Mar 2019 03:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=peBwF4s7AcJireIW9aEtgVMb0skheqT5dujZbapujjU=; b=U+Q4puwiim6Jb7u4OLSexsa7dEXMdqiBgn0bfCnW7ueHxwqQkYiLqtcAFz1YZG8a48 IV9Yronx9+kfZ4LRWxeHTuYZnDzo9xlixk5ipPU1751eoVlcJHstazFQ/2gKBOJ4wSlY 2lhbxzkfLgOs1vNSLKTBIer0bmBbGFsvPw386R48jcyF+onY/BZ8Q9XOYmZGIAbU1VAD I67bS2qDOBRtExGkzf+9EenvgAqpjXcsAYXMI906j4V+866d9ITn+wfyAric7bXMzsTV rFkGl64CwczORVIY2lxlz16+cH56iBOlVzdGn6Ravo8XVpkeeqAHNothMPWL91tncDrl IuUQ== 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=peBwF4s7AcJireIW9aEtgVMb0skheqT5dujZbapujjU=; b=MtmG67dsFsJ00dA793UdTNyVbgM8kBeh/yrrH3cZMYYwztq1zImXlo9JAxHVpVk2ZZ z5eE786wkT05ogBO2MCiWSempbS05Dj/pjpa7s/1CIHqJoIdsDDh5jueZ1hmO3D4orqb vv54uLJieBp9+VLcHo2myQQNxAOh5LG362edBnZkSFbCJPKhuJNXniZtb/OVVBVWh3Q5 wv8XChFIowj89m0rExx3UGIZgePwuR5EUk0SzrJMbg9D6Ia1B5d/TE0uWIndyx05vEQc BBKkNS5EpQsquDL2dNp7iw9w0yxIspXj9pitXIMHR1ZtSnpX/qZHFr/homnyYGs3MBKd X9+A== X-Gm-Message-State: APjAAAVQSPyVt57BC27bqnDYCA0yK/k/4IqchJ1YG76xeADBuPUYFSei ZdbinL1CrSKMQMdW6dr7wFXPPw== X-Received: by 2002:a17:906:3112:: with SMTP id 18mr3600815ejx.84.1551870745347; Wed, 06 Mar 2019 03:12:25 -0800 (PST) Received: from ph-ThinkPad-E560.local.ess-mail.com (ip-188-118-3-185.reverse.destiny.be. [188.118.3.185]) by smtp.gmail.com with ESMTPSA id t25sm277879ejr.30.2019.03.06.03.12.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 03:12:24 -0800 (PST) From: Patrick Havelange To: William Breathitt Gray , Rob Herring , Mark Rutland , Shawn Guo , Li Yang , Daniel Lezcano , Thomas Gleixner , Thierry Reding , Esben Haabendal , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Jonathan Cameron Cc: Patrick Havelange Subject: [PATCH v2 0/7] FlexTimer Module Quadrature decoder counter Date: Wed, 6 Mar 2019 12:12:01 +0100 Message-Id: <20190306111208.7454-1-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.19.1 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 This patch serie is to be applied on top of https://patchwork.kernel.org/project/linux-iio/list/?series=147 (a more recent version of the serie is available here : https://gitlab.com/vilhelmgray/iio/tree/generic_counter_v10 ) Main changes in v2: The code is a bit simpler, thanks to more use of devm_* functions. The polling/32bit signed version has been dropped, as not needed and no other driver is doing that. 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 .../ABI/testing/sysfs-bus-counter-ftm-quaddec | 16 + .../bindings/counter/ftm-quaddec.txt | 18 + arch/arm/boot/dts/ls1021a.dtsi | 28 ++ drivers/clocksource/timer-fsl-ftm.c | 15 +- drivers/counter/Kconfig | 9 + drivers/counter/Makefile | 1 + drivers/counter/ftm-quaddec.c | 356 ++++++++++++++++++ drivers/pwm/pwm-fsl-ftm.c | 44 +-- include/linux/fsl/ftm.h | 88 +++++ 9 files changed, 519 insertions(+), 56 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-ftm-quaddec create mode 100644 Documentation/devicetree/bindings/counter/ftm-quaddec.txt create mode 100644 drivers/counter/ftm-quaddec.c create mode 100644 include/linux/fsl/ftm.h -- 2.19.1