From patchwork Fri Mar 9 18:43:44 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: 10271653 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 9D5CF603B5 for ; Fri, 9 Mar 2018 18:44:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90A1729BF0 for ; Fri, 9 Mar 2018 18:44:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8410229E78; Fri, 9 Mar 2018 18:44:21 +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 0CC3029BF0 for ; Fri, 9 Mar 2018 18:44:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932641AbeCISnw (ORCPT ); Fri, 9 Mar 2018 13:43:52 -0500 Received: from mail-yw0-f194.google.com ([209.85.161.194]:38008 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932195AbeCISnu (ORCPT ); Fri, 9 Mar 2018 13:43:50 -0500 Received: by mail-yw0-f194.google.com with SMTP id b70so1505401ywh.5; Fri, 09 Mar 2018 10:43: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=RGPTknpJF8CNz2BI2AGB4z/Fw1Y4rMemLlpDjOacG8E=; b=OKxVZN+Ezi+Y5KYS4P6sJWuCKDxwftSzNAvRL0vSVd2yGwm34nM8ObCeQ/U9NclGxO cHkRSWUAlMzQ4IjYnKbxSpJq3T/19Daab4stLP2cMdt8TfqtHe8hBpy02njl7353/BQV IPqyDEDocpJQIt1NfAldV75FSMen/aRxnyG5i8BCtMGQGYfVGHIwHCwl4CWHlc/i3mzQ VFR2g1+G59FBajZJ/9/NDVLQ9Km/rUOh03lSZQOeR1hX71GKO5sv/URUeeTBzInIiNYM v95NhokjgHQnkjFOhvKj5qARlXOUS5YcksEFW6UJ39HxYHW7Ug4QD27Vn7vv6srcaiSP UbWg== 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=RGPTknpJF8CNz2BI2AGB4z/Fw1Y4rMemLlpDjOacG8E=; b=jK0st1haD1jlk0gasGXppof4RLZ7GFlzeehwfB3dQ6sn2l8rODVYmj+HjhKnfbjZI1 RY1gOL1zZs5xCKzjKlMHolEhZX069DtfoWrhOcaD3NK3VYKbM/+ZgiB/Snudk8r8LoNA VpXFJ8nYaA4ennYe4TARe2OTNokXxMMovBIiGRcbHKLyqfrPfCiGADhfMNHO0ScI9Uox rI+1nffFVm0Zk8rXhn5xBK9nrmJGZZ5UmddqQ72WBUouYO52u2Rbf+6XxTGRadee9+K+ 0ETjAWJVNELwqt/z1h2y5AwIAJQr4++Xr6vbZXLLCU4pKFITy1pEQgWfMOCrrstBocct 47Iw== X-Gm-Message-State: AElRT7FfANhPc0XKGu1fuLwGB57Xq/i0J2Hfrbqxd7Lyv94Y6pE0NhOK /kU0mFNaNTtuNr7nG9kCsW8= X-Google-Smtp-Source: AG47ELv+W0RRsjqu0aXRYpNrGI1Tk1XebML0TETZAX8NivgUDZp/WYR/8vRCsMDYgcFJBPaqY4HxcQ== X-Received: by 2002:a25:aca2:: with SMTP id x34-v6mr19637889ybi.355.1520621030220; Fri, 09 Mar 2018 10:43:50 -0800 (PST) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id d202sm556442ywb.42.2018.03.09.10.43.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Mar 2018 10:43:49 -0800 (PST) From: William Breathitt Gray To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: benjamin.gaignard@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH v5 7/8] counter: stm32-timer-cnt: Add sysfs documentation Date: Fri, 9 Mar 2018 13:43:44 -0500 Message-Id: X-Mailer: git-send-email 2.16.2 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 From: Benjamin Gaignard In addition of the generic sysfs-bus-counter ABI stm32-timer-cnt offerts three functionality: - enable the counter - set preset value - allow to read counter direction Signed-off-by: Benjamin Gaignard Signed-off-by: William Breathitt Gray --- .../ABI/testing/sysfs-bus-counter-stm32-timer-cnt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt diff --git a/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt b/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt new file mode 100644 index 000000000000..73328e8e6d7e --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-counter-stm32-timer-cnt @@ -0,0 +1,21 @@ +What: /sys/bus/counter/devices/counterX/countY_direction +KernelVersion: 4.17 +Contact: linux-iio@vger.kernel.org +Description: + Read-only attribute that indicates the count direction of + Count Y. Two count directions are available: Forward and + Backward. + +What: /sys/bus/counter/devices/counterX/countY_enable +KernelVersion: 4.17 +Contact: linux-iio@vger.kernel.org +Description: + Whether channel Y inputs A and B are enabled. Valid attribute + values are boolean. + +What: /sys/bus/counter/devices/counterX/countY_preset +KernelVersion: 4.17 +Contact: linux-iio@vger.kernel.org +Description: + If the counter device supports preset registers, the preset + count for channel Y is provided by this attribute.