18c2ecf20Sopenharmony_ciLEDs connected to is31fl319x LED controller chip 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible : Should be any of 58c2ecf20Sopenharmony_ci "issi,is31fl3190" 68c2ecf20Sopenharmony_ci "issi,is31fl3191" 78c2ecf20Sopenharmony_ci "issi,is31fl3193" 88c2ecf20Sopenharmony_ci "issi,is31fl3196" 98c2ecf20Sopenharmony_ci "issi,is31fl3199" 108c2ecf20Sopenharmony_ci "si-en,sn3199". 118c2ecf20Sopenharmony_ci- #address-cells: Must be 1. 128c2ecf20Sopenharmony_ci- #size-cells: Must be 0. 138c2ecf20Sopenharmony_ci- reg: 0x64, 0x65, 0x66, or 0x67. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciOptional properties: 168c2ecf20Sopenharmony_ci- audio-gain-db : audio gain selection for external analog modulation input. 178c2ecf20Sopenharmony_ci Valid values: 0 - 21, step by 3 (rounded down) 188c2ecf20Sopenharmony_ci Default: 0 198c2ecf20Sopenharmony_ci- shutdown-gpios : Specifier of the GPIO connected to SDB pin of the chip. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciEach led is represented as a sub-node of the issi,is31fl319x device. 228c2ecf20Sopenharmony_ciThere can be less leds subnodes than the chip can support but not more. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciRequired led sub-node properties: 258c2ecf20Sopenharmony_ci- reg : number of LED line 268c2ecf20Sopenharmony_ci Valid values: 1 - number of leds supported by the chip variant. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ciOptional led sub-node properties: 298c2ecf20Sopenharmony_ci- label : see Documentation/devicetree/bindings/leds/common.txt. 308c2ecf20Sopenharmony_ci- linux,default-trigger : 318c2ecf20Sopenharmony_ci see Documentation/devicetree/bindings/leds/common.txt. 328c2ecf20Sopenharmony_ci- led-max-microamp : (optional) 338c2ecf20Sopenharmony_ci Valid values: 5000 - 40000, step by 5000 (rounded down) 348c2ecf20Sopenharmony_ci Default: 20000 (20 mA) 358c2ecf20Sopenharmony_ci Note: a driver will take the lowest of all led limits since the 368c2ecf20Sopenharmony_ci chip has a single global setting. The lowest value will be chosen 378c2ecf20Sopenharmony_ci due to the PWM specificity, where lower brightness is achieved 388c2ecf20Sopenharmony_ci by reducing the dury-cycle of pulses and not the current, which 398c2ecf20Sopenharmony_ci will always have its peak value equal to led-max-microamp. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciExamples: 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_cifancy_leds: leds@65 { 448c2ecf20Sopenharmony_ci compatible = "issi,is31fl3196"; 458c2ecf20Sopenharmony_ci #address-cells = <1>; 468c2ecf20Sopenharmony_ci #size-cells = <0>; 478c2ecf20Sopenharmony_ci reg = <0x65>; 488c2ecf20Sopenharmony_ci shutdown-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci red_aux: led@1 { 518c2ecf20Sopenharmony_ci label = "red:aux"; 528c2ecf20Sopenharmony_ci reg = <1>; 538c2ecf20Sopenharmony_ci led-max-microamp = <10000>; 548c2ecf20Sopenharmony_ci }; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci green_power: led@5 { 578c2ecf20Sopenharmony_ci label = "green:power"; 588c2ecf20Sopenharmony_ci reg = <5>; 598c2ecf20Sopenharmony_ci linux,default-trigger = "default-on"; 608c2ecf20Sopenharmony_ci }; 618c2ecf20Sopenharmony_ci}; 62