Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932145AbbD0GdG (ORCPT ); Mon, 27 Apr 2015 02:33:06 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:45117 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752397AbbD0GdA convert rfc822-to-8bit (ORCPT ); Mon, 27 Apr 2015 02:33:00 -0400 X-AuditID: cbfee68f-f793b6d000005f66-d9-553dd81a5261 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT Message-id: <553DD81A.1030504@samsung.com> Date: Mon, 27 Apr 2015 15:32:58 +0900 From: Ingi Kim User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Jacek Anaszewski Cc: sakari.ailus@iki.fi, j.anaszewski@samsung.com, varkabhadram@gmail.com, joe@perches.com, sw0312.kim@samsung.com, cw00.choi@samsung.com, jh80.chung@samsung.com, ideal.song@samsung.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v7 2/3] leds: ktd2692: add device tree bindings for ktd2692 References: <1429795085-22171-1-git-send-email-ingi2.kim@samsung.com> <1429795085-22171-3-git-send-email-ingi2.kim@samsung.com> <20150424152936.7e0b101a@ja.home> In-reply-to: <20150424152936.7e0b101a@ja.home> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEIsWRmVeSWpSXmKPExsWyRsSkUFfqhm2owbfXnBbXvzxntZh/5Byr xa6/9xktvt36xGTRe/U5o8WNX22sFrPvP2axuLxrDpvF1jfrGC3O7F/JZjFj8ks2i5Mdcxgd eDx2zrrL7nH460IWjy+rrjF79G1ZxejxeZNcAGsUl01Kak5mWWqRvl0CV8aVe5+YCr5JVKzq PsPSwLhapIuRk0NCwETi2bY2RghbTOLCvfVsXYxcHEICSxklTjVsY4Upmt40jR0iMZ1R4tu7 A2AdvAKCEj8m32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gJrEjRULmUDCogIREt0nKkHCIgL6Eh8fLmIEGcMsMJVJYkNHIwtIQljA X2LJpTtMEPOXMkrcvrKZFaSZU0BPYtONuAmMArOQHDcL4bhZCMctYGRexSiaWpBcUJyUnmuo V5yYW1yal66XnJ+7iREc/8+kdjCubLA4xCjAwajEwysx0TZUiDWxrLgy9xCjBAezkghv3nWg EG9KYmVValF+fFFpTmrxIUZToNcmMkuJJucDU1NeSbyhsYmZkaWRuaGFkbG5kjjvHF25UCGB 9MSS1OzU1ILUIpg+Jg5OqQbG8xcOH5XKS2/VSltyIltev/zJ52W8jikaFtuvKvy6fV7H2r3m eTzzQiu1h4vPLL9y4Hrtgk1MUh6lrDJ98hfOCpo8yFO46nm87kvwkp3PlCctTelWcFe5vnIG u4D1902fTnxjsOt99G9bgr/P50+T03X3Woi9nhpv1vE5QvdFetiCeVvjc6QilViKMxINtZiL ihMBjmi6uxUDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3309 Lines: 97 Hi Jacek, Thanks for the review. On 2015년 04월 24일 22:29, Jacek Anaszewski wrote: > On Thu, 23 Apr 2015 22:18:04 +0900 > Hi Ingi, > > Ingi Kim wrote: > >> This patch adds the device tree bindings for ktd2692 flash LEDs. >> Add Optional properties of child node for Flash LED >> >> Signed-off-by: Ingi Kim >> Acked-by: Seung-Woo Kim >> --- >> .../devicetree/bindings/leds/leds-ktd2692.txt | 47 >> ++++++++++++++++++++++ 1 file changed, 47 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/leds/leds-ktd2692.txt >> >> diff --git a/Documentation/devicetree/bindings/leds/leds-ktd2692.txt >> b/Documentation/devicetree/bindings/leds/leds-ktd2692.txt new file >> mode 100644 index 0000000..708f2d4 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/leds/leds-ktd2692.txt >> @@ -0,0 +1,47 @@ >> +* Kinetic Technologies - KTD2692 Flash LED Driver >> + >> +KTD2692 is the ideal power solution for high-power flash LEDs. >> +It uses ExpressWire single-wire programming for maximum flexibility. >> + >> +The ExpressWire interface through CTRL pin can control LED on/off and >> +enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode >> current, +Flash timeout, LVP(low voltage protection). >> + >> +Also, When the AUX pin is pulled high while CTRL pin is high, >> +LED current will be ramped up to the flash-mode current level. >> + >> +Required properties: >> +- compatible: "kinetic,ktd2692" >> +- ctrl-gpio : gpio pin in order control CTRL pin >> +- aux-gpio : gpio pin in order control AUX pin >> + >> +Optional properties: >> +- vin-supply : "vin" LED supply (2.7V to 5.5V) >> + See Documentation/devicetree/bindings/regulator/regulator.txt >> + >> +A discrete LED element connected to the device must be represented >> by a child +node - see >> Documentation/devicetree/bindings/leds/common.txt. + >> +Required properties for flash LED child nodes: >> + See Documentation/devicetree/bindings/leds/common.txt >> +- flash-max-microamp : Flash LED maximum current >> + Formula : I(mA) = 15000 / Rset >> +- flash-max-timeout-us : Flash LED maximum timeout > > Patch [1] makes the led-max-microamp property mandatory for > the LEDs with configurable current for non-flash modes. > > It hasn't been merged yet as we are waiting for ack from DT maintainer. > > Ok, I'll add it. I saw discussion about introduction of new properties for Flash LED, I also hope that patch[1] would be merged as soon as possible :) >> + >> +Optional properties for flash LED child nodes: >> +- label : see Documentation/devicetree/bindings/leds/common.txt >> + >> +Example: >> + >> +ktd2692 { >> + compatible = "kinetic,ktd2692"; >> + ctrl-gpio = <&gpc0 1 0>; >> + aux-gpio = <&gpc0 2 0>; >> + vin-supply = <&vbat>; >> + >> + flash-led { >> + label = "ktd2692-flash"; >> + flash-max-microamp = <1500000>; >> + flash-max-timeout-us = <1835000>; >> + }; >> +}; > > [1] [PATCH v6] DT: leds: Improve description of flash LEDs related > properties > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/