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: 10404539 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 446A660155 for ; Wed, 16 May 2018 17:52:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 345DA28414 for ; Wed, 16 May 2018 17:52:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 291ED285EB; Wed, 16 May 2018 17:52: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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C754A28414 for ; Wed, 16 May 2018 17:52:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752234AbeEPRvw (ORCPT ); Wed, 16 May 2018 13:51:52 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:45213 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752232AbeEPRvv (ORCPT ); Wed, 16 May 2018 13:51:51 -0400 Received: by mail-yb0-f193.google.com with SMTP id r13-v6so549395ybm.12; Wed, 16 May 2018 10:51:50 -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=HOiNnG0rNFzLUR6bIVJlE8qvHssZmc2houzu6RZJUGaU8PlIqWu56a6p09cu/uGfe3 8Bkr0haj8ZmhjvzSGXgSzp0x9tOjU23KDgYxo7w+uvy2ichCJwD2eCbi0ggm1Id1Je3o 4k7kHEGVd0Ws0JJNE1PodpE1GMinrRXIm46OlGcGyJ4rdPq+fVir1kG08rjflIJSzjY1 VeuUtns7Fy1cdlQM700Nsbzrq4xVSbU65siGTU6ZmirxhCV822JfsScaA0sQ4J3193vg DEYG7no8jdzNt0b3Vjdlgm9AThCKJxy1kOpyoMlBV+tzqw4x1oza6pTj4gtWxmfk36sd 4Nzw== X-Gm-Message-State: ALKqPwcam6vkiny2dHgVCvG4YtndFfktMrOBVJ6y4HzwMAxKErn9LzoC h8/NuXOEXm6I67W20yM6i89ZAA== 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 Cc: benjamin.gaignard@st.com, fabrice.gasnier@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, William Breathitt Gray 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: Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.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