18c2ecf20Sopenharmony_ci* Texas Instruments - LM3697 Highly Efficient White LED Driver 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe LM3697 11-bit LED driver provides high- 48c2ecf20Sopenharmony_ciperformance backlight dimming for 1, 2, or 3 series 58c2ecf20Sopenharmony_ciLED strings while delivering up to 90% efficiency. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciThis device is suitable for display and keypad lighting 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciRequired properties: 108c2ecf20Sopenharmony_ci - compatible: 118c2ecf20Sopenharmony_ci "ti,lm3697" 128c2ecf20Sopenharmony_ci - reg : I2C slave address 138c2ecf20Sopenharmony_ci - #address-cells : 1 148c2ecf20Sopenharmony_ci - #size-cells : 0 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciOptional properties: 178c2ecf20Sopenharmony_ci - enable-gpios : GPIO pin to enable/disable the device 188c2ecf20Sopenharmony_ci - vled-supply : LED supply 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciRequired child properties: 218c2ecf20Sopenharmony_ci - reg : 0 - LED is Controlled by bank A 228c2ecf20Sopenharmony_ci 1 - LED is Controlled by bank B 238c2ecf20Sopenharmony_ci - led-sources : Indicates which HVLED string is associated to which 248c2ecf20Sopenharmony_ci control bank. This is a zero based property so 258c2ecf20Sopenharmony_ci HVLED1 = 0, HVLED2 = 1, HVLED3 = 2. 268c2ecf20Sopenharmony_ci Additional information is contained 278c2ecf20Sopenharmony_ci in Documentation/devicetree/bindings/leds/common.txt 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciOptional child properties: 308c2ecf20Sopenharmony_ci - ti,brightness-resolution - see Documentation/devicetree/bindings/mfd/ti-lmu.txt 318c2ecf20Sopenharmony_ci - ramp-up-us: see Documentation/devicetree/bindings/mfd/ti-lmu.txt 328c2ecf20Sopenharmony_ci - ramp-down-us: see Documentation/devicetree/bindings/mfd/ti-lmu.txt 338c2ecf20Sopenharmony_ci - label : see Documentation/devicetree/bindings/leds/common.txt 348c2ecf20Sopenharmony_ci - linux,default-trigger : 358c2ecf20Sopenharmony_ci see Documentation/devicetree/bindings/leds/common.txt 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciExample: 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ciHVLED string 1 and 3 are controlled by control bank A and HVLED 2 string is 408c2ecf20Sopenharmony_cicontrolled by control bank B. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciled-controller@36 { 438c2ecf20Sopenharmony_ci compatible = "ti,lm3697"; 448c2ecf20Sopenharmony_ci #address-cells = <1>; 458c2ecf20Sopenharmony_ci #size-cells = <0>; 468c2ecf20Sopenharmony_ci reg = <0x36>; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 498c2ecf20Sopenharmony_ci vled-supply = <&vbatt>; 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci led@0 { 528c2ecf20Sopenharmony_ci reg = <0>; 538c2ecf20Sopenharmony_ci led-sources = <0 2>; 548c2ecf20Sopenharmony_ci ti,brightness-resolution = <2047>; 558c2ecf20Sopenharmony_ci ramp-up-us = <5000>; 568c2ecf20Sopenharmony_ci ramp-down-us = <1000>; 578c2ecf20Sopenharmony_ci label = "white:first_backlight_cluster"; 588c2ecf20Sopenharmony_ci linux,default-trigger = "backlight"; 598c2ecf20Sopenharmony_ci }; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci led@1 { 628c2ecf20Sopenharmony_ci reg = <1>; 638c2ecf20Sopenharmony_ci led-sources = <1>; 648c2ecf20Sopenharmony_ci ti,brightness-resolution = <255>; 658c2ecf20Sopenharmony_ci ramp-up-us = <500>; 668c2ecf20Sopenharmony_ci ramp-down-us = <1000>; 678c2ecf20Sopenharmony_ci label = "white:second_backlight_cluster"; 688c2ecf20Sopenharmony_ci linux,default-trigger = "backlight"; 698c2ecf20Sopenharmony_ci }; 708c2ecf20Sopenharmony_ci} 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ciFor more product information please see the link below: 738c2ecf20Sopenharmony_cihttps://www.ti.com/lit/ds/symlink/lm3697.pdf 74