Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5134408rwb; Wed, 21 Sep 2022 03:45:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6WGoP0i8ZrOPhekg0dCi2+cSWbfXluykh2JGo21w3DIKgEpEd3CNad0cVKOoSem7nwaueM X-Received: by 2002:a17:906:cc58:b0:76f:c119:acb5 with SMTP id mm24-20020a170906cc5800b0076fc119acb5mr19630570ejb.651.1663757150058; Wed, 21 Sep 2022 03:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663757150; cv=none; d=google.com; s=arc-20160816; b=pA9zlsGfmEQNW9QMzF3baypQFpVeBllqMEiBdbbyvyUs5GGat+po/9fxzOqilaH6cS BnG5/DFSQu39pQZQeqXm6qyTh8UJUeQ2gINc5m+P1BEeEIuA21akjS1+2rymIIJ5qdoO ZxjVMW2ufNyIlGvnWAKoBdPgsVQqthKTB96TkgF/XZhArqAFrRpRbFmjFV80ZStWs48B iAYJp8bnKroW3dMh9GqHUkKA503gIwkf6AOsrQpepQBTEwQW62RtpxMA+Ljs3/g/7XSj Zow8fjc4ew6SLKofjsL8p55Asw7UHGsW7tIC6Kw7QnYl/mYFMZEeWcjy1vBU4ZAKjBIR BI5A== 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=SWRMCtpzElNqLTlhEdQcA2dgwTzzcoB0Eu586QuxWjs=; b=C9tilFJFrrAec6CZZ79AEuQyEHY3JH1gbRIlrglg56Ms8FWoVYdfTwbYvq9n5Upuxd 1b3AXSLdxp0Me4TXmgZVCHs0mrNQ7Pu6sXSm/hsgHK8I2n00c120gqD6ad1tr9jwKmYA 2D2OanoXYcAIUlcFq1j6+TVVbV5VclqnEHfn3K35UfIOkewwgnrRUHQ3DJtqahbqum8d /5n20b4TPWrsD1M0LHaSTX2QbXXX8aPL0rLgYN+Im+Fu10FJSsMrpCqMP7ARROilm+25 h4QbQq6gWMkSC+TdhuXQb16qu+DdD3VpqpAGED2tj51D8AqwY02CzjrMF6Flo2WOpRQ6 x1ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=MAMVru1Q; 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 l1-20020a50d6c1000000b0044eb6122f76si2114864edj.137.2022.09.21.03.45.24; Wed, 21 Sep 2022 03:45:50 -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=MAMVru1Q; 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 S230429AbiIUKGo (ORCPT + 99 others); Wed, 21 Sep 2022 06:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230099AbiIUKGg (ORCPT ); Wed, 21 Sep 2022 06:06:36 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04571786E0 for ; Wed, 21 Sep 2022 03:06:34 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id l14so12427888eja.7 for ; Wed, 21 Sep 2022 03:06:33 -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=SWRMCtpzElNqLTlhEdQcA2dgwTzzcoB0Eu586QuxWjs=; b=MAMVru1Q6XPT9axfw/NkmiV2TLVyFGyw+JPeVX6jT7N9j0ebqoXCsLbPcNw10z9215 zKFB4b4AOtom2ITDlJeyu2Xu7eE+Fr7lTdPyLM75euGlZtfnY5yEhJMMNz2UFfCfjoRX v7OiUzDRXM66PzLdDEYP+EO0Dtn30xZukKf+BYEuzBmRrNcHBijOkHFBORUXgQz7kv7X yAypKF7c+O6VGGEHFjum/uScuOXAWVz2a95zqcpkVT7FhyWBTLKlId4r8IlQJzUCQ6YE 5PrKZK4QPaKzMyVxIWUUYPSYm9teOPtZJE3k1Jmbrm636aYV3ZRxFxgwUTB/hm+M6Js4 QE2Q== 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=SWRMCtpzElNqLTlhEdQcA2dgwTzzcoB0Eu586QuxWjs=; b=lpAtW+ysrxNAwXyggllhyiTX45a3wpKdu/v5Yc25gwv3NVnWKlTOlHn8UgRfew0cJi c4vJ+rMQGxWEJQQP+VFB+0FQCGtHJ1V3Z2Cmjp1vl0n5AYOMTeV+0/P4F7EKBgIG+hcV 3AukfbZUTGskbFuSJRh2ntK+6Cxswn2Gu64bRs2sYEr+jUc05Dvum8wB3Jh0KcK15YLT mJKkXHajYPLLHNdYvtX3qwstsP3EmDZl5dJ0Ys3wVg4yC8tyA3fJ/uIQ00Ei3zqpU3xp CQkk0VE5heF5J3lR6I0kB2C1wBhEB8ezOZnasLmBzM87KzEktT4KgqRXGchKyVynt9kl ES6w== X-Gm-Message-State: ACrzQf3WRKV2/Lca5cNuWBsRStV1MVpKyWhAbTF1eO02/KbEIL4Z8gcG aXu1+x30o4Qo0HGQQPgbuYePrA== X-Received: by 2002:a17:906:4fd0:b0:781:bcca:78e6 with SMTP id i16-20020a1709064fd000b00781bcca78e6mr6215671ejw.508.1663754792517; Wed, 21 Sep 2022 03:06:32 -0700 (PDT) Received: from baylibre-ThinkPad-T14s-Gen-2i.. (32.31.102.84.rev.sfr.net. [84.102.31.32]) by smtp.gmail.com with ESMTPSA id v1-20020a170906292100b0074134543f82sm1087710ejd.90.2022.09.21.03.06.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 03:06: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 v7 2/4] Documentation: ABI: sysfs-bus-counter: add frequency & num_overflows items Date: Wed, 21 Sep 2022 12:06:25 +0200 Message-Id: <20220921100627.124085-3-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220921100627.124085-1-jpanis@baylibre.com> References: <20220921100627.124085-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 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 frequency and num_overflows items to counter ABI file (e.g. for TI ECAP hardware used in capture operating mode). Signed-off-by: Julien Panis --- Documentation/ABI/testing/sysfs-bus-counter | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-counter b/Documentation/ABI/testing/sysfs-bus-counter index 30b6e1faa6f6..aea0adc3938f 100644 --- a/Documentation/ABI/testing/sysfs-bus-counter +++ b/Documentation/ABI/testing/sysfs-bus-counter @@ -209,6 +209,12 @@ 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/ceiling_component_id What: /sys/bus/counter/devices/counterX/countY/floor_component_id What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id @@ -219,11 +225,13 @@ 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/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/frequency_component_id KernelVersion: 5.16 Contact: linux-iio@vger.kernel.org Description: @@ -364,3 +372,9 @@ 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/frequency +KernelVersion: 6.0 +Contact: jpanis@baylibre.com +Description: + Read-only attribute that indicates the signal Y frequency, in Hz. -- 2.37.3