From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Subject: Re: [PATCH] twl4030_charger: add devicetree support. Date: Thu, 24 Oct 2013 22:56:56 -0500 Message-ID: <67F67DAB-B61D-4172-91BC-FE8A428FE5D1@codeaurora.org> References: <20131024165005.78bc8740@notabene.brown> <1C8E8D31-1261-45ED-BBD0-161DFD627ACF@codeaurora.org> <20131024100652.6B31DC4039D@trevor.secretlab.ca> <20131024214110.2845670d@notabene.brown> Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <20131024214110.2845670d@notabene.brown> Sender: linux-omap-owner@vger.kernel.org To: NeilBrown Cc: Grant Likely , Anton Vorontsov , David Woodhouse , devicetree@vger.kernel.org, linux-omap@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Belisko Marek , "Dr. H. Nikolaus Schaller" List-Id: devicetree@vger.kernel.org On Oct 24, 2013, at 5:41 AM, NeilBrown wrote: > On Thu, 24 Oct 2013 11:06:52 +0100 Grant Likely > wrote: > >> On Thu, 24 Oct 2013 04:44:03 -0500, Kumar Gala wrote: >>> >>> On Oct 24, 2013, at 12:50 AM, NeilBrown wrote: >>> >>>> >>>> [my first device-tree related patch. Please let me know what I got wrong so >>>> I wont repeat the mistake in all the others I have queued] >>>> >>>> This allows the charger to be enabled with devicetree, and >>>> allows the parameters for charging the backup battery to be set. >>>> >>>> Signed-off-by: NeilBrown >>>> >>>> diff --git a/Documentation/devicetree/bindings/power/twl-charger.txt b/Documentation/devicetree/bindings/power/twl-charger.txt >>>> new file mode 100644 >>>> index 0000000..8afaa9a >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/power/twl-charger.txt >>>> @@ -0,0 +1,20 @@ >>>> +TWL BCI (Battery Charger Interface) >>>> + >>>> +Required properties: >>>> +- compatible: >>>> + - "ti,twl4030-bci" >>>> +- interrupts: two interrupt lines from the TWL SIH (secondary >>>> + interrupt handler) - interrupts 9 and 2. >>>> + >>>> +Optional properties: >>>> +- bb-uvolt: microvolts for charging the backup battery. >>>> +- bb-uamp: microamps for charging the backup battery. >>> >>> prop should have vendor prefix. >>> >>> ti,bb-uvolt, ti,bb-uamp >> >> Agreed. Otherwise: > > OK, I'll do that - thanks. > > NeilBrown Ditto on the Ack once these changes are made: Acked-by: Kumar Gala - k > >> >> Acked-by: Grant Likely >> >>> >>> - k >>> >>>> + >>>> +Examples: >>>> + >>>> +bci { >>>> + compatible = "ti,twl4030-bci"; >>>> + interrupts = <9>, <2>; >>>> + bb-uvolt = <3200000>; >>>> + bb-uamp = <150>; >>>> +}; >>> >>> -- >>> Employee of Qualcomm Innovation Center, Inc. >>> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation >>> > -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation