Texas Instruments - lp8860 4-Channel LED Driver
Schema identifier ($id): "http://devicetree.org/schemas/leds/ti,lp8860.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
The LP8860-Q1 is an high-efficiency LED driver with boost controller. It has 4 high-precision current sinks that can be controlled by a PWM input signal, a SPI/I2C master, or both.
For more product information please see the link below:
https://www.ti.com/product/lp8860-q1
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,lp8860"
reg — required here #
Maximum number of items (maxItems): 1
I2C slave address
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO pin to enable (active high) / disable the device
vled-supply — not listed as required here #
LED supply
Properties matching a name pattern (patternProperties) #
^led(@[0-3])?$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Index of the LED.
Maximum number of items (maxItems): 1
function — not listed as required here
true — No constraints added by this property rule.
color — not listed as required here
true — No constraints added by this property rule.
label — not listed as required here
true — No constraints added by this property rule.
linux,default-trigger — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@2d {
compatible = "ti,lp8860";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x2d>;
enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
vled-supply = <&vbatt>;
led@0 {
reg = <0>;
function = LED_FUNCTION_BACKLIGHT;
color = <LED_COLOR_ID_WHITE>;
linux,default-trigger = "backlight";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)