leds-lm3697.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. * Texas Instruments - LM3697 Highly Efficient White LED Driver
  2. The LM3697 11-bit LED driver provides high-
  3. performance backlight dimming for 1, 2, or 3 series
  4. LED strings while delivering up to 90% efficiency.
  5. This device is suitable for display and keypad lighting
  6. Required properties:
  7. - compatible:
  8. "ti,lm3697"
  9. - reg : I2C slave address
  10. - #address-cells : 1
  11. - #size-cells : 0
  12. Optional properties:
  13. - enable-gpios : GPIO pin to enable/disable the device
  14. - vled-supply : LED supply
  15. Required child properties:
  16. - reg : 0 - LED is Controlled by bank A
  17. 1 - LED is Controlled by bank B
  18. - led-sources : Indicates which HVLED string is associated to which
  19. control bank. This is a zero based property so
  20. HVLED1 = 0, HVLED2 = 1, HVLED3 = 2.
  21. Additional information is contained
  22. in Documentation/devicetree/bindings/leds/common.txt
  23. Optional child properties:
  24. - ti,brightness-resolution - see Documentation/devicetree/bindings/mfd/ti-lmu.txt
  25. - ramp-up-us: see Documentation/devicetree/bindings/mfd/ti-lmu.txt
  26. - ramp-down-us: see Documentation/devicetree/bindings/mfd/ti-lmu.txt
  27. - label : see Documentation/devicetree/bindings/leds/common.txt
  28. - linux,default-trigger :
  29. see Documentation/devicetree/bindings/leds/common.txt
  30. Example:
  31. HVLED string 1 and 3 are controlled by control bank A and HVLED 2 string is
  32. controlled by control bank B.
  33. led-controller@36 {
  34. compatible = "ti,lm3697";
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. reg = <0x36>;
  38. enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
  39. vled-supply = <&vbatt>;
  40. led@0 {
  41. reg = <0>;
  42. led-sources = <0 2>;
  43. ti,brightness-resolution = <2047>;
  44. ramp-up-us = <5000>;
  45. ramp-down-us = <1000>;
  46. label = "white:first_backlight_cluster";
  47. linux,default-trigger = "backlight";
  48. };
  49. led@1 {
  50. reg = <1>;
  51. led-sources = <1>;
  52. ti,brightness-resolution = <255>;
  53. ramp-up-us = <500>;
  54. ramp-down-us = <1000>;
  55. label = "white:second_backlight_cluster";
  56. linux,default-trigger = "backlight";
  57. };
  58. }
  59. For more product information please see the link below:
  60. https://www.ti.com/lit/ds/symlink/lm3697.pdf