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=-8.6 required=3.0 tests=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 74E8BC3F2D7 for ; Tue, 3 Mar 2020 21:11:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E93621775 for ; Tue, 3 Mar 2020 21:11:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583269861; bh=9dEoSv6yhh8eJqi6eAzmQv1Qv1OJbIQTQcJqOl9NTSE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=ZbyMTmQ24nrnjSZqcRtvx+wRg7lk2btJYL3AUNsvYYVOwg62IvVnONSAccEy+7Xfj i9r3B5Vx8pvTUmM2P2yKJcH2x4nhQBjgNFAgXa3EqRP9jt4+bvBWBV6xbpR200/hiH 0PA3FNHzZXeX31g8t1hUrgvtbQSBNJaP5Syb+/94= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732424AbgCCVLA (ORCPT ); Tue, 3 Mar 2020 16:11:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:46908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732393AbgCCVK4 (ORCPT ); Tue, 3 Mar 2020 16:10:56 -0500 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 016A120848; Tue, 3 Mar 2020 21:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583269855; bh=9dEoSv6yhh8eJqi6eAzmQv1Qv1OJbIQTQcJqOl9NTSE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KVIb0g+Ahx/1VYlGJAxPd5CEkpyzquEQtzufQEAaJxDeduvzknsXvzBpqSFcPWAwX +l4Eox4toEbgMQlt3Dy/JBBgiG6lB58k0nHc5FfZG2q+usUKI+sGH2zM2sq7sVVRdI j/GZ0Kwc1Bi2Ytwg6pK5n+QUK/QWjpnOO2HpMWno= Date: Tue, 3 Mar 2020 21:10:45 +0000 From: Jonathan Cameron To: Nuno =?UTF-8?B?U8Oh?= Cc: , , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , Alexandru Ardelean , Michael Hennerich Subject: Re: [PATCH 5/5] dt-bindings: iio: Add adis16475 documentation Message-ID: <20200303211045.31f977bb@archlinux> In-Reply-To: <20200225124152.270914-6-nuno.sa@analog.com> References: <20200225124152.270914-1-nuno.sa@analog.com> <20200225124152.270914-6-nuno.sa@analog.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, 25 Feb 2020 13:41:52 +0100 Nuno S=C3=A1 wrote: > Document the ADIS16475 device devicetree bindings. >=20 > Signed-off-by: Nuno S=C3=A1 One thing inline on the burst mode stuff. Thanks, Jonathan > --- > .../bindings/iio/imu/adi,adis16475.yaml | 130 ++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 131 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/imu/adi,adis164= 75.yaml >=20 > diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml= b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml > new file mode 100644 > index 000000000000..c0f2146e000c > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml > @@ -0,0 +1,130 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/imu/adi,adis16475.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices ADIS16475 and similar IMUs > + > +maintainers: > + - Nuno S=C3=A1 > + > +description: | > + Analog Devices ADIS16475 and similar IMUs > + https://www.analog.com/media/en/technical-documentation/data-sheets/AD= IS16475.pdf > + > +properties: > + compatible: > + enum: > + - adi,adis16475-1 > + - adi,adis16475-2 > + - adi,adis16475-3 > + - adi,adis16477-1 > + - adi,adis16477-2 > + - adi,adis16477-3 > + - adi,adis16470 > + - adi,adis16465-1 > + - adi,adis16465-2 > + - adi,adis16465-3 > + - adi,adis16467-1 > + - adi,adis16467-2 > + - adi,adis16467-3 > + - adi,adis16500 > + - adi,adis16505-1 > + - adi,adis16505-2 > + - adi,adis16505-3 > + - adi,adis16507-1 > + - adi,adis16507-2 > + - adi,adis16507-3 > + > + reg: > + maxItems: 1 > + > + spi-cpha: true > + > + spi-cpol: true > + > + spi-max-frequency: > + maximum: 2000000 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + oneOf: > + - const: sync > + - const: direct-sync > + - const: pulse-sync > + - const: scaled-sync > + > + reset-gpios: > + description: > + Must be the device tree identifier of the RESET pin. If specified, > + it will be asserted during driver probe. As the line is active low, > + it should be marked GPIO_ACTIVE_LOW. > + maxItems: 1 > + > + adi,scaled-output-hz: > + description: > + This property must be present if the clock mode is scaled-sync thr= ough > + clock-names property. In this mode, the input clock can have a ran= ge > + of 1Hz to 128HZ which must be scaled to originate an allowable sam= ple > + rate. This property specifies that rate. > + minimum: 1900 > + maximum: 2100 > + > +required: > + - compatible > + - reg > + - interrupts > + - spi-cpha > + - spi-cpol > + > +if: > + properties: > + compatible: > + contains: > + enum: > + - adi,adis16500 > + - adi,adis16505-1 > + - adi,adis16505-2 > + - adi,adis16505-3 > + - adi,adis16507-1 > + - adi,adis16507-2 > + - adi,adis16507-3 > + > +then: > + properties: > + clock-names: > + oneOf: > + - const: sync > + - const: direct-sync > + - const: scaled-sync > + > + adi,burst32-enable: > + description: > + Enable burst32 mode. In this mode, a burst reading contains cali= brated > + gyroscope and accelerometer data in 32-bit format. Why is this in DT? Is it not a runtime decision (ideally automatically selected) > + type: boolean > + > +examples: > + - | > + #include > + spi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + adis16475: adis16475-3@0 { > + compatible =3D "adi,adis16475-3"; > + reg =3D <0>; > + spi-cpha; > + spi-cpol; > + spi-max-frequency =3D <2000000>; > + interrupts =3D <4 IRQ_TYPE_EDGE_RISING>; > + interrupt-parent =3D <&gpio>; > + }; > + }; > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index f11262f1f3bb..f8ccc92ab378 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1015,6 +1015,7 @@ W: http://ez.analog.com/community/linux-device-driv= ers > S: Supported > F: drivers/iio/imu/adis16475.c > F: Documentation/ABI/testing/sysfs-bus-iio-imu-adis16475 > +F: Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml > =20 > ANALOG DEVICES INC ADM1177 DRIVER > M: Beniamin Bia