Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp73341imm; Thu, 21 Jun 2018 14:09:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJymrWF2qxAm40IzKJZAv1QUNvORs+JemeA29CMNHrhNuBqIOqofCrV36Uq1Dmk2gz/WfwM X-Received: by 2002:a17:902:b410:: with SMTP id x16-v6mr29821990plr.324.1529615385069; Thu, 21 Jun 2018 14:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529615385; cv=none; d=google.com; s=arc-20160816; b=zmHmMefVGik8mu56N7iwKVnc8YoxA2Q/dFoAjeuyt+YKahlYKxRvhDB36ADjx73sU6 6Ldqm/PSl4lbss1Jby+vMPFfovMxW+/9C8EKr70+h3y7ywrsbaVfiTCB4wfLQWjzd6Z8 fQe/2m/8bK50ec60sR3uEBovcmL5+Oup2dZb9YA8z5Kl5tnkZIIVCNYrqdaX2TK5yDWj BfGAN944/O9M3jVHI1gM/N4cJljQU6z4aPLEKN/McK6ri/n/ELST6kVfbIapSwqRX9Kk NkgpHsG+YQovsSZg/expNiu3HOGpghAuqo8G5GsbG6sQlN3HDLhkjjzjPHpMOfOJkG5z 7ucw== 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=eA2MhywHD/qn4Zj11fSlYsUI3I8yvVi/AeZkHCDB+bY=; b=ofB/UI0gNF936p1EBCT7yB+rle3rGd5dTCv/PMGFigHvKuSYc5Ay7cZiZeGSMVs0mB zZBblKDTJgauEhWwyrLVRkyTU/HaZ5P2c6wutsnQIG+WvAK6Wzhe96KnPA/sN4xweFR/ cma/ngIUWxyESNTcuV8zU+jufoCA/502e71fanP6KoF2uU+kZH9vTZxAoLa5OsZGadfl VuDUFYcv2gXe0e0mHF3g/iwVvuuE6+PGkaTzG8TBOPmgWmFtXZEkTZQP+6xGdB9c3NU4 +cuiOCgpOoFqo7NhnEiyADGQARTp2Kz4HMiz9WdyLfaBxmI+cdZnWM6dmAeFswWXnJvN HK1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pT8JpJO4; 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 f2-v6si4655046pgt.650.2018.06.21.14.09.30; Thu, 21 Jun 2018 14:09:45 -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=pT8JpJO4; 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 S933701AbeFUVIS (ORCPT + 99 others); Thu, 21 Jun 2018 17:08:18 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:39069 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933364AbeFUVIP (ORCPT ); Thu, 21 Jun 2018 17:08:15 -0400 Received: by mail-yb0-f193.google.com with SMTP id i2-v6so1760503ybg.6; Thu, 21 Jun 2018 14:08:15 -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=eA2MhywHD/qn4Zj11fSlYsUI3I8yvVi/AeZkHCDB+bY=; b=pT8JpJO487fUcd75WuNTbpzGNykY0KpS/zfEdfW7BCvyYzQRJP2o7anxPfmNuGlMUU HY/1Gy9Zu+R21v8pfz4J6NxsvjAmgxIB3fVTy+Fz42zP8fb00PvFj+VkgbfV+ER7eF2F wC3w8I3gSEAuzJAyMciJdIu2Ohd2bZofEzwh4zzkR9AA3wkJd3P9YTyZZbAl+4Au95d/ 5/dvuq+HiDI1nBL4kYLELXN4kVcwuLUUiden1PmQepLQGC5MTrvqpSc214r7GeFdaQ8c 8qvjPHh4wdv79ZA64RBpHKLQHluT5afZmC2vCZKt009GB3bp8xKn9mH99aaV6ETw8NjU ztng== 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=eA2MhywHD/qn4Zj11fSlYsUI3I8yvVi/AeZkHCDB+bY=; b=HMWI4TH+P9arrouzr/5fFtOMSW/d8rnR2I4pbZp4QAvsDm/OXs5z56UCSwUgrTKzzf A3c2CRDAAOxfMZaYgnoPv3xmKMRijmlcKWRcua0XvYpsyktuexZDyla/YO8wn/cuSURN szvHkkQOu9rmCkeYWUyPfNsZy/jynZBu1QDyr3q3KSaB/rsUnZJxDQFOa7/M1ouBbL14 l4OWlnd/1QfNyXfT5bFfkrVy5gTmP1OckUS87Y0FC6oLRqidNatSQ+JpisaIZmSxMP5c QXU2ctimCwEAF+EypiPNsNvxZfadSRoRUJJxpfDHtnkh5dgieDge46NfLUuLPPa/emQr KOrQ== X-Gm-Message-State: APt69E0gvuPT5UO4OwkAiF0Clj+z/EEEbcATDeg387ExBMNZWpLnke6f j85JBDM0x/Ox00Pki8e2Zd0= X-Received: by 2002:a25:5307:: with SMTP id h7-v6mr13718301ybb.11.1529615294493; Thu, 21 Jun 2018 14:08:14 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id f66-v6sm342718ywf.46.2018.06.21.14.08.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 14:08:14 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Cc: jic23@kernel.org, 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, robh+dt@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, mark.rutland@arm.com, William Breathitt Gray Subject: [PATCH v7 05/10] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Date: Thu, 21 Jun 2018 17:08:08 -0400 Message-Id: <891d9716ce95bd8568296ef53d5b8d266f7efe3e.1529607879.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.17.1 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. 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..062637df3c78 --- /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 4083523699f3..a06fd762f5d9 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.17.1