Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp239318rwb; Wed, 10 Aug 2022 07:34:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR76ebJg6wxERywJelCjAfHLQx0ZVvvSPQVjiXVD1uxdjsp+WmEsw3nwfmZ8sjnrvkKewHtV X-Received: by 2002:a62:5f06:0:b0:52e:f3a3:ffee with SMTP id t6-20020a625f06000000b0052ef3a3ffeemr18713617pfb.79.1660142078197; Wed, 10 Aug 2022 07:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660142078; cv=none; d=google.com; s=arc-20160816; b=iwNsoQyVhGg6hAIatBVqpjy3p7EYFRxWEjeqoM4v7pM47es/+ksYLukCB4p0KeA6HS IVB8KTDS/aTOIfbnIARYAa9hFrt4yptnvHI4LhFAHqp15us4FhyeGSmsUxjAJ7SXRsc7 8ebmdf+sRlCaLT+KuuBTlj9FhwvJxD6ZTeIOh9FVm+Wcl+sDk1DXKg0wuW9y4v052eDL DaYsPfnOA6TtfQEAu1p0rT49H6UO1ZUguVqdLwgW5+hemr+oWjN0TfEcOoNpm8rDpkMc PmSTYS0+rnO7DcHDA753ek7LpgINWoRFUev0ch5J3fdHSvfBnd7CZrMBva44pyqppKrf xSnQ== 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=pqhA8o+boQJA8OSHBFOoAbjBpl0hxdmasRE4keRadHE=; b=ndlMbu56VXTB5derbm/YTt/xzXBcYpNpKvfgguUTvnLZRvDtQ2gmn87gWYsW9EZe85 VWZgAb1Ty29jc8YBqQJC+P7C6m4FQdQ2MPoG0jGQErXADOuNzx7Y7iEOv7dSZauu7swM xAhoZDMIeQs7UgnaM4X2xYb3mgsYr+gSXvnLIBKWMTFCCrc0AVrJi46vIxg9YnEiN53N bpBwI8mVVQjuCfqb8SHzzbhiUcC/mTdsKyjcV2O7EU1IzF4C5vGk+Q1jrPgdatVzKOOO LoPAcELE86Zj86NpO4qle+0d9af86NDNbq9mQ5f+SZnmEfmUZ8m403N12Ao6geMDdAge mOyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=cTw+eVTy; 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 36-20020a631364000000b0041b64ff7fd9si8369534pgt.517.2022.08.10.07.34.22; Wed, 10 Aug 2022 07:34:38 -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=cTw+eVTy; 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 S232977AbiHJOHx (ORCPT + 99 others); Wed, 10 Aug 2022 10:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232556AbiHJOHs (ORCPT ); Wed, 10 Aug 2022 10:07:48 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D3D6E2F9 for ; Wed, 10 Aug 2022 07:07:44 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id l22so17894387wrz.7 for ; Wed, 10 Aug 2022 07:07:44 -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=cTw+eVTyPlg5bzYxedeopN4BqOZpMeSPQWJvU78DKS+jhKJfslT4pMC4XUU/O/863n C+0yxkWzB//75y41NTcZgZEeEWdEBzAdZy2LMxgsMbjMvp16r2bdA4ZCFN5VLiZqrjcK yC5aa31sJdh6olAqmnuDtKQ2sdIs76SYH7JgAKKqxBR3HoMr9sPctN9pGYh5l0dVsvQE o956Rx7AMAQdzqszqEa/pIcfc/tC4Fn/0pSa9HLdSRVKzaxIcbod2juyE0+LWV212LP1 qHxgjZeERN5vk3Vd3E+pYtfHK7ywlq4/dWf4/9A9/LSX0DywNzo6wVCFSHj5ifIE4OYg ZeNQ== 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=DPdIEpbwTJ1TnyDJ76dsa3tX52emY+TAw+oynS6Gw5KxPrFtTIhtHzBCnFlmcEpIa8 e6pzJ0Qp5GhGejJsysj2oenvXScneBADcc8r3eJAJUKqu03wpmbCNcBB8nu3fCAdtJSi 2txufivu37q2eD2wBdK3o0K0YqXt/Sofgvf/sNNIHy1IMGXmW8/wDx9lGabbS7T180jm m2ufjQPS9M8fIo8+FKW1pgXjsWYVeBjgCw84rk7HxI9JXH/S2ovdDGS55skBr2Nkr2Nu +GwfnEfzmY/fmOlI09TT/1XaiJAu0pX/zfABxU4yz1NI9XVCd1LzgXeBbUQ6mi5rwudB Dxeg== X-Gm-Message-State: ACgBeo13Q99RvA42zxcMUy5sv4epf6hARAmfSMSoCjBCtnP8PXPI6ouW b3Eq0tZil1qX4td/LVnD44yLwg== X-Received: by 2002:adf:fdcb:0:b0:21f:ae9:bbd1 with SMTP id i11-20020adffdcb000000b0021f0ae9bbd1mr16199087wrs.506.1660140462630; Wed, 10 Aug 2022 07:07:42 -0700 (PDT) Received: from localhost.localdomain (32.31.102.84.rev.sfr.net. [84.102.31.32]) by smtp.gmail.com with ESMTPSA id o15-20020adfcf0f000000b0021d6a520ce9sm16258229wrj.47.2022.08.10.07.07.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 07:07:41 -0700 (PDT) From: Julien Panis To: vilhelm.gray@gmail.com, 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 v4 1/3] dt-binding: counter: add ti,am62-ecap-capture.yaml Date: Wed, 10 Aug 2022 16:07:22 +0200 Message-Id: <20220810140724.182389-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220810140724.182389-1-jpanis@baylibre.com> References: <20220810140724.182389-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=unavailable 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.25.1