From patchwork Thu Jul 28 17:51:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 1661806 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=qj9q+6OH; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4Ltyrh1dmLz9t0G for ; Fri, 29 Jul 2022 03:51:48 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232925AbiG1Rvp (ORCPT ); Thu, 28 Jul 2022 13:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232936AbiG1Rvk (ORCPT ); Thu, 28 Jul 2022 13:51:40 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C8F374CE9 for ; Thu, 28 Jul 2022 10:51:36 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id bn9so3218027wrb.9 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=jq1tSah4vgf+ucZ/VwOFa2GrewC49YBRQstyZfPJQscQtn/1NdgS3TDgxEbId/N5v3 SeSCx8ON+6G/R9zj2WUWW63Rgy4hEu0J8SAVdcwrECeK8WmrSIupkejdL3vbGEIkcenQ oVZ949GK0WC9bPjs78sD+n2cQRRSjCM7Ku7Qf3MzMII5TI6/Mypdf+Oh4I9DHfUf8HX2 rA2t1heGTpz+i3yXJVEIB/ag6myrjkW3O+J0gp53hAzH6A9AukDsWRbqMyBX5vR1nYT6 +qQGwjwQnY60G0UhjLRHzcqhcVm5bzcO78Qqhe59JSVgOrHQpE50Li7Ik52jWAqRQavd mZOw== X-Gm-Message-State: ACgBeo1aGB4zSvWEr/gbpW4wDxhcKFLBfGb6Jp7h9Y04CCpPeMYnI+65 XvVK1hL3tawQh/l538RRBl+2/g== X-Google-Smtp-Source: AA6agR6Qdp2PlK05m717LPiOx7/Z70R6xOxsYbjxwB5NU/ZD6Q0G6dbZ0BOBIitPxcdNqE1s0yL/eA== 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 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=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: devicetree@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 --- .../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"; + }; + };