Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966030AbbDWNSn (ORCPT ); Thu, 23 Apr 2015 09:18:43 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:16433 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755555AbbDWNSM (ORCPT ); Thu, 23 Apr 2015 09:18:12 -0400 X-AuditID: cbfee68d-f79266d0000049c9-33-5538f10f62ed 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 v7 2/3] leds: ktd2692: add device tree bindings for ktd2692 Date: Thu, 23 Apr 2015 22:18:04 +0900 Message-id: <1429795085-22171-3-git-send-email-ingi2.kim@samsung.com> X-Mailer: git-send-email 2.0.5 In-reply-to: <1429795085-22171-1-git-send-email-ingi2.kim@samsung.com> References: <1429795085-22171-1-git-send-email-ingi2.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsWyRsSkUJf/o0WowbxnkhZHd05ksrj+5Tmr xfwj51gt+t8sZLXY9fc+o8W5VysZLXbc/MJm0Xv1OaPFjV9trBaz7z9msbi8aw6bxdY36xgt ll6/yGQxYfpaFovWvUfYLXbvespqcWb/SjaLGZNfslmc7JjD6CDssWbeGkaPy329TB47Z91l 91i5/Aubx+GvC1k8Nq3qZPP4suoas8ee+T9YPfq2rGL0+LxJLoArissmJTUnsyy1SN8ugStj 76YZrAV9QhXbL79laWCcyt/FyMkhIWAice3oWXYIW0ziwr31bF2MXBxCAksZJ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RsrFjKBJEQEFjBKXD5/E6yFWWAn k0Tz5EVsIFXCAt4Slzo+M4HYLAKqEpe+HgHq5uDgFXCVmHydDWKdnMSaVytYQGxOATeJZ48n gJULAZV0XprKNIGRdwEjwypG0dSC5ILipPRcI73ixNzi0rx0veT83E2M4Jh/Jr2DcVWDxSFG AQ5GJR7eD0UWoUKsiWXFlbmHGCU4mJVEePfcBgrxpiRWVqUW5ccXleakFh9iNAU6aiKzlGhy PjAd5ZXEGxqbmBlZGpkbWhgZmyuJ887RlQsVEkhPLEnNTk0tSC2C6WPi4JRqYEx7ns187sdP 4ZmvKmLLxd7ZPPLlyFr9TCvvcbx/wvndXTKXzRT35zHOmnL8xwbT/xrfOlRFGFrXh/pOO1Fx UCA25ge334rftYvnuxocVmp9uGvtVpdbJo5xfrMW2Hk12B2OKjGXTV3b7hkeGtDTIMWxzOrT qtD11przX4V66t3Ys+n9pd/6F5RYijMSDbWYi4oTAUmzpWEPAwAA 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: 2497 Lines: 71 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 + +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>; + }; +}; -- 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/