aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-04-10 12:06:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-10 12:06:10 -0400
commit4162877d3ffa900b618c369c490c7faa6af60e47 (patch)
tree5e87df9b3cdf07dcdc072bfdddadef4eb04c18ca /Documentation
parent6c61403a446b5ee54c21cecabdc821acf06f96bf (diff)
parent14f5716bc23cebb627b40a2808e9f04eb77ab206 (diff)
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds
Pull LED updates from Bryan Wu: "This cycle we got: - new driver for leds-mc13783 - bug fixes - code cleanup" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds: leds: make sure we unregister a trigger only once leds: leds-pwm: properly clean up after probe failure leds: clevo-mail: Make probe function __init leds-ot200: Fix dependencies leds-gpio: of: introduce MODULE_DEVICE_TABLE for module autoloading leds: clevo-mail: remove __initdata marker leds: leds-ss4200: remove __initdata marker leds: blinkm: remove unnecessary spaces leds: lp5562: remove unnecessary parentheses leds: leds-ss4200: remove DEFINE_PCI_DEVICE_TABLE macro leds: leds-s3c24xx: Trivial cleanup in header file drivers/leds: delete non-required instances of include <linux/init.h> leds: leds-gpio: add retain-state-suspended property leds: leds-mc13783: Add devicetree support leds: leds-mc13783: Remove unnecessary cleaning of registers on exit leds: leds-mc13783: Use proper "max_brightness" value fo LEDs leds: leds-mc13783: Use LED core PM functions leds: leds-mc13783: Add MC34708 LED support leds: Turn off led if blinking is disabled ledtrig-cpu: Handle CPU hot(un)plugging
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/leds/leds-gpio.txt12
-rw-r--r--Documentation/devicetree/bindings/mfd/mc13xxx.txt47
2 files changed, 59 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.txt b/Documentation/devicetree/bindings/leds/leds-gpio.txt
index df1b3080f6b8..f77148f372ea 100644
--- a/Documentation/devicetree/bindings/leds/leds-gpio.txt
+++ b/Documentation/devicetree/bindings/leds/leds-gpio.txt
@@ -21,6 +21,8 @@ LED sub-node properties:
21 on). The "keep" setting will keep the LED at whatever its current 21 on). The "keep" setting will keep the LED at whatever its current
22 state is, without producing a glitch. The default is off if this 22 state is, without producing a glitch. The default is off if this
23 property is not present. 23 property is not present.
24- retain-state-suspended: (optional) The suspend state can be retained.Such
25 as charge-led gpio.
24 26
25Examples: 27Examples:
26 28
@@ -50,3 +52,13 @@ run-control {
50 default-state = "on"; 52 default-state = "on";
51 }; 53 };
52}; 54};
55
56leds {
57 compatible = "gpio-leds";
58
59 charger-led {
60 gpios = <&gpio1 2 0>;
61 linux,default-trigger = "max8903-charger-charging";
62 retain-state-suspended;
63 };
64};
diff --git a/Documentation/devicetree/bindings/mfd/mc13xxx.txt b/Documentation/devicetree/bindings/mfd/mc13xxx.txt
index abd9e3cb2db7..1413f39912d3 100644
--- a/Documentation/devicetree/bindings/mfd/mc13xxx.txt
+++ b/Documentation/devicetree/bindings/mfd/mc13xxx.txt
@@ -10,9 +10,44 @@ Optional properties:
10- fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used 10- fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used
11 11
12Sub-nodes: 12Sub-nodes:
13- leds : Contain the led nodes and initial register values in property
14 "led-control". Number of register depends of used IC, for MC13783 is 6,
15 for MC13892 is 4, for MC34708 is 1. See datasheet for bits definitions of
16 these registers.
17 - #address-cells: Must be 1.
18 - #size-cells: Must be 0.
19 Each led node should contain "reg", which used as LED ID (described below).
20 Optional properties "label" and "linux,default-trigger" is described in
21 Documentation/devicetree/bindings/leds/common.txt.
13- regulators : Contain the regulator nodes. The regulators are bound using 22- regulators : Contain the regulator nodes. The regulators are bound using
14 their names as listed below with their registers and bits for enabling. 23 their names as listed below with their registers and bits for enabling.
15 24
25MC13783 LED IDs:
26 0 : Main display
27 1 : AUX display
28 2 : Keypad
29 3 : Red 1
30 4 : Green 1
31 5 : Blue 1
32 6 : Red 2
33 7 : Green 2
34 8 : Blue 2
35 9 : Red 3
36 10 : Green 3
37 11 : Blue 3
38
39MC13892 LED IDs:
40 0 : Main display
41 1 : AUX display
42 2 : Keypad
43 3 : Red
44 4 : Green
45 5 : Blue
46
47MC34708 LED IDs:
48 0 : Charger Red
49 1 : Charger Green
50
16MC13783 regulators: 51MC13783 regulators:
17 sw1a : regulator SW1A (register 24, bit 0) 52 sw1a : regulator SW1A (register 24, bit 0)
18 sw1b : regulator SW1B (register 25, bit 0) 53 sw1b : regulator SW1B (register 25, bit 0)
@@ -89,6 +124,18 @@ ecspi@70010000 { /* ECSPI1 */
89 interrupt-parent = <&gpio0>; 124 interrupt-parent = <&gpio0>;
90 interrupts = <8>; 125 interrupts = <8>;
91 126
127 leds {
128 #address-cells = <1>;
129 #size-cells = <0>;
130 led-control = <0x000 0x000 0x0e0 0x000>;
131
132 sysled {
133 reg = <3>;
134 label = "system:red:live";
135 linux,default-trigger = "heartbeat";
136 };
137 };
138
92 regulators { 139 regulators {
93 sw1_reg: mc13892__sw1 { 140 sw1_reg: mc13892__sw1 {
94 regulator-min-microvolt = <600000>; 141 regulator-min-microvolt = <600000>;