From mboxrd@z Thu Jan 1 00:00:00 1970 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 CC9C6C32774 for ; Wed, 17 Aug 2022 14:16:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240069AbiHQOQm (ORCPT ); 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-Google-Smtp-Source: AA6agR6Rsy8e4Xg1z2v389ZLj2u3kEioeQpIO38XkxHAtAkQ2Bmj7O6S/N7WCx6BlvBzM0RonCh1GA== 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 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