^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) * Texas Instruments - lp8860 4-Channel LED Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) The LP8860-Q1 is an high-efficiency LED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) driver with boost controller. It has 4 high-precision
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) current sinks that can be controlled by a PWM input
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) signal, a SPI/I2C master, or both.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - compatible :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) "ti,lp8860"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - reg : I2C slave address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - #address-cells : 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - #size-cells : 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - enable-gpios : gpio pin to enable (active high)/disable the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - vled-supply : LED supply
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Required child properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - reg : 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Optional child properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - function : see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - color : see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) - linux,default-trigger :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) see 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) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #include <dt-bindings/leds/common.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) led-controller@2d {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) compatible = "ti,lp8860";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) reg = <0x2d>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) vled-supply = <&vbatt>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) led@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) reg = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) function = LED_FUNCTION_BACKLIGHT;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) color = <LED_COLOR_ID_WHITE>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) linux,default-trigger = "backlight";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) For more product information please see the link below:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) https://www.ti.com/product/lp8860-q1