From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:52824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbdIJPM1 (ORCPT ); Sun, 10 Sep 2017 11:12:27 -0400 Date: Sun, 10 Sep 2017 16:12:22 +0100 From: Jonathan Cameron To: Lukas Wunner Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mathias Duckeck , Phil Elwell , "Andrew F. Davis" , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Mark Rutland Subject: Re: [PATCH 1/2] dt-bindings: iio: dac: ti-dac082s085: Document new driver Message-ID: <20170910161211.617f241f@archlinux> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org On Tue, 5 Sep 2017 11:27:00 +0200 Lukas Wunner wrote: > Add device tree bindings for Texas Instruments 8/10/12-bit 2/4-channel > DAC driver. > > Cc: Mathias Duckeck > Signed-off-by: Lukas Wunner Looks good to me. Lets see what Mark / Rob think. Thanks, Jonathan > --- > .../devicetree/bindings/iio/dac/ti-dac082s085.txt | 34 ++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/dac/ti-dac082s085.txt > > diff --git a/Documentation/devicetree/bindings/iio/dac/ti-dac082s085.txt b/Documentation/devicetree/bindings/iio/dac/ti-dac082s085.txt > new file mode 100644 > index 000000000000..9cb0e10df704 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/dac/ti-dac082s085.txt > @@ -0,0 +1,34 @@ > +Texas Instruments 8/10/12-bit 2/4-channel DAC driver > + > +Required properties: > + - compatible: Must be one of: > + "ti,dac082s085" > + "ti,dac102s085" > + "ti,dac122s085" > + "ti,dac084s085" > + "ti,dac104s085" > + "ti,dac124s085" > + - reg: Chip select number. > + - spi-cpha, spi-cpol: SPI mode (0,1) or (1,0) must be used, so specify > + either spi-cpha or spi-cpol (but not both). > + - vref-supply: Phandle to the external reference voltage supply. > + > +For other required and optional properties of SPI slave nodes please refer to > +../../spi/spi-bus.txt. > + > +Example: > + vref_2v5_reg: regulator-vref { > + compatible = "regulator-fixed"; > + regulator-name = "2v5"; > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <2500000>; > + regulator-always-on; > + }; > + > + dac@0 { > + compatible = "ti,dac082s085"; > + reg = <0>; > + spi-max-frequency = <40000000>; > + spi-cpol; > + vref-supply = <&vref_2v5_reg>; > + };