From nobody Thu Mar 28 19:10:16 2024 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 C5BFCECAAD8 for ; Fri, 23 Sep 2022 14:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbiIWOYz (ORCPT ); Fri, 23 Sep 2022 10:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232315AbiIWOYp (ORCPT ); Fri, 23 Sep 2022 10:24:45 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2EC3B23 for ; Fri, 23 Sep 2022 07:24:41 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id y5so277132wrh.3 for ; Fri, 23 Sep 2022 07:24:41 -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=xrcWkJUP3nm7MJstQhMwJHDEEwDAjoc085IGOzNsloMoksD+agk6NOqgHwytT4gDfL PsXCECZq974mOc4YZT6ffuFMdF8NyeiwopoTo6eeGkNVz4v9Um/saOP1+LoqpUuq/9Bg 3+XVzUhQcdWX11fF/XEOg48JJ4pE7Kl70oPVzF76I5nskzsgZTtzNomn7LUCmOk/6BXF 6I/wGoeCnBQVh1EwSyl/cYoSc5qKif5D/rK6/86lqeZe+n8YFVWJ5nCIfPSeqbpplqYy 5rntf0tm+mWF9uxMINvTEpVUsDxWeN4RfLqc8MHghbRrRTZfR66AgTQhS5pPyaK18Ncp BHXA== 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=fyvXiz+zhsr7Mf9a/BVKRaRhfKIUIOI3iyFMLkTD7OsWc1YfPpXfwbkWZv6jI7oBti RCsYmltKyUNT9D4+7TTQpcHJlCI7sS7Mi0Cp+M8r6oevxU9S5EUJmOcJo8YkBpHl8osU sul7oCo0ErvmTDO7663LCzivEd6Oq7zZQZt7vdHpdEWDiEeLObt4P3w+2pUcR8CG/l+M 4cGkfYXo1bIbe/vD40dwD9+jOojG5U89u24BOczHMOqWbb8emOZ1TiehLug3EUPDtpeK bDiaw8MWOCAsx1AfWqWEARDfUjOcxcHw+vZrTufAjsjeRYdL6h79p9Y49QVcjKR4/H2Y 7i1A== X-Gm-Message-State: ACrzQf03Af5/+yctRXkpkpJeMElnlcS87IKMTKq1rN6TiU3mgxr43/qq S2IvhAib5dVNgtN9cLqO14qVAFqDyvrCVQ== X-Google-Smtp-Source: AMsMyM7rRGGbdu3NxRy1c4Yw9XMDlvqf15vWcs3QAgiQGmbsxMIHHkwd5ccket+sibkeIivUz7gZ6w== X-Received: by 2002:a5d:5944:0:b0:22a:c2d1:e3fe with SMTP id e4-20020a5d5944000000b0022ac2d1e3femr5319219wri.261.1663943079780; Fri, 23 Sep 2022 07:24:39 -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 m18-20020a5d56d2000000b0022878c0cc5esm7444627wrw.69.2022.09.23.07.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Sep 2022 07:24:39 -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 v9 1/4] dt-bindings: counter: add ti,am62-ecap-capture.yaml Date: Fri, 23 Sep 2022 16:24:34 +0200 Message-Id: <20220923142437.271328-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220923142437.271328-1-jpanis@baylibre.com> References: <20220923142437.271328-1-jpanis@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 =3D <2>; + #size-cells =3D <2>; + + capture@23100000 { /* eCAP in capture mode on am62x */ + compatible =3D "ti,am62-ecap-capture"; + reg =3D <0x00 0x23100000 0x00 0x100>; + interrupts =3D ; + power-domains =3D <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>; + clocks =3D <&k3_clks 51 0>; + clock-names =3D "fck"; + }; + }; --=20 2.37.3