From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Cameron Subject: Re: [PATCH 3/3] iio: magn: bmc150_magn: Add devicetree binding documentation Date: Sat, 18 Apr 2015 19:08:41 +0100 Message-ID: <55329DA9.1050305@kernel.org> References: <1429267830-13681-1-git-send-email-irina.tirdea@intel.com> <1429267830-13681-4-git-send-email-irina.tirdea@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1429267830-13681-4-git-send-email-irina.tirdea-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Irina Tirdea , linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala List-Id: devicetree@vger.kernel.org On 17/04/15 11:50, Irina Tirdea wrote: > Add binding documentation for Bosch BMC150 magnetometer. > > Signed-off-by: Irina Tirdea > --- > .../bindings/iio/magnetometer/bmc150_magn.txt | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/bmc150_magn.txt > > diff --git a/Documentation/devicetree/bindings/iio/magnetometer/bmc150_magn.txt b/Documentation/devicetree/bindings/iio/magnetometer/bmc150_magn.txt > new file mode 100644 > index 0000000..4ed035c > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/magnetometer/bmc150_magn.txt > @@ -0,0 +1,20 @@ > +* Bosch BMC150 magnetometer sensor > + > +http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf > + > +Required properties: > + > + - compatible : should be "bosch,bmc150_magn" > + - reg : the I2C address of the magnetometer > + > +Optional properties: > + > + - gpios : should be device tree identifier of the magnetometer DRDY pin Hmm. Under device tree this should be done as an interrupt. You only (currently) need the dubious frig with gpios for ACPI I think. > + > +Example: > + > +bmc150_magn@12 { > + compatible = "bosch,bmc150_magn"; > + reg = <0x12>; > + interrupt-gpio = <&gpio1 0 1>; > +}; >