From patchwork Tue Apr 4 07:47:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 96699 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp72182qgd; Tue, 4 Apr 2017 00:49:02 -0700 (PDT) X-Received: by 10.84.172.1 with SMTP id m1mr27017622plb.5.1491292142567; Tue, 04 Apr 2017 00:49:02 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r22si16670935pfr.302.2017.04.04.00.49.02; Tue, 04 Apr 2017 00:49:02 -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 S1752975AbdDDHtA (ORCPT + 25 others); Tue, 4 Apr 2017 03:49:00 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:36249 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbdDDHsy (ORCPT ); Tue, 4 Apr 2017 03:48:54 -0400 Received: by mail-wr0-f181.google.com with SMTP id w11so200894478wrc.3 for ; Tue, 04 Apr 2017 00:48:54 -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=86jf5le+Q/rYlluzdMXrSJmHfxzrf/GHIoRsGTTKEmY=; b=fRW59RITdoohJzm7SJEkKR3GGPuQu4FLKg0xP9VUhfFQqoU+TyMEEs65Rj5K7blrzz xiWE/Lg89m2VvSYoYUZY8ujWTwQEzAgiF+JSV/s0ph5tGoHmj2GDyhlG9KaYXjPVg3r/ 8nkuQDHtgPWOSCQVef1SJvWYQsgOZ1QAG+JBw= 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=86jf5le+Q/rYlluzdMXrSJmHfxzrf/GHIoRsGTTKEmY=; b=E3V4Hf/OKc3O9/SxTP40RpdFa2oW4+ejuKkonh6ihLxh367rLTYPjWsUYY79/R1AJO e7wnJQadKjn0HmZ2Tx+yLOTpArJIxtlZ+TNGyy8KmVUPAbAVRNDPIdad2kFzYgqlOQ+D rDjUjejpfF4ECPLHQGl6h46Mq3gvmS2dEGMPnwv3UrJgsWE5SxNaJlcSmwrWQdnSPBec QIctF/S2GHfZ+qPYcW7JFx7bKTjnISeT1ytjPUI2EHOIqu2jrucjCdUoK4veYiwISJMp pjLx7Jf/W5bg0HB0w8obroz5w5M3l2mj0UAt2JUNwD+B1T0s+8B1nh48h38aa/VaeDvo XMxg== X-Gm-Message-State: AFeK/H2WyuJK7iPuqwidoHVw38WM1cDIlp2hqM/ZAXdfa3EDF6AECV3V4KoXN51l0/h8cmXm X-Received: by 10.223.176.242 with SMTP id j47mr1529896wra.81.1491292133160; Tue, 04 Apr 2017 00:48:53 -0700 (PDT) Received: from lmenx321.st.com. ([80.214.31.74]) by smtp.gmail.com with ESMTPSA id t68sm21247320wrc.55.2017.04.04.00.48.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Apr 2017 00:48:52 -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 v4 0/2] iio: stm32 trigger: Add quadrature device and counter Date: Tue, 4 Apr 2017 09:47:50 +0200 Message-Id: <1491292072-8535-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 4: - fix indentation in documentation - reword triggered description 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 | 71 ++++- drivers/iio/trigger/stm32-timer-trigger.c | 314 ++++++++++++++++++++- include/linux/mfd/stm32-timers.h | 2 + 3 files changed, 377 insertions(+), 10 deletions(-) -- 1.9.1