Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1081017imm; Fri, 22 Jun 2018 10:00:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJGW8HITii5Cvd0Q6v7G6zfz7t/lQ/vOT1PsrAbfJKei4qJ/qYXhjzNZSECDhUQUaaSMji0 X-Received: by 2002:a17:902:9690:: with SMTP id n16-v6mr2514733plp.94.1529686859678; Fri, 22 Jun 2018 10:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529686859; cv=none; d=google.com; s=arc-20160816; b=vMqK/3QL+sWWcOC0U8JL9/wxeGDh0qauzPcFEqi8ZAADHkOVdFri+vBcaPzyz1NPtb RSuzk6xJvYLNyC/S1nwx52CYm1OduKxIUmaNlwlHBXzMyXcpu3XAyUhDJcQI+MuqtImJ t+M1+QNZrBTa9Cs7oPLMLCdc6Vn3guWBq+hgtOFtNFwAvn9w6TBU5wOpojWfRO7jC33L wB9pf9m1l7S9Z8B2f9pABQ+crx6obRRhDHZv2M31ZBqTV8IC1GmepPmzR8JP3cqf/Sfp tKnKOqD/nwW6w0n1T/fbBmTFDStVv8m9Y9HwgxtmxrvGIQowN/cI2hgKilar2QXKshFw 9KtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=epW/apW21ZdECDwyS+1XAM1WKpvr/O3tUXeUepoU4n4=; b=IB0ZlUx1y7w00Ube0VP1NVeEbgEb9JYxjwLsB1AxFIk6a15psG/Zb8OhqvkpQV+A8G +MBhRh8NkDM36QvjRVEF2B3R3KnofjVMXkzQ80zi1veXSJGj6jm8WZEsyfCbSVG4ZJyu nsaTS3DoQVHSmTOL0JXHkwA0yGNiJyIYXueVAE3JlOIsoAqnhJocy1I2ExanMO4LJztZ lQWM+i3AeK5tg+769Jy73dl6Z3g9WVCb1j2hT9tlykJADT/3xB0jlv4d/5pB84uIeZdP yc/brJoeNxt8UAkv+eYAIOmp0Sv6MA/ceniq2PBpgt5gUXQvYtSoAcv9+SaaCLhOg6up fcJw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8-v6si6589696pgs.533.2018.06.22.10.00.43; Fri, 22 Jun 2018 10:00:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754454AbeFVQ77 (ORCPT + 99 others); Fri, 22 Jun 2018 12:59:59 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9124 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751377AbeFVQ76 (ORCPT ); Fri, 22 Jun 2018 12:59:58 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id AFD7CE64F940B; Sat, 23 Jun 2018 00:59:42 +0800 (CST) Received: from localhost (10.47.144.153) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.382.0; Sat, 23 Jun 2018 00:59:39 +0800 Date: Fri, 22 Jun 2018 17:59:25 +0100 From: Jonathan Cameron To: William Breathitt Gray CC: , , , , , , , , , , , , Subject: Re: [PATCH v7 05/10] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Message-ID: <20180622175925.00005cbc@huawei.com> In-Reply-To: <891d9716ce95bd8568296ef53d5b8d266f7efe3e.1529607879.git.vilhelm.gray@gmail.com> References: <891d9716ce95bd8568296ef53d5b8d266f7efe3e.1529607879.git.vilhelm.gray@gmail.com> Organization: Huawei X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.144.153] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Jun 2018 17:08:08 -0400 William Breathitt Gray wrote: > 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 This stuff is very device specific obviously, but looks fine to me. Acked-by: Jonathan Cameron > --- > .../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 >