1The device is controlled through enable gpio pin. 2gpio asserted high, enable flash strobe. 3 4Required properties: 5 6- compatible : Must be "led,rgb13h". 7- enable-gpios : Must be device tree identifier of the flash device enable pin. 8 9A discrete LED element connected to the device must be represented by a child 10node - see Documentation/devicetree/bindings/leds/common.txt. 11 12Required properties of the LED child node: 13- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 14- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 15- flash-max-timeout-us : see Documentation/devicetree/bindings/leds/common.txt 16 17Optional properties of the LED child node: 18- label : see Documentation/devicetree/bindings/leds/common.txt 19 20Special properties: 21- rockchip,camera-module-index : indicate which camera the flash belongs to. 22- rockchip,camera-module-facing : indicate the camera facing. 23 24flash_rgb13h: flash-rgb13h { 25 compatible = "led,rgb13h"; 26 label = "gpio-flash"; 27 led-max-microamp = <20000>; 28 flash-max-microamp = <20000>; 29 flash-max-timeout-us = <1000000>; 30 enable-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>; 31 rockchip,camera-module-index = <1>; 32 rockchip,camera-module-facing = "back"; 33}; 34 35&i2c2 { 36 ... 37 ov2680@10 { 38 ... 39 flash-leds = <&flash_rgb13h>; 40 ... 41 }; 42}; 43