Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1277169
| From | Ingi Kim <ingi2.kim@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v6 1/2] leds: rt5033: Add DT binding for RT5033 |
| Date | 2015-11-25 11:30 +0100 |
| Message-ID | <qyFuP-4Xh-35@gated-at.bofh.it> (permalink) |
| References | <qyFuO-4Xh-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch adds the device tree bindings for RT5033 flash LEDs.
Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
Acked-by: Rob Herring <robh@kernel.org>
---
.../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/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v6 0/2] Add RT5033 Flash LED driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-25 11:30 +0100
[PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-25 11:30 +0100
Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-11-25 16:20 +0100
Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-26 09:10 +0100
Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Lee Jones <lee.jones@linaro.org> - 2015-11-26 10:20 +0100
Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-11-26 10:50 +0100
Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-30 03:40 +0100
Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-11-30 12:00 +0100
Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Lee Jones <lee.jones@linaro.org> - 2015-11-26 10:20 +0100
Re: [PATCH v6 2/2] leds: rt5033: Add RT5033 Flash led device driver Ingi Kim <ingi2.kim@samsung.com> - 2015-11-30 03:40 +0100
[PATCH v6 1/2] leds: rt5033: Add DT binding for RT5033 Ingi Kim <ingi2.kim@samsung.com> - 2015-11-25 11:30 +0100
csiph-web