1* SGM3784 dual flash driver support 2 3Required Properties: 4- compatible: Must contain "sgmicro,gsm3784" 5- reg: I2C slave address 6- enable-gpios: Specifier of the GPIO connected to EN pin 7- strobe-gpio: Specifier of the GPIO connected to STROBE pin 8- torch-gpio: Specifier of the GPIO connected to GPIO pin, 9this pin is for torch mode, if not, will using assist mode. 10 11 12A discrete LED element connected to the device must be represented by a child 13node - see Documentation/devicetree/bindings/leds/common.txt. 14 15Required properties of the LED child node: 16- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 17- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 18- flash-max-timeout-us : 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 24Example: 25 26&i2c1 { 27 ... 28 sgm3784: sgm3784@30 { 29 #address-cells = <1>; 30 #size-cells = <0>; 31 compatible = "sgmicro,gsm3784"; 32 reg = <0x30>; 33 rockchip,camera-module-index = <0>; 34 rockchip,camera-module-facing = "back"; 35 enable-gpio = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>; 36 strobe-gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; 37 status = "okay"; 38 sgm3784_led0: led@0 { 39 reg = <0x0>; 40 led-max-microamp = <299200>; 41 flash-max-microamp = <1122000>; 42 flash-max-timeout-us = <1600000>; 43 }; 44 45 sgm3784_led1: led@1 { 46 reg = <0x1>; 47 led-max-microamp = <299200>; 48 flash-max-microamp = <1122000>; 49 flash-max-timeout-us = <1600000>; 50 }; 51 }; 52 ... 53 ov13850: ov13850@10 { 54 ... 55 flash-leds = <&sgm3784_led0 &sgm3784_led1>; 56 ... 57 }; 58 ... 59} 60