From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FB0CC433E2 for ; Sun, 6 Sep 2020 15:02:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 112B120714 for ; Sun, 6 Sep 2020 15:02:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599404550; bh=B4hJH2Exj10eov4vlPb/9VaNEbHGmeM6Q+hdPmf5u1g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=aohSMWFBgYQkWBVt81JZHbfyDq8RjJ4Hu7nk2ImhM9HJlUXJXM7h+htBRckzelgiL mOleKSoNBBFnGKVs+dz6gDZ6wKthztt5H8MewFj8xCh3Og68z+xI89D/obprNn8hwU kGZJDkTUCJeI3Hk0iSGJcAPYL+vHgwik6H8bEB/w= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728905AbgIFPCQ (ORCPT ); Sun, 6 Sep 2020 11:02:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:39714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728028AbgIFPB5 (ORCPT ); Sun, 6 Sep 2020 11:01:57 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 538E320714; Sun, 6 Sep 2020 15:01:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599404516; bh=B4hJH2Exj10eov4vlPb/9VaNEbHGmeM6Q+hdPmf5u1g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tzP/88p3dT49e/Xz6wpcBVsfHumavYXE1fNkqD47ygYOemZmeELltPxPuKxL32xru BN9i9EndetOxyBWZHLtBkLAhRRIjbXvZPrhGdRRU+FnTnowSQc6J7a87tiqQHZm7/v Tzpxf5iRpvb30nH7gO+95/Ez9a4nRIPGdnkPNGEY= Date: Sun, 6 Sep 2020 16:01:52 +0100 From: Jonathan Cameron To: Nishant Malpani Cc: robh+dt@kernel.org, dragos.bogdan@analog.com, darius.berghe@analog.com, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, andy.shevchenko@gmail.com Subject: Re: [PATCH v2 2/3] dt-bindings: iio: gyro: adxrs290: Add interrupts support Message-ID: <20200906160152.552d42bb@archlinux> In-Reply-To: <20200903130950.6274-3-nish.malpani25@gmail.com> References: <20200903130950.6274-1-nish.malpani25@gmail.com> <20200903130950.6274-3-nish.malpani25@gmail.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Thu, 3 Sep 2020 18:39:49 +0530 Nishant Malpani wrote: > Include 'interrupts' property and provide a suitable example for using > a GPIO interrupt line. > > Signed-off-by: Nishant Malpani One little point inline. Otherwise looks fine to me Thanks, Jonathan > --- > > Changes in v2: > > - remove 'interrupts' property from the required properties list > - rewrite commit message > --- > .../devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml > index 61adb2c2454b..a5f209e8bbef 100644 > --- a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml > +++ b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml > @@ -28,6 +28,9 @@ properties: > > spi-cpha: true > > + interrupts: > + maxItems: 1 > + > required: > - compatible > - reg > @@ -39,6 +42,8 @@ additionalProperties: false > > examples: > - | > + #include Shouldn't need that header. I don't see anything being used that is defined in gpio.h > + #include > spi { > #address-cells = <1>; > #size-cells = <0>; > @@ -48,6 +53,8 @@ examples: > spi-max-frequency = <5000000>; > spi-cpol; > spi-cpha; > + interrupt-parent = <&gpio>; > + interrupts = <25 IRQ_TYPE_EDGE_RISING>; > }; > }; > ...