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