From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753363AbbBZInb (ORCPT ); Thu, 26 Feb 2015 03:43:31 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:38423 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753182AbbBZIn3 (ORCPT ); Thu, 26 Feb 2015 03:43:29 -0500 Date: Thu, 26 Feb 2015 08:43:15 +0000 From: Lee Jones To: Adam Thomson Cc: Samuel Ortiz , Jonathan Cameron , Hartmut Knaack , linux-iio@vger.kernel.org, Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , linux-pm@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , devicetree@vger.kernel.org, Andrew Morton , Joe Perches , linux-kernel@vger.kernel.org, support.opensource@diasemi.com Subject: Re: [PATCH v7 2/7] mfd: da9150: Add DT binding documentation for core Message-ID: <20150226084315.GJ6688@x1> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Feb 2015, Adam Thomson wrote: > Signed-off-by: Adam Thomson > --- > Documentation/devicetree/bindings/mfd/da9150.txt | 43 ++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/da9150.txt Applied, thanks. > diff --git a/Documentation/devicetree/bindings/mfd/da9150.txt b/Documentation/devicetree/bindings/mfd/da9150.txt > new file mode 100644 > index 0000000..d0588ea > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/da9150.txt > @@ -0,0 +1,43 @@ > +Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings > + > +DA9150 consists of a group of sub-devices: > + > +Device Description > +------ ----------- > +da9150-gpadc : General Purpose ADC > +da9150-charger : Battery Charger > + > +====== > + > +Required properties: > +- compatible : Should be "dlg,da9150" > +- reg: Specifies the I2C slave address > +- interrupt-parent: Specifies the phandle of the interrupt controller to which > + the IRQs from da9150 are delivered to. > +- interrupts: IRQ line info for da9150 chip. > +- interrupt-controller: da9150 has internal IRQs (own IRQ domain). > + (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for > + further information relating to interrupt properties) > + > +Sub-devices: > +- da9150-gpadc: See Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt > +- da9150-charger: See Documentation/devicetree/bindings/power/da9150-charger.txt > + > + > +Example: > + > + charger_fg: da9150@58 { > + compatible = "dlg,da9150"; > + reg = <0x58>; > + interrupt-parent = <&gpio6>; > + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; > + interrupt-controller; > + > + gpadc: da9150-gpadc { > + ... > + }; > + > + da9150-charger { > + ... > + }; > + }; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog