Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756040AbcJ3N2f (ORCPT ); Sun, 30 Oct 2016 09:28:35 -0400 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:41951 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751594AbcJ3N2d (ORCPT ); Sun, 30 Oct 2016 09:28:33 -0400 Subject: Re: [PATCH v3 5/8] dt-bindings: iio: document dpot-dac bindings To: Peter Rosin , linux-kernel@vger.kernel.org References: <1477262381-7800-1-git-send-email-peda@axentia.se> <1477262381-7800-6-git-send-email-peda@axentia.se> Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devicetree@vger.kernel.org From: Jonathan Cameron Message-ID: Date: Sun, 30 Oct 2016 13:28:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1477262381-7800-6-git-send-email-peda@axentia.se> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2542 Lines: 79 On 23/10/16 23:39, Peter Rosin wrote: > Signed-off-by: Peter Rosin I'm happy with this, but it's odd enough I'd like some devicetree maintainer feedback ideally. Thanks, Jonathan > --- > .../devicetree/bindings/iio/dac/dpot-dac.txt | 41 ++++++++++++++++++++++ > MAINTAINERS | 6 ++++ > 2 files changed, 47 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/dac/dpot-dac.txt > > diff --git a/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt b/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt > new file mode 100644 > index 000000000000..fdf47a01bfef > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt > @@ -0,0 +1,41 @@ > +Bindings for DAC emulation using a digital potentiometer > + > +It is assumed that the dpot is used as a voltage divider between the > +current dpot wiper setting and the maximum resistance of the dpot. The > +divided voltage is provided by a vref regulator. > + > + .------. > + .-----------. | | > + | vref |--' .---. > + | regulator |--. | | > + '-----------' | | d | > + | | p | > + | | o | wiper > + | | t |<---------+ > + | | | > + | '---' dac output voltage > + | | > + '------+------------+ > + > +Required properties: > +- compatible: Should be "dpot-dac" > +- vref-supply: The regulator supplying the voltage divider. > +- io-channels: Channel node of the dpot to be used for the voltage division. > +- io-channel-names: Should be "dpot". > + > +Example: > + > + &i2c { > + dpot: mcp4651-503@28 { > + compatible = "microchip,mcp4651-503"; > + reg = <0x28>; > + #io-channel-cells = <1>; > + }; > + }; > + > + dac { > + compatible = "dpot-dac"; > + vref-supply = <®_3v3>; > + io-channels = <&dpot 0>; > + io-channel-names = "dpot"; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 7c65585e1230..6218010128dc 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -6111,6 +6111,12 @@ L: linux-media@vger.kernel.org > S: Maintained > F: drivers/media/rc/iguanair.c > > +IIO DIGITAL POTENTIOMETER DAC > +M: Peter Rosin > +L: linux-iio@vger.kernel.org > +S: Maintained > +F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt > + > IIO SUBSYSTEM AND DRIVERS > M: Jonathan Cameron > R: Hartmut Knaack >