Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4871609rwb; Wed, 17 Aug 2022 07:24:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR5aHqVfRbCuC/V6GgpTKQ9dyTk/PkvMYSJewtALbxzS9jJk7FKW2iYxyEt/d5HjS9Y+YZNv X-Received: by 2002:a05:6a00:1995:b0:52d:5c39:3f61 with SMTP id d21-20020a056a00199500b0052d5c393f61mr25878071pfl.83.1660746269455; Wed, 17 Aug 2022 07:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660746269; cv=none; d=google.com; s=arc-20160816; b=SypQu+N5qAtircSUusLMFXN3P3rcAQTYBRLUTAP1+tG9jOlwWoLwm49Lm//IEAMM2f kBW5ZsKG+Or7i31qk8bXcMvPXNSSTxizZPVi6SqvMewS/G+5tDghIDX4pRBgoJDGomkO 9iFAmlEIGSDSpy+oltYKLLPeOTjqXIdAzY0m4r+jipKbHejMev2d1fm5m+w9r3jt8JEF kEUaNYAFRsuS25MKQM/+TGam2gKc6AEmErWvX6uqB+i/hjg90AIibsoSgpHaRo6UebWT 67oSiP/vi3OhOIwB9borC2dYpg7mT+4wsp/HP+vaIjIPpuCLDquYzGoynXBKX4C10/bu 75GA== 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=pqhA8o+boQJA8OSHBFOoAbjBpl0hxdmasRE4keRadHE=; b=s2iZDZl2ZIQ9vLtbdx7X5QJofxKXnyiXfUSexF0G8lfpTRCGFtw/N6WnpxGI3L4OnJ vPBj5bkZqEG0NLbV18mnxGMzbox8s1rBa6py8+GmY/TfTzMk+dqnpVCI/mAW649knwDx pg9UtB6YGRjs2UOmXXxpwL6+zPybSw7RePNhp0kpY9Rq4XHsdfEYTYb2tngfcraarDJw OShAppwInn7wrlP13zyx1/4BF7NtGrG+ZQWOTLuU50MekFIwiUD4kZoFKra3APGRirbK YTFQKJxCT+c27FcGHIxr/8Cnpc/Ukrl7XK1oPnr5lKHb+pCt1ZqmJjx6EV0tHO3AYpiw tswA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=tQWNW62u; 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 q17-20020a17090aa01100b001f8b8d48e3csi1845771pjp.103.2022.08.17.07.24.18; Wed, 17 Aug 2022 07:24:29 -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=tQWNW62u; 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 S240068AbiHQOQm (ORCPT + 99 others); Wed, 17 Aug 2022 10:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237299AbiHQOQi (ORCPT ); Wed, 17 Aug 2022 10:16:38 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEF525F21B for ; Wed, 17 Aug 2022 07:16:33 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id s11-20020a1cf20b000000b003a52a0945e8so1014136wmc.1 for ; Wed, 17 Aug 2022 07:16: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; bh=pqhA8o+boQJA8OSHBFOoAbjBpl0hxdmasRE4keRadHE=; b=tQWNW62u6NkzqthrlNOENPbDYyV7s12LK0Oin1xhgqb417Nu9ntPQrtyP966DEYmoC pmmLnkABLI3PteTwmCUMbivk5HsQbMIPyzSFrNHg87VMVU+W9AJ1N6BPgJ19hiNs4Nb/ q61IiP41QzRBeV75JP5Lnf5hvar8M5mgn8827KqqsWL+A7pHAiXDv63/1JmvueUzw86Y 7cIN/5tubmEJCsB2RTNNQMGKnWWci/U1MYSvRuVOOWEs2W7ZzfJEseEGESXWqEwpJUxG bFJax1EC20WYoTBZb/yg0r59q9tKIbwgQoV3p0GEeE1RWTsZepd8+2PuI+TgmozzOuPU kPDA== 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=pqhA8o+boQJA8OSHBFOoAbjBpl0hxdmasRE4keRadHE=; b=Bh6yRidBbOy7UpWk9O/77dODRu6sPZvli1sKhnqbErZvEASn6vq8SQT2zd3WkVKjtl IPP8mpECYnOa8/s231HlMlh9YRos/wrtsXfvksP/YDWW1GR4CvsbXGdBi1iksUfAsbow 9pkMxe6JWVlMQhyh0rHFCpjetAlURluqHT+ZCZPRnFmTvdoQX5lFJJJ+L9kF2iaMzLDb CCbc3D3K4kLFGGH108SSQjhDUF/Y/IQTH6ABrjAWrqq6IfIighAxGmW4Y/3ZKxpRtx1d wasGBs+CvWJmkdrgYhjtyDBUSOQqSVqSOlCp2C085FQ/+mq/wBWH/d7p26aQUUjF4AXD iA+A== X-Gm-Message-State: ACgBeo0Y3XHIssEJQC6KOKU5TlHXlOJEsHn3fx5NWT4VPkShsw7AbMVV kECRItHIxuS5BAqf27S/7wNh5g== X-Received: by 2002:a05:600c:34c5:b0:3a5:f6e5:1cb4 with SMTP id d5-20020a05600c34c500b003a5f6e51cb4mr2361403wmq.71.1660745792303; Wed, 17 Aug 2022 07:16:32 -0700 (PDT) Received: from localhost.localdomain (120.205.87.79.rev.sfr.net. [79.87.205.120]) by smtp.gmail.com with ESMTPSA id k40-20020a05600c1ca800b003a5f3de6fddsm2416533wms.25.2022.08.17.07.16.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 07:16:31 -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, Julien Panis , Krzysztof Kozlowski Subject: [PATCH v5 1/3] dt-bindings: counter: add ti,am62-ecap-capture.yaml Date: Wed, 17 Aug 2022 16:16:18 +0200 Message-Id: <20220817141620.256481-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220817141620.256481-1-jpanis@baylibre.com> References: <20220817141620.256481-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,URIBL_BLOCKED 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 a YAML binding for TI ECAP used in capture operating mode. Signed-off-by: Julien Panis Reviewed-by: Krzysztof Kozlowski --- .../counter/ti,am62-ecap-capture.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/counter/ti,am62-ecap-capture.yaml diff --git a/Documentation/devicetree/bindings/counter/ti,am62-ecap-capture.yaml b/Documentation/devicetree/bindings/counter/ti,am62-ecap-capture.yaml new file mode 100644 index 000000000000..4e0b2d2b303e --- /dev/null +++ b/Documentation/devicetree/bindings/counter/ti,am62-ecap-capture.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/counter/ti,am62-ecap-capture.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments Enhanced Capture (eCAP) Module + +maintainers: + - Julien Panis + +description: | + The eCAP module resources can be used to capture timestamps + on input signal events (falling/rising edges). + +properties: + compatible: + const: ti,am62-ecap-capture + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: fck + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + capture@23100000 { /* eCAP in capture mode on am62x */ + compatible = "ti,am62-ecap-capture"; + reg = <0x00 0x23100000 0x00 0x100>; + interrupts = ; + power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 51 0>; + clock-names = "fck"; + }; + }; -- 2.25.1