blob: 942aba4c96cb059bdd2e2aedbad252797b5f2b8b [file] [log] [blame]
Amy Maloche71880c52013-01-04 11:56:23 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
Amy Maloche24de28b2012-09-17 12:09:56 -070013/include/ "msm8974-leds.dtsi"
Sreesudhan Ramakrish Ramkumardee14bc2012-11-14 14:24:19 -080014/include/ "msm8974-camera-sensor-liquid.dtsi"
Sreesudhan Ramakrish Ramkumar39074612012-10-11 20:48:51 -070015
Stepan Moskovchenko4dd8bab2013-07-15 20:38:12 -070016/ {
17 aliases {
18 serial0 = &blsp1_uart1;
19 };
20};
21
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070022&soc {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070023 serial@f991e000 {
24 status = "ok";
25 };
26
Manoj Rao6e2ca2e2013-08-13 22:11:57 -070027 qcom,mdss_mdp@fd900000 {
28 qcom,mdss-pref-prim-intf = "edp";
29 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070030
Manish Kumarc410a062013-12-10 22:20:09 -080031 qcom,mdss_edp@fd923400 {
32 status = "ok";
33 qcom,cont-splash-enabled;
Ping Lief53e932014-01-07 14:31:56 -080034 qcom,panel-lpg-channel = <7>; /* LPG Channel 8 */
35 qcom,panel-pwm-period = <53>;
Manish Kumarc410a062013-12-10 22:20:09 -080036 };
37
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070038 i2c@f9967000 {
39 battery@b {
40 compatible = "ti,bq28400-battery";
41 reg = <0xb>;
Eugene Yasmand72132d2013-01-20 13:00:52 +020042 ti,temp-cold = <2>; /* degree celsius */
43 ti,temp-hot = <43>; /* degree celsius */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070044 };
Amir Samuelov6b72fc62012-11-01 20:05:04 +020045
46 charger@2b {
47 compatible = "summit,smb350-charger";
48 reg = <0x2b>; /* 0x56/0x57 */
49 summit,stat-gpio = <&pm8941_gpios 30 0x00>;
50 summit,chg-en-n-gpio = <&pm8941_gpios 10 0x00>;
51 summit,chg-susp-n-gpio = <&pm8941_gpios 13 0x00>;
52 summit,chg-current-ma = <1600>;
53 summit,term-current-ma = <300>;
54 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070055 };
56
57 gpio_keys {
58 compatible = "gpio-keys";
59 input-name = "gpio-keys";
60
61 home {
62 label = "home";
63 gpios = <&pm8941_gpios 1 0x1>;
64 linux,input-type = <1>;
65 linux,code = <102>;
66 gpio-key,wakeup;
67 debounce-interval = <15>;
68 };
69
70 vol_down {
71 label = "volume_down";
72 gpios = <&pm8941_gpios 2 0x1>;
73 linux,input-type = <1>;
74 linux,code = <114>;
75 gpio-key,wakeup;
76 debounce-interval = <15>;
77 };
78
79 vol_up {
80 label = "volume_up";
81 gpios = <&pm8941_gpios 5 0x1>;
82 linux,input-type = <1>;
83 linux,code = <115>;
84 gpio-key,wakeup;
85 debounce-interval = <15>;
86 };
87 };
88
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070089 qcom,hdmi_tx@fd922100 {
90 status = "ok";
Ujwal Patel1a835132012-11-14 22:11:59 -080091
92 qcom,hdmi-tx-mux-sel = <&pm8841_mpps 3 0>;
93 qcom,hdmi-tx-mux-en = <&pm8841_mpps 4 0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070094 };
95
Mohan Pallaka8cc86d62012-11-09 11:29:47 +053096 drv2667_vreg: drv2667_vdd_vreg {
97 compatible = "regulator-fixed";
98 regulator-name = "vdd_drv2667";
99 };
100
Mohan Pallaka28f9fb42012-09-17 15:25:23 +0530101 i2c@f9967000 {
102 ti-drv2667@59 {
103 compatible = "ti,drv2667";
104 reg = <0x59>;
105 vdd-supply = <&drv2667_vreg>;
106 vdd-i2c-supply = <&pm8941_s3>;
107 ti,label = "vibrator";
108 ti,gain = <2>;
109 ti,idle-timeout-ms = <20>;
110 ti,max-runtime-ms = <15000>;
111 ti,mode = <2>;
112 ti,wav-seq = [
113 /* wave form id */
114 01
115 /* header size, start and stop bytes */
116 05 80 06 00 09
117 /* repeat, amp, freq, duration, envelope */
118 01 ff 19 02 00];
119 };
120 };
121
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700122 i2c@f9924000 {
123 atmel_mxt_ts@4a {
124 compatible = "atmel,mxt-ts";
125 reg = <0x4a>;
126 interrupt-parent = <&msmgpio>;
127 interrupts = <61 0x2>;
128 vdd_ana-supply = <&pm8941_l22>;
129 vcc_i2c-supply = <&pm8941_s3>;
130 atmel,reset-gpio = <&msmgpio 60 0x00>;
131 atmel,irq-gpio = <&msmgpio 61 0x00>;
132 atmel,panel-coords = <0 0 1080 1920>;
133 atmel,display-coords = <0 0 1080 1920>;
Sreenivasulu Chalam Charlabf7f6212012-10-17 22:10:24 +0530134 atmel,i2c-pull-up;
Amy Maloche71880c52013-01-04 11:56:23 -0800135 atmel,no-force-update;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700136 atmel,cfg_1 {
137 atmel,family-id = <0xa2>;
138 atmel,variant-id = <0x00>;
139 atmel,version = <0x11>;
140 atmel,build = <0xaa>;
141 atmel,config = [
142 /* Object 6, Instance = 0 */
143 00 00 00 00 00 00
144 /* Object 38, Instance = 0 */
145 16 00 00 14 09 0C 00 00 00 00
146 00 00 00 00 00 00 00 00 00 00
147 00 00 00 00 00 00 00 00 00 00
148 00 00 00 00 00 00 00 00 00 00
149 00 00 00 00 00 00 00 00 00 00
150 00 00 00 00 00 00 00 00 00 00
151 00 00 00 00
152 /* Object 7, Instance = 0 */
153 FF FF 0A 03
154 /* Object 8, Instance = 0 */
155 5F 00 14 14 00 00 00 01 00 00
156 /* Object 9, Instance = 0 */
157 8F 00 00 20 34 00 87 3C 08 03
158 00 05 03 80 0A 14 14 0A 80 07
159 38 04 00 00 00 00 00 00 00 00
160 0F 0F 2E 33 02 00
161 /* Object 15, Instance = 0 */
162 00 00 00 00 00 00 00 00 00 00
163 00
164 /* Object 18, Instance = 0 */
165 04 00
166 /* Object 24, Instance = 0 */
167 00 00 00 00 00 00 00 00 00 00
168 00 00 00 00 00 00 00 00 00
169 /* Object 25, Instance = 0 */
170 00 00 54 6F F0 55 00 00 00 00
171 00 00 00 00 00
172 /* Object 27, Instance = 0 */
173 00 00 00 00 00 00 00
174 /* Object 40, Instance = 0 */
175 00 14 14 14 14
176 /* Object 42, Instance = 0 */
177 20 14 00 00 00 14 11 00 03 00
178 /* Object 43, Instance = 0 */
179 09 00 01 01 91 00 80 00 00 00
180 00 00
181 /* Object 46, Instance = 0 */
182 00 00 10 10 00 00 01 00 00 0F
183 0A
184 /* Object 47, Instance = 0 */
185 00 14 23 02 05 1E 01 78 03 10
186 00 00 0C 00 00 00 00 00 00 00
187 00 00
188 /* Object 55, Instance = 0 */
189 00 00 00 00 00 00 00
190 /* Object 56, Instance = 0 */
191 02 00 01 30 13 14 14 14 15 15
192 15 15 15 15 15 16 16 16 16 16
193 16 16 16 16 16 15 14 14 14 14
194 15 14 14 14 14 13 00 00 01 02
195 05 05 00 00 00 00 00 00 00 00
196 00
197 /* Object 57, Instance = 0 */
198 00 00 00
199 /* Object 61, Instance = 0 */
200 00 00 00 00 00
201 /* Object 62, Instance = 0 */
202 00 01 03 01 00 00 00 00 00 0A
203 0F 14 19 23 05 00 0A 05 05 69
204 23 23 34 11 64 06 06 04 40 00
205 00 00 00 00 69 4B 02 00 00 80
206 0A 14 14 18 18 10 10 80 00 80
207 00 00 0F 02 00 00 00 00 00 00
208 00 00 00 00 00 00 00 00 00 00
209 00 00 00 00
210 /* Object 63, Instance = 0 */
211 00 00 00 00 00 00 00 00 00 00
212 00 00
213 ];
214 };
Amy Malochef78eacc2013-02-25 19:30:00 -0800215 atmel,cfg_2 {
216 atmel,family-id = <0xa2>;
217 atmel,variant-id = <0x00>;
218 atmel,version = <0x11>;
219 atmel,build = <0xaa>;
220 atmel,config = [
221 /* Object 6, Instance = 0 */
222 00 00 00 00 00 00
223 /* Object 38, Instance = 0 */
Amy Maloche3f8e5ec2013-08-07 15:16:53 -0700224 19 04 00 07 08 0D 00 00 00 00
Amy Malochef78eacc2013-02-25 19:30:00 -0800225 00 00 00 00 00 00 00 00 00 00
226 00 00 00 00 00 00 00 00 00 00
227 00 00 00 00 00 00 00 00 00 00
228 00 00 00 00 00 00 00 00 00 00
229 00 00 00 00 00 00 00 00 00 00
230 00 00 00 00
231 /* Object 7, Instance = 0 */
232 20 08 32 C3
233 /* Object 8, Instance = 0 */
234 41 00 14 14 00 00 00 01 00 00
235 /* Object 9, Instance = 0 */
236 8F 00 00 20 34 00 87 4B 02 03
Amy Maloche77b64f92013-05-29 15:51:17 -0700237 00 05 03 41 0A 14 14 0A 80 07
238 38 04 00 00 03 03 08 28 02 3C
Amy Malochef78eacc2013-02-25 19:30:00 -0800239 0F 0F 2E 33 01 00
240 /* Object 15, Instance = 0 */
241 00 00 00 00 00 00 00 00 00 00
242 00
243 /* Object 18, Instance = 0 */
244 04 00
245 /* Object 24, Instance = 0 */
246 00 00 00 00 00 00 00 00 00 00
247 00 00 00 00 00 00 00 00 00
248 /* Object 25, Instance = 0 */
249 00 00 54 6F F0 55 00 00 00 00
Amy Maloche3f8e5ec2013-08-07 15:16:53 -0700250 00 00 00 00 0C
Amy Malochef78eacc2013-02-25 19:30:00 -0800251 /* Object 27, Instance = 0 */
252 00 00 00 00 00 00 00
253 /* Object 40, Instance = 0 */
254 00 14 14 14 14
255 /* Object 42, Instance = 0 */
256 23 32 14 14 80 00 0A 00 05 05
257 /* Object 43, Instance = 0 */
258 08 00 01 01 91 00 80 00 00 00
259 00 00
260 /* Object 46, Instance = 0 */
261 00 00 18 18 00 00 01 00 00 0F
262 0A
263 /* Object 47, Instance = 0 */
264 00 14 28 02 05 28 01 78 03 10
265 00 00 0C 00 00 00 00 00 00 00
266 00 00
267 /* Object 55, Instance = 0 */
268 00 00 00 00 00 00 00
269 /* Object 56, Instance = 0 */
270 01 00 00 30 13 14 14 14 15 15
271 15 15 15 15 15 16 16 16 16 16
272 16 16 16 16 16 15 14 14 14 14
273 15 14 14 14 14 13 03 20 03 01
274 0A 04 00 00 00 00 00 00 00 00
275 1A
276 /* Object 57, Instance = 0 */
277 00 00 00
278 /* Object 61, Instance = 0 */
279 00 00 00 00 00
280 /* Object 62, Instance = 0 */
281 00 03 00 07 02 00 00 00 00 00
282 0F 17 23 2D 05 00 05 03 03 69
283 14 14 34 11 64 06 06 04 40 00
284 00 00 00 00 69 3C 02 04 01 00
285 0A 14 14 03 03 03 03 00 00 00
286 00 64 1E 01 00 00 00 00 00 00
287 00 00 00 00 00 00 00 00 00 00
288 00 00 00 00
289 /* Object 63, Instance = 0 */
290 00 00 00 00 00 00 00 00 00 00
291 00 00
292 /* Object 65, Instance = 0 */
293 00 00 00 00 00 00 00 00 00 00
294 00 00 00 00 00 00 00
295 /* Object 66, Instance = 0 */
296 00 00 00 00 00
297 ];
298 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700299 };
300 };
301
302 ext_5v: regulator-smb210 {
303 compatible = "regulator-fixed";
304 regulator-name = "ext_5v";
305 gpio = <&pm8941_mpps 2 0>;
Eugene Yasman8d2d68d2012-11-13 15:00:58 +0200306 startup-delay-us = <12000>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700307 enable-active-high;
308 };
Tanya Finkelb4fea122012-11-14 14:23:37 +0200309
Ram Mohan Korukonda55839202013-04-20 23:39:17 -0700310 ath_chip_pwd_l: ath_chip_reset {
311 compatible = "regulator-fixed";
312 regulator-name = "ath_chip_pwd_l";
313 gpio = <&pm8941_gpios 33 0>;
314 enable-active-high;
315 };
316
Pradeep Panigrahic2a86fe2013-02-22 10:49:01 +0530317 bt_ar3002 {
318 compatible = "qca,ar3002";
319 qca,bt-reset-gpio = <&pm8941_gpios 34 0>;
Ram Mohan Korukonda55839202013-04-20 23:39:17 -0700320 qca,bt-chip-pwd-supply = <&ath_chip_pwd_l>;
Ming-yi Linc7820422014-02-04 23:17:00 +0800321 qca,bt-vdd-io-supply = <&pm8941_l10>;
Ram Mohan Korukonda55839202013-04-20 23:39:17 -0700322 qca,bt-vdd-pa-supply = <&pm8941_l19>;
Pradeep Panigrahic2a86fe2013-02-22 10:49:01 +0530323 };
324
Ram Mohan Korukondae7baad92013-03-13 02:23:45 +0530325 bt_ar3002_sleep {
326 compatible = "qca,ar3002_bluesleep";
327 host-wake-gpio = <&msmgpio 79 0>;
328 ext-wake-gpio = <&msmgpio 51 0>;
329 interrupt-parent = <&msmgpio>;
330 interrupts = <79 2>;
331 interrupt-names = "host_wake";
332 };
333
Tanya Finkelb4fea122012-11-14 14:23:37 +0200334 sound {
335 qcom,model = "msm8974-taiko-liquid-snd-card";
Tanya Finkel4ecb6a02012-11-30 22:04:42 +0200336
337 qcom,audio-routing =
338 "RX_BIAS", "MCLK",
339 "LDO_H", "MCLK",
340 "Lineout_1 amp", "LINEOUT1",
341 "Lineout_3 amp", "LINEOUT3",
342 "Lineout_2 amp", "LINEOUT2",
343 "Lineout_4 amp", "LINEOUT4",
Baruch Eruchimovitch212b1ac2013-04-17 20:28:54 +0300344 "SPK_ultrasound amp", "SPK_OUT",
Tanya Finkel88340112013-01-21 15:38:55 +0200345 "AMIC1", "MIC BIAS4 External",
346 "MIC BIAS4 External", "Analog Mic4",
Tanya Finkel4ecb6a02012-11-30 22:04:42 +0200347 "AMIC2", "MIC BIAS2 External",
348 "MIC BIAS2 External", "Headset Mic",
349 "AMIC3", "MIC BIAS2 External",
350 "MIC BIAS2 External", "ANCRight Headset Mic",
351 "AMIC4", "MIC BIAS2 External",
352 "MIC BIAS2 External", "ANCLeft Headset Mic",
Tanya Finkel88340112013-01-21 15:38:55 +0200353 "AMIC5", "MIC BIAS1 External",
354 "MIC BIAS1 External", "Analog Mic6",
355 "AMIC6", "MIC BIAS1 External",
356 "MIC BIAS1 External", "Analog Mic7",
Tanya Finkel70e29ed2012-12-06 21:51:16 +0200357 "DMIC1", "MIC BIAS3 External",
Tanya Finkel88340112013-01-21 15:38:55 +0200358 "MIC BIAS3 External", "Digital Mic1",
Tanya Finkel70e29ed2012-12-06 21:51:16 +0200359 "DMIC2", "MIC BIAS3 External",
Tanya Finkel88340112013-01-21 15:38:55 +0200360 "MIC BIAS3 External", "Digital Mic2",
Tanya Finkel70e29ed2012-12-06 21:51:16 +0200361 "DMIC3", "MIC BIAS2 External",
Tanya Finkel88340112013-01-21 15:38:55 +0200362 "MIC BIAS2 External", "Digital Mic3",
Tanya Finkel4ecb6a02012-11-30 22:04:42 +0200363 "DMIC4", "MIC BIAS3 External",
364 "MIC BIAS3 External", "Digital Mic4",
Tanya Finkel70e29ed2012-12-06 21:51:16 +0200365 "DMIC5", "MIC BIAS2 External",
Tanya Finkel88340112013-01-21 15:38:55 +0200366 "MIC BIAS2 External", "Digital Mic5",
Tanya Finkel70e29ed2012-12-06 21:51:16 +0200367 "DMIC6", "MIC BIAS2 External",
Tanya Finkel88340112013-01-21 15:38:55 +0200368 "MIC BIAS2 External", "Digital Mic6";
Tanya Finkel4ecb6a02012-11-30 22:04:42 +0200369
Tanya Finkelb4fea122012-11-14 14:23:37 +0200370 qcom,ext-spk-amp-supply = <&ext_5v>;
371 qcom,ext-spk-amp-gpio = <&pm8841_mpps 1 0>;
Tanya Finkelca619322013-01-20 15:43:58 +0200372 qcom,dock-plug-det-irq = <&pm8841_mpps 2 0>;
Baruch Eruchimovitch212b1ac2013-04-17 20:28:54 +0300373 qcom,ext-ult-spk-amp-gpio = <&pm8941_gpios 6 0>;
Kiran Kandi52650322012-12-11 15:49:39 -0800374 qcom,hdmi-audio-rx;
Banajit Goswamif8ce89a2013-04-09 18:02:15 -0700375
376 qcom,prim-auxpcm-gpio-clk = <&msmgpio 74 0>;
377 qcom,prim-auxpcm-gpio-sync = <&msmgpio 75 0>;
378 qcom,prim-auxpcm-gpio-din = <&msmgpio 76 0>;
379 qcom,prim-auxpcm-gpio-dout = <&msmgpio 77 0>;
380 qcom,prim-auxpcm-gpio-set = "prim-gpio-tert";
Tanya Finkelb4fea122012-11-14 14:23:37 +0200381 };
Eugene Yasman588351a2012-12-10 11:37:17 +0200382
Ming-yi Lina6cf8642014-02-04 22:59:26 +0800383 hsic_host: hsic@f9a00000 {
384 compatible = "qcom,hsic-host";
385 reg = <0xf9a00000 0x400>;
386 #address-cells = <0>;
387 interrupt-parent = <&hsic_host>;
388 interrupts = <0 1 2>;
389 #interrupt-cells = <1>;
390 interrupt-map-mask = <0xffffffff>;
391 interrupt-map = <0 &intc 0 136 0
392 1 &intc 0 148 0
393 2 &msmgpio 144 0x8>;
394 interrupt-names = "core_irq", "async_irq", "wakeup";
395 hsic_vdd_dig-supply = <&pm8841_s2_corner>;
396 HSIC_GDSC-supply = <&gdsc_usb_hsic>;
397 hsic,strobe-gpio = <&msmgpio 144 0x00>;
398 hsic,data-gpio = <&msmgpio 145 0x00>;
399 hsic,ignore-cal-pad-config;
400 hsic,strobe-pad-offset = <0x2050>;
401 hsic,data-pad-offset = <0x2054>;
402 qcom,phy-susp-sof-workaround;
403 hsic,vdd-voltage-level = <1 5 7>;
Eugene Yasman588351a2012-12-10 11:37:17 +0200404
Ming-yi Lina6cf8642014-02-04 22:59:26 +0800405 qcom,msm-bus,name = "hsic";
406 qcom,msm-bus,num-cases = <2>;
407 qcom,msm-bus,num-paths = <1>;
408 qcom,msm-bus,vectors-KBps =
409 <85 512 0 0>,
410 <85 512 40000 160000>;
Eugene Yasman588351a2012-12-10 11:37:17 +0200411 };
Ming-yi Linefc79902013-05-27 15:48:14 +0800412
413 wlan0: qca,wlan {
414 compatible = "qca,ar6004-hsic";
415 qcom,msm-bus,name = "wlan";
416 qca,wifi-chip-pwd-supply = <&ath_chip_pwd_l>;
417 qca,wifi-vddpa-supply = <&pm8941_l19>;
418 qca,wifi-vddio-supply = <&pm8941_l10>;
419 qcom,msm-bus,num-cases = <5>;
420 qcom,msm-bus,active-only = <0>;
421 qcom,msm-bus,num-paths = <1>;
422 qcom,msm-bus,vectors-KBps =
423 <85 512 0 0>,
424 <85 512 40000 160000>,
425 <85 512 40000 320000>,
426 <85 512 40000 480000>,
427 <85 512 40000 800000>;
428 };
429
430 wlan_sdio:qca,wlan_sdio {
431 compatible = "qca,ar6004-sdio";
432 qcom,msm-bus,name = "wlan_sdio";
433 qca,wifi-chip-pwd-supply = <&ath_chip_pwd_l>;
434 };
Ming-yi Lin7252fb62014-02-04 23:14:18 +0800435
436 qcom,pronto@fb21b000 {
437 status = "disabled";
438 };
439
440 qcom,iris-fm {
441 status = "disabled";
442 };
443
444 qcom,wcnss-wlan@fb000000 {
445 status = "disabled";
446 };
447
448 qcom,smd-wcnss {
449 status = "disabled";
450 };
451
452 qcom,smsm-wcnss {
453 status = "disabled";
454 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700455};
456
Ming-yi Linc7820422014-02-04 23:17:00 +0800457&pm8941_l19 {
458 regulator-min-microvolt = <3300000>;
459 regulator-max-microvolt = <3300000>;
460 qcom,init-voltage = <3300000>;
461};
462
463&pm8941_l10 {
464 regulator-min-microvolt = <1800000>;
465 regulator-max-microvolt = <1800000>;
466 qcom,init-voltage = <1800000>;
467};
468
Adrian Salido-Moreno9954ca62013-01-30 14:39:04 -0800469&mdss_fb0 {
470 qcom,memory-reservation-size = <0x1000000>; /* size 16MB */
471};
472
Mayank Rana35f27802013-02-14 18:22:50 +0530473&uart7 {
474 status = "ok";
475 qcom,tx-gpio = <&msmgpio 41 0x00>;
476 qcom,rx-gpio = <&msmgpio 42 0x00>;
477 qcom,cts-gpio = <&msmgpio 43 0x00>;
478 qcom,rfr-gpio = <&msmgpio 44 0x00>;
479};
480
Manu Gautam5ee54032012-11-02 15:17:32 +0530481&usb3 {
David Keitelf2170cc2013-02-20 17:49:03 -0800482 qcom,otg-capability;
Manu Gautam5ee54032012-11-02 15:17:32 +0530483};
484
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700485&pm8941_mvs2 {
486 parent-supply = <&ext_5v>;
487};
488
489&pm8941_gpios {
490 gpio@c000 { /* GPIO 1 */
491 qcom,mode = <0>;
492 qcom,pull = <0>;
493 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700494 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700495 };
496
497 gpio@c100 { /* GPIO 2 */
498 qcom,mode = <0>;
499 qcom,pull = <0>;
500 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700501 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700502 };
503
504 gpio@c200 { /* GPIO 3 */
505 };
506
507 gpio@c300 { /* GPIO 4 */
508 };
509
510 gpio@c400 { /* GPIO 5 */
511 qcom,mode = <0>;
512 qcom,pull = <0>;
513 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700514 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700515 };
516
517 gpio@c500 { /* GPIO 6 */
Baruch Eruchimovitch212b1ac2013-04-17 20:28:54 +0300518 /* ULTRASOUND_EN_1 PA AB enable */
519 qcom,mode = <1>; /* DIG_OUT */
520 qcom,output-type = <0>; /* CMOS */
521 qcom,pull = <4>; /* PULL_DOWN */
522 qcom,vin-sel = <0>; /* VPH */
523 qcom,out-strength = <2>; /* STRENGTH_MED */
524 qcom,src-sel = <0>; /* CONSTANT */
525 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700526 };
527
528 gpio@c600 { /* GPIO 7 */
529 };
530
531 gpio@c700 { /* GPIO 8 */
Eugene Yasman588351a2012-12-10 11:37:17 +0200532 /* HSIC_HUB-RESET */
533 qcom,mode = <1>; /* DIG_OUT */
534 qcom,pull = <5>; /* PULL_NO */
535 qcom,out-strength = <2>; /* STRENGTH_MED */
536 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700537 };
538
539 gpio@c800 { /* GPIO 9 */
540 };
541
542 gpio@c900 { /* GPIO 10 */
Amir Samuelov6b72fc62012-11-01 20:05:04 +0200543 /* SMB350-CHG-EN-N */
544 qcom,mode = <1>; /* DIG_OUT */
545 qcom,output-type = <0>; /* CMOS */
546 qcom,pull = <5>; /* PULL_NO */
547 qcom,vin-sel = <0>; /* VPH */
548 qcom,out-strength = <2>; /* STRENGTH_MED */
549 qcom,src-sel = <0>; /* CONSTANT */
550 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700551 };
552
553 gpio@ca00 { /* GPIO 11 */
554 };
555
556 gpio@cb00 { /* GPIO 12 */
557 };
558
559 gpio@cc00 { /* GPIO 13 */
Amir Samuelov6b72fc62012-11-01 20:05:04 +0200560 /* SMB350-CHG-SUSP-N */
561 qcom,mode = <1>; /* DIG_OUT */
562 qcom,output-type = <0>; /* CMOS */
563 qcom,pull = <5>; /* PULL_NO */
564 qcom,vin-sel = <0>; /* VPH */
565 qcom,out-strength = <2>; /* STRENGTH_MED */
566 qcom,src-sel = <0>; /* CONSTANT */
567 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700568 };
569
570 gpio@cd00 { /* GPIO 14 */
571 };
572
573 gpio@ce00 { /* GPIO 15 */
574 qcom,mode = <1>;
575 qcom,output-type = <0>;
576 qcom,pull = <5>;
577 qcom,vin-sel = <2>;
Kiran Kandi1a35a222013-05-02 16:53:53 -0700578 qcom,out-strength = <1>;
Michael Bohand734fb22012-10-30 14:19:22 -0700579 qcom,src-sel = <2>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700580 qcom,master-en = <1>;
581 };
582
583 gpio@cf00 { /* GPIO 16 */
Eugene Yasman588351a2012-12-10 11:37:17 +0200584 /* HSIC_HUB-INT_N */
585 qcom,mode = <1>;
586 qcom,output-type = <0>;
587 qcom,pull = <5>;
588 qcom,vin-sel = <2>;
589 qcom,out-strength = <3>;
590 qcom,src-sel = <2>;
591 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700592 };
593
594 gpio@d000 { /* GPIO 17 */
595 };
596
597 gpio@d100 { /* GPIO 18 */
598 };
599
600 gpio@d200 { /* GPIO 19 */
601 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
602 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
603 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
604 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
605 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
Michael Bohand734fb22012-10-30 14:19:22 -0700606 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700607 qcom,master-en = <1>;
608 };
609
610 gpio@d300 { /* GPIO 20 */
611 };
612
613 gpio@d400 { /* GPIO 21 */
614 };
615
616 gpio@d500 { /* GPIO 22 */
617 };
618
619 gpio@d600 { /* GPIO 23 */
620 };
621
622 gpio@d700 { /* GPIO 24 */
623 };
624
625 gpio@d800 { /* GPIO 25 */
626 };
627
628 gpio@d900 { /* GPIO 26 */
629 };
630
631 gpio@da00 { /* GPIO 27 */
632 };
633
634 gpio@db00 { /* GPIO 28 */
635 };
636
637 gpio@dc00 { /* GPIO 29 */
638 qcom,pull = <0>; /* set to default pull */
639 qcom,master-en = <1>;
640 qcom,vin-sel = <2>; /* select 1.8 V source */
641 };
642
643 gpio@dd00 { /* GPIO 30 */
Amir Samuelov6b72fc62012-11-01 20:05:04 +0200644 /* SMB350-STAT */
645 qcom,mode = <0>; /* DIG_IN */
646 qcom,pull = <5>; /* PULL_NO */
647 qcom,vin-sel = <2>; /* S3 1.8V */
648 qcom,src-sel = <0>; /* CONSTANT */
649 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700650 };
651
652 gpio@de00 { /* GPIO 31 */
653 };
654
655 gpio@df00 { /* GPIO 32 */
656 };
657
658 gpio@e000 { /* GPIO 33 */
Alexander Lifshitz7cddb5e2012-11-14 15:46:37 +0200659 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
660 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
661 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
662 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
663 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
664 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
665 qcom,invert = <1>;
666 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700667 };
668
669 gpio@e100 { /* GPIO 34 */
Alexander Lifshitz7cddb5e2012-11-14 15:46:37 +0200670 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
671 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
672 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
673 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
674 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
675 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
676 qcom,invert = <0>;
677 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700678 };
679
680 gpio@e200 { /* GPIO 35 */
681 };
682
683 gpio@e300 { /* GPIO 36 */
684 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
685 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
686 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
687 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
688 qcom,out-strength = <3>; /* QPNP_PIN_OUT_STRENGTH_HIGH */
Michael Bohand734fb22012-10-30 14:19:22 -0700689 qcom,src-sel = <3>; /* QPNP_PIN_SEL_FUNC_2 */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700690 qcom,master-en = <1>;
691 };
692};
693
694&pm8941_mpps {
695
696 mpp@a000 { /* MPP 1 */
Michael Bohanbea1f582013-03-21 17:29:49 -0700697 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700698 };
699
700 mpp@a100 { /* MPP 2 */
701 /* ext_5v regulator enable */
702 qcom,mode = <1>; /* Digital output */
703 qcom,invert = <0>; /* Output low initially */
704 qcom,vin-sel = <2>; /* PM8941 S3 = 1.8 V */
Michael Bohand734fb22012-10-30 14:19:22 -0700705 qcom,src-sel = <0>; /* Constant */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700706 qcom,master-en = <1>; /* Enable MPP */
707 };
708
709 mpp@a200 { /* MPP 3 */
710 };
711
712 mpp@a300 { /* MPP 4 */
713 };
714
715 mpp@a400 { /* MPP 5 */
716 /* SPI_ETH config */
717 qcom,mode = <1>; /* DIG_OUT */
718 qcom,output-type = <0>; /* CMOS */
719 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700720 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700721 qcom,master-en = <1>; /* ENABLE MPP */
722 };
723
724 mpp@a500 { /* MPP 6 */
725 /* SPI_ETH_RST config */
726 qcom,mode = <1>; /* DIG_OUT */
727 qcom,output-type = <0>; /* CMOS */
728 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700729 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700730 qcom,master-en = <1>; /* ENABLE MPP */
731 };
732
733 mpp@a600 { /* MPP 7 */
734 };
735
736 mpp@a700 { /* MPP 8 */
737 };
738};
739
740&pm8841_mpps {
741
742 mpp@a000 { /* MPP 1 */
Tanya Finkelb4fea122012-11-14 14:23:37 +0200743 /* CLASS_D_EN speakers PA */
744 qcom,mode = <1>; /* DIG_OUT */
745 qcom,output-type = <0>; /* PNP_PIN_OUT_BUF_CMOS */
746 qcom,vin-sel = <2>; /* S3A 1.8v */
747 qcom,src-select = <0>; /* CONSTANT */
748 qcom,master-en = <1>; /* ENABLE MPP */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700749 };
750
751 mpp@a100 { /* MPP 2 */
Tanya Finkelca619322013-01-20 15:43:58 +0200752 /* DOCK_PLUG_DET speakers+docking detect irq*/
753 qcom,mode = <0>; /* DIG_IN */
754 qcom,vin-sel = <2>; /* S3A 1.8v */
755 qcom,src-sel = <0>; /* CONSTANT */
756 qcom,master-en = <1>; /* ENABLE MPP */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700757 };
758
759 mpp@a200 { /* HDMI_MUX_SEL MPP 3*/
760 status = "ok";
761 qcom,mode = <1>; /* DIG_OUT */
762 qcom,output-type = <0>; /* CMOS */
763 qcom,vin-sel = <2>; /* PM8841_S3A 1.8V */
Michael Bohand734fb22012-10-30 14:19:22 -0700764 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700765 qcom,master-en = <1>; /* ENABLE MPP */
766 };
767
768 mpp@a300 { /* HDMI_MUX_EN MPP 4*/
769 status = "ok";
770 qcom,mode = <1>; /* DIG_OUT */
771 qcom,output-type = <0>; /* CMOS */
772 qcom,vin-sel = <0>; /* PM8841_VPH 3.4V */
Michael Bohand734fb22012-10-30 14:19:22 -0700773 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700774 qcom,master-en = <1>; /* ENABLE MPP */
775 };
Sreenivasulu Chalam Charlabf7f6212012-10-17 22:10:24 +0530776};
Siddartha Mohanadosse9f24de2012-11-02 17:13:18 -0700777
Joonwoo Parkdf0d5a92012-12-12 14:08:32 -0800778&vph_pwr_vreg {
779 status = "ok";
780};
781
Tanya Finkel5f9a3d12013-01-05 01:25:17 +0200782&slim_msm {
783 taiko_codec {
Kiran Kandi294fc322013-05-15 13:10:18 -0700784 qcom,cdc-micbias1-ext-cap;
Tanya Finkel5f9a3d12013-01-05 01:25:17 +0200785 qcom,cdc-micbias2-ext-cap;
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800786 qcom,cdc-micbias3-ext-cap;
Kiran Kandi294fc322013-05-15 13:10:18 -0700787 qcom,cdc-micbias4-ext-cap;
Joonwoo Parkdf0d5a92012-12-12 14:08:32 -0800788
789 /*
790 * Liquid has external spkrdrv supply. Give a dummy supply to
791 * make codec driver's happy.
792 */
793 cdc-vdd-spkdrv-supply = <&vph_pwr_vreg>;
794 qcom,cdc-vdd-spkdrv-voltage = <0 0>;
795 qcom,cdc-vdd-spkdrv-current = <0>;
796
797 qcom,cdc-on-demand-supplies = "cdc-vdd-spkdrv";
Tanya Finkel5f9a3d12013-01-05 01:25:17 +0200798 };
799};
800
Siddartha Mohanadosse9f24de2012-11-02 17:13:18 -0700801&spi_epm {
802 epm-adc@0 {
803 compatible = "cy,epm-adc-cy8c5568lti-114";
804 reg = <0>;
805 interrupt-parent = <&msmgpio>;
806 spi-max-frequency = <960000>;
807 qcom,channels = <31>;
Siddartha Mohanadossc4ae9c22013-06-24 17:11:25 -0700808 qcom,gain = <50 50 50 50 50 100 50 100 50 50
809 100 50 50 50 50 50 50 50 50 50
Siddartha Mohanadosse9f24de2012-11-02 17:13:18 -0700810 50 50 50 100 50 50 50 1 1 1
811 1>;
Siddartha Mohanadossc4ae9c22013-06-24 17:11:25 -0700812 qcom,rsense = <50 100 500 10 25 1000 40 200 200 5
813 500 500 75 10 5 25 33 75 25 200
814 10 25 33 100 10 10 3 1000 1000 1000
815 1000>;
Siddartha Mohanadosse9f24de2012-11-02 17:13:18 -0700816 qcom,channel-type = <0xf0000000>;
817 };
818};
Asaf Penso001cc3a2013-01-21 21:15:10 +0200819
David Collins73cdb632013-06-17 17:24:45 -0700820&pm8941_lsid1 {
821 qcom,leds@d000 {
822 qcom,rgb_2 {
823 status = "ok";
824 qcom,default-state = "on";
825 qcom,turn-off-delay-ms = <1000>;
Asaf Penso001cc3a2013-01-21 21:15:10 +0200826 };
827 };
828};
David Keitelf2170cc2013-02-20 17:49:03 -0800829
830&pm8941_chg {
831 status = "ok";
David Keitela2f8ef92013-05-16 19:32:52 -0700832 otg-parent-supply = <&ext_5v>;
David Keitelf2170cc2013-02-20 17:49:03 -0800833
David Keitele89d4782013-03-27 11:29:59 -0700834 qcom,charging-disabled;
David Keitelf2170cc2013-02-20 17:49:03 -0800835
David Keitele89d4782013-03-27 11:29:59 -0700836 qcom,chgr@1000 {
David Keitelf2170cc2013-02-20 17:49:03 -0800837 status = "ok";
838 };
839
David Keitele89d4782013-03-27 11:29:59 -0700840 qcom,buck@1100 {
David Keitelf2170cc2013-02-20 17:49:03 -0800841 status = "ok";
842 };
843
David Keitele89d4782013-03-27 11:29:59 -0700844 qcom,usb-chgpth@1300 {
David Keitelf2170cc2013-02-20 17:49:03 -0800845 status = "ok";
846 };
847
David Keitele89d4782013-03-27 11:29:59 -0700848 qcom,dc-chgpth@1400 {
Eugene Yasmanfc8ffd22013-06-27 13:21:15 +0300849 status = "disabled";
David Keitelf2170cc2013-02-20 17:49:03 -0800850 };
851
David Keitele89d4782013-03-27 11:29:59 -0700852 qcom,boost@1500 {
David Keitelf2170cc2013-02-20 17:49:03 -0800853 status = "ok";
854 };
855
856 qcom,chg-misc@1600 {
857 status = "ok";
858 };
859};
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700860
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800861&sdcc1 {
862 status = "disabled";
863};
864
865&sdcc2 {
866 status = "disabled";
867};
868
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700869&sdhc_1 {
870 vdd-supply = <&pm8941_l20>;
871 vdd-io-supply = <&pm8941_s3>;
872
Sahitya Tummalad0fc2dd2013-03-27 10:34:35 +0530873 qcom,vdd-always-on;
874 qcom,vdd-lpm-sup;
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700875 qcom,vdd-voltage-level = <2950000 2950000>;
876 qcom,vdd-current-level = <800 500000>;
877
878 qcom,vdd-io-always-on;
879 qcom,vdd-io-voltage-level = <1800000 1800000>;
880 qcom,vdd-io-current-level = <250 154000>;
881
882 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
883 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700884 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700885 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
886
887 qcom,nonremovable;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800888 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700889};
890
891&sdhc_2 {
892 vdd-supply = <&pm8941_l21>;
893 vdd-io-supply = <&pm8941_l13>;
894
895 qcom,vdd-voltage-level = <2950000 2950000>;
896 qcom,vdd-current-level = <9000 800000>;
897
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700898 qcom,vdd-io-voltage-level = <1800000 2950000>;
899 qcom,vdd-io-current-level = <6 22000>;
900
901 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
902 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700903 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700904 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800905 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700906};
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700907
908/* Drive strength recommendations for clock line from hardware team is 10 mA.
909 * But since the driver has been been using the below values from the start
910 * without any problems, continue to use those.
911 */
912&sdcc1 {
913 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
914};
915
916&sdcc2 {
917 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
918};
919
920&sdhc_1 {
921 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
922};
923
924&sdhc_2 {
925 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
926};