From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Cameron Subject: Re: [PATCH 1/4] dt-bindings: iio: document dpot-dac bindings Date: Sat, 22 Oct 2016 15:36:19 +0100 Message-ID: <704ce511-e82f-6881-ed1f-24ac77ba473e@kernel.org> References: <1476955562-13673-1-git-send-email-peda@axentia.se> <1476955562-13673-2-git-send-email-peda@axentia.se> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1476955562-13673-2-git-send-email-peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Peter Rosin , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On 20/10/16 10:25, Peter Rosin wrote: > Signed-off-by: Peter Rosin > --- I like this, but will need some device tree maintainer input on it. To my mind we are explicitly describing hardware connectivity here so it should be fine. No where near as controversial as a certain other IIO binding ;) > .../devicetree/bindings/iio/dac/dpot-dac.txt | 43 ++++++++++++++++++++++ > MAINTAINERS | 6 +++ > 2 files changed, 49 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..a381188676c3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt > @@ -0,0 +1,43 @@ > +Bindings for DAC emulation using a digital potentiometer > + > +It is assumed the 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". > +- dpot-dac,max-ohms: The maximum resistance of the 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"; > + dpot-dac,max-ohms = <50000>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 1cd38a7e0064..c68b72088945 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -6111,6 +6111,12 @@ L: linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > S: Maintained > F: drivers/media/rc/iguanair.c > > +IIO DIGITAL POTENTIOMETER DAC > +M: Peter Rosin > +L: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > +S: Maintained > +F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt > + > IIO SUBSYSTEM AND DRIVERS > M: Jonathan Cameron > R: Hartmut Knaack > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html