blob: 053fa370931e730234b9f05ad5151c3bcd44dbaa [file] [log] [blame]
Amy Maloche24de28b2012-09-17 12:09:56 -07001/*
Asaf Penso001cc3a2013-01-21 21:15:10 +02002 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Amy Maloche24de28b2012-09-17 12:09:56 -07003 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
David Collins73cdb632013-06-17 17:24:45 -070014&pm8941_lsid1 {
15 qcom,leds@d000 {
16 status = "okay";
17 qcom,rgb_0 {
18 label = "rgb";
gaoyl1997393e2322015-03-11 18:16:20 +080019 linux,name = "red";
David Collins73cdb632013-06-17 17:24:45 -070020 qcom,mode = "pwm";
21 qcom,pwm-channel = <6>;
22 qcom,pwm-us = <1000>;
23 qcom,max-current = <12>;
24 qcom,default-state = "off";
25 qcom,id = <3>;
26 linux,default-trigger =
27 "battery-charging";
chenxl072306cbf492015-09-29 17:41:58 +080028 qcom,start-idx = <1>;
29 qcom,duty-pcts = [00 00 00 00 00 00 00 00 00 00 00 19 32 4B 64 64 32 19
30 00 00 00 00 00 00 00 00 00 00 00];
31 qcom,lut-flags = <3>;
32 qcom,pause-lo = <0>;
33 qcom,pause-hi = <0>;
34 qcom,ramp-step-ms = <255>;
35 qcom,use-blink;
Amy Maloche24de28b2012-09-17 12:09:56 -070036 };
37
David Collins73cdb632013-06-17 17:24:45 -070038 qcom,rgb_1 {
39 label = "rgb";
gaoyl1997393e2322015-03-11 18:16:20 +080040 linux,name = "green";
David Collins73cdb632013-06-17 17:24:45 -070041 qcom,mode = "pwm";
42 qcom,pwm-channel = <5>;
43 qcom,pwm-us = <1000>;
44 qcom,max-current = <12>;
45 qcom,default-state = "off";
46 qcom,id = <4>;
47 linux,default-trigger = "battery-full";
chenxl072306cbf492015-09-29 17:41:58 +080048 qcom,start-idx = <1>;
lisa16ce7c32016-01-11 14:36:18 +080049 qcom,duty-pcts = [00 00 00 00 00 00 00 00 00 00 00 19 32 4B 64 64 32 19
50 00 00 00 00 00 00 00 00 00 00 00];
chenxl072306cbf492015-09-29 17:41:58 +080051 qcom,lut-flags = <3>;
52 qcom,pause-lo = <0>;
53 qcom,pause-hi = <0>;
54 qcom,ramp-step-ms = <255>;
55 qcom,use-blink;
Amy Maloche24de28b2012-09-17 12:09:56 -070056 };
57
David Collins73cdb632013-06-17 17:24:45 -070058 qcom,rgb_2 {
59 label = "rgb";
gaoyl1997393e2322015-03-11 18:16:20 +080060 linux,name = "blue";
David Collins73cdb632013-06-17 17:24:45 -070061 qcom,mode = "pwm";
62 qcom,pwm-channel = <4>;
63 qcom,pwm-us = <1000>;
64 qcom,max-current = <12>;
65 qcom,id = <5>;
chenxl072306cbf492015-09-29 17:41:58 +080066 qcom,start-idx = <1>;
lisa16ce7c32016-01-11 14:36:18 +080067 qcom,duty-pcts = [00 00 00 00 00 00 00 00 00 00 00 19 32 4B 64 64 32 19
68 00 00 00 00 00 00 00 00 00 00 00];
chenxl072306cbf492015-09-29 17:41:58 +080069 qcom,lut-flags = <3>;
70 qcom,pause-lo = <0>;
71 qcom,pause-hi = <0>;
72 qcom,ramp-step-ms = <255>;
73 qcom,use-blink;
Amy Maloche24de28b2012-09-17 12:09:56 -070074 };
75 };
Amy Maloche24de28b2012-09-17 12:09:56 -070076
David Collins73cdb632013-06-17 17:24:45 -070077 qcom,leds@d100 {
78 status = "disabled";
79 };
80
81 qcom,leds@d200 {
82 status = "disabled";
83 };
84
85 qcom,leds@d300 {
86 status = "okay";
87 pm8941_flash0: qcom,flash_0 {
88 qcom,max-current = <1000>;
89 qcom,default-state = "off";
90 qcom,headroom = <3>;
91 qcom,duration = <1280>;
92 qcom,clamp-curr = <200>;
93 qcom,startup-dly = <3>;
94 qcom,safety-timer;
95 label = "flash";
96 linux,default-trigger =
97 "flash0_trigger";
98 qcom,id = <1>;
99 linux,name = "led:flash_0";
maohong36f0c222015-09-15 10:21:45 +0800100 qcom,current = <500>;
David Collins73cdb632013-06-17 17:24:45 -0700101 };
102
103 pm8941_flash1: qcom,flash_1 {
104 qcom,max-current = <1000>;
105 qcom,default-state = "off";
106 qcom,headroom = <3>;
107 qcom,duration = <1280>;
108 qcom,clamp-curr = <200>;
109 qcom,startup-dly = <3>;
110 qcom,safety-timer;
111 linux,default-trigger =
112 "flash1_trigger";
113 label = "flash";
114 qcom,id = <2>;
115 linux,name = "led:flash_1";
maohong36f0c222015-09-15 10:21:45 +0800116 qcom,current = <500>;
David Collins73cdb632013-06-17 17:24:45 -0700117 };
118
119 pm8941_torch: qcom,flash_torch {
120 qcom,max-current = <200>;
121 qcom,default-state = "off";
122 qcom,headroom = <0>;
123 qcom,startup-dly = <1>;
124 linux,default-trigger =
125 "torch_trigger";
126 label = "flash";
127 qcom,id = <2>;
128 linux,name = "led:flash_torch";
maohong36f0c222015-09-15 10:21:45 +0800129 qcom,current = <35>;
David Collins73cdb632013-06-17 17:24:45 -0700130 qcom,torch-enable;
131 };
132 };
133
134 qcom,leds@d400 {
135 status = "disabled";
136 };
137
138 qcom,leds@d500 {
139 status = "disabled";
140 };
141
142 qcom,leds@d600 {
143 status = "disabled";
144 };
145
146 qcom,leds@d700 {
147 status = "disabled";
148 };
Mohan Pallaka6e8ba212013-04-25 11:43:45 +0530149
150 qcom,leds@e200 {
151 status = "okay";
152
153 qcom,kpdbl1 {
154 label = "kpdbl";
155 linux,name = "kpdbl-pwm-1";
156 qcom,mode = "pwm";
157 qcom,pwm-channel = <8>;
158 qcom,pwm-us = <1000>;
159 qcom,id = <7>;
160 qcom,max-current = <20>;
161 qcom,row-id = <0>;
162 qcom,row-src-en;
163 qcom,always-on;
Abinaya Pe4ebc1e2014-10-20 11:13:18 +0530164 qcom,start-idx = <1>;
165 qcom,ramp-step-ms = <120>;
166 qcom,duty-pcts = [00 00 00 00 64
167 64 00 00 00 00];
168 qcom,use-blink;
169 qcom,in-order-command-processing;
Mohan Pallaka6e8ba212013-04-25 11:43:45 +0530170 };
171
172 qcom,kpdbl2 {
173 label = "kpdbl";
Abinaya Pe4ebc1e2014-10-20 11:13:18 +0530174 linux,name = "kpdbl-pwm-2";
175 qcom,mode = "pwm";
Mohan Pallaka6e8ba212013-04-25 11:43:45 +0530176 qcom,pwm-channel = <9>;
177 qcom,pwm-us = <1000>;
Mohan Pallaka6e8ba212013-04-25 11:43:45 +0530178 qcom,id = <7>;
179 qcom,max-current = <20>;
180 qcom,row-id = <1>;
181 qcom,row-src-en;
Abinaya Pe4ebc1e2014-10-20 11:13:18 +0530182 qcom,start-idx = <1>;
183 qcom,ramp-step-ms = <120>;
184 qcom,duty-pcts = [00 00 00 00 64
185 64 00 00 00 00];
186 qcom,use-blink;
187 qcom,in-order-command-processing;
188
Mohan Pallaka6e8ba212013-04-25 11:43:45 +0530189 };
190
191 qcom,kpdbl3 {
192 label = "kpdbl";
193 linux,name = "kpdbl-pwm-3";
194 qcom,mode = "pwm";
195 qcom,pwm-channel = <10>;
196 qcom,pwm-us = <1000>;
197 qcom,id = <7>;
198 qcom,max-current = <20>;
199 qcom,row-id = <2>;
200 qcom,row-src-en;
Abinaya Pe4ebc1e2014-10-20 11:13:18 +0530201 qcom,start-idx = <1>;
202 qcom,ramp-step-ms = <120>;
203 qcom,duty-pcts = [00 00 00 00 64
204 64 00 00 00 00];
205 qcom,use-blink;
206 qcom,in-order-command-processing;
207
Mohan Pallaka6e8ba212013-04-25 11:43:45 +0530208 };
209
210 qcom,kpdbl4 {
211 label = "kpdbl";
212 linux,name = "kpdbl-pwm-4";
213 qcom,mode = "pwm";
214 qcom,pwm-channel = <11>;
215 qcom,pwm-us = <1000>;
216 qcom,id = <7>;
217 qcom,max-current = <20>;
218 qcom,row-id = <3>;
219 qcom,row-src-en;
Abinaya Pe4ebc1e2014-10-20 11:13:18 +0530220 qcom,start-idx = <1>;
221 qcom,ramp-step-ms = <120>;
222 qcom,duty-pcts = [00 00 00 00 64
223 64 00 00 00 00];
224 qcom,use-blink;
225 qcom,in-order-command-processing;
226
Mohan Pallaka6e8ba212013-04-25 11:43:45 +0530227 };
228 };
David Collins73cdb632013-06-17 17:24:45 -0700229};