Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932259AbbDJGqP (ORCPT ); Fri, 10 Apr 2015 02:46:15 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:42015 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754416AbbDJGqI (ORCPT ); Fri, 10 Apr 2015 02:46:08 -0400 X-AuditID: cbfee690-f796f6d000005054-a8-552771aaa612 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 v6 2/3] leds: ktd2692: add device tree bindings for ktd2692 Date: Fri, 10 Apr 2015 15:45:58 +0900 Message-id: <1428648359-23289-3-git-send-email-ingi2.kim@samsung.com> X-Mailer: git-send-email 2.0.5 In-reply-to: <1428648359-23289-1-git-send-email-ingi2.kim@samsung.com> References: <1428648359-23289-1-git-send-email-ingi2.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsWyRsSkRHdVoXqowc1Z5hZHd05ksrj+5Tmr xfwj51gt+t8sZLXY9fc+o8W5VysZLXbc/MJm0Xv1OaPFjV9trBaz7z9msbi8aw6bxdY36xgt ll6/yGQxYfpaFovWvUfYLXbvespqcWb/SjaLGZNfslmc7JjD6CDssWbeGkaPy329TB47Z91l 91i5/Aubx+GvC1k8Nq3qZPP4suoas8ee+T9YPfq2rGL0+LxJLoArissmJTUnsyy1SN8ugStj 5cMtTAVLBCqu9N1gbGA8y9vFyMEhIWAica5fvIuRE8gUk7hwbz1bFyMXh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IhGBBYwSl8/fBOtgFtjJ JNE8eRGQw8EhLOAt0biVB6SBRUBVYtGBt+wgNq+Aq8SNex8ZIbbJSax5tYIFxOYUcJNoXrCF GWKZq8Sl1+tZJzDyLmBkWMUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kRHPHPpHcwrmqwOMQo wMGoxMPbEKseKsSaWFZcmXuIUYKDWUmEtxIkxJuSWFmVWpQfX1Sak1p8iNEU6KqJzFKiyfnA ZJRXEm9obGJmZGlkbmhhZGyuJM47R1cuVEggPbEkNTs1tSC1CKaPiYNTqoExfeqj2kMhcosv FnKV/k0T+c/gOfeVUXC4puvT8DSLQ/vavnX+Onxh3uu5n3d/qLhl1vciPKg+9crRRbtfRJu3 cT+Ycm6boh3XYubFJVMV/4d9OW0mcyhYJcx2O2uLnchX0ctWPy5dzzx4uaX2zOsg/aVyT8Iv fZrjuvLpji0WMwubu9Jv9ayUU2Ipzkg01GIuKk4EAIa5QGUOAwAA 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: 2271 Lines: 63 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 --- .../devicetree/bindings/leds/leds-ktd2692.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 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..68bb59e --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-ktd2692.txt @@ -0,0 +1,40 @@ +* 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 +- 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. + +Optional properties of flash LED child node: +- label : see Documentation/devicetree/bindings/leds/common.txt +- flash-timeout-us : Maximum flash timeout in microseconds. + flash timeout ranges from 0 to 1835000us and default is 1049000us. + +Example: + +ktd2692 { + compatible = "kinetic,ktd2692"; + ctrl-gpio = <&gpc0 1 0>; + aux-gpio = <&gpc0 2 0>; + vin-supply = <&vbat>; + + flash-led { + label = "ktd2692-flash"; + flash-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/