TI/National Semiconductor LP55xx and LP8501 LED Drivers
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-lp55xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacek Anaszewski <jacek.anaszewski@gmail.com>", "Pavel Machek <pavel@ucw.cz>"
Bindings for the TI/National Semiconductor LP55xx and LP8501 multi channel LED Drivers.
For more product information please see the link below:
https://www.ti.com/lit/gpn/lp5521
https://www.ti.com/lit/gpn/lp5523
https://www.ti.com/lit/gpn/lp55231
https://www.ti.com/lit/gpn/lp5562
https://www.ti.com/lit/gpn/lp8501
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "national,lp5521", "national,lp5523", "ti,lp55231", "ti,lp5562", "ti,lp5569", "ti,lp8501"
reg — required here #
Maximum number of items (maxItems): 1
I2C slave address
clock-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Input clock mode
Allowed values (enum): 0, 1, 2
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO attached to the chip's enable pin
label — not listed as required here #
true — No constraints added by this property rule.
pwr-sel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
LP8501 specific property. Power selection for output channels.
Allowed values (enum): 0, 1, 2, 3
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
ti,charge-pump-mode — not listed as required here #
Set the operating mode of the internal charge pump as defined in <dt-bindings/leds/leds-lp55xx.h>.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 3
Maximum value (maximum): 3
Properties matching a name pattern (patternProperties) #
^multi-led@[0-8]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.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
Maximum value (maximum): 8
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-8]$ — 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)
led-cur — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Current setting at each LED channel (mA x10, 0 if LED is not connected)
Minimum value (minimum): 0
Maximum value (maximum): 255
max-cur — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Maximum current at each LED channel.
reg — required here
Maximum value (maximum): 8
Required in this object (required): "reg"
^led@[0-8]$ — 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) #
led-cur — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Current setting at each LED channel (mA x10, 0 if LED is not connected)
Minimum value (minimum): 0
Maximum value (maximum): 255
max-cur — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Maximum current at each LED channel.
reg — not listed as required here
Output channel for the LED. This is zero based channel identifier and the data sheet is a one based channel identifier. reg value to output to LED output number
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7, 8
chan-name — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
name of channel
Condition (if) #
This rule must not match (
not) #Properties and child nodes (
properties) #
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,lp8501"
When the condition matches (then) #
Properties and child nodes (
properties) #
pwr-sel— not listed as required here #
false— Not permitted 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/leds/common.h>
#include <dt-bindings/leds/leds-lp55xx.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@32 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "ti,lp8501";
reg = <0x32>;
clock-mode = /bits/ 8 <2>;
pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
ti,charge-pump-mode = <LP55XX_CP_BYPASS>;
led@0 {
reg = <0>;
chan-name = "d1";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@1 {
reg = <1>;
chan-name = "d2";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@2 {
reg = <2>;
chan-name = "d3";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@3 {
reg = <3>;
chan-name = "d4";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@4 {
reg = <4>;
chan-name = "d5";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@5 {
reg = <5>;
chan-name = "d6";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@6 {
reg = <6>;
chan-name = "d7";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@7 {
reg = <7>;
chan-name = "d8";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@8 {
reg = <8>;
chan-name = "d9";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
};
led-controller@33 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "national,lp5523";
reg = <0x33>;
clock-mode = /bits/ 8 <0>;
multi-led@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x2>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STANDBY;
linux,default-trigger = "heartbeat";
led@0 {
led-cur = /bits/ 8 <50>;
max-cur = /bits/ 8 <100>;
reg = <0x0>;
color = <LED_COLOR_ID_GREEN>;
};
led@1 {
led-cur = /bits/ 8 <50>;
max-cur = /bits/ 8 <100>;
reg = <0x1>;
color = <LED_COLOR_ID_BLUE>;
};
led@6 {
led-cur = /bits/ 8 <50>;
max-cur = /bits/ 8 <100>;
reg = <0x6>;
color = <LED_COLOR_ID_RED>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 43: automode
Line 44: internal
Line 45: external
Line 59: D1~9 are connected to VDD
Line 60: D1~6 with VDD, D7~9 with VOUT
Line 61: D1~6 with VOUT, D7~9 with VDD
Line 62: D1~9 are connected to VOUT
Line 75: auto
Line 141: LED output D1
Line 142: LED output D2
Line 143: LED output D3
Line 144: LED output D4
Line 145: LED output D5
Line 146: LED output D6
Line 147: LED output D7
Line 148: LED output D8
Line 149: LED output D9