xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/leds-lt3593.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBindings for Linear Technologies LT3593 LED controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible:		Should be "lltc,lt3593".
5*4882a593Smuzhiyun- lltc,ctrl-gpios:	A handle to the GPIO that is connected to the 'CTRL'
6*4882a593Smuzhiyun			pin of the chip.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunThe hardware supports only one LED. The properties of this LED are
9*4882a593Smuzhiyunconfigured in a sub-node in the device node.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunOptional sub-node properties:
12*4882a593Smuzhiyun- function:		See Documentation/devicetree/bindings/leds/common.txt
13*4882a593Smuzhiyun- color:		See Documentation/devicetree/bindings/leds/common.txt
14*4882a593Smuzhiyun- label:		A label for the LED. If none is given, the LED will be
15*4882a593Smuzhiyun			named "lt3595::" (deprecated)
16*4882a593Smuzhiyun- linux,default-trigger: The default trigger for the LED.
17*4882a593Smuzhiyun			See Documentation/devicetree/bindings/leds/common.txt
18*4882a593Smuzhiyun- default-state:	The initial state of the LED.
19*4882a593Smuzhiyun			See Documentation/devicetree/bindings/leds/common.txt
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunIf multiple chips of this type are found in a design, each one needs to
22*4882a593Smuzhiyunbe handled by its own device node.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunExample:
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun#include <dt-bindings/leds/common.h>
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunled-controller {
29*4882a593Smuzhiyun	compatible = "lltc,lt3593";
30*4882a593Smuzhiyun	lltc,ctrl-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun	led {
33*4882a593Smuzhiyun		function = LED_FUNCTION_BACKLIGHT;
34*4882a593Smuzhiyun		color = <LED_COLOR_ID_WHITE>;
35*4882a593Smuzhiyun		default-state = "on";
36*4882a593Smuzhiyun	};
37*4882a593Smuzhiyun};
38