Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp484664imn; Thu, 28 Jul 2022 06:48:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJ/DonPVTB7gNAme3aAX8xqQUvc9bi1YqnkDSJjbJlNn9ObiEd1CzU3nj1f2JcNp7AuHs0 X-Received: by 2002:a05:6402:214e:b0:43b:6bd9:319 with SMTP id bq14-20020a056402214e00b0043b6bd90319mr27691914edb.308.1659016104626; Thu, 28 Jul 2022 06:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659016104; cv=none; d=google.com; s=arc-20160816; b=WSrRLni4fjD42/LjSRcM+4wctjj31ZE2Yey4/DvdOksVo/DIC7ICOBYklfMnr3ACa5 4JUbguh16BhEl3kO38eQo2tqVSJ4uS3ksu/zCPYQ+MZ3H+FEuwSgwZ10BrJdRfiUw9sK w3phZGovV2COsZNqsnLLKgvFq64dDrslYKDYACynIG7HnDLZu6oxIHOHhF7hW1LXvwrb 7SRXRx0P76mlmCMuav5ZE5FvM06wiAqWwi0yvCmFcP+TSNut5KQJML9ewmH4zsiIv5W5 co9XiajfQqIPkOdXUcp3o+LkfriRsJo3H7Vx5qKEjSjhN/nyD+iHCraHnq1CY3h8T9Yc GRaw== 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=Ddwx/S/rr3l8QuO2Qk1cqiAwNWYY4De6PYJCA33Qb/0=; b=WtGTz5FNTNnc4GDwZnfVrMdTasQtaASFeuLaQK5F+8u4sh/nXCQYcSZlHWbbF2HVlH 6tgrjgWMYmP8QXf+YCA0HUTXmK4OYkit2RYpjo3UEU8qTIXsMlqQA3Uw2kssy89J8vfX +gLGdG4ybzcuFi9e3MAIlVI8J4K0n3RsM+suHIKrGkJAzxOBfj6xMR2EfwibP+oKEEg0 u93yzVOMorFnHcGcphz93yzfc2J7eeuVPnEQKiyEhWGOj6p9r/Bd/8UXGUA/t2B9n8kB oDyy0whZZoaWJBSyivscOleff7vtlmd4oaXS3LYN6rI0ME8b3x/0HVVAe+h6jd28WC/A tODg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=7ixXf0CL; 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 x25-20020a170906135900b0072b960ad734si629608ejb.746.2022.07.28.06.47.59; Thu, 28 Jul 2022 06:48:24 -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=7ixXf0CL; 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 S235655AbiG1Mwh (ORCPT + 99 others); Thu, 28 Jul 2022 08:52:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238278AbiG1Mwd (ORCPT ); Thu, 28 Jul 2022 08:52:33 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6A6540BC6 for ; Thu, 28 Jul 2022 05:52:29 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id b6so902385wmq.5 for ; Thu, 28 Jul 2022 05:52:29 -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=Ddwx/S/rr3l8QuO2Qk1cqiAwNWYY4De6PYJCA33Qb/0=; b=7ixXf0CLkR02KxaqXWbmDuzuP4Qy4B/UOa/CVJGxkfcwnaoCgSqs9g3T24oSG72y5R ae1gnat3/mmUWqo8roRGpAfMwlpTB4nqRJtD/S9HtTmRct8qVKI2GpRcTyei3qpYgxg7 aZMlCdbGS5CZTO0+wM0fucmMIWnwhbMxiq9POhVHfOq7fP5cuPDF6gAowvxf5X2BImew 4DPX4O6voVUvxL930MqcycPSmObisYe5edwk6duGvJvr5jlHLN8kvBNDAYrMCvc+iVOr /jBef2Pfby76L1nGp9HKO7m7YbU1x5EyEP8d7Rnjree8gZuloux4oSe78HxPfkE5apod pkGg== 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=Ddwx/S/rr3l8QuO2Qk1cqiAwNWYY4De6PYJCA33Qb/0=; b=pL6bcUf2FNBPKxaOCcfm39HnRAouONS5mgkfjMJUeVq2A1/SFFuTQjeJlV/c5XK/cD qcFgbZ+mCXthtj4ryb0ZDrBUCDU1zh/xr0Qdeui26SNTZoe353L/1OfjDMc/Q/2z3vQ/ y+sg0pr1pz4i1WhXabjEI8EsOYzuIYqTM561yuAhhxOhG4mZkf8EpzDSBfekLhYzti6i thWR1W8xcQJEh/xi8LgFbGcnLAJi8ZkB/l+s/wPwkx8tquGnPHLsaCrfOz40OZ2HRbLe khE1UhovLAW5nyWAa/iXx08DmlxOhxI3dy6c4lzauPr2rvOifLMnb14z/FJGf8fjkqo1 V5CA== X-Gm-Message-State: AJIora9NLkRaJayFfYXn0fIKcFFKVUHyac8OhHnmDCWlR2tQGV+flqJZ Oabh+3kFrPenkqUzXbJknlvhgA== X-Received: by 2002:a05:600c:5120:b0:3a3:2ae4:fb20 with SMTP id o32-20020a05600c512000b003a32ae4fb20mr6315815wms.81.1659012748147; Thu, 28 Jul 2022 05:52:28 -0700 (PDT) Received: from localhost.localdomain (33.169.185.81.rev.sfr.net. [81.185.169.33]) by smtp.gmail.com with ESMTPSA id h3-20020a5d4fc3000000b0021eba590ad1sm977700wrw.90.2022.07.28.05.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 05:52:27 -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 v2 1/2] dt-binding: iio: time: add capture-tiecap.yaml Date: Thu, 28 Jul 2022 14:52:11 +0200 Message-Id: <20220728125212.76728-2-jpanis@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220728125212.76728-1-jpanis@baylibre.com> References: <20220728125212.76728-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=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 --- .../bindings/iio/time/capture-tiecap.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/time/capture-tiecap.yaml diff --git a/Documentation/devicetree/bindings/iio/time/capture-tiecap.yaml b/Documentation/devicetree/bindings/iio/time/capture-tiecap.yaml new file mode 100644 index 000000000000..5d66df90ba5d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/time/capture-tiecap.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/time/capture-tiecap.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>; + + bus@f0000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>; + + ecap0: 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