From b88174b49afed89e66d20d059e583f12a0e4a8c2 Mon Sep 17 00:00:00 2001 From: Cai YiWei Date: Wed, 8 May 2019 08:51:16 +0800 Subject: [PATCH] dt-bindings: leds: add leds-rgb13h Change-Id: I0a32ba516ad8dab6fa6e72a81b6328c31ef61d0b Signed-off-by: Cai YiWei --- .../devicetree/bindings/leds/leds-rgb13h.txt | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-rgb13h.txt 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>; + ... + }; +};