Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp640178imn; Thu, 28 Jul 2022 11:13:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t8cyAf14n59L2udfOsnF7WuMVmejJK4dnb0EMxMXa3fcmFgp0bbXdZlBQDRMGABrRoL+H0 X-Received: by 2002:a17:907:724f:b0:72f:4445:3c10 with SMTP id ds15-20020a170907724f00b0072f44453c10mr101677ejc.529.1659032035203; Thu, 28 Jul 2022 11:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659032035; cv=none; d=google.com; s=arc-20160816; b=to7k3Zbx8xSk5YTkAgycby/UxYL1W7HgdJYrdfadqPqubebzLS56n29QyFeSEtlDmc fWrDphnWH/S6LXsc3oX0qCSG3+6OZ5zwEa7OTc/YvkGHlzvhqgF4+3hsZMOsqY9Du6G4 riTOJnNhy2mT4M9g9q+Kd/4KALXMgy1UKOwSOCvP4VP6Z4JhwXizxtdohzaG3h+5E6yb xjGsprCnrz5JKv8UpPdP286XRyeeUw2+MmC2NXLLLAlhaRDjU15yYWLzBodm81LOA8oN 40L8H7R2PWli9ayohe407tGo7YN794CHu2es50lpUkNRSuO0i/HCnTO6kDRv6Xg21PIc DOdA== 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=hYR+FRbx1OoSYWhKNCDaiub79lE270GG8ynXK3jcmfw=; b=ZMCBZd7y9CVJQtlMdCu7YepfLqOCUCS4BfoEbrxYXAfHO3FmbFlURL7/N3qgL89tXC GfHQMJ1I5magRIW0pUzU9aQe+7r3ejD55Z4KVI77TIF6rTS6mVPNJ1dNuQ12ram4F2As oPi3Y4sD0luZWZR+YObIlNoMQbwJhiLxRa+he6l2aRD2cE68GM6n7GD17hnlCHm59+hD icHY+Cs77kxRMDXbN3yvQFhG+KKZsIaxo6sTuL7lv6KZzo+GrJtYTzsxAwwQIHDUf5Xz /uLG8ubgnkTPIWjVB8w3MoZvySjB7h/bo/20Drao/JEu+BQQI/3OOw0OAdu/wjo3hZhU +QhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=qj9q+6OH; 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 vp8-20020a17090712c800b007031f4e9894si923353ejb.776.2022.07.28.11.13.28; Thu, 28 Jul 2022 11:13:55 -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=qj9q+6OH; 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 S232942AbiG1Rvq (ORCPT + 99 others); Thu, 28 Jul 2022 13:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbiG1Rvj (ORCPT ); Thu, 28 Jul 2022 13:51:39 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C75774CE8 for ; Thu, 28 Jul 2022 10:51:36 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id l22so3220941wrz.7 for ; Thu, 28 Jul 2022 10:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hYR+FRbx1OoSYWhKNCDaiub79lE270GG8ynXK3jcmfw=; b=qj9q+6OHGP4CZVwdB/XXLfT9tVoRp8E4RNgOXXIhtb/J+TwR1aRYxJcvrxWzg9mb+e lHg+sHZ60A1nbJF9ncX8hP8VO8z/pfYKxlRLIULx45KWPa3Jx3FgJfcLqW7+FkHFHzrH eNferYYln9VUOEavMpwz7WNiSr3sXu7Ftg2eZFFXNgnrlX/suW5oxGPLd6AZ1wk3aD24 4LMIh7i5au0273aMHtuPDdOTXyQX8JWO8IWDf11UpZ9q2M/DluimOOKpNIVphqmvd8uk 6GKk/xaVsQBPAZmtdyBc+ZL8XnK2xz4g9HaxyX5DcDfq3uZBZ6d5+laEU20SP/gZGUrM azCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hYR+FRbx1OoSYWhKNCDaiub79lE270GG8ynXK3jcmfw=; b=UhJrV35wegctHTfylsG5Aq2C+FVh0dh8s0P/JzpXAfJCBYzzGhuG7Z5InCUUHtCD3L 0bzpUMBYIuqRxTPBknnzHtqoCmqnYKvwv9yXgPb8tOPsBgaG5FAvPk3g9EE2o044VYqy IeQjaeQXa10asQbbXk2a8tPW4ORg9DLZ32EBaPLsMl9EQMega1Bh6wX4H6VGQdOGPmIZ F00lIPirycvzo1xFaHWjU9WsDGhyuzMXmGLHLi74WCGc/2Z34+YytVnxJtSrT0EcLu6D lQ0HMx1hCfPRTftW2g17r+jymA7QiGP20aYsNpLATUf0ePStiDvN0fBnAHjBWVkILkXm /uPg== X-Gm-Message-State: ACgBeo05Dgeh9ko4Qg10N6cJZjy28H9xeazmceBWyb4xz8vMygAy9rsK TA0fqMakKOxzpsBXy/krSHSnQQqJWTtr0w== X-Received: by 2002:a05:6000:156e:b0:21d:c50a:7cdb with SMTP id 14-20020a056000156e00b0021dc50a7cdbmr74483wrz.16.1659030694625; Thu, 28 Jul 2022 10:51:34 -0700 (PDT) Received: from localhost.localdomain (33.169.185.81.rev.sfr.net. [81.185.169.33]) by smtp.gmail.com with ESMTPSA id c5-20020a05600c0a4500b003a3442f1229sm8274027wmq.29.2022.07.28.10.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 10:51:34 -0700 (PDT) From: Julien Panis To: jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: lars@metafoo.de, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mranostay@ti.com, Julien Panis Subject: [PATCH v3 1/2] dt-binding: iio: time: add ti,am62-ecap-capture.yaml Date: Thu, 28 Jul 2022 19:51:23 +0200 Message-Id: <20220728175124.468461-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220728175124.468461-1-jpanis@baylibre.com> References: <20220728175124.468461-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 --- .../iio/time/ti,am62-ecap-capture.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/time/ti,am62-ecap-capture.yaml diff --git a/Documentation/devicetree/bindings/iio/time/ti,am62-ecap-capture.yaml b/Documentation/devicetree/bindings/iio/time/ti,am62-ecap-capture.yaml new file mode 100644 index 000000000000..5c358592942b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/time/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/iio/time/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