Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1673857imm; Sun, 15 Jul 2018 13:47:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcRC39hE5l1IgP8w5EIRY3deZP7v6Ibv70040XNxW6rUZm9idlj3fOAG9bNL6Y5ANxTjBFd X-Received: by 2002:a63:9619:: with SMTP id c25-v6mr7127248pge.75.1531687642704; Sun, 15 Jul 2018 13:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531687642; cv=none; d=google.com; s=arc-20160816; b=INVSrLcigleBbeQcZytXa+Bu+zivJsoVzpwaXVNHfmsClD7c0r+J90cVrlpy1Y007U seUUthAJAKC8nvB5BzWbw34c9xgdIt7E/X0FPODTlLjUAAxP1sJ3haOPTUIpLohQRQws mKQ4Ygi6Hs2o7jZ7iqRz0OT1syj5Zgoght7Gaeuv0k8Mj+siWdT6in6NXs9hPiY35++2 aTwVEOIuEnfUpf1C55f+gZA40aEHGXBb9mCuS0V9MRL8YEL1TY9+v8V72qJuxQE83qD3 54Q7eyjnAO/yVNxWTFLjAhO7QaI7IDpoHz/ExH5Xx2G3LperWjDshGdU6AgPdVmLtPHk GcgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=5dt/vipaXkszqYOu7qP+nOjtwsDRD6GRQlzoFnZzmXk=; b=I4XdiZ0mcOcZqAgZoobmSDtX1GicGl0nCiOz8bpy/E2oW+PX8Tu7BUNOu4fn64q+mq Kx/x3Hek0q8arm+o9z/E6eelg1h2J9/dp4jf7z1jfzH2ImjefX2hz7jyl3MivD5CuXBm vcs4X17yPhZPRWly809641XC4jC7TocKrjMPjnrFXZRSAYUtgF/oMbEOVnrEeh4cYLGl bG+afNZFWnINN164h7sZ/BvA6bZyakrzrePqf6FMH3GskMl0emwhTLbZVvzrL7uiZYXx rW3lhLvhzIbG00ZeNxqzs57Olz0TnkCZwC5X5e50Nj0ojBWtWKnKnhd9FCfnP1trflq9 MHTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WguS9dny; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w135-v6si31186492pff.8.2018.07.15.13.47.08; Sun, 15 Jul 2018 13:47:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WguS9dny; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727705AbeGOVKb (ORCPT + 99 others); Sun, 15 Jul 2018 17:10:31 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:46293 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbeGOVKa (ORCPT ); Sun, 15 Jul 2018 17:10:30 -0400 Received: by mail-yw0-f196.google.com with SMTP id e23-v6so13022890ywe.13; Sun, 15 Jul 2018 13:46:20 -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=5dt/vipaXkszqYOu7qP+nOjtwsDRD6GRQlzoFnZzmXk=; b=WguS9dnyjz1DQe8V/735S2m7nlaSVi5qpK2JxC0hxLA5eb257qB4W+u+ebfdVgd+JM C7nzYQyAmJxvtWUFqbqvEQtQfWXZMfSrM7Ksw4+C8LK57C9kFjuI8/xLdSFdnJwnTiFU +TOqyUR8dN3fxaKBDUPzj9Csu+AdKPmnga4eZI7rlOPxdnFvQ6iDz47I0nTxZhpFhsJd OCql5f3MUA5epDKO0fJmDEjeHC49Q527xW7zBXCSmnvczFkdZUgl8YaHWbpWNI2xZmQ2 /nPd1qSAZ21hx/Fyl55swkelw6jw95SJnBxSFoz9MMLjSwfiSA0HFKW6BmbJi2wi3BkG zqYg== 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=5dt/vipaXkszqYOu7qP+nOjtwsDRD6GRQlzoFnZzmXk=; b=OfviQ/qeTnVY1DFUrHa3JT2QGGCj91oHwY53UkUJT4AtDlgJjsyOJEdyCWindZKwI9 OazMA2IE2H3jJ2EXjoc3+biDIAmCTaiEPZqM2DOHZNWCJlVa0c45mAXRiXrwgjZNvsfM gOCn3XsjeoNbau68FIOW5lpgIYhzlw1dbccKKE54B7WTvh5x1hIt1e0Aau3PUTscwUhj bVPaJ9lHkxacUBVL1qeLTAC9iqACt8W3wNhGxaFH1IGySOy9IwnBtBQ63S56UtXxoPM+ jpBQCys0lsWNw7nr2pHOdSf7tYyLI9n9AC/Uxc11t19vzHQ/YVNtxWiwjLSc/8/bP6Lg d9bQ== X-Gm-Message-State: AOUpUlELXMLEPwqGWKWgZOxxnPMdTCHFT9isj1+KZZA7KRIMjRWbzISO dRGWKEge8/d4IqpshKdOWbs= X-Received: by 2002:a81:af5b:: with SMTP id x27-v6mr7296334ywj.68.1531687580385; Sun, 15 Jul 2018 13:46:20 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id r12-v6sm1580720ywg.67.2018.07.15.13.46.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jul 2018 13:46:19 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org, jic23@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, fabrice.gasnier@st.com, benjamin.gaignard@st.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, William Breathitt Gray Subject: [PATCH v8 06/11] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Date: Sun, 15 Jul 2018 16:46:14 -0400 Message-Id: <0fe263bc6bb36208eaa2fbcd83fa04fd22fb597e.1531685025.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds standard documentation for the Generic Counter interface userspace sysfs attributes of the 104-QUAD-8 driver. Acked-by: Jonathan Cameron Signed-off-by: William Breathitt Gray --- .../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..2d9fa57af101 --- /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 f41c45246e2b..865c47a3feae 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 -- 2.18.0