From patchwork Wed May 16 17:51:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 10404585 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 88078601F7 for ; Wed, 16 May 2018 18:03:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7809128694 for ; Wed, 16 May 2018 18:03:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 688AB286B2; Wed, 16 May 2018 18:03:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E09A228448 for ; Wed, 16 May 2018 18:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=FtRZLVYs31N87oCQDkFk/tqcLJ7Mi03aoyPvfZNj7GI=; b=SKRetutDGP00tc0C0LNqpntxPk TBdUa95+4HRt4J8eYWrTnXLAsLCnIcky3SwH4wIszRlmJCOfKAmAEKgIJh9tVufj2xVhw+njK2vMf KzkWNERRpl6YU1xcd2Sfu7f/j2B5LctsT4lkkp5iVLAElEYriGAsDNnj7uZ62ioMPnn044JS2aBpe 0jrNvHiaKe5nZDzvlhRY31f/EJfbaFzGgER0rjPcvN89Nz9JDy0/+VZZGTSET37dTw6zdaw684Q+z 0gfCBVdo+0i1unuy0RWhnCUwMH6mTjBbQMXCk8HzG8MZ50pzRoPxA4H04APPiIG/gToophrN6KEwR n+yvtU9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJ0lo-0004SH-R6; Wed, 16 May 2018 18:03:24 +0000 Received: from mail-yb0-x241.google.com ([2607:f8b0:4002:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJ0an-0005I5-Qw for linux-arm-kernel@lists.infradead.org; Wed, 16 May 2018 17:52:20 +0000 Received: by mail-yb0-x241.google.com with SMTP id i13-v6so555526ybl.4 for ; Wed, 16 May 2018 10:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2mDoN3Z8TrnfvcNGIAt8vnzgMAQfH9Zo7JC+y2UFoSw=; b=S6SncAWaooImu25FJUbSuTFWxNP5OIdZBN7ne+GStu5bVhtPxV0pjwZjP61NwQwtGb lwX2fDXgjvCsoylyc062sW29/EyopJFb2zaYwFoW41R7xh2jOzfykej/tLWNNbge0ZOD zQSsEZRh6s2q0h8Jx42F0j1vtHGo/sw2wd1mbrUG4BIppz0w+blwZazBKHWOj294Pt3b KvvaOkcWND6f9tE6U+K/h8SMlhsJhKDi836o6WZAUQvhG803TX+BYO3qs4OpvRy/Yu3B CwMsVX7CXndQqR0HXY6uCEcZ3JdN0yga5qp5a8xk+HlB3HqgEDbW18sb8cFf3fAWk1Jt m8ng== 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:in-reply-to :references; bh=2mDoN3Z8TrnfvcNGIAt8vnzgMAQfH9Zo7JC+y2UFoSw=; b=jUzML18T2zkqz9TL537glICi8K3f9Lbnp+tLeozq/VB0l0Y97nsz5W7paTolCwlCNz gk08mISkZ9pdrnYKKRQUv2KigJId4rv0ueZ8KZ7QKyJ6WVBVHleBxqqtI+dc3cNlQWf2 6PuC8x0TfMKLGMj9YW4Zav4qtDlHO9FR5v1H/03tZBp/cg0zKAOvYm3/6hAIAUVv2h5K PH+NKmU6b6rcygOpr3SHUdzr2J/6G5WroKGE4k8mFRTavBCMg83ywQK+qPNy6n6KeLXL gPN0f7ywH3ZLeboGnZ+Xlx5tFFf0Ga/MAS5uLcFkacLDbGyoHhNAB4m9ETpeco+/3pDD RVsg== X-Gm-Message-State: ALKqPwdYR1k+PRTf2s8cvKZD2CUlcC9FUFo5ZTrCaSX6H+lrLMyjeQcF +y542nP+nv/gYAYAug5JCfg= X-Google-Smtp-Source: AB8JxZrNQjVjYxb1Rc2SfiWvcBc8YffAgoLJOM/f0wwC10XW68v/+HLUwPI9DwdT+cR/HecSd+GqZg== X-Received: by 2002:a25:254e:: with SMTP id l75-v6mr1081624ybl.322.1526493110577; Wed, 16 May 2018 10:51:50 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id o13-v6sm1299391ywi.30.2018.05.16.10.51.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 10:51:50 -0700 (PDT) From: William Breathitt Gray To: jic23@kernel.org Subject: [PATCH v6 5/9] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Date: Wed, 16 May 2018 13:51:44 -0400 Message-Id: <2dc403b8eebda6f8558bf0883ec7ceae99a8c255.1526487615.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180516_105201_933903_561EED2D X-CRM114-Status: GOOD ( 13.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, benjamin.gaignard@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray , fabrice.gasnier@st.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds standard documentation for the Generic Counter interface userspace sysfs attributes of the 104-QUAD-8 driver. Signed-off-by: William Breathitt Gray --- .../ABI/testing/sysfs-bus-counter-104-quad-8 | 36 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 37 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-104-quad-8 diff --git a/Documentation/ABI/testing/sysfs-bus-counter-104-quad-8 b/Documentation/ABI/testing/sysfs-bus-counter-104-quad-8 new file mode 100644 index 000000000000..274df6768b97 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-counter-104-quad-8 @@ -0,0 +1,36 @@ +What: /sys/bus/counter/devices/counterX/signalY/index_polarity +KernelVersion: 4.18 +Contact: linux-iio@vger.kernel.org +Description: + Active level of index input Signal Y; irrelevant in + non-synchronous load mode. + +What: /sys/bus/counter/devices/counterX/signalY/index_polarity_available +What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_available +KernelVersion: 4.18 +Contact: linux-iio@vger.kernel.org +Description: + Discrete set of available values for the respective Signal Y + configuration are listed in this file. + +What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode +KernelVersion: 4.18 +Contact: linux-iio@vger.kernel.org +Description: + Configure the counter associated with Signal Y for + non-synchronous or synchronous load mode. Synchronous load mode + cannot be selected in non-quadrature (Pulse-Direction) clock + mode. + + Non-synchronous: + A logic low level is the active level at this index + input. The index function (as enabled via preset_enable) + is performed directly on the active level of the index + input. + + Synchronous: + Intended for interfacing with encoder Index output in + quadrature clock mode. The active level is configured + via index_polarity. The index function (as enabled via + preset_enable) is performed synchronously with the + quadrature clock on the active level of the index input. diff --git a/MAINTAINERS b/MAINTAINERS index f11bf7885aeb..8e27b49e8d5e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -270,6 +270,7 @@ ACCES 104-QUAD-8 DRIVER M: William Breathitt Gray L: linux-iio@vger.kernel.org S: Maintained +F: Documentation/ABI/testing/sysfs-bus-counter-104-quad-8 F: Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 F: drivers/counter/104-quad-8.c