Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752417AbbEHDEE (ORCPT ); Thu, 7 May 2015 23:04:04 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:65033 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578AbbEHDDu (ORCPT ); Thu, 7 May 2015 23:03:50 -0400 X-AuditID: cbfee68e-f79c56d000006efb-fb-554c2794cfaf 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 v8 2/3] leds: ktd2692: add device tree bindings for ktd2692 Date: Fri, 08 May 2015 12:03:44 +0900 Message-id: <1431054225-16635-3-git-send-email-ingi2.kim@samsung.com> X-Mailer: git-send-email 2.0.5 In-reply-to: <1431054225-16635-1-git-send-email-ingi2.kim@samsung.com> References: <1431054225-16635-1-git-send-email-ingi2.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsWyRsSkWHeKuk+owf0GXoujOycyWVz/8pzV Yv6Rc6wW/W8Wslrs+nuf0eLcq5WMFjtufmGz6L36nNHixq82VovZ9x+zWFzeNYfNYuubdYwW S69fZLKYMH0ti0Xr3iPsFrt3PWW1OLN/JZvFjMkv2SxOdsxhdBD2WDNvDaPH5b5eJo+ds+6y e6xc/oXN4/DXhSwem1Z1snl8WXWN2WPP/B+sHn1bVjF6fN4kF8AVxWWTkpqTWZZapG+XwJXx r/kUe8EZ4YqGD1uZGhi3C3QxcnBICJhIHD5X2MXICWSKSVy4t54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4QzlUni8LyrrCBVbAJqEjdWLGQCSYgILGCUuHz+JlgLs8BO JonmyYvYQKqEBbwlLs/6CmRzcLAIqEo0nrQFCfMKuEq0r50NtU5OYs2rFSwgNqeAm8T9XZvA WoWAaq6fPcA8gZF3ASPDKkbR1ILkguKk9FxDveLE3OLSvHS95PzcTYzgmH8mtYNxZYPFIUYB DkYlHt4HrD6hQqyJZcWVuYcYJTiYlUR4zdWAQrwpiZVVqUX58UWlOanFhxhNgY6ayCwlmpwP TEd5JfGGxiZmRpZG5oYWRsbmSuK8c3TlQoUE0hNLUrNTUwtSi2D6mDg4pRoY991RO8Djcmen 8vYVs1xEV/soMPas93ihsVnVW5X/la/HzjKrG467eb8wTDV5uYJFT3TvdNn4eY1WjG9NZlsZ bl4s0LXp1de91++qLys7nz1xbVr9NdkTH1hSY1/erXd/fOvj4dW3+IwTWZUORV27PavinI7w 5229m5ZM/10lMl9UOdYvsLGoV4mlOCPRUIu5qDgRAPcFfOkPAwAA 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: 2683 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..cf45492 --- /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: "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 +- 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-gpio = <&gpc0 1 0>; + aux-gpio = <&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/