Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp712033imm; Sat, 8 Sep 2018 07:33:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbxbquTQ76gWDpPbz74hCDkVbd/WLUpCX45JmD8MXMaYuX6wWMzKUgMxbheFnDXOeXaCKu/ X-Received: by 2002:a17:902:b7c3:: with SMTP id v3-v6mr13112017plz.238.1536417198545; Sat, 08 Sep 2018 07:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536417198; cv=none; d=google.com; s=arc-20160816; b=jgfOIorafbVLs5ICAt7i6T3pJbg42bvFx0siK71tF7cJApzYTOPH/C5C3oz5crznoh bYjbWo1bYIXANx6lrRNJf+B/z0DBZvlStgZ9NqC0821dpNPST3oqWgHpHzo+jFnhG6bx 4eAxudM1SX/gvU/C/taGENMIrIOgsjFU75OsPiibq1hD7AIalHwgnLTsuiIch3JLCxWa Gb/WMCp73y7z8ZtRoB+W5bhK8J0RxQH0+sqkI5ZLVdt0UudAuwD8oB8nu1XjsoFUhfa3 k0JVtjc64k7v514hRO1NcLW26hKRHgfM1tn7eceCw4tC6a5wFIEJJhVdYDNEhdxLfJj8 kriQ== 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=oDOBA3difOHLO8q6h+y2FW0gXx1+UXyJRbzEytmybjY=; b=Xj5MRaWf63npmlrvtQ8TH0KPJtMLAlsFZsHfAMEangi2bh8jtWG1+o3rvDgHuUTJJ2 hdqonAHRzjDmI6cEuWCHwSud70hRCYfJPGjaw5s8TuWvb/KzCX2kBA3i6i4EZb8nClb6 llGFPibyfpsMSCK/QqJ7T5R/J0U5GtgHT9WQRDadz4HkZXNmrkCDXlZfwZrGETzItJdn yG5eaHCPT7ml5oLQGyO78z1ZLIhqGIL9VYURURxr2ntAfklhGbptZnjxHdmPZzPOoDgU CGah/tk+YdneXQ110PfWYZaNGjjw7lNHCVlh3zCvaSJzZLOMHf3h1GOGPqLMt3zqJzaK f+EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UyBQID4D; 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 x3-v6si9345133plr.138.2018.09.08.07.33.02; Sat, 08 Sep 2018 07:33:18 -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=UyBQID4D; 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 S1727655AbeIHTRA (ORCPT + 99 others); Sat, 8 Sep 2018 15:17:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:53016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbeIHTRA (ORCPT ); Sat, 8 Sep 2018 15:17:00 -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 C8F8B2086B; Sat, 8 Sep 2018 14:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536417060; bh=hAz4g3xUknBVcFOra9Y3cl2crW8SE/n818PGTAmv2n4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UyBQID4D3HqxIwDp8/MwS6LqCMlA+zexyVFiibOLxDv6bcksWvYnLvRHp9wxpge2Q H31BwgVOHeOLUNt7pmCx7JNjrOq7S9RtC/8Al+3ABqusCr21eiKaVRgO+WUTHsrsJj wLI1qGgfq7Js9J9+znr8A5sfLO7/0ekWMv858DkY= Date: Sat, 8 Sep 2018 15:30:55 +0100 From: Jonathan Cameron To: Stefan Popa Cc: , , , , , , , , Subject: Re: [PATCH 3/3] dt-bindings: adxl372: Document the adxl372 I2C bindings Message-ID: <20180908153055.401efbec@archlinux> In-Reply-To: <1536070394-5679-1-git-send-email-stefan.popa@analog.com> References: <1536070394-5679-1-git-send-email-stefan.popa@analog.com> X-Mailer: Claws Mail 3.17.1 (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 Tue, 4 Sep 2018 17:13:14 +0300 Stefan Popa wrote: > The adxl372 is designed to communicate in either SPI or I2C protocol. > This patch adds the documentation of device tree bindings for adxl372 > I2C. > > Signed-off-by: Stefan Popa Applied. Thanks, Jonathan > --- > Documentation/devicetree/bindings/iio/accel/adxl372.txt | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/accel/adxl372.txt b/Documentation/devicetree/bindings/iio/accel/adxl372.txt > index 9409984..a289964 100644 > --- a/Documentation/devicetree/bindings/iio/accel/adxl372.txt > +++ b/Documentation/devicetree/bindings/iio/accel/adxl372.txt > @@ -4,14 +4,25 @@ 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 > + - reg: the I2C address or SPI chip select number for the device > + > +Required properties for SPI bus usage: > - spi-max-frequency: Max SPI frequency to use > > Optional properties: > - interrupts: interrupt mapping for IRQ as documented in > Documentation/devicetree/bindings/interrupt-controller/interrupts.txt > > -Example: > +Example for a I2C device node: > + > + accelerometer@53 { > + compatible = "adi,adxl372"; > + reg = <0x53>; > + interrupt-parent = <&gpio>; > + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; > + }; > + > +Example for a SPI device node: > > accelerometer@0 { > compatible = "adi,adxl372";