summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorCai YiWei <cyw@rock-chips.com>2019-05-08 08:51:16 +0800
committerTao Huang <huangtao@rock-chips.com>2019-05-28 18:08:29 +0800
commitb2573dc68bacd4f8466c516f89d4443e1e1af6bc (patch)
tree446f0001a0b594e47b7705f1cf8a41699aea374e /Documentation
parentb7ba99385e24e457852478d5cc1d4ee8558771da (diff)
dt-bindings: leds: add leds-rgb13h
Change-Id: I0a32ba516ad8dab6fa6e72a81b6328c31ef61d0b Signed-off-by: Cai YiWei <cyw@rock-chips.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/leds/leds-rgb13h.txt42
1 files changed, 42 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-rgb13h.txt b/Documentation/devicetree/bindings/leds/leds-rgb13h.txt
new file mode 100644
index 000000000000..d42fad2b229c
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-rgb13h.txt
@@ -0,0 +1,42 @@
+The device is controlled through enable gpio pin.
+gpio asserted high, enable flash strobe.
+
+Required properties:
+
+- compatible : Must be "led,rgb13h".
+- enable-gpios : Must be device tree identifier of the flash device enable pin.
+
+A discrete LED element connected to the device must be represented by a child
+node - see Documentation/devicetree/bindings/leds/common.txt.
+
+Required properties of the LED child node:
+- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt
+- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt
+- flash-max-timeout-us : see Documentation/devicetree/bindings/leds/common.txt
+
+Optional properties of the LED child node:
+- label : see Documentation/devicetree/bindings/leds/common.txt
+
+Special properties:
+- rockchip,camera-module-index : indicate which camera the flash belongs to.
+- rockchip,camera-module-facing : indicate the camera facing.
+
+flash_rgb13h: flash-rgb13h {
+ compatible = "led,rgb13h";
+ label = "gpio-flash";
+ led-max-microamp = <20000>;
+ flash-max-microamp = <20000>;
+ flash-max-timeout-us = <1000000>;
+ enable-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
+ rockchip,camera-module-index = <1>;
+ rockchip,camera-module-facing = "back";
+};
+
+&i2c2 {
+ ...
+ ov2680@10 {
+ ...
+ flash-leds = <&flash_rgb13h>;
+ ...
+ };
+};