From patchwork Wed Sep 21 10:06:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 12983585 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 BF947C6FA90 for ; Wed, 21 Sep 2022 10:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230221AbiIUKGg (ORCPT ); Wed, 21 Sep 2022 06:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbiIUKGe (ORCPT ); Wed, 21 Sep 2022 06:06:34 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D478E786F0 for ; Wed, 21 Sep 2022 03:06:32 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id b35so7972694edf.0 for ; Wed, 21 Sep 2022 03:06:32 -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=XKH4BzMgDzrWHlzYeBaOGmh1hYA825wk6UyMQwxMx4g=; b=Ug+Z2CHZaiEesfoVp4XWq7sDhHzD6QtxEd5UXTRyyaKkp1hewp9yk7RHQJxTAk0epA iWmfh7YS/QTqD7Xez3oocfzY63v2BKbezU4pPkL8Uyob3CsEy9SI4Y3AlRE7B8oHMswn VwUGDPDgn9iTHAWYx6xzlAaA2MYOuvb4x+rhbSQhxHbrWo6xzvOq0P2xRmcY3hGd0cn7 7GetZ1OLTC88zkigqh6GBBssXaXHHY8wjk8YxKw+Kse7gQIzqXhpGzT68li6WRJ9+Ypp OrTd6/j2flcjoudEZ0IFKg1WwIN4rxo4zO1xCV0cDAxuSG8KhnC1E1i+KVp2qJ4QLcsu lP5g== 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=XKH4BzMgDzrWHlzYeBaOGmh1hYA825wk6UyMQwxMx4g=; b=kNq5y4b8ZqOXWGpHoz97iYyT24cK6KC/ojqkEUL1arJuuzQZUoWh/h5CyOGRvZWkyD YHBhKcetwldnvKWdsrGppMwgzHellxIlRtobkCGQmqjuDfZP588wJtU4ZaqYJryTCdvY WEcsZYjr12s+lRp0tCHuowutfr3+NpVIp9Po7ci/GTvmC2b2vR+Da2Fayl90LTAG8bOE ITzzKXFp5/aeKPYzC6uS2D+aRE3UVL3xxlANUmF8pXk6Rfs805n4pBHRwbOqhI81rq6r SQgpqJtdmyFavN0KnSRJS7wMTpXay1SzBVhPJdgUmPen/EUR4NpBDG27XrK5yA+H7toI M1eQ== X-Gm-Message-State: ACrzQf3ZstOYD6w6eXJ8gt0vXznqPB86hXfSq9ftzDYJxsa8PMPCSAZo TvYezXuhJSa/19UutdkVlZWDBA== X-Google-Smtp-Source: AMsMyM4bK8wWTCqPfQXoFsFijFy933y3Hn0HjqxMmNc4qMp5ZXLhHKBgSsa0mvRI3J6idMrmxC4uLA== X-Received: by 2002:a05:6402:3705:b0:454:e006:82 with SMTP id ek5-20020a056402370500b00454e0060082mr918854edb.360.1663754791338; Wed, 21 Sep 2022 03:06:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 03:06: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 Subject: [PATCH v7 1/4] dt-bindings: counter: add ti,am62-ecap-capture.yaml Date: Wed, 21 Sep 2022 12:06:24 +0200 Message-Id: <20220921100627.124085-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@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"; + }; + };