blob: 79c873fb60f35bb0d94eaa5feebb8749f3674f71 [file] [log] [blame]
Abhimanyu Kapur0458e3b2013-04-15 17:04:23 -07001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
2 *
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
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070013&soc {
Abhimanyu Kapur0458e3b2013-04-15 17:04:23 -070014 i2c@f9925000 {
15 charger@57 {
16 compatible = "summit,smb137c";
17 reg = <0x57>;
18 summit,chg-current-ma = <1500>;
19 summit,term-current-ma = <50>;
20 summit,pre-chg-current-ma = <100>;
21 summit,float-voltage-mv = <4200>;
22 summit,thresh-voltage-mv = <3000>;
23 summit,recharge-thresh-mv = <75>;
24 summit,system-voltage-mv = <4250>;
25 summit,charging-timeout = <382>;
26 summit,pre-charge-timeout = <48>;
27 summit,therm-current-ua = <10>;
28 summit,temperature-min = <4>; /* 0 C */
29 summit,temperature-max = <3>; /* 45 C */
30 };
31 };
32
33 wlan0: qca,wlan {
34 cell-index = <0>;
35 compatible = "qca,ar6004-hsic";
36 qca,chip-pwd-l-gpios = <&msmgpio 62 0>;
37 qca,pm-enable-gpios = <&pm8019_gpios 3 0x0>;
38 qca,vdd-io-supply = <&pm8019_l11>;
39 };
40
41 qca,wlan_ar6003 {
42 cell-index = <0>;
43 compatible = "qca,ar6003-sdio";
44 qca,chip-pwd-l-gpios = <&msmgpio 62 0>;
45 qca,pm-enable-gpios = <&pm8019_gpios 3 0x0>;
46 qca,vdd-io-supply = <&pm8019_l11>;
47 };
48};
49
50/* PM8019 GPIO and MPP configuration */
51&pm8019_gpios {
52 gpio@c000 { /* GPIO 1 */
53 };
54
55 gpio@c100 { /* GPIO 2 */
56 };
57
58 gpio@c200 { /* GPIO 3 */
59 };
60
61 gpio@c300 { /* GPIO 4 */
62 /* ext_2p95v regulator enable config */
63 qcom,mode = <1>; /* Digital output */
64 qcom,output-type = <0>; /* CMOS */
65 qcom,invert = <0>; /* Output low */
66 qcom,out-strength = <1>; /* Low */
67 qcom,vin-sel = <2>; /* PM8019 L11 - 1.8V */
68 qcom,src-sel = <0>; /* Constant */
69 qcom,master-en = <1>; /* Enable GPIO */
70 };
71
72 gpio@c400 { /* GPIO 5 */
73 };
74
75 gpio@c500 { /* GPIO 6 */
76 };
77};
78
79&pm8019_mpps {
80 mpp@a000 { /* MPP 1 */
81 };
82
83 mpp@a100 { /* MPP 2 */
84 };
85
86 mpp@a200 { /* MPP 3 */
87 };
88
89 mpp@a300 { /* MPP 4 */
90 /* VADC channel 19 */
91 qcom,mode = <4>;
92 qcom,ain-route = <3>; /* AMUX 8 */
93 qcom,master-en = <1>;
94 qcom,src-sel = <0>; /* Function constant */
95 qcom,invert = <1>;
96 };
97
98 mpp@a400 { /* MPP 5 */
99 };
100
101 mpp@a500 { /* MPP 6 */
102 /* channel 21 */
103 qcom,mode = <4>;
104 qcom,ain-route = <1>; /* AMUX 6 */
105 qcom,master-en = <1>;
106 qcom,src-sel = <0>; /* Function constant */
107 qcom,invert = <1>;
108 };
109};