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
62 "(^led@[0-9a-f]$|led)":
67 $ref: /schemas/types.yaml#definitions/uint8
69 Current setting at each LED channel (mA x10, 0 if LED is not connected)
74 $ref: /schemas/types.yaml#definitions/uint8
75 description: Maximun current at each LED channel.
79 Output channel for the LED. This is zero based channel identifier and
80 the data sheet is a one based channel identifier.
81 reg value to output to LED output number
94 $ref: /schemas/types.yaml#definitions/string
95 description: name of channel
103 #include <dt-bindings/leds/common.h>
106 #address-cells = <1>;
110 #address-cells = <1>;
112 compatible = "ti,lp8501";
114 clock-mode = /bits/ 8 <2>;
115 pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
120 led-cur = /bits/ 8 <0x14>;
121 max-cur = /bits/ 8 <0x20>;
127 led-cur = /bits/ 8 <0x14>;
128 max-cur = /bits/ 8 <0x20>;
134 led-cur = /bits/ 8 <0x14>;
135 max-cur = /bits/ 8 <0x20>;
141 led-cur = /bits/ 8 <0x14>;
142 max-cur = /bits/ 8 <0x20>;
148 led-cur = /bits/ 8 <0x14>;
149 max-cur = /bits/ 8 <0x20>;
155 led-cur = /bits/ 8 <0x14>;
156 max-cur = /bits/ 8 <0x20>;
162 led-cur = /bits/ 8 <0x14>;
163 max-cur = /bits/ 8 <0x20>;
169 led-cur = /bits/ 8 <0x14>;
170 max-cur = /bits/ 8 <0x20>;
176 led-cur = /bits/ 8 <0x14>;
177 max-cur = /bits/ 8 <0x20>;
182 #address-cells = <1>;
184 compatible = "national,lp5523";
186 clock-mode = /bits/ 8 <0>;
189 #address-cells = <1>;
192 color = <LED_COLOR_ID_RGB>;
193 function = LED_FUNCTION_STANDBY;
194 linux,default-trigger = "heartbeat";
197 led-cur = /bits/ 8 <50>;
198 max-cur = /bits/ 8 <100>;
200 color = <LED_COLOR_ID_GREEN>;
204 led-cur = /bits/ 8 <50>;
205 max-cur = /bits/ 8 <100>;
207 color = <LED_COLOR_ID_BLUE>;
211 led-cur = /bits/ 8 <50>;
212 max-cur = /bits/ 8 <100>;
214 color = <LED_COLOR_ID_RED>;