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
54 $ref: /schemas/types.yaml#/definitions/uint8
56 LP8501 specific property. Power selection for output channels.
58 - 0 # D1~9 are connected to VDD
59 - 1 # D1~6 with VDD, D7~9 with VOUT
60 - 2 # D1~6 with VOUT, D7~9 with VDD
61 - 3 # D1~9 are connected to VOUT
71 Set the operating mode of the internal charge pump as defined in
72 <dt-bindings/leds/leds-lp55xx.h>.
73 $ref: /schemas/types.yaml#/definitions/uint32
80 $ref: leds-class-multicolor.yaml#
81 unevaluatedProperties: false
97 unevaluatedProperties: false
101 $ref: /schemas/types.yaml#/definitions/uint8
103 Current setting at each LED channel (mA x10, 0 if LED is not connected)
108 $ref: /schemas/types.yaml#/definitions/uint8
109 description: Maximum current at each LED channel.
120 unevaluatedProperties: false
124 $ref: /schemas/types.yaml#/definitions/uint8
126 Current setting at each LED channel (mA x10, 0 if LED is not connected)
131 $ref: /schemas/types.yaml#/definitions/uint8
132 description: Maximum current at each LED channel.
136 Output channel for the LED. This is zero based channel identifier and
137 the data sheet is a one based channel identifier.
138 reg value to output to LED output number
151 $ref: /schemas/types.yaml#/definitions/string
152 description: name of channel
158 additionalProperties: false
162 #include <dt-bindings/leds/common.h>
163 #include <dt-bindings/leds/leds-lp55xx.h>
166 #address-cells = <1>;
170 #address-cells = <1>;
172 compatible = "ti,lp8501";
174 clock-mode = /bits/ 8 <2>;
175 pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
176 ti,charge-pump-mode = <LP55XX_CP_BYPASS>;
181 led-cur = /bits/ 8 <0x14>;
182 max-cur = /bits/ 8 <0x20>;
188 led-cur = /bits/ 8 <0x14>;
189 max-cur = /bits/ 8 <0x20>;
195 led-cur = /bits/ 8 <0x14>;
196 max-cur = /bits/ 8 <0x20>;
202 led-cur = /bits/ 8 <0x14>;
203 max-cur = /bits/ 8 <0x20>;
209 led-cur = /bits/ 8 <0x14>;
210 max-cur = /bits/ 8 <0x20>;
216 led-cur = /bits/ 8 <0x14>;
217 max-cur = /bits/ 8 <0x20>;
223 led-cur = /bits/ 8 <0x14>;
224 max-cur = /bits/ 8 <0x20>;
230 led-cur = /bits/ 8 <0x14>;
231 max-cur = /bits/ 8 <0x20>;
237 led-cur = /bits/ 8 <0x14>;
238 max-cur = /bits/ 8 <0x20>;
243 #address-cells = <1>;
245 compatible = "national,lp5523";
247 clock-mode = /bits/ 8 <0>;
250 #address-cells = <1>;
253 color = <LED_COLOR_ID_RGB>;
254 function = LED_FUNCTION_STANDBY;
255 linux,default-trigger = "heartbeat";
258 led-cur = /bits/ 8 <50>;
259 max-cur = /bits/ 8 <100>;
261 color = <LED_COLOR_ID_GREEN>;
265 led-cur = /bits/ 8 <50>;
266 max-cur = /bits/ 8 <100>;
268 color = <LED_COLOR_ID_BLUE>;
272 led-cur = /bits/ 8 <50>;
273 max-cur = /bits/ 8 <100>;
275 color = <LED_COLOR_ID_RED>;