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