From patchwork Wed Mar 1 14:45:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 94710 Delivered-To: patch@linaro.org Received: by 10.140.20.113 with SMTP id 104csp1827652qgi; Wed, 1 Mar 2017 06:46:29 -0800 (PST) X-Received: by 10.99.8.4 with SMTP id 4mr9117124pgi.204.1488379589234; Wed, 01 Mar 2017 06:46:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si4799520plj.106.2017.03.01.06.46.27; Wed, 01 Mar 2017 06:46:29 -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=@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 S1752130AbdCAOqY (ORCPT + 25 others); Wed, 1 Mar 2017 09:46:24 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36481 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751542AbdCAOpg (ORCPT ); Wed, 1 Mar 2017 09:45:36 -0500 Received: by mail-wm0-f45.google.com with SMTP id n11so1039729wma.1 for ; Wed, 01 Mar 2017 06:45:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=CnAq8cdba/1lRkVuPeLtxM81ZW3WbvzBvTEZZLRHJ3o=; b=MJ5FxGAOk2bjvgr6efgt8/ZOYBcYO6bpdcmtrp85XEkbZfg166HKVrUu0/xJtdlupJ RuwhEBu2D+6lgZGHRbrnvl4FF2pNT2wXDg5of3zpBTleZQ2FlElGYENKl7jKJxzD4FUB qhsVqOzo0YffNYR8SDJvjI54rtnRtQGGgzgF0= 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=CnAq8cdba/1lRkVuPeLtxM81ZW3WbvzBvTEZZLRHJ3o=; b=NABKoRE8uvaf6SzZEAS4rmVmiAzRspuB8qMD/VLIfTyfIgiG0jfZ0uFqahUSujQoX5 pSggbVRfp4+aYHvdVixZNIRGupOoME/777NZbHAoeYomtVnC76EuU3cEKy21hMAZmbBm OooX2B8pLUoDkn1ui5XqHA5MUyibFjMFAoPso8rfN0n7ICHmq6IpZD0d2ltPStiApJu3 x232I0OOueDLvUH4y9Xr54LJFYTzyuG4kZCWiPLV2GwaBdRFIKFvtRhujSpohzHlPJ7p 0yyAFn8AglxuzzKuDkDfhbCFRRr/88QYe/KXgRNXp2b3KejS6mJ8f5FPY4n8GvAmBgD6 ewbA== X-Gm-Message-State: AMke39kBaL9UvmKc9VoMokDdO2yx6rl15pi0v/eAyHOA/DR/RfBSSUmXQ4jFGkfZr8XNpTLm X-Received: by 10.28.159.73 with SMTP id i70mr3715259wme.78.1488379515098; Wed, 01 Mar 2017 06:45:15 -0800 (PST) Received: from lmenx321.st.com. ([80.215.231.183]) by smtp.gmail.com with ESMTPSA id y145sm23087705wmc.17.2017.03.01.06.45.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Mar 2017 06:45:14 -0800 (PST) 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 Cc: fabrice.gasnier@st.com, linaro-kernel@lists.linaro.org, benjamin.gaignard@linaro.org, Benjamin Gaignard Subject: [PATCH v1 0/2] iio: stm32 trigger: Add counter device Date: Wed, 1 Mar 2017 15:45:04 +0100 Message-Id: <1488379506-23969-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. Benjamin Gaignard (2): iio: Generalize counting direction modes iio: stm32 trigger: Add counter device Documentation/ABI/testing/sysfs-bus-iio | 14 ++ .../ABI/testing/sysfs-bus-iio-counter-104-quad-8 | 8 - .../ABI/testing/sysfs-bus-iio-timer-stm32 | 40 ++++ drivers/iio/trigger/stm32-timer-trigger.c | 231 ++++++++++++++++++++- include/linux/mfd/stm32-timers.h | 2 + 5 files changed, 281 insertions(+), 14 deletions(-) -- 1.9.1