From patchwork Fri Mar 24 14:00:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 95941 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp59708qgd; Fri, 24 Mar 2017 07:02:10 -0700 (PDT) X-Received: by 10.99.117.85 with SMTP id f21mr9041572pgn.143.1490364130719; Fri, 24 Mar 2017 07:02:10 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si2981058plh.309.2017.03.24.07.02.10; Fri, 24 Mar 2017 07:02:10 -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=@linaro.org; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934524AbdCXOCI (ORCPT + 18 others); Fri, 24 Mar 2017 10:02:08 -0400 Received: from mail-wr0-f182.google.com ([209.85.128.182]:36674 "EHLO mail-wr0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754984AbdCXOBw (ORCPT ); Fri, 24 Mar 2017 10:01:52 -0400 Received: by mail-wr0-f182.google.com with SMTP id u108so2332693wrb.3 for ; Fri, 24 Mar 2017 07:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=X4sxMo19fsHmm5ClF8ygieSfAmzjo9CrIvUnwUGLwSQ=; b=T8XAwkKs1QZZ1ccaQ+Rb/3ovTPKboCCd7PSNsfnaObISTZV96nWH4QzZF/LuOuCzzy vRkt+YFN2va15AvTN0jrd+mmyHpTWZekOx/tg/vXJgnTQ3IHOL6BQVFsU7++COpwMVW0 tKbS/apHsGV90ebot+eacSL4b/PEHEoF/z3Gc= 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; bh=X4sxMo19fsHmm5ClF8ygieSfAmzjo9CrIvUnwUGLwSQ=; b=QZVc6U1JnfXixxEGr3GGK082708+pnTmSmrIrVyh76p41MW9SWGP4QSs8B8TQlJrEf WXoY3zbz2C4K0E3qpoBs3y3GHQ9s3twI4VZ488Oa8jFUdC7nbBjHRTBatue4A/5x4Lr0 dUrFFTpnIFN6bsr1sMMRbPRbZxx2toXmeSWAYXxyWIdVG22ltKO6g5tXxIF+xlxLA5ik Br2RsHD+6rfoMskuIoraK2i78adjFf78kcLSsECFWloLBg1C0ulITo12EtwDH2UGNQB/ LAItF9PC3PTItwrrp6mEwaviLao4wBGPXj+pz2ni8G/rtywcF9WvxTeGxySpvCX+fTRG ueOA== X-Gm-Message-State: AFeK/H2UUf+6nKyrAwP2GF19rgqbqariQmCVUKPU128A/g3/1PfLa/uGAescYUXY95UxzJjJ X-Received: by 10.223.150.123 with SMTP id c56mr7689513wra.202.1490364103320; Fri, 24 Mar 2017 07:01:43 -0700 (PDT) Received: from lmenx321.st.com. ([80.214.123.217]) by smtp.gmail.com with ESMTPSA id o22sm3026896wro.13.2017.03.24.07.01.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 07:01:42 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: linux-kernel@vger.kernel.org, jic23@kernel.org, linux-iio@vger.kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, vilhelm.gray@gmail.com Cc: fabrice.gasnier@st.com, linaro-kernel@lists.linaro.org, benjamin.gaignard@linaro.org, Benjamin Gaignard Subject: [PATCH v2 0/2] iio: stm32 trigger: Add quadrature device and counter Date: Fri, 24 Mar 2017 15:00:41 +0100 Message-Id: <1490364043-16339-1-git-send-email-benjamin.gaignard@st.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A first encoder IIO driver (104-quad-8) with a count channel already exist. STM32 driver have the same type of feature but with different counting modes. Some parts, like counting direction (up/down) could be generalized so move the corresponding documentation from driver file to sysfs-bus-iio. version 2: - since iio: Generalize counting direction modes commit of version has being pushed in iio.git testing branch I have remove it from this serie. - split the original attribute in 2: one for quadrature modes and one for enable modes. - add scale info - change modes to more generic names to be able to merge them with 104-quad-8 in the futur. Benjamin Gaignard (2): iio: stm32 trigger: Add quadrature encoder device iio: stm32 trigger: Add counter enable modes .../ABI/testing/sysfs-bus-iio-timer-stm32 | 55 ++++ drivers/iio/trigger/stm32-timer-trigger.c | 314 ++++++++++++++++++++- include/linux/mfd/stm32-timers.h | 2 + 3 files changed, 365 insertions(+), 6 deletions(-) -- 1.9.1