Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp225420rwb; Wed, 10 Aug 2022 07:22:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR5naaXATRZ0LvcaFbENOF2gW8O0q2YNVUwrBZwnsIhSqVgs7B5LCGW8ocfsS5ht/lzVMx9P X-Received: by 2002:a62:6c5:0:b0:52d:2eb1:b3f3 with SMTP id 188-20020a6206c5000000b0052d2eb1b3f3mr27081797pfg.34.1660141352290; Wed, 10 Aug 2022 07:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660141352; cv=none; d=google.com; s=arc-20160816; b=qvFppOYT/7M2m25LJND/6VBNKmOgpc75Yp6k9nzXzW9iC9EMsHn58rja7IAQt1Hoqf 6GGqwajKVpOye2515HCOsFJMfLT3AbWi0z2g2iIClE6k+fBiSFlqhLF8AT1OLmgVYd+p 0PH9bTd/FwbxEwAd+7YbZPfA1X3ZA3PiWXeJkbyODQ2Dqld5yh8HEQPlsJxCv/z3JTbY /HAzQzcg/ViUwbLBn80W1R8zVxcoNCdsBS9EG73p3v5UljBYhiONGoYZT48/E0KM22wi JcMUHVgBGFJaBot9dzxgX5a8pjgLSgrSrOf3+FLWO1DXtL37g2fyUDiZoI+XWmwUssn8 A/CQ== 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=saNlXTXB51vCTSXiZxahbXz4v7+9GH/MAa0h7DJY6Cs=; b=ghv5tFlEX72dSS/CyUmWAhlKPu1tIFRsQMQ1nvN2aEY8RqZ5UnGTNZhPOzhXqWBIIv sqLpR7hOkjUTN/ULniGz8nJRvpHmed3unc3/NwZbFZw5xBDOZnAeYkhq418yVzDMxzT3 o0bCBjkzRj/Iwxo16xOM66mL7PF5Vupx7Iletogq6OGypBqQcPoTcOjaVXu1qMubjMZB HfOdm0BI1FUgY3vdNNFEL9DtVrOoHPf3jthD2pBaCte8FgRox3OrBb4I3AF65aOC0yV5 NF65+oDMZojnZQwrkOcqyibembnl3OS4eX5msHjgTyCjrKXac/XFcuy37myI+SZs2xkg FpDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Rp2dXb66; 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 oc9-20020a17090b1c0900b001f22e869e21si1010451pjb.169.2022.08.10.07.22.18; Wed, 10 Aug 2022 07:22:32 -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=Rp2dXb66; 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 S232964AbiHJOHt (ORCPT + 99 others); Wed, 10 Aug 2022 10:07:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232963AbiHJOHq (ORCPT ); Wed, 10 Aug 2022 10:07:46 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1AAB6E883 for ; Wed, 10 Aug 2022 07:07:45 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id h204-20020a1c21d5000000b003a5b467c3abso512466wmh.5 for ; Wed, 10 Aug 2022 07:07:45 -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; bh=saNlXTXB51vCTSXiZxahbXz4v7+9GH/MAa0h7DJY6Cs=; b=Rp2dXb668XuG/+hI6ohbx1Dq80GfHGdQ/2Cl16uoMtyaW9JsI+yU4meP34bODv3m/T FKOBsLPVIm8GX3UdVbQ4o0SXWgegOhSu8rLj2ROyvMMc6qa5wiTqJSvjfwMgCMHhDSqD 766zzB14499A1eCxeOEi1OoPz3J7Q9T1Wh+pgZT0sWr6uckHi5swc5Bm5KO3JmtdfYkj g0xNmu33vjnMruIEILUohMK/6ag2VBpFyCgq+k2GvkjqChQeqIGizwemTSmTEuMj4ZYs rLndrRqXaAC8gkD4F1MUoPlrb53UhRyoPtz+q5vKRP9Mgr7yIGIrpsuiFwdNF4c8zbIk To5Q== 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; bh=saNlXTXB51vCTSXiZxahbXz4v7+9GH/MAa0h7DJY6Cs=; b=07f9pvzkVSCl3YszUe+W5UxhkXbvE57bZEavRaokvnlgjshATyj8/T65DpbvvLcb08 dsjYq/AL/fvgKgHIBmodVJvDDxun1D5+dZ5K1YiY9JohP0Z+D6d6WZhVHzEL40btnYos xUyhLrN8LB1iix2xMsL8DlnSSVmDdjpQU4Z93D3AXADuQTze6RHkhwpxPM5dKhttLWIv dZBulqQpsXxtkv4RbWURMxH3uLkhGg3atKY3lx0SwdGzaPPjPWhKdf0+UPQPMFZZz3EH b/uHLJKcvj2YyXF0L+Zc8YITgLczepTfulFBvuUbEteTj1gX5fIepYRQ+ohelYhz6KQH /ADA== X-Gm-Message-State: ACgBeo22XE60NPsf6LlVKcNp+2DtWCACOGcm0okE4XTHfd840O3rSY5a HDrRbow8b71OZE3vFlWBtuzKrw== X-Received: by 2002:a05:600c:600b:b0:3a5:b811:e7fc with SMTP id az11-20020a05600c600b00b003a5b811e7fcmr77002wmb.190.1660140464270; Wed, 10 Aug 2022 07:07:44 -0700 (PDT) Received: from localhost.localdomain (32.31.102.84.rev.sfr.net. [84.102.31.32]) by smtp.gmail.com with ESMTPSA id o15-20020adfcf0f000000b0021d6a520ce9sm16258229wrj.47.2022.08.10.07.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 07:07:43 -0700 (PDT) From: Julien Panis To: vilhelm.gray@gmail.com, 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, Julien Panis Subject: [PATCH v4 2/3] Documentation: ABI: add sysfs-bus-counter-ecap Date: Wed, 10 Aug 2022 16:07:23 +0200 Message-Id: <20220810140724.182389-3-jpanis@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220810140724.182389-1-jpanis@baylibre.com> References: <20220810140724.182389-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=ham 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 an ABI file for TI ECAP used in capture operating mode. Signed-off-by: Julien Panis --- .../ABI/testing/sysfs-bus-counter-ecap | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-counter-ecap diff --git a/Documentation/ABI/testing/sysfs-bus-counter-ecap b/Documentation/ABI/testing/sysfs-bus-counter-ecap new file mode 100644 index 000000000000..ca530a6806de --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-counter-ecap @@ -0,0 +1,64 @@ +What: /sys/bus/counter/devices/counter0/signal0/polarity1 +What: /sys/bus/counter/devices/counter0/signal0/polarity2 +What: /sys/bus/counter/devices/counter0/signal0/polarity3 +What: /sys/bus/counter/devices/counter0/signal0/polarity4 +KernelVersion: 5.19 +Contact: jpanis@baylibre.com +Description: + ECAP module includes 4 timestamp capture registers. + For all 4 sequenced timestamp capture events (1->2->3->4->1->...), + edge polarity can be selected. Then, each capture register can be + tuned to capture event by either: + + - "rising" + - "falling" + + Reading returns current trigger polarity. + + Writing value before enabling capture sets trigger polarity. + +What: /sys/bus/counter/devices/counter0/signal0/polarity1_available +What: /sys/bus/counter/devices/counter0/signal0/polarity2_available +What: /sys/bus/counter/devices/counter0/signal0/polarity3_available +What: /sys/bus/counter/devices/counter0/signal0/polarity4_available +KernelVersion: 5.19 +Contact: jpanis@baylibre.com +Description: + Discrete set of available values for the respective polarity X + configuration are listed in this file. Values are delimited by + newline characters. + +What: /sys/bus/counter/devices/counter0/count0/enable +KernelVersion: 5.19 +Contact: jpanis@baylibre.com +Description: + Whether ECAP is enabled. Valid attribute values are boolean. + + This attribute is intended to serve as a start/stop mechanism + for ECAP. + +What: /sys/bus/counter/devices/counter0/count0/count +KernelVersion: 5.19 +Contact: jpanis@baylibre.com +Description: + Read-only attribute that indicates the current base counter value. + +What: /sys/bus/counter/devices/counter0/count0/capture1 +What: /sys/bus/counter/devices/counter0/count0/capture2 +What: /sys/bus/counter/devices/counter0/count0/capture3 +What: /sys/bus/counter/devices/counter0/count0/capture4 +KernelVersion: 5.19 +Contact: jpanis@baylibre.com +Description: + Read-only attributes that indicate the last timestamp captured + for the respective capture X register. + +What: /sys/bus/counter/devices/counter0/count0/capture1_component_id +What: /sys/bus/counter/devices/counter0/count0/capture2_component_id +What: /sys/bus/counter/devices/counter0/count0/capture3_component_id +What: /sys/bus/counter/devices/counter0/count0/capture4_component_id +KernelVersion: 5.19 +Contact: jpanis@baylibre.com +Description: + Read-only attributes that indicate the component ID of the + respective extension or synapse. -- 2.25.1