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
36 description: I2C slave address
39 $ref: /schemas/types.yaml#/definitions/uint8
50 GPIO attached to the chip's enable pin
55 $ref: /schemas/types.yaml#/definitions/uint8
57 LP8501 specific property. Power selection for output channels.
59 - 0 # D1~9 are connected to VDD
60 - 1 # D1~6 with VDD, D7~9 with VOUT
61 - 2 # D1~6 with VOUT, D7~9 with VDD
62 - 3 # D1~9 are connected to VOUT
72 Set the operating mode of the internal charge pump as defined in
73 <dt-bindings/leds/leds-lp55xx.h>.
74 $ref: /schemas/types.yaml#/definitions/uint32
81 $ref: leds-class-multicolor.yaml#
82 unevaluatedProperties: false
98 unevaluatedProperties: false
102 $ref: /schemas/types.yaml#/definitions/uint8
104 Current setting at each LED channel (mA x10, 0 if LED is not connected)
109 $ref: /schemas/types.yaml#/definitions/uint8
110 description: Maximum current at each LED channel.
121 unevaluatedProperties: false
125 $ref: /schemas/types.yaml#/definitions/uint8
127 Current setting at each LED channel (mA x10, 0 if LED is not connected)
132 $ref: /schemas/types.yaml#/definitions/uint8
133 description: Maximum current at each LED channel.
137 Output channel for the LED. This is zero based channel identifier and
138 the data sheet is a one based channel identifier.
139 reg value to output to LED output number
152 $ref: /schemas/types.yaml#/definitions/string
153 description: name of channel
169 additionalProperties: false
173 #include <dt-bindings/leds/common.h>
174 #include <dt-bindings/leds/leds-lp55xx.h>
177 #address-cells = <1>;
181 #address-cells = <1>;
183 compatible = "ti,lp8501";
185 clock-mode = /bits/ 8 <2>;
186 pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
187 ti,charge-pump-mode = <LP55XX_CP_BYPASS>;
192 led-cur = /bits/ 8 <0x14>;
193 max-cur = /bits/ 8 <0x20>;
199 led-cur = /bits/ 8 <0x14>;
200 max-cur = /bits/ 8 <0x20>;
206 led-cur = /bits/ 8 <0x14>;
207 max-cur = /bits/ 8 <0x20>;
213 led-cur = /bits/ 8 <0x14>;
214 max-cur = /bits/ 8 <0x20>;
220 led-cur = /bits/ 8 <0x14>;
221 max-cur = /bits/ 8 <0x20>;
227 led-cur = /bits/ 8 <0x14>;
228 max-cur = /bits/ 8 <0x20>;
234 led-cur = /bits/ 8 <0x14>;
235 max-cur = /bits/ 8 <0x20>;
241 led-cur = /bits/ 8 <0x14>;
242 max-cur = /bits/ 8 <0x20>;
248 led-cur = /bits/ 8 <0x14>;
249 max-cur = /bits/ 8 <0x20>;
254 #address-cells = <1>;
256 compatible = "national,lp5523";
258 clock-mode = /bits/ 8 <0>;
261 #address-cells = <1>;
264 color = <LED_COLOR_ID_RGB>;
265 function = LED_FUNCTION_STANDBY;
266 linux,default-trigger = "heartbeat";
269 led-cur = /bits/ 8 <50>;
270 max-cur = /bits/ 8 <100>;
272 color = <LED_COLOR_ID_GREEN>;
276 led-cur = /bits/ 8 <50>;
277 max-cur = /bits/ 8 <100>;
279 color = <LED_COLOR_ID_BLUE>;
283 led-cur = /bits/ 8 <50>;
284 max-cur = /bits/ 8 <100>;
286 color = <LED_COLOR_ID_RED>;