aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/leds/leds-lp55xx.txt72
-rw-r--r--Documentation/devicetree/bindings/leds/pca963x.txt47
-rw-r--r--Documentation/leds/leds-lp5521.txt20
-rw-r--r--Documentation/leds/leds-lp5523.txt21
-rw-r--r--Documentation/leds/leds-lp55xx.txt30
-rw-r--r--drivers/leds/Kconfig34
-rw-r--r--drivers/leds/Makefile3
-rw-r--r--drivers/leds/leds-88pm860x.c2
-rw-r--r--drivers/leds/leds-adp5520.c6
-rw-r--r--drivers/leds/leds-asic3.c4
-rw-r--r--drivers/leds/leds-atmel-pwm.c4
-rw-r--r--drivers/leds/leds-bd2802.c2
-rw-r--r--drivers/leds/leds-clevo-mail.c2
-rw-r--r--drivers/leds/leds-da903x.c2
-rw-r--r--drivers/leds/leds-da9052.c4
-rw-r--r--drivers/leds/leds-gpio.c2
-rw-r--r--drivers/leds/leds-lm3530.c2
-rw-r--r--drivers/leds/leds-lm3533.c2
-rw-r--r--drivers/leds/leds-lm355x.c2
-rw-r--r--drivers/leds/leds-lm3642.c2
-rw-r--r--drivers/leds/leds-lp3944.c7
-rw-r--r--drivers/leds/leds-lp5521.c118
-rw-r--r--drivers/leds/leds-lp5523.c325
-rw-r--r--drivers/leds/leds-lp5562.c8
-rw-r--r--drivers/leds/leds-lp55xx-common.c3
-rw-r--r--drivers/leds/leds-lp55xx-common.h66
-rw-r--r--drivers/leds/leds-lp8501.c410
-rw-r--r--drivers/leds/leds-lt3593.c4
-rw-r--r--drivers/leds/leds-netxbig.c6
-rw-r--r--drivers/leds/leds-ns2.c2
-rw-r--r--drivers/leds/leds-pca9532.c3
-rw-r--r--drivers/leds/leds-pca955x.c2
-rw-r--r--drivers/leds/leds-pca9633.c194
-rw-r--r--drivers/leds/leds-pca963x.c461
-rw-r--r--drivers/leds/leds-pwm.c2
-rw-r--r--drivers/leds/leds-regulator.c3
-rw-r--r--drivers/leds/leds-s3c24xx.c2
-rw-r--r--drivers/leds/leds-ss4200.c4
-rw-r--r--drivers/leds/leds-tca6507.c2
-rw-r--r--drivers/leds/leds-wm831x-status.c8
-rw-r--r--drivers/leds/leds-wm8350.c2
-rw-r--r--drivers/leds/trigger/ledtrig-backlight.c30
-rw-r--r--include/linux/platform_data/leds-lp55xx.h10
-rw-r--r--include/linux/platform_data/leds-pca963x.h (renamed from include/linux/platform_data/leds-pca9633.h)25
44 files changed, 1645 insertions, 315 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.txt b/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
index d5176882d8b9..a61727f9a6d1 100644
--- a/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
+++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
@@ -1,7 +1,7 @@
1Binding for TI/National Semiconductor LP55xx Led Drivers 1Binding for TI/National Semiconductor LP55xx Led Drivers
2 2
3Required properties: 3Required properties:
4- compatible: "national,lp5521" or "national,lp5523" or "ti,lp5562" 4- compatible: "national,lp5521" or "national,lp5523" or "ti,lp5562" or "ti,lp8501"
5- reg: I2C slave address 5- reg: I2C slave address
6- clock-mode: Input clock mode, (0: automode, 1: internal, 2: external) 6- clock-mode: Input clock mode, (0: automode, 1: internal, 2: external)
7 7
@@ -11,6 +11,11 @@ Each child has own specific current settings
11 11
12Optional properties: 12Optional properties:
13- label: Used for naming LEDs 13- label: Used for naming LEDs
14- pwr-sel: LP8501 specific property. Power selection for output channels.
15 0: D1~9 are connected to VDD
16 1: D1~6 with VDD, D7~9 with VOUT
17 2: D1~6 with VOUT, D7~9 with VDD
18 3: D1~9 are connected to VOUT
14 19
15Alternatively, each child can have specific channel name 20Alternatively, each child can have specific channel name
16- chan-name: Name of each channel name 21- chan-name: Name of each channel name
@@ -145,3 +150,68 @@ lp5562@30 {
145 max-cur = /bits/ 8 <0x60>; 150 max-cur = /bits/ 8 <0x60>;
146 }; 151 };
147}; 152};
153
154example 4) LP8501
1559 channels are defined. The 'pwr-sel' is LP8501 specific property.
156Others are same as LP5523.
157
158lp8501@32 {
159 compatible = "ti,lp8501";
160 reg = <0x32>;
161 clock-mode = /bits/ 8 <2>;
162 pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
163
164 chan0 {
165 chan-name = "d1";
166 led-cur = /bits/ 8 <0x14>;
167 max-cur = /bits/ 8 <0x20>;
168 };
169
170 chan1 {
171 chan-name = "d2";
172 led-cur = /bits/ 8 <0x14>;
173 max-cur = /bits/ 8 <0x20>;
174 };
175
176 chan2 {
177 chan-name = "d3";
178 led-cur = /bits/ 8 <0x14>;
179 max-cur = /bits/ 8 <0x20>;
180 };
181
182 chan3 {
183 chan-name = "d4";
184 led-cur = /bits/ 8 <0x14>;
185 max-cur = /bits/ 8 <0x20>;
186 };
187
188 chan4 {
189 chan-name = "d5";
190 led-cur = /bits/ 8 <0x14>;
191 max-cur = /bits/ 8 <0x20>;
192 };
193
194 chan5 {
195 chan-name = "d6";
196 led-cur = /bits/ 8 <0x14>;
197 max-cur = /bits/ 8 <0x20>;
198 };
199
200 chan6 {
201 chan-name = "d7";
202 led-cur = /bits/ 8 <0x14>;
203 max-cur = /bits/ 8 <0x20>;
204 };
205
206 chan7 {
207 chan-name = "d8";
208 led-cur = /bits/ 8 <0x14>;
209 max-cur = /bits/ 8 <0x20>;
210 };
211
212 chan8 {
213 chan-name = "d9";
214 led-cur = /bits/ 8 <0x14>;
215 max-cur = /bits/ 8 <0x20>;
216 };
217};
diff --git a/Documentation/devicetree/bindings/leds/pca963x.txt b/Documentation/devicetree/bindings/leds/pca963x.txt
new file mode 100644
index 000000000000..aece3eac1b63
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/pca963x.txt
@@ -0,0 +1,47 @@
1LEDs connected to pca9632, pca9633 or pca9634
2
3Required properties:
4- compatible : should be : "nxp,pca9632", "nxp,pca9633" or "nxp,pca9634"
5
6Optional properties:
7- nxp,totem-pole : use totem pole (push-pull) instead of default open-drain
8- nxp,hw-blink : use hardware blinking instead of software blinking
9
10Each led is represented as a sub-node of the nxp,pca963x device.
11
12LED sub-node properties:
13- label : (optional) see Documentation/devicetree/bindings/leds/common.txt
14- reg : number of LED line (could be from 0 to 3 in pca9632 or pca9633
15 or 0 to 7 in pca9634)
16- linux,default-trigger : (optional)
17 see Documentation/devicetree/bindings/leds/common.txt
18
19Examples:
20
21pca9632: pca9632 {
22 compatible = "nxp,pca9632";
23 #address-cells = <1>;
24 #size-cells = <0>;
25 reg = <0x62>;
26
27 red@0 {
28 label = "red";
29 reg = <0>;
30 linux,default-trigger = "none";
31 };
32 green@1 {
33 label = "green";
34 reg = <1>;
35 linux,default-trigger = "none";
36 };
37 blue@2 {
38 label = "blue";