1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/leds/leds-lp55xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI/National Semiconductor LP55xx and LP8501 LED Drivers
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
14 Bindings for the TI/National Semiconductor LP55xx and LP8501 multi channel
17 For more product information please see the link below:
18 https://www.ti.com/lit/gpn/lp5521
19 https://www.ti.com/lit/gpn/lp5523
20 https://www.ti.com/lit/gpn/lp55231
21 https://www.ti.com/lit/gpn/lp5562
22 https://www.ti.com/lit/gpn/lp8501
35 description: I2C slave address
38 $ref: /schemas/types.yaml#/definitions/uint8
49 GPIO attached to the chip's enable pin
52 $ref: /schemas/types.yaml#/definitions/uint8
54 LP8501 specific property. Power selection for output channels.
56 - 0 # D1~9 are connected to VDD
57 - 1 # D1~6 with VDD, D7~9 with VOUT
58 - 2 # D1~6 with VOUT, D7~9 with VDD
59 - 3 # D1~9 are connected to VOUT
68 "(^led@[0-9a-f]$|led)":
73 $ref: /schemas/types.yaml#/definitions/uint8
75 Current setting at each LED channel (mA x10, 0 if LED is not connected)
80 $ref: /schemas/types.yaml#/definitions/uint8
81 description: Maximun current at each LED channel.
85 Output channel for the LED. This is zero based channel identifier and
86 the data sheet is a one based channel identifier.
87 reg value to output to LED output number
100 $ref: /schemas/types.yaml#/definitions/string
101 description: name of channel
107 additionalProperties: false
111 #include <dt-bindings/leds/common.h>
114 #address-cells = <1>;
118 #address-cells = <1>;
120 compatible = "ti,lp8501";
122 clock-mode = /bits/ 8 <2>;
123 pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
128 led-cur = /bits/ 8 <0x14>;
129 max-cur = /bits/ 8 <0x20>;
135 led-cur = /bits/ 8 <0x14>;
136 max-cur = /bits/ 8 <0x20>;
142 led-cur = /bits/ 8 <0x14>;
143 max-cur = /bits/ 8 <0x20>;
149 led-cur = /bits/ 8 <0x14>;
150 max-cur = /bits/ 8 <0x20>;
156 led-cur = /bits/ 8 <0x14>;
157 max-cur = /bits/ 8 <0x20>;
163 led-cur = /bits/ 8 <0x14>;
164 max-cur = /bits/ 8 <0x20>;
170 led-cur = /bits/ 8 <0x14>;
171 max-cur = /bits/ 8 <0x20>;
177 led-cur = /bits/ 8 <0x14>;
178 max-cur = /bits/ 8 <0x20>;
184 led-cur = /bits/ 8 <0x14>;
185 max-cur = /bits/ 8 <0x20>;
190 #address-cells = <1>;
192 compatible = "national,lp5523";
194 clock-mode = /bits/ 8 <0>;
197 #address-cells = <1>;
200 color = <LED_COLOR_ID_RGB>;
201 function = LED_FUNCTION_STANDBY;
202 linux,default-trigger = "heartbeat";
205 led-cur = /bits/ 8 <50>;
206 max-cur = /bits/ 8 <100>;
208 color = <LED_COLOR_ID_GREEN>;
212 led-cur = /bits/ 8 <50>;
213 max-cur = /bits/ 8 <100>;
215 color = <LED_COLOR_ID_BLUE>;
219 led-cur = /bits/ 8 <50>;
220 max-cur = /bits/ 8 <100>;
222 color = <LED_COLOR_ID_RED>;