Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5665801rwb; Wed, 7 Sep 2022 06:22:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7qGTQK9dugiUbptly3FD8nCR9Lnib4ngv5aNBo20DdsGuMCR1DDV3H8hCojAAGj/4KkJA2 X-Received: by 2002:a17:902:ea11:b0:176:b283:9596 with SMTP id s17-20020a170902ea1100b00176b2839596mr3881029plg.69.1662556962820; Wed, 07 Sep 2022 06:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662556962; cv=none; d=google.com; s=arc-20160816; b=SsveaZ2MillIsuomUPACoaIGhkFn1o5NGDUs+2RKl3GlkpjohfJn4OvJuMNpadn6wr vPHJ/CQdjVh0O8T2pRzSh2cL3KfVDFlWsr8M0uBwWdGKa7iMpjENe/D80wYApPh2+Vce RvXHci1DvSChYkXA+DIZnLx2q+iYGdILQwmQ8H2LDw+Rqzq57bDEKCMsDclRsTHXsYKX t93YJzJ66fbP3afqwXVJewPWTnGiHi67k7LLfMaT4IT901xiWvqMUSDZH+ldnHW7aWho C9DdcuTxZeKTPIJ268w5e4ZlWXGwgxZ8M8qMTwo55qMQGfCe4chLmjkYPLmcAbSY7YQn 0Tbw== 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=a2OSISfDiOohrzUydkTcQpiPnEHG0Bn7S8qtqmDdQrXMpVTuFuT8sRzhb/v7/mYX6v sjCv25fNQLezMqXvGaC5NU4t3GWoBM53FQPX0AIZXLdCBznKuGUy8ZhaSmOOzxnORKPF Mk/RV445fEMrCNMQpLhnXtTNDRP3T0oLKSFKg2O1TbKmU/Gx1aCfQ+WUf+OxCI5yHFU8 og8/LhAJBKRkjQn2XeqgVLpGmNCFnlhG52F0BME/562izzjESpO4joN5zWnc5pGrcCYW fWAcNVTD2elc6pTyziDy+1oxYVsdt2wWue9JJkIdCwfKnR2iigpUyvLefqsM3Ou/emu/ b/ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=aBK+owoC; 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 b190-20020a621bc7000000b0053e4b04804csi3604926pfb.115.2022.09.07.06.22.30; Wed, 07 Sep 2022 06:22:42 -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=aBK+owoC; 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 S229941AbiIGNDq (ORCPT + 99 others); Wed, 7 Sep 2022 09:03:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbiIGNDe (ORCPT ); Wed, 7 Sep 2022 09:03:34 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 572876C12F for ; Wed, 7 Sep 2022 06:03:33 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id u9so30240432ejy.5 for ; Wed, 07 Sep 2022 06:03: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:subject:date; bh=XKH4BzMgDzrWHlzYeBaOGmh1hYA825wk6UyMQwxMx4g=; b=aBK+owoCFpX8bOw+gtcRZgFlu0tCtfhCtGWwMOSBVtJ/Ut2TPhN6jg/zX1LIn7/ow4 +qPTajBWtAQPkwd715cK9RzENltMLpxbacFe7rJtR9Hmilf/1Qk0dqEcJggxtquiIAjv xdMspGpBLfuy9XdO6Xi9274DJhgFLH14t/y/M/crO40w/VAKl4J4KFushvEtLoinD+EY KpFDGAOHP5oZ2zfZlfz+XMCAf6T0oU5u0KEpqZdxPoY4P75Ae+D+2M2Rbs+MhLZKfe0Z gFn7oHYsEE62K+hRjhMpZFthunxZzvfIOscYe8KIw8yVJAOMLl0h12A/R7qPZj4Q3g51 4g9A== 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=zAjFmY7PMKPu/AHVUiLT8cdydBBHtHNh+3l3ATiJNWGswzwtK1ZxQ9HnVOkW4SpdDY dsl+hSXEuP8PqZ/fkpbw2Po5h1PTApb143DEMEXjxyZfj3RGoypGV6EV4RszOCCLu9AW 1DZk9nkJqCC69Y7NO2wr14FAzjTZy+oX40zRr3WfvuSbVkFiw4SPMlju0WTGvkSeTIdz wwtLI5c9xUkN+7EuVZWdBZK4ffAY4CDEsckxsqsf3uYdePm67oH989vSQP+vZkhCpQiq kM/byY0nSCfzqVgWjjMTp4SjZq07y085CbooiI8mm8gKo5MbC7yralqkqX8DRWBDxH3V ghSg== X-Gm-Message-State: ACgBeo2J+yRpFrfY/tMT9Lw08bk4jUJ2JPFJepBv77Qw4bfUBzZtyfqp 6tohRjoAClmgiQkm6ijTW4s1tg975xjVSg== X-Received: by 2002:a17:907:75ed:b0:770:7bb8:da3 with SMTP id jz13-20020a17090775ed00b007707bb80da3mr2156797ejc.213.1662555811840; Wed, 07 Sep 2022 06:03:31 -0700 (PDT) Received: from localhost.localdomain (32.31.102.84.rev.sfr.net. [84.102.31.32]) by smtp.gmail.com with ESMTPSA id r16-20020a50c010000000b00447bd64d4f6sm10785000edb.73.2022.09.07.06.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 06:03: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 v6 1/3] dt-bindings: counter: add ti,am62-ecap-capture.yaml Date: Wed, 7 Sep 2022 15:03:25 +0200 Message-Id: <20220907130327.139757-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220907130327.139757-1-jpanis@baylibre.com> References: <20220907130327.139757-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, T_SCC_BODY_TEXT_LINE 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