18c2ecf20Sopenharmony_ci* Panasonic AN30259A 3-channel LED driver 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe AN30259A is a LED controller capable of driving three LEDs independently. It supports 48c2ecf20Sopenharmony_ciconstant current output and sloping current output modes. The chip is connected over I2C. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciRequired properties: 78c2ecf20Sopenharmony_ci - compatible: Must be "panasonic,an30259a". 88c2ecf20Sopenharmony_ci - reg: I2C slave address. 98c2ecf20Sopenharmony_ci - #address-cells: Must be 1. 108c2ecf20Sopenharmony_ci - #size-cells: Must be 0. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciEach LED is represented as a sub-node of the panasonic,an30259a node. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciRequired sub-node properties: 158c2ecf20Sopenharmony_ci - reg: Pin that the LED is connected to. Must be 1, 2, or 3. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciOptional sub-node properties: 188c2ecf20Sopenharmony_ci - function : 198c2ecf20Sopenharmony_ci see Documentation/devicetree/bindings/leds/common.txt 208c2ecf20Sopenharmony_ci - color : 218c2ecf20Sopenharmony_ci see Documentation/devicetree/bindings/leds/common.txt 228c2ecf20Sopenharmony_ci - label : 238c2ecf20Sopenharmony_ci see Documentation/devicetree/bindings/leds/common.txt (deprecated) 248c2ecf20Sopenharmony_ci - linux,default-trigger : 258c2ecf20Sopenharmony_ci see Documentation/devicetree/bindings/leds/common.txt 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciExample: 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#include <dt-bindings/leds/common.h> 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciled-controller@30 { 328c2ecf20Sopenharmony_ci compatible = "panasonic,an30259a"; 338c2ecf20Sopenharmony_ci reg = <0x30>; 348c2ecf20Sopenharmony_ci #address-cells = <1>; 358c2ecf20Sopenharmony_ci #size-cells = <0>; 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci led@1 { 388c2ecf20Sopenharmony_ci reg = <1>; 398c2ecf20Sopenharmony_ci linux,default-trigger = "heartbeat"; 408c2ecf20Sopenharmony_ci function = LED_FUNCTION_INDICATOR; 418c2ecf20Sopenharmony_ci color = <LED_COLOR_ID_RED>; 428c2ecf20Sopenharmony_ci }; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci led@2 { 458c2ecf20Sopenharmony_ci reg = <2>; 468c2ecf20Sopenharmony_ci function = LED_FUNCTION_INDICATOR; 478c2ecf20Sopenharmony_ci color = <LED_COLOR_ID_GREEN>; 488c2ecf20Sopenharmony_ci }; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci led@3 { 518c2ecf20Sopenharmony_ci reg = <3>; 528c2ecf20Sopenharmony_ci function = LED_FUNCTION_INDICATOR; 538c2ecf20Sopenharmony_ci color = <LED_COLOR_ID_BLUE>; 548c2ecf20Sopenharmony_ci }; 558c2ecf20Sopenharmony_ci}; 56