From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH v3 4/8] MFD: ti_am335x_tscadc: add device tree binding information Date: Sat, 19 Jan 2013 23:28:14 +0100 Message-ID: <50FB1DFE.6090805@metafoo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-iio-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Patil, Rachna" Cc: linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Samuel Ortiz , Dmitry Torokhov , Dmitry Torokhov , Rob Herring , Jonathan Cameron , Tony Lindgren , Benit Cousson , Grant Likely , Rob Landley , Russell King List-Id: devicetree@vger.kernel.org Hi, On 01/18/2013 11:48 AM, Patil, Rachna wrote: > From: "Patil, Rachna" > > Signed-off-by: Patil, Rachna > --- > .../devicetree/bindings/mfd/ti_am335x_tscadc.txt | 35 ++++++++++++++++++++ > 1 file changed, 35 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/ti_am335x_tscadc.txt > > diff --git a/Documentation/devicetree/bindings/mfd/ti_am335x_tscadc.txt b/Documentation/devicetree/bindings/mfd/ti_am335x_tscadc.txt > new file mode 100644 > index 0000000..c13c492 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/ti_am335x_tscadc.txt > @@ -0,0 +1,35 @@ > +Texas Instruments - TSC / ADC multi-functional device > + > +ti_tscadc is a multi-function device with touchscreen and ADC on chip. > +This document describes the binding for mfd device. > + > +Required properties: > +- compatible: "ti,ti-tscadc" > +- reg: Specifies the address of MFD block > +- interrupts: IRQ line connected to the main SoC > +- interrupt-parent: The parent interrupt controller The subnodes and their properties also need documentation. > + > +Optional properties: > +- ti,hwmods: Hardware information related to TSC/ADC MFD device > + > +Example: > + > + tscadc: tscadc@44e0d000 { > + compatible = "ti,ti-tscadc"; > + reg = <0x44e0d000 0x1000>; > + > + interrupt-parent = <&intc>; > + interrupts = <16>; > + ti,hwmods = "adc_tsc"; > + > + tsc { > + wires = <4>; > + x-plate-resistance = <200>; > + steps-to-configure = <5>; > + wire-config = <0x00 0x11 0x22 0x33>; Non-standard properties should have a vendor prefix. > + }; > + > + adc { > + adc-channels = <4>; > + }; > + };