Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2920358imm; Sun, 16 Sep 2018 06:03:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZUIANWEDKM3RVAIayR14F2L3CTYmIzi+U5gTMCJX4IRONKpPyZ2JDL7DVwKzgqKoTL+SG1 X-Received: by 2002:a63:ac54:: with SMTP id z20-v6mr19137703pgn.74.1537103023672; Sun, 16 Sep 2018 06:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537103023; cv=none; d=google.com; s=arc-20160816; b=HqGbSV2YI+cMU4vX+A2cA7jxcFJBpHRfXxVa5SwBwdccXLgAiVOoPQbigrxjc9CZBL M6ooZFylKgyM/IOA6n4cX3xnNzCw+O2G5EdXC7nu1y7QiS7QepOAGSAZzRNaKp8ORtDs Vhrbe7I0z+Yeo0cWrouWxfyT5yIwLSwTY+wPwFhl8JheKINsHdMPpTJUoU4tlWqc8VdF 5rG9r6GoGLMZXoQh97RT5+vJ4JRNXIncZ79oCzqkNl4V/RssZP+4PsvUh3HbjChjomXr il9gEJjdlNNKmIpob7sUy1O2mOpRdW5neGOx9xV5uXXsa+YYH6kxD1EyC/1XljqES253 J1/Q== 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=Xr0q3MAn9jlhQOuJ3l+w6Phx1uaPa1OFCNAIBC/WMDI=; b=OxhOj3FnvY7RbBs/ejUZX1pJBmBN9vda48/OCAIZQlymG3FnmbPw4GnZOeNy6hQGZM AJLA+jZxpFnDDectlz9Fr9Jg+FoZZW4/DEPmVuAp+S2/EvWByvaZItvZjKe27jBczVuM 1HzG0cyZhNeazG5SN0M1N4/MLWvmrVBZiJtj6cEORQ3DYfwsoCp9h0hBH3C18bvRtiiD eHfOL1QsAEHXPFkPv8Kx7uLM0tttcF/70EMzT67zOiCK1HhUI9QUhzP5dTaEvhabZwcG Gz0BnnC/CIUP+VYz/fdnqmbVo/EfZ+p2n3R6Jc9OfxOoebaHQaGXjVpWh/S1ZdIVOoTX 1ZVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uC0YDLab; 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 d34-v6si13095183pla.195.2018.09.16.06.03.28; Sun, 16 Sep 2018 06:03:43 -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=uC0YDLab; 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 S1728376AbeIPSWv (ORCPT + 99 others); Sun, 16 Sep 2018 14:22:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:54948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727071AbeIPSWv (ORCPT ); Sun, 16 Sep 2018 14:22:51 -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 40EA62087B; Sun, 16 Sep 2018 12:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537102797; bh=B0aiaPyHKkqOuFjq58jYrPi7ATISIQwkKrl7SHAEfOk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uC0YDLabMzyIhnJKvGjXgKyKhMCAHkLQ6vGq05jQLVmRQY/8zlxXDRTJSq/r1olgf LnGzN2VVHVnbKZ3R/utRmvz7jkqRJjuFwDJbKfWG5yFDEnV68+sjxNsiEFsavsceXH v1XkGC0HYHtKIqndbErCZa3j1hhmIrSvwju8Ev4Q= Date: Sun, 16 Sep 2018 13:59:53 +0100 From: Jonathan Cameron To: Afonso Bordado Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v4 3/5] dt-bindings: fxas21002c: Document the fxas21002c I2C bindings Message-ID: <20180916135953.4247fe8d@archlinux> In-Reply-To: <20180911150011.31964-3-afonsobordado@az8.co> References: <20180911150011.31964-1-afonsobordado@az8.co> <20180911150011.31964-3-afonsobordado@az8.co> 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, 11 Sep 2018 16:00:09 +0100 Afonso Bordado wrote: > Add documentation for the fxas21002c I2C bindings. > > Signed-off-by: Afonso Bordado > --- > .../bindings/iio/gyroscope/fsl,fxas21002c.txt | 33 +++++++++++++++++++ > 1 file changed, 33 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/fsl,fxas21002c.txt > > diff --git a/Documentation/devicetree/bindings/iio/gyroscope/fsl,fxas21002c.txt b/Documentation/devicetree/bindings/iio/gyroscope/fsl,fxas21002c.txt > new file mode 100644 > index 000000000000..9e5cdf0c0b69 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/gyroscope/fsl,fxas21002c.txt > @@ -0,0 +1,33 @@ > +* Freescale FXAS21002C Digital Angular Rate Gyroscope > + > +Required properties: > + > + - compatible: must be "fsl,fxas21002c" > + - reg : the I2C address of the sensor > + > +Optional properties: > + > + - interrupts : The first interrupt listed must be the one > + connected to the INT1 pin, the second interrupt > + listed must be the one connected to the INT2 pin. > + The interrupts can be triggered on rising or falling > + edges alike. > + see interrupt-controller/interrupts.txt > + - vdd-supply : The main voltage regulator > + - iovdd-supply : The IO voltage regulator > + see regulator/regulator.txt > + - reset-gpios : GPIO used to reset the device. > + see gpio/gpio.txt. > + - mount-matrix : see iio/mount-matrix.txt This last one could do with a very brief introduction to what it is (as well as the cross reference). This is particularly true as it isn't clear whether it is necessary or optional. The below doesn't have it there for example. > + > +Example: > +gyroscope@20 { > + compatible = "fsl,fxas21002c"; > + reg = <0x20>; > + reset-gpios = <&gpio0 2 0>; > + vdd-supply = <&vref>; > + iovdd-supply = <&vref2>; > + interrupt-parent = <&foo>; > + interrupts = <0 IRQ_TYPE_EDGE_RISING>, > + <1 (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING)>; Perhaps keep these in the same order as in the description above. > +};