From patchwork Sun Jul 22 22:51:13 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: 10539479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 91EF017FD for ; Sun, 22 Jul 2018 22:56:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 721BC28437 for ; Sun, 22 Jul 2018 22:56:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6452A28455; Sun, 22 Jul 2018 22:56:24 +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 14C5A28437 for ; Sun, 22 Jul 2018 22:56:24 +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=5dk49eC5KTpIZVdojBvfCKgKWpmBkMW4bHrjmuKLEiM=; b=JbMjs1t7lykhrLDK0CixDmSLlj RRmuAOuqmhavzobGNH8w9xLeFKE4xGGGFivb06lIylvIaFCJT1E66KhmleuDXN/Y9edstbsA6PO2g ucnLQih8i12yluJPRifdMM+PqlLn6buh15YnvDuFak8oDvsng202+lcSjt/gzUpgTWONBmBNn9TqP gkoaWL9Zj/m+pZp9ItqiDLsrKym1c8OVScsE/naeHMktZ4hqUR2BePLd1pb5GcWxBmSZ03POULaw5 Esy9szfKo722ERvfzj+FMNUPoACJEpFUqhQDjsT+YJWpIteizR7Ud2JXLjAvVXwQAxCod+nCTPe+g mXkH7FGw==; 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 1fhNH1-00013e-9l; Sun, 22 Jul 2018 22:56:19 +0000 Received: from mail-yb0-x242.google.com ([2607:f8b0:4002:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhNCM-0006Fs-FQ for linux-arm-kernel@lists.infradead.org; Sun, 22 Jul 2018 22:51:55 +0000 Received: by mail-yb0-x242.google.com with SMTP id y11-v6so6598670ybm.7 for ; Sun, 22 Jul 2018 15:51:20 -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=5dt/vipaXkszqYOu7qP+nOjtwsDRD6GRQlzoFnZzmXk=; b=h3kp7ueo7GNaS1p8QXoXmbFhaCKXh+MZL3jSI+VKbZ5kg02BuSOpEuvYsbNAOo7ap3 svBS88qFGbNJsRXGQy5Ojlv5nrrv6wG6ibYo1SRtTQLv/1v2A3M3uyyEDiQ/lSC0kV3/ jDB3DxiHqCPoU15sklGp7GK2pXyfETv7w/qBu7HMh7rYuRLIp0Rq6zG1dt+QIceLjXeP PkCkrFxadq5G4ErNOkdsv4Wwb4mkuel/YHyStGo2d1NP0ku6GC+eWSiXQ05tQSnurD9B TYXmOpUOsMdRDpvy7nZjDLWYnNQayt47cL26N4U/LDgbj/TciPjPMJdO2ZLFlF4NMCUU w3tQ== 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=5dt/vipaXkszqYOu7qP+nOjtwsDRD6GRQlzoFnZzmXk=; b=bxUtSz/Y2G3zT02DrCJjr5QXaCwwSW6OXwdWmFyzulUzvV1XoTaYvruJXmprXaarQw Z2MGN9ja2Y+TlN0NkLq0ihxdjJf7lKzlsw53JqFACBTty4QuL3FqC92wth89yZW9tMrV NeDHRhiscHYIGhEri9DP9/+ilKqu/wR7YhR2HS0VGNvj5L/8IkcoTtw/lpMbAazq9UC7 68CZX2zAJh9dsRp7jtud04NgjvFCJimmNfLwAu93I0mpoSul4HEQc6MuUzvY0exbblwg zCpo/36D8yKiiskei0mNSRkd7AoS/Yl8wZIA3jI43A9DMoj7QPeShQMulvRj8s+Zqvuj W4uQ== X-Gm-Message-State: AOUpUlFD3k8222cjdt5jufgro2KTm/GrWtW54cTn8XIh7cjc7zXO5sHE 9IPNExLRi0jQlEW6OBnE5GU= X-Google-Smtp-Source: AAOMgpf4N2HetptsgzygpEfmS0JJNzOL/UUwFP0qc2qDfnpiO1cXFWZjdra9jqAireJHhy+kiOBxxA== X-Received: by 2002:a25:dbce:: with SMTP id g197-v6mr4328470ybf.333.1532299879608; Sun, 22 Jul 2018 15:51:19 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id q184-v6sm3767091ywd.78.2018.07.22.15.51.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 15:51:19 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Subject: [PATCH v9 06/11] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Date: Sun, 22 Jul 2018 18:51:13 -0400 Message-Id: <3f51391e2bb036b332a518503d60f15fe1dfddd9.1532298882.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_155130_790189_E59ED692 X-CRM114-Status: GOOD ( 12.41 ) 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, lars@metafoo.de, benjamin.gaignard@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray , jic23@kernel.org, pmeerw@pmeerw.net, knaack.h@gmx.de, akpm@linux-foundation.org, 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. Acked-by: Jonathan Cameron 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..2d9fa57af101 --- /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.19 +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.19 +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.19 +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 f41c45246e2b..865c47a3feae 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