From patchwork Mon Sep 25 18:09:01 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: 9970273 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 46DC760225 for ; Mon, 25 Sep 2017 18:09:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A2F8288E8 for ; Mon, 25 Sep 2017 18:09:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EE7428D12; Mon, 25 Sep 2017 18:09:40 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 4832C28A66 for ; Mon, 25 Sep 2017 18:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934933AbdIYSJK (ORCPT ); Mon, 25 Sep 2017 14:09:10 -0400 Received: from mail-yw0-f193.google.com ([209.85.161.193]:35338 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934898AbdIYSJI (ORCPT ); Mon, 25 Sep 2017 14:09:08 -0400 Received: by mail-yw0-f193.google.com with SMTP id u134so3844062ywu.2; Mon, 25 Sep 2017 11:09:08 -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=HBWhhz8rykzu3qMHJ9PbuawmWn0P935xLbGu1AqkBn67rpBupqInx9vUxnoRxvOPdn ahrCqgCGifYp6dcZFzPXCeXuAFI1+qjKOn3u66vYg0TuflAoYtFhdTOaPXM7nlTnrcOT aA+37m62ccdc4zOY1Q7LS63Tz4eoVGcprsQ37z0pW/2u8GkQkgU6DvsrVcJdK4OUwinf kzeSCRc6r2c6dcapvf1F4FVluFBPsd1okspShnIX42zo8L47uNaHS1/j/QcIaY6NvGUF jqVNCn6wfPoW4EDSpKP9DQ4ZQqd/DFJsZop2NRF/QMRRcRQLkclmBa+bXB5Okw2T/DI7 UhLw== 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=pNBoaHuXjpcUsh3tmZ8EB4K43kvhX6lQa1QoRKSkrlTj4MUbLPj726KuprHtrpF6Ru A3+6vBJ2u/wjJbvzA3UkYTAXTL3t5MX6YYZkUl/gag3Ms/xopvIJpL+B+XUUUpmbwX3B HUBF81/EUx1HbpWxI+XN68a7JWLZHmSzGXe5ei1SR7A/jCKUN2zbs1MfwSZKNyIrlILe kbVTkzd48acw2vc/q3+UQ3TyaBsrnpfQusFQd3UPfW2ReUw2PTzikCxH6WlezDYcO+nr xzB2OBFkpS97unonOGtP6p3f+98HW5sXm5D+4nBaLEC+Gj+chl07XSKnVYM4wxc5T7uv cRaA== X-Gm-Message-State: AHPjjUiGJysWWyCtyO6PD4Th5Q2v00RtO+R8bYYAIIBhesqZnS4Delb4 Oh0dDVuc7VUoaXfA7lMPBxA= X-Google-Smtp-Source: AOwi7QDj3upx2cHuJH+MIM6srVypqd5Mz5TTSbDinI6IKmFb8EE23t3gWNEFpXmMAKbyW4Ce14o2SQ== X-Received: by 10.129.212.65 with SMTP id g1mr1087076ywl.32.1506362947881; Mon, 25 Sep 2017 11:09:07 -0700 (PDT) Received: from localhost (72-188-97-40.res.bhn.net. [72.188.97.40]) by smtp.gmail.com with ESMTPSA id u5sm2900864ywi.0.2017.09.25.11.09.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 11:09:07 -0700 (PDT) From: William Breathitt Gray To: benjamin.gaignard@linaro.org, jic23@kernel.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 v2 3/5] iio: Documentation: Add IIO Generic Counter sysfs documentation Date: Mon, 25 Sep 2017 14:09:01 -0400 Message-Id: <227cc8a42620b09445790b84c4d27588887d0dc8.1506353914.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.