From patchwork Thu Sep 22 17:04:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 608347 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6458DC6FA91 for ; Thu, 22 Sep 2022 17:04:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231564AbiIVREQ (ORCPT ); Thu, 22 Sep 2022 13:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231715AbiIVREL (ORCPT ); Thu, 22 Sep 2022 13:04:11 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A65FAF8C36 for ; Thu, 22 Sep 2022 10:04:08 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so1783642wmb.0 for ; Thu, 22 Sep 2022 10:04:08 -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=aZ9inPx/SpVp/+EGUIHCzXQtKEo6kGOnnJXHLc8UgwM=; b=qoNSKQMejX00EtTaTz0JNlc0S+M1KbIjAJ0TSBb5XkNtZ+0wU2Nu3/Y7+2cBJMRmrA 8v4nhvIjM4eQV4QPuE3cuArfYi/OUff+q7GHHLd37yhF8J9wJaHQyZPuQkzI24dCi5Bf PdxQj+ki8kGvMPwaobfraCZrSCDHGjgmSCskmrn/nnC+2maPkdsJwE9yLhW8hHI5burL xP4grPNFx7zAW/McwSAeQGAbRTcNwrP4DY4/pPEVX/cDXTvaJrKV1DOo4WmxkRzg98qO 4r/9t5ipFD4Bm4yBaclIR2rRmYON44bJhC8A1+rBNVbXBCNGAJlplfEpRB1bC+iHg8QF rPyw== 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=aZ9inPx/SpVp/+EGUIHCzXQtKEo6kGOnnJXHLc8UgwM=; b=V/CxV3j5Jc06mWMTvEmg+txWYgrJfiQR+0U/xtdeguzyUTqLnw7efd/VrRvWewYJMf TeIlB+yf7gpL2Nb/jLWWMEZpULy55jnC9kVDDj/KYTM9954wQLb9fcmTh/v5C0l5ZJt7 Qmr075bT6SV8Ervm7pZr8eiT/OTi/8giHVxCntX9EU/24nyGPoJLyJqnjmi8lcUIGbxC PMTEaVbYXg3XR9fAr1fn/w9c8r3v0/TH0PcynCuRUQ/MwtowHGMII/W9shJD+aYaO26w jRZA86sbgYKeqaALMIdneKgHQlTHu2QOT7eMExrU3AooYHxdsBHZ1TJ21pQwUE7e6/Lk 3OxQ== X-Gm-Message-State: ACrzQf3gQRGLQCuXHHqYS2GCWZZWn3+1g/JE3Nu5xdfQRfQfFe7RwX2J eDkDOdo7rWXdyZq/AqGkNkzcAw== X-Google-Smtp-Source: AMsMyM4Z+RZJw5g2dvKC/JXo0Pp2/JiTnLr5XTIjBhyqBu9eEZKsrPFc0ztHabMZj98mru6u4v0EVw== X-Received: by 2002:a05:600c:2949:b0:3b4:85b2:c1d7 with SMTP id n9-20020a05600c294900b003b485b2c1d7mr10111807wmd.183.1663866246979; Thu, 22 Sep 2022 10:04:06 -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 w21-20020a1cf615000000b003a604a29a34sm20334wmc.35.2022.09.22.10.04.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 10:04:06 -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 v8 2/4] Documentation: ABI: sysfs-bus-counter: add frequency & num_overflows items Date: Thu, 22 Sep 2022 19:04:00 +0200 Message-Id: <20220922170402.403683-3-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220922170402.403683-1-jpanis@baylibre.com> References: <20220922170402.403683-1-jpanis@baylibre.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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..e177c6128236 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.1 +Contact: linux-iio@vger.kernel.org +Description: + This attribute indicates the number of overflows of count Y. + 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.1 +Contact: linux-iio@vger.kernel.org +Description: + Read-only attribute that indicates the signal Y frequency, in Hz. From patchwork Thu Sep 22 17:04:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 608346 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA481C6FA8B for ; Thu, 22 Sep 2022 17:04:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231779AbiIVRET (ORCPT ); Thu, 22 Sep 2022 13:04:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231777AbiIVREN (ORCPT ); Thu, 22 Sep 2022 13:04:13 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AF06FE065 for ; Thu, 22 Sep 2022 10:04:11 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id n12so16522901wrx.9 for ; Thu, 22 Sep 2022 10:04:11 -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=GR6QqlWwcUCHVPDy1PIJ3cv5rzI8XO1SG3L1WODR4pQ=; b=5/xG4bNfcawZqP5d1tciuXBStQXxGo/tY+dSf7Oa5JslTzHv70UBaJZhOWVgMJhAjB r2srFqm3rE9CtuX4U9mqgTT8du1sDAiVqHtXUxRtaW65eLxZXvO6sFyA/rlf40aNHJFa bajB4AtAHtfaa3p1XiKlPmekaJJ6lFcu64+WvfQjjFfagMCX5T2uHNHc2pEb61+7q3K/ vj2Sc4pgExtEQdi0jDt/e7wRbejb1vuw0fYRFbDfuEEaXk6on1UmpWHWbAZzK5l7ZUa9 fuxnx4uidHhX4aEvbBxOAfkHUhAOlsrUIM8Z1TCNj6tfv3L/1wgVAFnAOt0R3WN0rIfM nxfQ== 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=GR6QqlWwcUCHVPDy1PIJ3cv5rzI8XO1SG3L1WODR4pQ=; b=Urcz6DqL9MU+zlxpKFPO6KCk/24Io+OTkfGlWamkI6Y3S8p7ggWWzkaPiB4nzePMyH jteTdvrU6q4IIcb/bP8b9PW3oaxDoaX/LpxBVohUeIHO+guSJyuaNGHlTW9JvaCufF63 YCxDqZnVISsKQM6Nc4NyHUY5qiB3WchBfW4G2b9qxZRgCmnwzLVlB5ZPAicslWg/kUNJ e2LMu89jyQuMfYQpU7SjYSxNUrohT5kSrwkGNm6s1bnnt67/9WA6d/bgnKL5JyI+yhcy QXapwAyToKnpkpzdqDlKQoqhAYiOdkYc/VvDHVlfp+sqxECBwnyDtVXLiNRo6pmtWnTH 6EKQ== X-Gm-Message-State: ACrzQf1m99rMkDdQhvFb6rzlqmNQUkn/XNnHg2E793A/0Ovi6q6YqnNJ 0WFTiXiBWP/C7qw/l1PZm3LKVA== X-Google-Smtp-Source: AMsMyM6lUAz4T7XZ1WtDGRMTGXtFvw6AwsVg2d8BrgUmXBgVc4MeLXk7GbrTV/Mo7lkRfVPha9S0lg== X-Received: by 2002:a5d:4688:0:b0:22a:f718:7f36 with SMTP id u8-20020a5d4688000000b0022af7187f36mr2662331wrq.315.1663866249650; Thu, 22 Sep 2022 10:04:09 -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 w21-20020a1cf615000000b003a604a29a34sm20334wmc.35.2022.09.22.10.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 10:04:09 -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 v8 4/4] MAINTAINERS: add TI ECAP driver info Date: Thu, 22 Sep 2022 19:04:02 +0200 Message-Id: <20220922170402.403683-5-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220922170402.403683-1-jpanis@baylibre.com> References: <20220922170402.403683-1-jpanis@baylibre.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This commit adds driver info for TI ECAP used in capture operating mode. Signed-off-by: Julien Panis --- MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d4999f68bda8..906b93e266f2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20322,6 +20322,13 @@ T: git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git F: drivers/media/platform/ti/davinci/ F: include/media/davinci/ +TI ENHANCED CAPTURE (eCAP) DRIVER +M: Julien Panis +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/counter/ti,am62-ecap-capture.yaml +F: drivers/counter/ti-ecap-capture.c + TI ENHANCED QUADRATURE ENCODER PULSE (eQEP) DRIVER R: David Lechner L: linux-iio@vger.kernel.org