xref: /linux/Documentation/devicetree/bindings/leds/backlight/ti,lp8864.yaml (revision bf373e4c786bfe989e637195252698f45b157a68)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/leds/backlight/ti,lp8864.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments - LP8864/LP8866 4/6-Channel LED Driver family
8
9maintainers:
10  - Andrew Davis <afd@ti.com>
11  - Alexander Sverdlin <alexander.sverdlin@siemens.com>
12
13description: |
14  LP8866-Q1, LP8866S-Q1, LP8864-Q1, LP8864S-Q1 are display LED-backlight drivers
15  with 4/6 channels. LED brightness can be controlled globally through the I2C
16  interface or PWM input.
17
18  For more product information please see the links below:
19    https://www.ti.com/product/LP8864-Q1
20    https://www.ti.com/product/LP8864S-Q1
21    https://www.ti.com/product/LP8866-Q1
22    https://www.ti.com/product/LP8866S-Q1
23
24properties:
25  compatible:
26    const: ti,lp8864
27
28  reg:
29    maxItems: 1
30    description: I2C slave address
31
32  enable-gpios:
33    maxItems: 1
34    description: GPIO pin to enable (active high) / disable the device
35
36  vled-supply:
37    description: LED supply
38
39  led:
40    type: object
41    $ref: common.yaml#
42    properties:
43      function: true
44      color: true
45      label: true
46      linux,default-trigger: true
47
48    additionalProperties: false
49
50required:
51  - compatible
52  - reg
53  - led
54
55additionalProperties: false
56
57examples:
58  - |
59    #include <dt-bindings/gpio/gpio.h>
60    #include <dt-bindings/leds/common.h>
61
62    i2c {
63        #address-cells = <1>;
64        #size-cells = <0>;
65
66        led-controller@3a {
67            compatible = "ti,lp8864";
68            reg = <0x3a>;
69            enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
70            vled-supply = <&vbatt>;
71
72            led {
73                function = LED_FUNCTION_BACKLIGHT;
74                color = <LED_COLOR_ID_WHITE>;
75                linux,default-trigger = "backlight";
76            };
77        };
78    };
79
80...
81