diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-02-01 01:37:23 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-02-27 12:56:56 -0500 |
commit | 25c6579f872d0542809067d56fad22984b8ff565 (patch) | |
tree | bfcdc2a70f81c0c435bd5f3172d3b4024f92c171 /Documentation | |
parent | 2f18f8d638cc66a5339d901dea2c9d8af72e69c2 (diff) |
leds: leds-mc13783: Add devicetree support
This patch adds devicetree support for the MC13XXX LED driver.
(cooloney@gmail.com: remove unneeded semicolon)
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/mfd/mc13xxx.txt | 47 |
1 files changed, 47 insertions, 0 deletions
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 | ||
12 | Sub-nodes: | 12 | Sub-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 | ||
25 | MC13783 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 | |||
39 | MC13892 LED IDs: | ||
40 | 0 : Main display | ||
41 | 1 : AUX display | ||
42 | 2 : Keypad | ||
43 | 3 : Red | ||
44 | 4 : Green | ||
45 | 5 : Blue | ||
46 | |||
47 | MC34708 LED IDs: | ||
48 | 0 : Charger Red | ||
49 | 1 : Charger Green | ||
50 | |||
16 | MC13783 regulators: | 51 | MC13783 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>; |