1*4882a593Smuzhiyun* AW36518 flash driver support 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired Properties: 4*4882a593Smuzhiyun- compatible: Must contain "awinic,aw36518" 5*4882a593Smuzhiyun- reg: I2C slave address 6*4882a593Smuzhiyun- enable-gpios: Specifier of the GPIO connected to strobe/torch EN pin 7*4882a593Smuzhiyunthis pin is for hardware flash/torch mode, if not, will using i2c control. 8*4882a593Smuzhiyun- tx-gpio: Specifier of the GPIO connected to TX pin 9*4882a593Smuzhiyunthis pin is synchronization input for RF power Amplifier Pulse Eventr; 10*4882a593Smuzhiyunif not, will using assist mode. 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunA discrete LED element connected to the device must be represented by a child 13*4882a593Smuzhiyunnode - see Documentation/devicetree/bindings/leds/common.txt. 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunRequired properties of the LED child node: 16*4882a593Smuzhiyun- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 17*4882a593Smuzhiyun- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 18*4882a593Smuzhiyun- flash-max-timeout-us : see Documentation/devicetree/bindings/leds/common.txt 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunSpecial properties: 21*4882a593Smuzhiyun- rockchip,camera-module-index : indicate which camera the flash belongs to. 22*4882a593Smuzhiyun- rockchip,camera-module-facing : indicate the camera facing. 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunExample: 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun&i2c1 { 27*4882a593Smuzhiyun ... 28*4882a593Smuzhiyun aw36518: aw36518@63 { 29*4882a593Smuzhiyun #address-cells = <1>; 30*4882a593Smuzhiyun #size-cells = <0>; 31*4882a593Smuzhiyun compatible = "awinic,aw36518"; 32*4882a593Smuzhiyun status = "okay"; 33*4882a593Smuzhiyun reg = <0x63>; 34*4882a593Smuzhiyun rockchip,camera-module-index = <0>; 35*4882a593Smuzhiyun rockchip,camera-module-facing = "back"; 36*4882a593Smuzhiyun enable-gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; 37*4882a593Smuzhiyun tx-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>; 38*4882a593Smuzhiyun aw36518_led0: led@0 { 39*4882a593Smuzhiyun reg = <0x0>; 40*4882a593Smuzhiyun led-max-microamp = <386000>; 41*4882a593Smuzhiyun flash-max-microamp = <1500000>; 42*4882a593Smuzhiyun flash-max-timeout-us = <1600000>; 43*4882a593Smuzhiyun }; 44*4882a593Smuzhiyun }; 45*4882a593Smuzhiyun ... 46*4882a593Smuzhiyun ov13850: ov13850@10 { 47*4882a593Smuzhiyun ... 48*4882a593Smuzhiyun flash-leds = <&aw36518_led0>; 49*4882a593Smuzhiyun ... 50*4882a593Smuzhiyun }; 51*4882a593Smuzhiyun ... 52*4882a593Smuzhiyun} 53