From patchwork Thu Jun 21 21:08:08 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: 10480785 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 B29BF60365 for ; Thu, 21 Jun 2018 22:06:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2A1128E6B for ; Thu, 21 Jun 2018 22:06:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 957B328F60; Thu, 21 Jun 2018 22:06:01 +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 3508E28E6B for ; Thu, 21 Jun 2018 22:06:01 +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=lwzTrVibaI7E710FvE42KJ2XvOKAqCQ3CATCnJHJ7Ds=; b=PQadxFgGQdQ+iS+iN57cTEV8mv N2iZo34z8Xe6vGdPaneggeQkjwUp5uXGcw4j9QWX/vJ7Jwg7nP/lAvoHyk962jUYeEa/Z7Xo6KS1T 2yUoO9PZA8V3+9pJfNeVBHKsJR603Q+F6jb3G4JzQhq7VM2iKVUgIe6yPxHRMWTBW85qkp0+yQhxl YHiyC5IXuXFo4X4P3RztfmggDmQAYKokE3vEW2YbRtWjO9vC+jD9R2wavvOG2vNQuda3bNc1Nc9MA 3QeQPA53gtqkSUFrBzWltOci/j6PwC2lRQ4leE83ugDqWLWX91zjA+R4H5f2UNxigFEAKunjtqF6n CcdPES8Q==; 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 1fW7iI-00082F-Tb; Thu, 21 Jun 2018 22:05:58 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW7hp-0007kB-5O for linux-arm-kernel@bombadil.infradead.org; Thu, 21 Jun 2018 22:05:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eA2MhywHD/qn4Zj11fSlYsUI3I8yvVi/AeZkHCDB+bY=; b=c3UFjnqG6T799+NsNTAOPU1cd ln+xxlvfectFYKNUE3ztvvlLBa2sZmSR071t9NVDg5oXmeZpGEnM54v95J2EaJXmwA/4tYAx7zFU6 R1aU7k/SL2ajGfZRevDaiWNgFc27NZfn1d1zpIszCwcfCKTWPJUSFFKTmT39p5KQJF6vO6Cv5w5WI 9kewCnb92A6jYo8WtBxJJudTTyFk4HfmiKbgbFK+6Mn3Q39bcvKTrDhXcZtEZ76QNmcX7La9t5hSm a6Ve+JaYE6crlSsmPLBJHnIGFeVsZanfy7qW11dpglDWwk0h5Vq5lLbGeBNFjFC+5vKt6eovMf+CD qarkAno/w==; Received: from mail-yb0-x241.google.com ([2607:f8b0:4002:c09::241]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW6of-0002YL-89 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jun 2018 21:08:29 +0000 Received: by mail-yb0-x241.google.com with SMTP id v17-v6so1759402ybe.7 for ; Thu, 21 Jun 2018 14:08:16 -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=eA2MhywHD/qn4Zj11fSlYsUI3I8yvVi/AeZkHCDB+bY=; b=pT8JpJO487fUcd75WuNTbpzGNykY0KpS/zfEdfW7BCvyYzQRJP2o7anxPfmNuGlMUU HY/1Gy9Zu+R21v8pfz4J6NxsvjAmgxIB3fVTy+Fz42zP8fb00PvFj+VkgbfV+ER7eF2F wC3w8I3gSEAuzJAyMciJdIu2Ohd2bZofEzwh4zzkR9AA3wkJd3P9YTyZZbAl+4Au95d/ 5/dvuq+HiDI1nBL4kYLELXN4kVcwuLUUiden1PmQepLQGC5MTrvqpSc214r7GeFdaQ8c 8qvjPHh4wdv79ZA64RBpHKLQHluT5afZmC2vCZKt009GB3bp8xKn9mH99aaV6ETw8NjU ztng== 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=eA2MhywHD/qn4Zj11fSlYsUI3I8yvVi/AeZkHCDB+bY=; b=Ayzds6zjqKdNWd+aftyKhRTyKW82iNZ44tAlZ/aMIFySbhpM6B0RMzbH+1rseEjILU FiZElNBkP8iNfz3dDbx5Jo8BP1ZZrmg/68043kE2CubvfyGpmeI1NVhFc7JaNjkRuhqc 8SAN2dRDyVdwJ52/REwN2CxIBb0VwJRoavjOhngW+zQN2kHnMahYjofcP9XRbOaB2F59 9WbIFmEwb9GFlplsfaNlq1N7jskzVmERgqqAlSyMVq2afp0X+sVJh8CllpbshsobbVWt 7uUdKXmcWFeOTx/wT9ymx21o9JSfCgfjLpmDPNsAgkyOTYd1t/2+2LEtillM6wsMn6OL XRJA== X-Gm-Message-State: APt69E0t09+uE7cTHRhb5L5idnspdfx3Ul5VgLut9Ws6YPDN8bN6ApIf BjDl+AUnRAKSL6lTGIqwaE4= X-Google-Smtp-Source: ADUXVKIr1W6Vy/YFcLw7gpWyLftG7xJiAHNJGUBK5ViUiYquQ08mXPk7NWkyzsUYxgmcOeeIh1iOUQ== X-Received: by 2002:a25:5307:: with SMTP id h7-v6mr13718301ybb.11.1529615294493; Thu, 21 Jun 2018 14:08:14 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id f66-v6sm342718ywf.46.2018.06.21.14.08.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 14:08:14 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Subject: [PATCH v7 05/10] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Date: Thu, 21 Jun 2018 17:08:08 -0400 Message-Id: <891d9716ce95bd8568296ef53d5b8d266f7efe3e.1529607879.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180621_170829_323289_3FF4E94B X-CRM114-Status: GOOD ( 15.31 ) 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: mark.rutland@arm.com, devicetree@vger.kernel.org, lars@metafoo.de, benjamin.gaignard@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray , robh+dt@kernel.org, jic23@kernel.org, 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. Signed-off-by: William Breathitt Gray Acked-by: Jonathan Cameron --- .../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..062637df3c78 --- /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 4083523699f3..a06fd762f5d9 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