Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2002662pxt; Sun, 8 Aug 2021 08:20:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSXNu0s70fLxkU9o1XWOeDrJnHtN2OSM2WJI+89nh6Jug9W0b4WsScRGOvEkChXIg0fGjX X-Received: by 2002:a17:906:498b:: with SMTP id p11mr18929309eju.295.1628436042646; Sun, 08 Aug 2021 08:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628436042; cv=none; d=google.com; s=arc-20160816; b=q9kkJHFrEWC4Jt9jHoPZ/C77wdU2XA/gmiB5fyeFXxIpd7BwoBhLOQ0sfPQGEIf+/L Nmlg4vg0tUcsdyqAQY44B9Foeb5uvUNp07E7YjjqdUTqzOy5H8maNq79JocyeBVQJ/+2 ajvfj4q+Pzt86nwiHpcNlonHBiTB+4sHqUpfb3ZLwuvgvld0SL9B7zjXoGfseqCABh7m jc652X1O1I+rLpKJn8hpCCaLcdm8lsAIM68LCpnn9CC/PAZs7RETqNvgO7JgTQRyl9RT 279O8T9/OTcLDnNb6N8d6sio2R1/r3X6XV+ppz8ivERECFpwWku/1wfz+iyhp2lyvI3R TgTA== 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:subject:cc:to:from:date; bh=pQg/0nSUyd6opD1bQvO7sKcEUP6V6Tz0bzMjsvZepaw=; b=DjDo6wIF68Hoc3PKJ4w6DTP3hEptCk0Ivbu3CeEy87aZ2vF2c/Af7wKoiGYbl+gM0b fcFNZWg+x0yx/41psqzZj5KMaWcrNK4BDz9LHs6yH9czpV22tSwa1A9B0Y0K6t4u+NHv DOFDXN9rZX/czt0wd6B/+75TET9+vDsIDerYSRk1FJbwInmLFU5OXqiElzCmrmBNc//Y H8Sqnx02bV2CC4gSEyHq3bc7KwMRDc1iftR5OF5S+uAVw2sigF8X/2xxJU3T1ptrOnIF 1/y0maml6qOFP2lHGMnsjGxA3m2BkzpzcwTC6b2z5y9x3AX6rFwJfQMDQNXgfN7u7ZIb k18A== ARC-Authentication-Results: i=1; mx.google.com; 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 p15si1299542edq.262.2021.08.08.08.20.17; Sun, 08 Aug 2021 08:20:42 -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; 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 S232070AbhHHPEF (ORCPT + 99 others); Sun, 8 Aug 2021 11:04:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:46892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbhHHPEB (ORCPT ); Sun, 8 Aug 2021 11:04:01 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (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 895416054E; Sun, 8 Aug 2021 15:03:39 +0000 (UTC) Date: Sun, 8 Aug 2021 16:06:28 +0100 From: Jonathan Cameron To: Puranjay Mohan Cc: Michael.Hennerich@analog.com, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, lars@metafoo.de, Dragos.Bogdan@analog.com, Darius.Berghe@analog.com, robh+dt@kernel.org Subject: Re: [PATCH v8 1/3] dt-bindings: iio: accel: Add DT binding doc for ADXL355 Message-ID: <20210808160628.7b031948@jic23-huawei> In-Reply-To: <20210804140309.31468-2-puranjay12@gmail.com> References: <20210804140309.31468-1-puranjay12@gmail.com> <20210804140309.31468-2-puranjay12@gmail.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Aug 2021 19:33:07 +0530 Puranjay Mohan wrote: > Add devicetree binding document for ADXL355, a 3-Axis MEMS Accelerometer. > > Signed-off-by: Puranjay Mohan Looks good to me. I'll pick this up once Rob and anyone else interested has had time to take a look assuming they don't ask for any changes. Thanks, Jonathan > --- > .../bindings/iio/accel/adi,adxl355.yaml | 88 +++++++++++++++++++ > 1 file changed, 88 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml > > diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml > new file mode 100644 > index 000000000..5da3fd5ad > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/accel/adi,adxl355.yaml > @@ -0,0 +1,88 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/accel/adi,adxl355.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices ADXL355 3-Axis, Low noise MEMS Accelerometer > + > +maintainers: > + - Puranjay Mohan > + > +description: | > + Analog Devices ADXL355 3-Axis, Low noise MEMS Accelerometer that supports > + both I2C & SPI interfaces > + https://www.analog.com/en/products/adxl355.html > + > +properties: > + compatible: > + enum: > + - adi,adxl355 > + > + reg: > + maxItems: 1 > + > + interrupts: > + minItems: 1 > + maxItems: 3 > + description: | > + Type should be IRQ_TYPE_LEVEL_HIGH. > + Three configurable interrupt lines exist. > + > + interrupt-names: > + description: Specify which interrupt line is in use. > + items: > + enum: > + - INT1 > + - INT2 > + - DRDY > + minItems: 1 > + maxItems: 3 > + > + vdd-supply: > + description: Regulator that provides power to the sensor > + > + vddio-supply: > + description: Regulator that provides power to the bus > + > + spi-max-frequency: true > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* Example for a I2C device node */ > + accelerometer@1d { > + compatible = "adi,adxl355"; > + reg = <0x1d>; > + interrupt-parent = <&gpio>; > + interrupts = <25 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "DRDY"; > + }; > + }; > + - | > + #include > + #include > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + accelerometer@0 { > + compatible = "adi,adxl355"; > + reg = <0>; > + spi-max-frequency = <1000000>; > + interrupt-parent = <&gpio>; > + interrupts = <25 IRQ_TYPE_EDGE_RISING>; > + interrupt-names = "DRDY"; > + }; > + };