xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/leds-rgb13h.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThe device is controlled through enable gpio pin.
2*4882a593Smuzhiyungpio asserted high, enable flash strobe.
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunRequired properties:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun- compatible : Must be "led,rgb13h".
7*4882a593Smuzhiyun- enable-gpios : Must be device tree identifier of the flash device enable pin.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunA discrete LED element connected to the device must be represented by a child
10*4882a593Smuzhiyunnode - see Documentation/devicetree/bindings/leds/common.txt.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunRequired properties of the LED child node:
13*4882a593Smuzhiyun- led-max-microamp : see Documentation/devicetree/bindings/leds/common.txt
14*4882a593Smuzhiyun- flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt
15*4882a593Smuzhiyun- flash-max-timeout-us : see Documentation/devicetree/bindings/leds/common.txt
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunOptional properties of the LED child node:
18*4882a593Smuzhiyun- label : 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*4882a593Smuzhiyunflash_rgb13h: flash-rgb13h {
25*4882a593Smuzhiyun	compatible = "led,rgb13h";
26*4882a593Smuzhiyun	label = "gpio-flash";
27*4882a593Smuzhiyun	led-max-microamp = <20000>;
28*4882a593Smuzhiyun	flash-max-microamp = <20000>;
29*4882a593Smuzhiyun	flash-max-timeout-us = <1000000>;
30*4882a593Smuzhiyun	enable-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
31*4882a593Smuzhiyun	rockchip,camera-module-index = <1>;
32*4882a593Smuzhiyun	rockchip,camera-module-facing = "back";
33*4882a593Smuzhiyun};
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun&i2c2 {
36*4882a593Smuzhiyun	...
37*4882a593Smuzhiyun	ov2680@10 {
38*4882a593Smuzhiyun		...
39*4882a593Smuzhiyun		flash-leds = <&flash_rgb13h>;
40*4882a593Smuzhiyun		...
41*4882a593Smuzhiyun	};
42*4882a593Smuzhiyun};
43