Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp933306pxb; Wed, 3 Mar 2021 21:35:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJziyDOeeX9aWhsuC7/9GuZ/pVu9o7xigaXcKZH5cQ3CHjBNIGeCtUzAlJCAPfeIb96g1W08 X-Received: by 2002:a17:906:495a:: with SMTP id f26mr2277864ejt.271.1614836149070; Wed, 03 Mar 2021 21:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614836149; cv=none; d=google.com; s=arc-20160816; b=B361JQuKC+89pdZbzIZvd8pri7h5hJ2sZYa+Ytu7ZT3y+/mvaVjroeYL9TJ47RWT20 kppWJgSg3R67y//h3DsuGJFEUXMZMiwDnpl9B8dvoamFZIo70cTQsi4GFgqFuIFtdDY2 EwjTJK07ynVafUY/FeROxAQnjU9oCHrAXJeMSA914OAiE+mjdAHWP25cj66+VunZpmtx rvvsVXeCykCCm8DT6jzwUjh1ilqTSJ0c06wO0it4T+k45ZCQhG+NoVOVaAW8xib9tHVD yT/REJjK721M+4/Jqks4nm5r5tUuj+NRAN7PTx6MajxJs69C8N9Wi9e38qmsNp+2mEAz Clvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=akpFf+vvqOEuKGgJ3psjfx1SdrADoawN0rFpIZx1LRs=; b=oDdw6BkceWGAPg6HWNw4Z6UGHQV1RBlFnVW24msUCs6+BRhUHsXLaputUujVom700m EfO/adafXbi2QN55pGbYNXtG7tR7BXWo1hSPa7mjZbMZxGtTz9u1Pmq4tv4X5NUI47qQ UJ+aLmxdSUn8GJ//cpU3awJ8VZ+NR3bDss6+X8QdTJ6S8cqkKfoIYmc4i+qUc4bcNDeq bPeM3Cyo97MzHD4CItCt4lIitXWtupcVv+Ldg7XXUjI4+sFBzgxJC7MmNFBZynAKhESm pv70jpzzYeWr4nJUO0gKGgpLApt/VOWncud7hLJkojQAV8c9ro05v/cGEkdbQByrbCnf 4iHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kDCCuIYR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp24si1621256ejc.206.2021.03.03.21.35.26; Wed, 03 Mar 2021 21:35:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kDCCuIYR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1576320AbhCBE1a (ORCPT + 99 others); Mon, 1 Mar 2021 23:27:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236825AbhCBBRC (ORCPT ); Mon, 1 Mar 2021 20:17:02 -0500 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D783C061788; Mon, 1 Mar 2021 17:16:22 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id a4so12749430pgc.11; Mon, 01 Mar 2021 17:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=akpFf+vvqOEuKGgJ3psjfx1SdrADoawN0rFpIZx1LRs=; b=kDCCuIYRdrf56PMMtibCcdaGvfpJ5hi6++3Nw3ykbzeVXyj3D2J+4xgaQltVyy9vls l3Sy5UgQvFNg37vdBjdwJoipAEz3SzfOqHxdtDimwbqWaC66Z3S/0xInZBISlwl/N9um vG5A+e4CFLadXGAbwQbeKPrUfEsoHMfpVdNzvM37bRB6w+0XBRSYCtcrfUbQrutHGC6l UfctAEAGSMtga0R+B1yAMrWP1AmF/Rw4qiq14N9Gh9rKeCZWwk+jrK5zMKynmASu4uSZ D+/Ce5z4g8+01XWsV0eK1nxQrpIVDLqghyDfem+MyuY60j74fjKWq253V8ejRCWHwOth uP8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=akpFf+vvqOEuKGgJ3psjfx1SdrADoawN0rFpIZx1LRs=; b=TtUxTLEfUnU/tlqVdsKBHGrrJebTj5lFnZzb8I2Ia0FokIMT6oKxSCrbtEsjanBXam GnhsqleaWRsG4Nt9TEB6ckSSyvRMCyuyHqIr30uLPZnF08g6HA6SRb5qKIaM68248V0E PHFO8kHOjUFXQCuQkiP5pGvjzIkq++QCBDjR3lUZiwpYXdzfweH+SrcUUYzIXB9wiYhT ezKDEXkAazPNkEIgFxizHcylVG9lJAHkx98f+7qIALHgFu6qTN4OmVDAKM/pHoA/gyPm Suk+CrKFB1rQMTlY/WiLtgvauDeBrLGDB1ts0QpkVmTg2fpuaRVybmBKybrBPvmJrngk GU2A== X-Gm-Message-State: AOAM5331H5NS4N6hi5NoiFXGo6ayVCwpTS9GPraKnL7V1CBf5ftsVY7G 0KHUV+xMcmukz8YSH7cppeo= X-Received: by 2002:aa7:9711:0:b029:1ee:b2c7:ecfe with SMTP id a17-20020aa797110000b02901eeb2c7ecfemr1110418pfg.58.1614647781705; Mon, 01 Mar 2021 17:16:21 -0800 (PST) Received: from shinobu ([156.146.35.76]) by smtp.gmail.com with ESMTPSA id w2sm18954466pgh.54.2021.03.01.17.16.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Mar 2021 17:16:20 -0800 (PST) Date: Tue, 2 Mar 2021 10:16:15 +0900 From: William Breathitt Gray To: Oleksij Rempel , Jonathan Cameron Cc: Rob Herring , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team , David Jander , Robin van der Gracht , linux-iio@vger.kernel.org Subject: Re: [PATCH v8 1/2] dt-bindings: counter: add interrupt-counter binding Message-ID: References: <20210301080401.22190-1-o.rempel@pengutronix.de> <20210301080401.22190-2-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PpXaD6VYZ3EV/ceA" Content-Disposition: inline In-Reply-To: <20210301080401.22190-2-o.rempel@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PpXaD6VYZ3EV/ceA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 01, 2021 at 09:04:00AM +0100, Oleksij Rempel wrote: > Add binding for the interrupt counter node >=20 > Signed-off-by: Oleksij Rempel > Reviewed-by: Linus Walleij Acked-by: William Breathitt Gray > --- > .../bindings/counter/interrupt-counter.yaml | 62 +++++++++++++++++++ > 1 file changed, 62 insertions(+) > create mode 100644 Documentation/devicetree/bindings/counter/interrupt-c= ounter.yaml >=20 > diff --git a/Documentation/devicetree/bindings/counter/interrupt-counter.= yaml b/Documentation/devicetree/bindings/counter/interrupt-counter.yaml > new file mode 100644 > index 000000000000..fd075d104631 > --- /dev/null > +++ b/Documentation/devicetree/bindings/counter/interrupt-counter.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/counter/interrupt-counter.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Interrupt counter > + > +maintainers: > + - Oleksij Rempel > + > +description: | > + A generic interrupt counter to measure interrupt frequency. It was dev= eloped > + and used for agricultural devices to measure rotation speed of wheels = or > + other tools. Since the direction of rotation is not important, only one > + signal line is needed. > + Interrupts or gpios are required. If both are defined, the interrupt w= ill > + take precedence for counting interrupts. > + > +properties: > + compatible: > + const: interrupt-counter > + > + interrupts: > + maxItems: 1 > + > + gpios: > + maxItems: 1 > + > +required: > + - compatible > + > +anyOf: > + - required: [ interrupts-extended ] > + - required: [ interrupts ] > + - required: [ gpios ] > + > +additionalProperties: false > + > +examples: > + - | > + > + #include > + #include > + > + counter-0 { > + compatible =3D "interrupt-counter"; > + interrupts-extended =3D <&gpio 0 IRQ_TYPE_EDGE_RISING>; > + }; > + > + counter-1 { > + compatible =3D "interrupt-counter"; > + gpios =3D <&gpio 2 GPIO_ACTIVE_HIGH>; > + }; > + > + counter-2 { > + compatible =3D "interrupt-counter"; > + interrupts-extended =3D <&gpio 2 IRQ_TYPE_EDGE_RISING>; > + gpios =3D <&gpio 2 GPIO_ACTIVE_HIGH>; > + }; > + > +... > --=20 > 2.29.2 >=20 --PpXaD6VYZ3EV/ceA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEk5I4PDJ2w1cDf/bghvpINdm7VJIFAmA9kdMACgkQhvpINdm7 VJLYYhAAit5cpIwDP7OteMOlRTu29zAg0+c4a3MidRdA0ykemueCz8CRm7i0aNY5 g2JZIhwYWpgUwYrM1Qtpo5KNmf7gg76fSBY892toi1GoS+bs37MEn727wf4DUHx/ V+myppzETibu2wXhWsnRGVnUHbD21u02xmVJcOMuy/NginQYnUINeNAXwqCSHJWd Wy69lBsme0cic+PpJUP2SfH6nRgfBsFp1Esp9EpaE6EzR6y8tFzFHOQDso+P3D2o Mk+KQ54RmeApmtzbro4CQA9LV/J2o8BaNf1bcggMbiupTr+9OiKBybzHJdP+WbMZ iAfoEEALscittlmS7yzxPAX0fp8R4tbxOZ4YxV7gdZuc7MGhXh1DXAHrmDqalCVn yEK7dOXMsz6evJcyLhim+sQKUldRgwX8N6re2kcugk2XYu4wbt0UzwflYuJX9gPW F7TjFIk2uO1no6mQzBxDmCXBB6oLejyp3uBHZzydy/RN+fRjYpNGIP8apnZVPRcZ 9hj7GYvI0LsxZif5SRwmFfX5Dsm49627D4sZ8c0RDRlmVsRvnWOjoL/ugQ7YCMSC QOeJuWym5WroyESzNIx78b1CEW9BaGpw+IrhQ+kLstvPCjw/twjL5qXYMIG/6kiR ywQeZu9tty7drKMMK/Mo7m0YNTStvostYhIg1CLGOPYRRp4zIbk= =JwXa -----END PGP SIGNATURE----- --PpXaD6VYZ3EV/ceA--