1* Panasonic AN30259A 3-channel LED driver
2
3The AN30259A is a LED controller capable of driving three LEDs independently. It supports
4constant current output and sloping current output modes. The chip is connected over I2C.
5
6Required properties:
7	- compatible: Must be "panasonic,an30259a".
8	- reg: I2C slave address.
9	- #address-cells: Must be 1.
10	- #size-cells: Must be 0.
11
12Each LED is represented as a sub-node of the panasonic,an30259a node.
13
14Required sub-node properties:
15	- reg: Pin that the LED is connected to. Must be 1, 2, or 3.
16
17Optional sub-node properties:
18	- function :
19		see Documentation/devicetree/bindings/leds/common.txt
20	- color :
21		see Documentation/devicetree/bindings/leds/common.txt
22	- label :
23		see Documentation/devicetree/bindings/leds/common.txt (deprecated)
24	- linux,default-trigger :
25		see Documentation/devicetree/bindings/leds/common.txt
26
27Example:
28
29#include <dt-bindings/leds/common.h>
30
31led-controller@30 {
32	compatible = "panasonic,an30259a";
33	reg = <0x30>;
34	#address-cells = <1>;
35	#size-cells = <0>;
36
37	led@1 {
38		reg = <1>;
39		linux,default-trigger = "heartbeat";
40		function = LED_FUNCTION_INDICATOR;
41		color = <LED_COLOR_ID_RED>;
42	};
43
44	led@2 {
45		reg = <2>;
46		function = LED_FUNCTION_INDICATOR;
47		color = <LED_COLOR_ID_GREEN>;
48	};
49
50	led@3 {
51		reg = <3>;
52		function = LED_FUNCTION_INDICATOR;
53		color = <LED_COLOR_ID_BLUE>;
54	};
55};
56