Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp934217imm; Fri, 3 Aug 2018 14:24:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcXwap5z9aBdRrW4nGOBue2o8Vkna4lCVu4Gh//Q9wNEZ5zIIZM6/XWfiVwkH7o49aoTmr1 X-Received: by 2002:a63:c00b:: with SMTP id h11-v6mr5185247pgg.279.1533331469622; Fri, 03 Aug 2018 14:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533331469; cv=none; d=google.com; s=arc-20160816; b=yPpZHSHV9RenNqLL0oV04r5cOqc6+JvjXesmEWXF+/xecFYErpO8MzEwz1GmbZltmH wphL/Wvy03VM41i+QpExzITVl5K6rgnYSUBKbOp9x0C958spLwgC0N+8NE098SoiAvCQ ZajCU53/+ldwk2XRBvos4DvPe0MMksWRY95kED/8xpod77mbIAe6CSjOTCeOnwmXqScq lP2MCzCcrtJyMBffDZ6kHwN8LaKL/7fEV4FPYMVpmip9Nt50Ezash/1fbUQOFSM+n9J/ gh1K+/FuiMRrXqpMRVd1IKyI4P1u94JLwetTftMTkX4SS9SRvdbOA0qRCAz8MVSAklfL bVNg== 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:arc-authentication-results; bh=1zBzpMXs3ZrtEusAI4ntnHEy6djTxEXsyxXiKNIzWZI=; b=gnhCO1yK6iAbjXUplNl2OmkGhR3Xzscmche9U/mE2VXhdZ5SewI/A5TQ8NWFjYKXsI 5IKyn4eg9354Mg/YQMbGStHz1K7I8TIlbj3E6VpN0BKRj9Wvm0+CU35eg7dy7VkSa/ZO o7GhVlWA/IOrB2Bj9AAAGhQi52vGYaeYH+0S+lMN2FxVnqnkvKrmOjv95X/Xb/3sMn/n FIlj/sopbNUBETbWs7usG9T5U5qXcRlJrctDonfPLY/NX8WvcgGpate+Xw4S9OcGwSHq P4I0EvoYZQyLI4Q4S1wogY6OTaSW6bYzGkauKfjbgHB61sgk90sXXc4PvYhVyvN9wk4c LIZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J5y49GuG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si5673717pff.304.2018.08.03.14.24.14; Fri, 03 Aug 2018 14:24:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J5y49GuG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1732120AbeHCXVS (ORCPT + 99 others); Fri, 3 Aug 2018 19:21:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:33254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729828AbeHCXVS (ORCPT ); Fri, 3 Aug 2018 19:21:18 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (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 B191D2178D; Fri, 3 Aug 2018 21:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533331398; bh=aVU/vxVHPPjLNzwIal9x+Wz8uzPfH5iEJ8LfZ2EpF1w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=J5y49GuG5jCStmavMHAywgVpxaSr+lPs5culq0XWCL/M1F0VIAmZXk4w/afke/oat 5cb+UsFpUKdwxWbkMu67QaOD7XO2LV6o6TCQ+6Fgjo9IZnxQmiJ8LiS/YgVEYqtxX3 Mgf6/xtIuEyyLoVAE0sIR9wuIZ3Gcuc04LA0jvHI= Date: Fri, 3 Aug 2018 22:23:13 +0100 From: Jonathan Cameron To: Stefan Popa Cc: , , , , , , , , , , , , , Subject: Re: [PATCH v3 2/6] dt-bindings: iio: accel: Add docs for ADXL372 Message-ID: <20180803222313.09f458a4@archlinux> In-Reply-To: <1533301341-26560-3-git-send-email-stefan.popa@analog.com> References: <1533301341-26560-1-git-send-email-stefan.popa@analog.com> <1533301341-26560-3-git-send-email-stefan.popa@analog.com> X-Mailer: Claws Mail 3.16.0 (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 Fri, 3 Aug 2018 16:02:17 +0300 Stefan Popa wrote: > Add the device tree binding documentation for the ADXL372 3-axis digital > accelerometer. > > Signed-off-by: Stefan Popa > --- > .../devicetree/bindings/iio/accel/adxl372.txt | 24 ++++++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 25 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/accel/adxl372.txt > > diff --git a/Documentation/devicetree/bindings/iio/accel/adxl372.txt b/Documentation/devicetree/bindings/iio/accel/adxl372.txt > new file mode 100644 > index 0000000..41493d9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/accel/adxl372.txt > @@ -0,0 +1,24 @@ > +Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer > + > +http://www.analog.com/media/en/technical-documentation/data-sheets/adxl372.pdf > + > +Required properties: > + - compatible : should be "adi,adxl372" > + - reg: SPI chip select number for the device > + - spi-max-frequency: Max SPI frequency to use > + > +Optional properties: > + - interrupt-parent : phandle to the parent interrupt controller as documented > + in Documentation/devicetree/bindings/interrupt-controller/interrupts.txt General convention, IIRC, is to not bother adding interrupt-parent as it is clear from the reference you give for interrupts. > + - interrupts: interrupt mapping for IRQ as documented in > + Documentation/devicetree/bindings/interrupt-controller/interrupts.txt > + > +Example: > + > + accelerometer@0 { > + compatible = "adi,adxl372"; > + reg = <0>; > + spi-max-frequency = <1000000>; > + interrupt-parent = <&gpio>; > + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 2ba47bb..c8dd09c 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -548,6 +548,7 @@ M: Stefan Popa > W: http://ez.analog.com/community/linux-device-drivers > S: Supported > F: drivers/iio/accel/adxl372.c > +F: Documentation/devicetree/bindings/iio/accel/adxl372.txt > > AF9013 MEDIA DRIVER > M: Antti Palosaari