Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932667AbbELIlc (ORCPT ); Tue, 12 May 2015 04:41:32 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:27093 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932446AbbELIiY (ORCPT ); Tue, 12 May 2015 04:38:24 -0400 X-AuditID: cbfee690-f796f6d000005054-c6-5551bbfc3f7b From: Ingi Kim To: cooloney@gmail.com, rpurdie@rpsys.net, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org 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, Ingi Kim Subject: [PATCH v9 2/3] leds: ktd2692: add device tree bindings for ktd2692 Date: Tue, 12 May 2015 17:37:56 +0900 Message-id: <1431419877-28339-3-git-send-email-ingi2.kim@samsung.com> X-Mailer: git-send-email 2.0.5 In-reply-to: <1431419877-28339-1-git-send-email-ingi2.kim@samsung.com> References: <1431419877-28339-1-git-send-email-ingi2.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsWyRsSkWPfP7sBQgx2XVSyO7pzIZHH9y3NW i/lHzrFa9L9ZyGqx6+99Rotzr1YyWuy4+YXNovfqc0aLG7/aWC1m33/MYnF51xw2i61v1jFa LL1+kcliwvS1LBate4+wW+ze9ZTV4sz+lWwWMya/ZLM42TGH0UHYY828NYwel/t6mTx2zrrL 7rFy+Rc2j8NfF7J4bFrVyebxZdU1Zo8983+wevRtWcXo8XmTXABXFJdNSmpOZllqkb5dAlfG 6d/7WAo+C1c83/iSqYHxpkAXIyeHhICJxKsVN9kgbDGJC/fWA9lcHEICSxklj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isIBR4vL5m2AtzAI7 mSSaJy8CqxIW8JZo29bMDGKzCKhKPOxoZQexeQVcJR5d3soCsU9OYs2rFWA2p4CbxLqfd8Du EAKqmfN/DcsERt4FjAyrGEVTC5ILipPSc430ihNzi0vz0vWS83M3MYKj/pn0DsZVDRaHGAU4 GJV4eA0u+IcKsSaWFVfmHmKU4GBWEuGtLQ0MFeJNSaysSi3Kjy8qzUktPsRoCnTVRGYp0eR8 YELKK4k3NDYxM7I0Mje0MDI2VxLnPZnvEyokkJ5YkpqdmlqQWgTTx8TBKdXA2Nxgr9/w54S5 9vnQ/nn/twhsLdB7eceHz0h+YrH9wzXbz23LUM2InPk7bn2Djs3q05NU6474sevfFZjB/Sjy +i03HrEnKQcuM1rMlO/epat7Vzi52DCp80ah3YY7i3ftelLrUPHvzUbX+L0T3PdHu1/6JKfz /OwtR9eIaRuZePM3WjYu2vX4shJLcUaioRZzUXEiAHGWW2wQAwAA 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: 2722 Lines: 75 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 Reviewed-by: Varka Bhadram --- .../devicetree/bindings/leds/leds-ktd2692.txt | 50 ++++++++++++++++++++++ 1 file changed, 50 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..8537374 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-ktd2692.txt @@ -0,0 +1,50 @@ +* 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 : Should be "kinetic,ktd2692". +- ctrl-gpios : Specifier of the GPIO connected to CTRL pin. +- aux-gpios : Specifier of the GPIO connected to 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 +- led-max-microamp : Minimum Threshold for Timer protection + is defined internally (Maximum 300mA). +- flash-max-microamp : Flash LED maximum current + Formula : I(mA) = 15000 / Rset. +- flash-max-timeout-us : Flash LED maximum timeout. + +Optional properties for flash LED child nodes: +- label : See Documentation/devicetree/bindings/leds/common.txt + +Example: + +ktd2692 { + compatible = "kinetic,ktd2692"; + ctrl-gpios = <&gpc0 1 0>; + aux-gpios = <&gpc0 2 0>; + vin-supply = <&vbat>; + + flash-led { + label = "ktd2692-flash"; + led-max-microamp = <300000>; + flash-max-microamp = <1500000>; + flash-max-timeout-us = <1835000>; + }; +}; -- 2.0.5 -- 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/