From patchwork Mon Mar 27 09:43:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 96035 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp1142280qgd; Mon, 27 Mar 2017 02:46:30 -0700 (PDT) X-Received: by 10.84.196.164 with SMTP id l33mr28232159pld.0.1490607990696; Mon, 27 Mar 2017 02:46:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si63308pgd.294.2017.03.27.02.46.30; Mon, 27 Mar 2017 02:46:30 -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 S1752552AbdC0Jpg (ORCPT + 19 others); Mon, 27 Mar 2017 05:45:36 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:35208 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752139AbdC0Jol (ORCPT ); Mon, 27 Mar 2017 05:44:41 -0400 Received: by mail-wr0-f180.google.com with SMTP id u1so47692191wra.2 for ; Mon, 27 Mar 2017 02:44:25 -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=KCp4tLfsSxw2yjGXzoRK/ylaRK8x9LOxL7+N9pgXxDE=; b=JXRzqvUArBy1pPeIaV9Mdfvi0wB43v/9vhJi045by5zJa34OQQfgmvnNYOY8nCuQsr WuuV68efP6ZfEc9PlsWy51ySp6dgDLBI6T1buVOMweBLhDm0XzhmsnG0JRQBWOmD0dds ZVUsUBMbfO53PD4oEfzERok93LJG6QTdRbbME= 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=KCp4tLfsSxw2yjGXzoRK/ylaRK8x9LOxL7+N9pgXxDE=; b=MsraY+hkF5msEhq8GDp42CIJ4PcmrH+J++3AmmX8I7/PTZZjXGer77l6pNirbn8dtd Tvuv1zc1Kd2ApR3rw0fjk+jzZ2jYJ26FgdAI/eluTAP2tRfslLOSsvBdQUQ2b2v4CStm hy7tO8VwwTOtSZJcLW1Tc+g9V67f150tdtCidfqKaiIoalt3/SnjUfNdTFYv45iMH57X gqcu0XwPvJz6AjBKOgW+MjUCl0HSqvaMj90uDoyzpUMHziQoR/oXwPLhWch1N0Cka7Uw 2Ltutw6dDcRqsN3+8TMsLv+IHShuxLNBQpjlARtcGelZpS7FG12uw6LWzORUtjqyrWuD ZOfw== X-Gm-Message-State: AFeK/H2MyKPYMhAD33vARZG+8M4g+Esn5f9oLP3dTjh34w8Nv5ITB9ncl74ATRpX0YxDsMcS X-Received: by 10.223.134.18 with SMTP id 18mr991884wrv.190.1490607864402; Mon, 27 Mar 2017 02:44:24 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.98.181]) by smtp.gmail.com with ESMTPSA id 36sm111583wrk.15.2017.03.27.02.44.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Mar 2017 02:44:23 -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, mwelling@ieee.org Cc: fabrice.gasnier@st.com, linaro-kernel@lists.linaro.org, benjamin.gaignard@linaro.org, Benjamin Gaignard Subject: [PATCH v3 0/2] iio: stm32 trigger: Add quadrature device and counter Date: Mon, 27 Mar 2017 11:43:22 +0200 Message-Id: <1490607804-24889-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 3: - fix typo in documentation - change some functions names 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