From patchwork Thu Dec 14 20:51:43 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: 10113309 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 D2FC7602B3 for ; Thu, 14 Dec 2017 20:52:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6AD529684 for ; Thu, 14 Dec 2017 20:52:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B35FC29CE7; Thu, 14 Dec 2017 20:52:52 +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=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 6329329684 for ; Thu, 14 Dec 2017 20:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753016AbdLNUvy (ORCPT ); Thu, 14 Dec 2017 15:51:54 -0500 Received: from mail-yb0-f195.google.com ([209.85.213.195]:39397 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752377AbdLNUvu (ORCPT ); Thu, 14 Dec 2017 15:51:50 -0500 Received: by mail-yb0-f195.google.com with SMTP id 69so4520474ybc.6; Thu, 14 Dec 2017 12:51:50 -0800 (PST) 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=67FVK6m3tg9nSBq4nrn1ahXUN+A7AGl1KA13jkw4Ghc=; b=rvAXMa4J8evFhAkI8Ki4wjfEeEaHiJ73ICTqWOhGgSCCaK9Hwwn6ru3R/YvhkNEUx4 2AzvXQ/JjeCpaTdLs2B2aElgcSOkqpR1RKBA6tOq+joYFh42yhKleI+CwJl+otcA5FLz PUgd/GDLVXqKJMpnHznvOdEndpeTYj4//BuD/KuPdBJZ5X9YfohvBMSOrLGn2olOCn1N faO90J6n/fjsCyPJa8gJb+mzIZ34c0u68wSjPLS2tEBUjpUFOglslMvSvaX1wuNfsfxO VJRTGjB2p+PM/jVFe3IXIUWHBnOVXfqcIkAS3CnTNklMIN494mcSbVrSRwSdL247hpAr hzpw== 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=67FVK6m3tg9nSBq4nrn1ahXUN+A7AGl1KA13jkw4Ghc=; b=hTkz3ffeXi5bl0mMKHTZ5dIkJamRLEXclzzhfyyPDi8jxiefm3LyssURJmvaUxc1rB /TrO4T8+Bn7C5lFHJ61yDkJp2kQJazzly+wHD/vHrQagD819FfSguR6ZGomHRBhINJ9K klXde8/J7ythqRa1LELPY3VEzz4owrzsIqWRjxvX2qP3VMZrbUaD9a4RgePa7dJm22rx aoz1PjMzjai19kjlEEwue6I23zhm1kcq/OR0Uv5fbAjsE/bux5dIYnzzRT/2/LFGfuWi Q/djhOYLP1Izz+oYoEcR1eDxAYroWi8ci374eQAIrtT39WanUxk0K6zm9iVmlTo4qn0a D1PQ== X-Gm-Message-State: AKGB3mI2Zb312N4ANg3rSUtDLjAXGN+5JGB93kWNThqS9Kh+YO5GCr1S ZzijLF+2BBuWWzWm1FsMSbw= X-Google-Smtp-Source: ACJfBot0cE7m7B4kZi7EMSFZ/UsGWaYKeS75uHEtZMfpi416vJX7nUvQw6B/x3oqb+GSfcHhKBVz0g== X-Received: by 10.37.88.196 with SMTP id m187mr5603412ybb.41.1513284710109; Thu, 14 Dec 2017 12:51:50 -0800 (PST) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id l33sm2154073ywh.6.2017.12.14.12.51.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 12:51:49 -0800 (PST) From: William Breathitt Gray To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: benjamin.gaignard@linaro.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH v4 05/11] counter: Documentation: Add Simple Counter sysfs documentation Date: Thu, 14 Dec 2017 15:51:43 -0500 Message-Id: <91b739431afb52f0f95a4e33d01e636347649d05.1513266127.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.15.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 attributes of the Simple Counter interface. Signed-off-by: William Breathitt Gray --- .../ABI/testing/sysfs-bus-counter-simple-sysfs | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-simple-sysfs diff --git a/Documentation/ABI/testing/sysfs-bus-counter-simple-sysfs b/Documentation/ABI/testing/sysfs-bus-counter-simple-sysfs new file mode 100644 index 000000000000..e1f32c64c667 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-counter-simple-sysfs @@ -0,0 +1,61 @@ +What: /sys/bus/counter/devices/counterX/countY +KernelVersion: 4.16 +Contact: linux-iio@vger.kernel.org +Description: + Count data of Count Y. This is a signed integer value that + represents the accumulated count. + +What: /sys/bus/counter/devices/counterX/countY_function +KernelVersion: 4.16 +Contact: linux-iio@vger.kernel.org +Description: + Count function mode of Count Y. Count function evaluation is + triggered by conditions specified by the countY_signalZ_action + attributes. Two count function modes are available: increase and + decrease. + + Increase: + Accumulated count is incremented. + + Decrease: + Accumulated count is decremented. + +What: /sys/bus/counter/devices/counterX/countY_max +KernelVersion: 4.16 +Contact: linux-iio@vger.kernel.org +Description: + Count Y count data maximum value. + +What: /sys/bus/counter/devices/counterX/countY_min +KernelVersion: 4.16 +Contact: linux-iio@vger.kernel.org +Description: + Count Y count data minimum value. + +What: /sys/bus/counter/devices/counterX/countY_signalZ_action +KernelVersion: 4.16 +Contact: linux-iio@vger.kernel.org +Description: + Action mode of Count Y for Signal Z. This attribute indicates + the condition of Signal Z that triggers the count function + evaluation for Count Y. Four action modes are available: none, + rising edge, falling edge, and both edges. + + None: + Signal does not trigger the count function. + + Rising Edge: + Low state transitions to High state. + + Falling Edge: + High state transitions to Low state. + + Both Edges: + Any state transition. + +What: /sys/bus/counter/devices/counterX/signalY +KernelVersion: 4.16 +Contact: linux-iio@vger.kernel.org +Description: + Signal data of Signal Y. This is the respective input level + represented by two available states: low and high.