Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753343AbbKQJEp (ORCPT ); Tue, 17 Nov 2015 04:04:45 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:48555 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751832AbbKQJEb (ORCPT ); Tue, 17 Nov 2015 04:04:31 -0500 X-AuditID: cbfee68f-f796f6d0000014a4-61-564aed9824da From: Ingi Kim To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, sameo@linux.intel.com, lee.jones@linaro.org, rpurdie@rpsys.net, j.anaszewski@samsung.com Cc: inki.dae@samsung.com, sw0312.kim@samsung.com, beomho.seo@samsung.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, Ingi Kim Subject: [PATCH v5 1/2] leds: rt5033: Add DT binding for RT5033 Date: Tue, 17 Nov 2015 18:04:19 +0900 Message-id: <1447751060-27856-2-git-send-email-ingi2.kim@samsung.com> X-Mailer: git-send-email 2.0.5 In-reply-to: <1447751060-27856-1-git-send-email-ingi2.kim@samsung.com> References: <1447751060-27856-1-git-send-email-ingi2.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRmVeSWpSXmKPExsWyRsSkUHfmW68wg02bmS1Of9rGbjH/yDlW i/43C1ktzr1ayWix4+YXNotJ9yewWPRefc5ocf/rUUaLy7vmsFlsfbOO0WLp9YtMFhOmr2Wx aN17hN1i966nrBanu1ktZkx+yeYg4LFm3hpGj8t9vUweK5d/YfPYtKqTzePOtT1sHvNOBnrs mf+D1aNvyypGj8+b5AI4o7hsUlJzMstSi/TtErgyFk9bylKwSrBi3dXHzA2My/i6GDk5JARM JHb8OswGYYtJXLi3Hsjm4hASWMEo8X3dYdYuRg6wouu/hCHisxglDjT9YoJwpjJJ9DS9ZQTp ZhNQk7ixYiFYQkTgMqPEpv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KcpIQUM3XOa4TGHkXMDKsYpRILUgu KE5KzzXKSy3XK07MLS7NS9dLzs/dxAiO5WfSOxgP73I/xCjAwajEwytw3CtMiDWxrLgy9xCj BAezkghv8SugEG9KYmVValF+fFFpTmrxIUZToLsmMkuJJucD00xeSbyhsYmZkaWRuaGFkbG5 kjivvqdRmJBAemJJanZqakFqEUwfEwenVAPjtMhD9i4NMScMtJv/Hu1VbFhYKO28csvOA3uT Jdkj1crv7XotGnWm78BSP7HcbUoLrJW0Vm7SuNJ4sppxSk7G5RcBs6ayf+Z79WShWVn3xutJ B/4eSYv4xrSBM35n0XPegoik33IK5QnnsvLfR3x7eTyZea5g4wfHXp2iGLvFHxp2nBGUnRes xFKckWioxVxUnAgA0UkR6fsCAAA= 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: 2399 Lines: 69 This patch adds the device tree bindings for RT5033 flash LEDs. Signed-off-by: Ingi Kim Acked-by: Rob Herring --- .../devicetree/bindings/leds/leds-rt5033.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-rt5033.txt diff --git a/Documentation/devicetree/bindings/leds/leds-rt5033.txt b/Documentation/devicetree/bindings/leds/leds-rt5033.txt new file mode 100644 index 0000000..17159d4 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-rt5033.txt @@ -0,0 +1,46 @@ +* Richtek Technology Corporation - RT5033 Flash LED Driver + +The RT5033 Flash LED Circuit is designed for one or two LEDs driving +for torch and strobe applications, it provides an I2C software command +to trigger the torch and strobe operation. + +There are two LED outputs available - FLED1 and FLED2. Each of them can +control a separate LED or they can be connected together to double +the maximum current for a single connected LED. One LED is represented +by one child node. + +Required properties: +- compatible : Must be "richtek,rt5033-led". + +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 the LED child node: + See Documentation/devicetree/bindings/leds/common.txt +- led-sources : device current output identifiers: 0 - FLED1, 1 - FLED2 +- led-max-microamp : 12.5mA to 200mA, step by 12.5mA. +- flash-max-microamp : + Turn on one LED channel : 50mA to 800mA, step by 25mA. + Turn on two LED channels : 50mA to 600mA, step by 25mA. +- flash-max-timeout-us : 64ms to 1216ms, step by 32ms. + +Optional properties for the LED child node: +- label : see Documentation/devicetree/bindings/leds/common.txt + +Example: + +rt5033 { + compatible = "richtek,rt5033"; + + led { + compatible = "richtek,rt5033-led"; + + flash-led { + label = "rt5033-flash"; + led-sources = <0>, <1>; + led-max-microamp = <200000>; + flash-max-microamp = <800000>; + flash-max-timeout-us = <1216000>; + }; + }; +} -- 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/