Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1666156ybh; Mon, 20 Jul 2020 04:19:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHQB5CXbjhD8rxbBKcKEQAkvNH7Bto9EKTEgmvBKp4SluRb8GzPtNBDCYFleKdG+6PTv0b X-Received: by 2002:a05:6402:31ad:: with SMTP id dj13mr20968147edb.88.1595243958040; Mon, 20 Jul 2020 04:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595243958; cv=none; d=google.com; s=arc-20160816; b=m+W94ABZYY3s0ve1GYdr5tMDmC1sWas158WDa9Ew5aLjjXrI7f+teVqYPvn3+Z99sP hYY3RO81uOKCUv1gNhoUpLF/y/r8Lgz04wby4t/59R86EFL8uzx0YKQfH6Nvr/Szi+bg eazpavUsutwBmsm2ej8hJT6DuKbZynXy2P/677MbaLUwtyD7Jpr/nc8yQK0iz7uyEzp/ JPuk/tvmLDPGNN7QTCZMSTY+DUmfRaycYr96R3TbTHJEvoVyez/fyTU0fPl6on5fqaps MQayMN3gu9ODleH35CdwzK14JzMPwOpNWVgl/iJ4Q4bChbD+zuuRZQSeeVDHqudvZIpD 40BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=z1cRjsQB5L/gLFLc7bKQRDs2Rgn+y9tnLyLFpBA7Lqk=; b=xw0Km8fkYK+WoC3udvvMUfSgV7khYkuUdIa40kyd1+QYVMidhXTxfr2pmIbGBy9VqN hYq5bPPIKeoGh+TxVGwAqxlYYDoUnjP3Z/RHln/i5BlFffdJEQEQhKaNLM9ik2UohB0F u8Unqyx7TR0eYExSUlsejR79lMBaeAHGXiN54wJ76GrqgqP5dhllC0FUvIjphyENGEOP jndH8smfX5O6YFBwW9mdx3HOIgvEGblXdNR2Y93n3WYEPxlmcmHEOeQakQOEvSJZn525 3AjdY4VO+ma9ZVS6GjYtwkShR3yxg4UPTrCB0hUuvEjaWH7uF1QptfHsPKJ4FgMd9ZNN D+Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EK1m5F1T; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do4si1424116ejc.85.2020.07.20.04.18.55; Mon, 20 Jul 2020 04:19:18 -0700 (PDT) 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=@kernel.org header.s=default header.b=EK1m5F1T; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728058AbgGTLQj (ORCPT + 99 others); Mon, 20 Jul 2020 07:16:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:53232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727790AbgGTLQi (ORCPT ); Mon, 20 Jul 2020 07:16:38 -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 1A2062073A; Mon, 20 Jul 2020 11:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595243798; bh=h/+3Px8t9dUzIXFkpxr1WT1l9Hilocmlm4Pl2hk5x+M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EK1m5F1T8VF8+PkE6ofWtSbn78yiYNdbyDFUcbIAhi0Jfnau4AwihFw2U0V3XF6Sm SJqircjgWTVfWQheYVkgI1NEtiM5ONi1ZZTLZBfEUOEu9d41VeYuADN39yBvTL0JRu /mj134CnFPs4ySguORQKiVs96Ha+pvk98qdbqC1A= Date: Mon, 20 Jul 2020 12:16:33 +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 Subject: Re: [PATCH 2/2] dt-bindings: iio: gyro: Add DT binding doc for ADXRS290 Message-ID: <20200720121633.7a9e5cd7@archlinux> In-Reply-To: <20200715092821.14625-1-nish.malpani25@gmail.com> References: <20200715092821.14625-1-nish.malpani25@gmail.com> X-Mailer: Claws Mail 3.17.5 (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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jul 2020 14:58:21 +0530 Nishant Malpani wrote: > Add devicetree binding document for ADXRS290, a dual-axis MEMS gyroscope. > > Signed-off-by: Nishant Malpani > --- > .../bindings/iio/gyroscope/adi,adxrs290.yaml | 52 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 53 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml > > diff --git a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml > new file mode 100644 > index 000000000000..a997d945fdb0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2020 Analog Devices Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/gyroscope/adi,adxrs290.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices ADXRS290 Dual-Axis MEMS Gyroscope > + > +maintainers: > + - Nishant Malpani > + > +description: | > + Bindings for the Analog Devices ADXRS290 dual-axis MEMS gyroscope device. > + https://www.analog.com/media/en/technical-documentation/data-sheets/ADXRS290.pdf > + > +properties: > + compatible: > + enum: > + - adi,adxrs290 I think we can use const here as only one item currently. > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 5000000 > + > + spi-cpol: true > + > + spi-cpha: true > + > +required: > + - compatible > + - reg > + - spi-max-frequency > + - spi-cpol > + - spi-cpha > + > +examples: > + - | > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + gyro@0 { > + compatible = "adi,adxrs290"; > + reg = <0>; > + spi-max-frequency = <5000000>; > + spi-cpol; > + spi-cpha; > + }; > + }; > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index dd02cfc410e8..0bb8ac90fba1 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1103,6 +1103,7 @@ M: Nishant Malpani > L: linux-iio@vger.kernel.org > S: Supported > F: drivers/iio/gyro/adxrs290.c > +F: Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml > > ANALOG DEVICES INC ASOC CODEC DRIVERS > M: Lars-Peter Clausen