Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5656056rwb; Wed, 7 Sep 2022 06:14:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4LpkBDa/OLX/ErrobtAOPvFQsSSuPjpGqM1wyDs8blo7z3k5gDJ3pN1RqdR4hcihJbDuFG X-Received: by 2002:a17:90b:4a8e:b0:1fe:1df3:bb11 with SMTP id lp14-20020a17090b4a8e00b001fe1df3bb11mr3923295pjb.22.1662556486889; Wed, 07 Sep 2022 06:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662556486; cv=none; d=google.com; s=arc-20160816; b=ABJPEhUsuvcjGd/aZC2S40K9HyoiEPOJT+h/WAWQCz+vjSddd7oiydd5PXkWlwhz8I 5jPyT4Qogvxr3sviM4DqyGrF5GFK85PtPT/hCl/MQscY5p7AGsEDlRK2NswkB8S+Vqrc 7jigRZJ6l3Pxw+OECPav7ieLg/QrBRWCFKmFX/8zVnAu+1WzcJTJnqoenT6JtV1tIr4X /BIZKjAZ/w6ywiDDrk6SvHHfPCmbC5G2yj9aC+kSI8lhhBsv6cIIxbvuBy/YCeeaxUw3 SHMbAel0rk2fckZ0G2B+ShXZlIiEySLAQBFh8hKs6+CvLuLlVJgfpbuYBIehsMIvodGf XbmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=01WqW6OqBNhMmfAKnd2eWRm7YB0Rra4KiPfcMMDJhys=; b=XOzFQhtkJdMoBJsRGb1jlxwjMduGGdBUeB4c9fuXZs4Za1QCPaYo1rAF0FA9HlcHV2 QsXgeRud+IYP4kA9kKXfLCh/slh/iwS+GSrsDrretiSma8H6UdF533QjWV6bL1ijm5lF rfnoRTl82jM6V3YfNsvv9zhywBn4AxSv7JykBqRt5rXfgzPgMJseQOLvz/OODwo3dE3b 9JBlq+EGb8p8sFyJPJFKEyGyuKApYFnOA4Or0xPi34z3/z6a7IOv9bqIcMMN3nw6H09z gCpZdMkEYESyoR75MnjFv2TYbpycYDVZGSVv2BS3BQ2ChJWiQCQxDZXcbp9zfE7a0QM/ eveQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=jVbJi5BU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a631b51000000b0042c5a26bec8si17051436pgm.75.2022.09.07.06.14.33; Wed, 07 Sep 2022 06:14:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=jVbJi5BU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbiIGNDt (ORCPT + 99 others); Wed, 7 Sep 2022 09:03:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbiIGNDk (ORCPT ); Wed, 7 Sep 2022 09:03:40 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 164646C12F for ; Wed, 7 Sep 2022 06:03:35 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id r17so2814442ejy.9 for ; Wed, 07 Sep 2022 06:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=01WqW6OqBNhMmfAKnd2eWRm7YB0Rra4KiPfcMMDJhys=; b=jVbJi5BUHQNwajwJbogIhHhW5BoJou+46tUpfglhRre1AkqmIVssreIV3PXvqIJxIU e9QQMhq2HoySErlcrmKwZZR0Oquh15bD+eM3XJNu/Lqz0xYunEGuCumTzOsZZR8nS0F/ f7CCrpupTgMiJ9qq3QarIVYbW2r1wQnIsJ/vyFn45IOkIbZLsV6Xmoi34HLWvUj5LUow IdSW0EmjYPuNGxoiohdNg3DJOrfcMmVH3CYqvOqJUnaWFdgyRYubHf3orUYyXXGGXH2h uXs8xUMt71qHUQJap7MNjDPogZM4Od9EfklR28wFJ6FD0pgWlobRNstgz7SoKVfrda1D Zfhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=01WqW6OqBNhMmfAKnd2eWRm7YB0Rra4KiPfcMMDJhys=; b=1D5Q0bN2Y3CRZHzhnlGjAQhLq2v7Hrsy9cLQbblNlp3/g7oayhrna+WYQd5SSyQczq NSGwhNbX8/Uznjz1O/D8iinUDznoL1kaY/cpSdsRcnWY0Y+r4P9k3W/UD8+fEBd/XsFY 6BRlJQB7dnA9uiH4Y7F06VlVQHTBovEiIc4BS4fnY8iEWmXHHihoTqjSjl/rZqIC+LLv zaATMpM8NQ73fWB9Jd3coXpWPNidkBNR+x3QzzDyjADLVTldBzei3rBrKJEWelyXJUOF D8wip0e7UDreKFhKHbjVO6MtHk6/0KFGOSDkKhzXEHTjatjprQaT7Ql7KAShMKDQIuu7 02rA== X-Gm-Message-State: ACgBeo3b0EcScja4MzB/ZFxl/61/3bSl5s+1+lv0Dbr/ZA4Ya9isItez TMl9W6I7c211qFhEO1x49D3suQ== X-Received: by 2002:a17:906:cc50:b0:770:782d:486 with SMTP id mm16-20020a170906cc5000b00770782d0486mr2248821ejb.130.1662555813441; Wed, 07 Sep 2022 06:03:33 -0700 (PDT) Received: from localhost.localdomain (32.31.102.84.rev.sfr.net. [84.102.31.32]) by smtp.gmail.com with ESMTPSA id r16-20020a50c010000000b00447bd64d4f6sm10785000edb.73.2022.09.07.06.03.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 06:03:32 -0700 (PDT) From: Julien Panis To: william.gray@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mranostay@ti.com Subject: [PATCH v6 2/3] Documentation: ABI: sysfs-bus-counter: add capture items Date: Wed, 7 Sep 2022 15:03:26 +0200 Message-Id: <20220907130327.139757-3-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220907130327.139757-1-jpanis@baylibre.com> References: <20220907130327.139757-1-jpanis@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds capture items to counter ABI file (e.g. TI ECAP used in capture operating mode). Signed-off-by: Julien Panis --- Documentation/ABI/testing/sysfs-bus-counter | 45 +++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-counter b/Documentation/ABI/testing/sysfs-bus-counter index 06c2b3e27e0b..1e8f88f67a3f 100644 --- a/Documentation/ABI/testing/sysfs-bus-counter +++ b/Documentation/ABI/testing/sysfs-bus-counter @@ -203,6 +203,19 @@ Description: both edges: Any state transition. +What: /sys/bus/counter/devices/counterX/countY/num_overflows +KernelVersion: 6.0 +Contact: jpanis@baylibre.com +Description: + This attribute indicates the number of overflows since count Y start. + +What: /sys/bus/counter/devices/counterX/countY/captureZ +KernelVersion: 6.0 +Contact: jpanis@baylibre.com +Description: + This read-only attributes is a historical capture of the Count Y count data + where Z (if present) is the respective capture buffer element offset. + What: /sys/bus/counter/devices/counterX/countY/ceiling_component_id What: /sys/bus/counter/devices/counterX/countY/floor_component_id What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id @@ -213,11 +226,15 @@ What: /sys/bus/counter/devices/counterX/countY/prescaler_component_id What: /sys/bus/counter/devices/counterX/countY/preset_component_id What: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id What: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id +What: /sys/bus/counter/devices/counterX/countY/num_overflows_component_id +What: /sys/bus/counter/devices/counterX/countY/captureZ_component_id What: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id What: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id +What: /sys/bus/counter/devices/counterX/signalY/polarityZ_component_id +What: /sys/bus/counter/devices/counterX/signalY/frequency_component_id KernelVersion: 5.16 Contact: linux-iio@vger.kernel.org Description: @@ -345,3 +362,31 @@ Description: 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. + +What: /sys/bus/counter/devices/counterX/signalY/polarityZ +KernelVersion: 6.0 +Contact: jpanis@baylibre.com +Description: + Select the signal Y edge polarity where Z (if present) is the + respective polarity sequence position. The following polarities + are available: + + rising edge: + Low state transitions to high state. + + falling edge: + High state transitions to low state. + +What: /sys/bus/counter/devices/counterX/signalY/polarityZ_available +KernelVersion: 6.0 +Contact: jpanis@baylibre.com +Description: + Discrete set of available values for the respective polarity Z + configuration are listed in this file. Values are delimited by + newline characters. + +What: /sys/bus/counter/devices/counterX/signalY/frequency +KernelVersion: 6.0 +Contact: jpanis@baylibre.com +Description: + Read-only attribute that indicates the signal Y frequency, in Hz. -- 2.37.3