Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5196047imm; Sun, 22 Jul 2018 15:52:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdqKIzaoxdMlaOFqG0UO2Tg+d32dFKMiK7khBbKBdlMDlXD1kkpek1i3GD898W6YwAdLQc5 X-Received: by 2002:a62:a649:: with SMTP id t70-v6mr10829101pfe.149.1532299975364; Sun, 22 Jul 2018 15:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532299975; cv=none; d=google.com; s=arc-20160816; b=TKQH9cGIPrkctjBvzslzPvyOVSQZwn2BsGAybkBDg2awmbuA0PIm/qokAPp7QfLrFh AtQCJmkWWw66TeADPb4ZR2tF/xXNqrMLNX6PTEFzfw+hncOsutSYiekxaTgXDWiN2BUB ZknVBDfnt8cJ3NMrXPs7YWz2t0ED/jBGVIFCh1NQ2iT3mrp/uzWROPi2cPTqbAyfNjtY sm2yTX0viS6QenyZutb1z5xXTD62X5h+ctGCRghPoTreVscL70hDda074yUh0UHv+p9n BYlEllubm4262GI4SX1n5kTGVKuf30OEHxZHfAVQ/twRBlVoUDyz/SzK8gtEYeYtzRt3 9p+A== 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=DoSyl5Jl1ZMT4VOLb4u07myKHBJwIn4rpPb1ILpf1WlHt1fscmi2gXv9qSzXhkqEyV dfxFyJ2wx3I38lOhhBIqkY9plKf4t+L5cYNv+Tl9odhsZloR+IZJYj1f3xncx+Jw76Vs F80jz879foY6og7egH+pGm55a/Z46hQDKY/k0Y9p7ZwqdtbVvStUt2GmTN1Z7E3Q8UgM 04CrA29UenrZaEpr1LbyRDkwwhIjea2x1yEQynuMG+DU6MeMQ/b0n/w1nP/j58vy/k1g go669BCtW9v6kGaIpbm9Z1a+sGPfC3KSOq8OLFFqWEYEXbmJUcgY3upYfN3WG3I45NG3 f5iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h3kp7ueo; 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 s14-v6si6683699pgc.617.2018.07.22.15.52.41; Sun, 22 Jul 2018 15:52:55 -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=h3kp7ueo; 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 S2387759AbeGVXti (ORCPT + 99 others); Sun, 22 Jul 2018 19:49:38 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:42141 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387732AbeGVXti (ORCPT ); Sun, 22 Jul 2018 19:49:38 -0400 Received: by mail-yb0-f195.google.com with SMTP id c10-v6so6594919ybf.9; Sun, 22 Jul 2018 15:51: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=h3kp7ueo7GNaS1p8QXoXmbFhaCKXh+MZL3jSI+VKbZ5kg02BuSOpEuvYsbNAOo7ap3 svBS88qFGbNJsRXGQy5Ojlv5nrrv6wG6ibYo1SRtTQLv/1v2A3M3uyyEDiQ/lSC0kV3/ jDB3DxiHqCPoU15sklGp7GK2pXyfETv7w/qBu7HMh7rYuRLIp0Rq6zG1dt+QIceLjXeP PkCkrFxadq5G4ErNOkdsv4Wwb4mkuel/YHyStGo2d1NP0ku6GC+eWSiXQ05tQSnurD9B TYXmOpUOsMdRDpvy7nZjDLWYnNQayt47cL26N4U/LDgbj/TciPjPMJdO2ZLFlF4NMCUU w3tQ== 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=G+4I2v0VrqJG7SSks06Fn6Vu010YRvtIzWBwNxcPiywEaNYyVTq3yjoX3UGUxiI6L/ 9srD7vPM/nmoiVUDo2QaKipSjXuIYvw1fMNIXAfScCfKkdkXQL9DL+C89zAq/LGzwfZZ Olanret5FR2LNDB1b9VlarXcEJmgrTqMFG/TkFtpucyoSV40udGraMMJCsMQp9Eahtxs rgOqVTAnF/Dli3C1lTJO7sjWOmVtMZyl3ggAb+xMjnNjFYysvpuNdSRpmTFOZF6uEPzC mhuyHx34RInxbXrOK34Gh+mhmZwagk0VAhVC1TrTLtqINHe9DFa6vCqsVNzzmJDKq7V6 izSw== X-Gm-Message-State: AOUpUlEDLVYxvO47PgbDhLumC8E5xO4tG5zqQeGu3fwoV/6RQaIiPucq 2Z+kRWOBFXzwSscGKC1VP+8= X-Received: by 2002:a25:dbce:: with SMTP id g197-v6mr4328470ybf.333.1532299879608; Sun, 22 Jul 2018 15:51:19 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id q184-v6sm3767091ywd.78.2018.07.22.15.51.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 15:51:19 -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, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, akpm@linux-foundation.org, William Breathitt Gray Subject: [PATCH v9 06/11] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Date: Sun, 22 Jul 2018 18:51:13 -0400 Message-Id: <3f51391e2bb036b332a518503d60f15fe1dfddd9.1532298882.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