Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1077223rwb; Fri, 23 Sep 2022 07:59:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6okoePKPON0Mx03GXxlZxI8SakMoavim6Lja/lJM5y6oyN89rzyL4R1U94Xya4AH/3UJ9n X-Received: by 2002:aa7:cd92:0:b0:456:cbb5:2027 with SMTP id x18-20020aa7cd92000000b00456cbb52027mr2613932edv.384.1663945155003; Fri, 23 Sep 2022 07:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663945154; cv=none; d=google.com; s=arc-20160816; b=OrQM36nALe26nkYHCxdeJJqQcoe3zvWiCzFCYK4kEAUIF6qr7dE+DqjAFU9DWP4/D8 UrmFbteovtIILHcFkZYNr1RwH0cZOYGRkPS2JOe0IGveoBwBckM6Z7d17ZvMnUl88ea4 IGD5BSRZl5DNj1APiL/aUwtOcS+8MJos9xKLk4wQrSX9W0Ig+faf1eBKzebsMPLMtdeS uV77lZjQJc4aj8gdydF0Wn/yw/xfK0bAW4NkIz2rO8bqsPgv3goshzRhVU51LTAO/FpE D4dC8QvEAm9I5473Zu9mkNMzHnxJIc+H/qGaHYwMJR2lCacwT7zqRFXJO+EVx3JkMwl+ 1hTg== 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=XKH4BzMgDzrWHlzYeBaOGmh1hYA825wk6UyMQwxMx4g=; b=SDH7MdZskzNu3n2mprYMPTCmKm3x8/KokOxqPYhksWdMzsfbGjhddSnMB6IN+8W73/ 9NWSzdWFmvVDBFb9oXDDHish2EAoJGsvbhTHzq3AIH7al/C6kaeSz8svBlp3fv0mgX8N TDo3zefIM4eJl46x3BjVBOk+FZaIqpyWbsG+YJOR/vAJF7mmDbJfO6WwcqGJGgNxsOpl w81yPr7OG7PckaRxCeHpLVsJdgm+0TCWKja5AtbX1jnNgcQRjQlYfdbzLwafRtsvt9pb AjRH/rGsztaxWfmY2UJ2UapyodaKHjtalz8m6ymYPdmKBBJ8X6jvPix2q6hDakJ+IiMY QkiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=xrcWkJUP; 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 hq19-20020a1709073f1300b0077d6d63bd0dsi9891686ejc.184.2022.09.23.07.58.49; Fri, 23 Sep 2022 07:59:14 -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=xrcWkJUP; 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 S232200AbiIWOYy (ORCPT + 99 others); Fri, 23 Sep 2022 10:24:54 -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-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: 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 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 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.37.3