Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751418AbaLONOF (ORCPT ); Mon, 15 Dec 2014 08:14:05 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:55374 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750753AbaLONOC convert rfc822-to-8bit (ORCPT ); Mon, 15 Dec 2014 08:14:02 -0500 Date: Mon, 15 Dec 2014 14:15:59 +0100 From: Nikolaus Schulz To: Mark Rutland Cc: "linux-iio@vger.kernel.org" , Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Alban Bedel Subject: Re: [PATCH v3 1/2] iio: document ti-dac8554 devicetree bindings Message-ID: <20141215131559.GA16545@avionic-0071.adnet.avionic-design.de> References: <1418643605-15554-1-git-send-email-nikolaus.schulz@avionic-design.de> <20141215130248.GA8264@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20141215130248.GA8264@leverpostej> User-Agent: Mutt/1.5.23 (2014-03-12) Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K0:qoUCr63YHWjbkOhijkAKN7LnpdZIZmm1u1JOivfD/ia60rwqo+T VoLKf8hRaGaIHVKqKt7GBvtU/AID1QtYLq05m4f/yarmEKIQpEsixMdDPvjm3Azj9AG4orl ZGiXWXfe6jebY/3L7AIKAdyWxLcc1NgGhvXnkM+fqcGJ9OdI/c+GhIVwXx5atjVUUd5cVY1 fD02Mw/qCksaVpk+UzdeQ== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 15, 2014 at 01:02:48PM +0000, Mark Rutland wrote: > On Mon, Dec 15, 2014 at 11:39:56AM +0000, Nikolaus Schulz wrote: > > Signed-off-by: Nikolaus Schulz > > --- > > .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 ++++++++++++++++++++++ > > 1 file changed, 22 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt > > > > diff --git a/Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt b/Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt > > new file mode 100644 > > index 0000000..32e96859 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt > > @@ -0,0 +1,22 @@ > > +TI DAC8554 Digital to Analog Converter > > + > > +This driver supports the SPI bus. > > The binding need not refer to the driver, this sentence can go. It might > be worth adding "(SPI)" to the first line. OK > > + > > +Required properties: > > + - compatible: must be "ti,dac8554" > > + - vref-supply: the vref power supply > > + - ti,address: the additional 2-bit chip address > > + > > +For required properties on SPI, please consult > > +Documentation/devicetree/bindings/spi/spi-bus.txt > > + > > +Example: > > + > > + dac8554@0 { > > + compatible = "ti,dac8554"; > > + reg = <0>; > > + spi-max-frequency = <50000000>; > > + > > + vref-supply = <&vdd_vref>; > > + ti,address = <0>; > > What's this property used for? The DAC8554 has its own addressing scheme, where each chip is assigned a two-bit address, defined by the state of two pins. So up to 4 DAC8554 can be operated independently on the same SPI bus. > > + }; > > Otherwise this looks sane to me. > > Mark. -- Avionic Design GmbH Nikolaus Schulz Wragekamp 10 D-22397 Hamburg Germany Tel.: +49 40 88187-163 Fax: +49 40 88187-150 Email: nikolaus.schulz@avionic-design.de Avionic Design GmbH Amtsgericht Hamburg HRB 82598 Gesch?ftsf?hrung: Cornelis Broers Ust.-Ident-Nr.: DE813378254 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/