From patchwork Thu Oct 5 18:13:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 9987705 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 27109602B8 for ; Thu, 5 Oct 2017 18:14:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 177F026E76 for ; Thu, 5 Oct 2017 18:14:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AD4E27CF9; Thu, 5 Oct 2017 18:14:23 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 AF62826E76 for ; Thu, 5 Oct 2017 18:14:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751419AbdJESOI (ORCPT ); Thu, 5 Oct 2017 14:14:08 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:36758 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751395AbdJESOG (ORCPT ); Thu, 5 Oct 2017 14:14:06 -0400 Received: by mail-qt0-f195.google.com with SMTP id 54so1767790qtq.3; Thu, 05 Oct 2017 11:14:06 -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=BocvB7cRDpVyjNeVmfD1q7KqNhTNuI6G4UAgDKjYhRU=; b=H9GbfeaC4vjcbR/gKXY16oq6YgaTdxdzBXkhOitE3dNmn/XAiAvBHeIdlXuaENRt62 pqxTXqKJYKj47ESaWCe3z5BTqDCz0nOsbS7AnQnc8n3SNMQgkI6zEgAfTjbIdZ4lIs+8 9OT9UEIf5VXVmA0OkiD5CSISu6vsZG3lV3+LuuDLDSHl/9Qm7lt+shox8BPUsRxD7sdn e0tUkDmySX8kJFJ/p8NwVVrVHmcQEzR2dwytOcGLDcmjbsCLOW44ip+7Xd91QGCg/mRC AmLxdwraf9KBhFONQz+kXP2DXoKBR1uP6xyKGRGFBJBRcqlpZ8TL1DCtkIV4kiZBd8aY HeBA== 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=BocvB7cRDpVyjNeVmfD1q7KqNhTNuI6G4UAgDKjYhRU=; b=m9VajOr+t9GywUspfpSrN/0l/XJJCl+SH5iBGCAqH6zmeOhyt2NzoP8GgsbNxLHUzK ElvMnqmlCG9DFRHGy5/48CZsoWx9emIQaD2uSnOK9oCabz7Xul5hqqzdE4dIExm3ui+F nw12cFqAo6PM2+gXGSxXsfVlSS0w9G+adx0Tvl6ijTX+KOpEchDViF8XSCgLeSWWJPH2 imcbWZRaGRWwdN+r8wk2veiCabcAv5Ku2ioaaoYQj686c+QI4CUsYA+MIDt2CQ0JgNC6 af5mTkxXV8IIyqxGLu+HNf8f2YVQS0qWrmxDIB29fk3GT6rYhmUldFamsNpK2pkTAOyu udKw== X-Gm-Message-State: AMCzsaULK5NkIKVGrBS74y5G+fD3x0dRfYg9xftbopFhk4JwMGQAyVuu g8rsxR+qy5nAgd3g3DTL+7U= X-Google-Smtp-Source: AOwi7QCq7U0vas8VqEoPEdSL7LtlqUwdMW6X6U90c9WxPU3t3litirgF5qKvdAGoXfjmIgWAeN+Byg== X-Received: by 10.13.213.12 with SMTP id x12mr13806159ywd.398.1507227245997; Thu, 05 Oct 2017 11:14:05 -0700 (PDT) Received: from localhost (72-188-97-40.res.bhn.net. [72.188.97.40]) by smtp.gmail.com with ESMTPSA id h7sm4581481ywf.38.2017.10.05.11.14.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 11:14:05 -0700 (PDT) From: William Breathitt Gray To: jic23@kernel.org, benjamin.gaignard@linaro.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH v3 3/6] iio: Documentation: Add IIO Generic Counter sysfs documentation Date: Thu, 5 Oct 2017 14:13:59 -0400 Message-Id: <7390f98f0285ef5172df64367c0946334824db6c.1507220144.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.14.1 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 userspace sysfs atrributes of the IIO Generic Counter Interface. Signed-off-by: William Breathitt Gray --- .../testing/sysfs-bus-iio-generic-counter-sysfs | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-generic-counter-sysfs diff --git a/Documentation/ABI/testing/sysfs-bus-iio-generic-counter-sysfs b/Documentation/ABI/testing/sysfs-bus-iio-generic-counter-sysfs new file mode 100644 index 000000000000..b2c09254ec5a --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-iio-generic-counter-sysfs @@ -0,0 +1,63 @@ +What: /sys/bus/iio/devices/iio:deviceX/countX-Y_function +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + Counter function mode for Value Y of Counter X; counter function + evaluation triggered by conditions specified by the + countX-Y_trigger_signalX-Z attributes. + +What: /sys/bus/iio/devices/iio:deviceX/countX-Y_function_available +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + Discrete set of available function modes for the configuration + of the respective Value Y of Counter X are listed in this file. + +What: /sys/bus/iio/devices/iio:deviceX/countX-Y_name +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + Read-only attribute that indicates the device-specific name of + Value Y of Counter X. + +What: /sys/bus/iio/devices/iio:deviceX/countX-Y_raw +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + Raw count data of Value Y of Counter X. + +What: /sys/bus/iio/devices/iio:deviceX/countX-Y_triggers +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + List of Signals associated to Value Y of Counter X. + +What: /sys/bus/iio/devices/iio:deviceX/countX-Y_trigger_signalX-Z +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + Trigger mode of Value Y for Signal Z. This attribute indicates + the condition of Signal Z that triggers the counter function + evaluation for Value Y. Both Value Y and Signal Z are part of + Counter X. + +What: /sys/bus/iio/devices/iio:deviceX/countX-Y_trigger_signalX-Z_available +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + Discrete set of available trigger modes are listed in this file + for the configuration of the respective Trigger associating + Signal Z of Counter X with Value Y of Counter X. + +What: /sys/bus/iio/devices/iio:deviceX/signalX-Y_name +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + Read-only attribute that indicates the device-specific name of + Signal Y of Counter X. + +What: /sys/bus/iio/devices/iio:deviceX/signalX-Y_raw +KernelVersion: 4.14 +Contact: linux-iio@vger.kernel.org +Description: + Raw signal data of Signal Y of Counter X.