Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2310384imm; Wed, 16 May 2018 10:52:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrqFkNDVKotGPaxXkNbWa1EFW2/B7jKTYzPLjQRZt0Kr/Vm8l3PW9s7q3sKkzrqdrpYivB5 X-Received: by 2002:a63:b51a:: with SMTP id y26-v6mr1505927pge.215.1526493171744; Wed, 16 May 2018 10:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526493171; cv=none; d=google.com; s=arc-20160816; b=o0dwv2g49TGAn+WWFKjgzZW67OBin/bAlxAcrPVLs0fo2cHC8dELo0ftUznV5FWZIa 6lXIfsMMSBu7KWhKQHPtw2LMRX0AO4Sq09gjvoer0qct8T1Z7KaD0hio/xcaWjTx/6Nt DgzVXrBnEHXEaWRTL34f+khFva8mLKU0m94ZQ6ZtD/ovW7lQRsz9U559taQq97KQiQDA bRWNeIpCFwefpVG7Dg92HMiRQjkmdj2mLkNR7ll+N015VKk/ODYfOHycsq2OBoy0Kc0K 6Me6AGaRfkgbL/kORMAYk/5sFsISajc7XN6AlC+HpJHvRPQ1KtQ4p1xTtJv2b5R9xfSy nEWw== 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=2mDoN3Z8TrnfvcNGIAt8vnzgMAQfH9Zo7JC+y2UFoSw=; b=u8lXvmXmraL7hNy0ODuHeYKtw6tVIsga199bzTjLveLakoD0wEjm4v6HOOWvOUuYbt PB14/NA6qk8xKYBeuKMJYTHR/mlqRsHZEy5Fvxj/uCH1I3Bq06ThB3WNWW0bcpFj+jl9 B+cbj8O9Z7dyq9WI8ahBuh1QDy/0cbJGzOgil902heuA9ei6fB2Xyr7XfMM6vvfhCW5x p8aQR6c+IBuMoVKHijGjjEBvNNKleegR/9EVMVWigpWcUXZWaRjUc3zH0zgD1XmS86Ny /k2F0Fiv7mCqk65rlbuURT/HG0ufd/t6J3Ap67ca/RaMfoQAbjJbH/TFNqD/ci58y8EM xKGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S6SncAWa; 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 33-v6si3005828plk.83.2018.05.16.10.52.37; Wed, 16 May 2018 10:52:51 -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=S6SncAWa; 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 S1751293AbeEPRvx (ORCPT + 99 others); Wed, 16 May 2018 13:51:53 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:45213 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752232AbeEPRvv (ORCPT ); Wed, 16 May 2018 13:51:51 -0400 Received: by mail-yb0-f193.google.com with SMTP id r13-v6so549395ybm.12; Wed, 16 May 2018 10:51:50 -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=2mDoN3Z8TrnfvcNGIAt8vnzgMAQfH9Zo7JC+y2UFoSw=; b=S6SncAWaooImu25FJUbSuTFWxNP5OIdZBN7ne+GStu5bVhtPxV0pjwZjP61NwQwtGb lwX2fDXgjvCsoylyc062sW29/EyopJFb2zaYwFoW41R7xh2jOzfykej/tLWNNbge0ZOD zQSsEZRh6s2q0h8Jx42F0j1vtHGo/sw2wd1mbrUG4BIppz0w+blwZazBKHWOj294Pt3b KvvaOkcWND6f9tE6U+K/h8SMlhsJhKDi836o6WZAUQvhG803TX+BYO3qs4OpvRy/Yu3B CwMsVX7CXndQqR0HXY6uCEcZ3JdN0yga5qp5a8xk+HlB3HqgEDbW18sb8cFf3fAWk1Jt m8ng== 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=2mDoN3Z8TrnfvcNGIAt8vnzgMAQfH9Zo7JC+y2UFoSw=; b=HOiNnG0rNFzLUR6bIVJlE8qvHssZmc2houzu6RZJUGaU8PlIqWu56a6p09cu/uGfe3 8Bkr0haj8ZmhjvzSGXgSzp0x9tOjU23KDgYxo7w+uvy2ichCJwD2eCbi0ggm1Id1Je3o 4k7kHEGVd0Ws0JJNE1PodpE1GMinrRXIm46OlGcGyJ4rdPq+fVir1kG08rjflIJSzjY1 VeuUtns7Fy1cdlQM700Nsbzrq4xVSbU65siGTU6ZmirxhCV822JfsScaA0sQ4J3193vg DEYG7no8jdzNt0b3Vjdlgm9AThCKJxy1kOpyoMlBV+tzqw4x1oza6pTj4gtWxmfk36sd 4Nzw== X-Gm-Message-State: ALKqPwcam6vkiny2dHgVCvG4YtndFfktMrOBVJ6y4HzwMAxKErn9LzoC h8/NuXOEXm6I67W20yM6i89ZAA== X-Received: by 2002:a25:254e:: with SMTP id l75-v6mr1081624ybl.322.1526493110577; Wed, 16 May 2018 10:51:50 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id o13-v6sm1299391ywi.30.2018.05.16.10.51.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 10:51:50 -0700 (PDT) From: William Breathitt Gray To: jic23@kernel.org Cc: benjamin.gaignard@st.com, fabrice.gasnier@st.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, William Breathitt Gray Subject: [PATCH v6 5/9] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation Date: Wed, 16 May 2018 13:51:44 -0400 Message-Id: <2dc403b8eebda6f8558bf0883ec7ceae99a8c255.1526487615.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.17.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. 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..274df6768b97 --- /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.18 +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.18 +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.18 +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 f11bf7885aeb..8e27b49e8d5e 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.0