From patchwork Sun Jul 15 20:46:14 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: 10525231 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 9DA6F6020A for ; Sun, 15 Jul 2018 20:46:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E44328948 for ; Sun, 15 Jul 2018 20:46:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82A7728952; Sun, 15 Jul 2018 20:46:43 +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 272B528948 for ; Sun, 15 Jul 2018 20:46:43 +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=F8lo7HqhmXyHfZxs55Rf4gHkEF r9rDyDyo0bf2wzPoeG4rXGFjfYoKg0YkCTKjLMrYo7oXkVlAkFmOpjVnwKOZG0xiesqrxjLQ783CY L3+LyMe/qYDqMSbWFypPZUEBKumzn44UdjmMVRkOYcx/cI4p1UIAOqYZiFFrKGdFJ2d2knI7SYBYW 9lpVwMCgBMVC97cKp4xgEPxF2lChuouKc9YXg8ngLuhxU+cLK/YQVSY9179oryR8+Yn3dTSojNq04 XTHfpbqtzmutp+EDi31QTfApaGDwonaQ2XYRvBuMY19IZUlT8C2oQjVepFCkvlLfC5RFTBEcZu+Hb EnoZQanA==; 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 1fenug-0003za-6r; Sun, 15 Jul 2018 20:46:38 +0000 Received: from mail-yw0-x241.google.com ([2607:f8b0:4002:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fenuZ-0003kk-8D for linux-arm-kernel@lists.infradead.org; Sun, 15 Jul 2018 20:46:33 +0000 Received: by mail-yw0-x241.google.com with SMTP id y203-v6so13532108ywd.9 for ; Sun, 15 Jul 2018 13:46:21 -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=WguS9dnyjz1DQe8V/735S2m7nlaSVi5qpK2JxC0hxLA5eb257qB4W+u+ebfdVgd+JM C7nzYQyAmJxvtWUFqbqvEQtQfWXZMfSrM7Ksw4+C8LK57C9kFjuI8/xLdSFdnJwnTiFU +TOqyUR8dN3fxaKBDUPzj9Csu+AdKPmnga4eZI7rlOPxdnFvQ6iDz47I0nTxZhpFhsJd OCql5f3MUA5epDKO0fJmDEjeHC49Q527xW7zBXCSmnvczFkdZUgl8YaHWbpWNI2xZmQ2 /nPd1qSAZ21hx/Fyl55swkelw6jw95SJnBxSFoz9MMLjSwfiSA0HFKW6BmbJi2wi3BkG zqYg== 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=Ho5iFq8fpTkz/f4YQQqn7SAVYM9TTMX5Ak9Da/DTbergRqR3TJ3AI33X66aONqP2p8 mNj2KTOu/mNMSgOvCIavCZ8xcDr6+Bokw5bd68Rx4uZdIbrqhKPFJzLtJ6s/HEgeNUCY IjZDbVcJCd1N3zpPSLIweNi64cUMv1PL+A+FGo1KqeuREjyp5+8bcQv22L8fDTWh8vmY 36OdX9z7hyygD/gJeAageOLuNt/QY1CG6C4t7HjDG/MjyFKoxSGCp3evuVALa2mowic9 kyE+B4lD7ujb0lHhgaosCLVhUmeLfVEykOUanRC+55EwUYG6OsBTRPwDcGRYw1c/GIL/ 6wRQ== X-Gm-Message-State: AOUpUlHRmqAdylGh8uFZCLpI+t7b5FqYPi8OR/AjV4zpsbmqXTRvVD6f gFXq6LgL31soBf63Tc/D/ig= X-Google-Smtp-Source: AAOMgpc/0IUE+dL6COsYOtQtJ2sfykNg4z7s5l8kh6pKyxwDi2jNCtjftrvI33LMTKsyuUkxdemcUA== X-Received: by 2002:a81:af5b:: with SMTP id x27-v6mr7296334ywj.68.1531687580385; Sun, 15 Jul 2018 13:46:20 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id r12-v6sm1580720ywg.67.2018.07.15.13.46.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jul 2018 13:46:19 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org, jic23@kernel.org Subject: [PATCH v8 06/11] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Date: Sun, 15 Jul 2018 16:46:14 -0400 Message-Id: <0fe263bc6bb36208eaa2fbcd83fa04fd22fb597e.1531685025.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-20180715_134631_502265_28BF1AA8 X-CRM114-Status: GOOD ( 13.48 ) 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 , pmeerw@pmeerw.net, knaack.h@gmx.de, 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