blob: 4d10ded8503c106ed839ba72d8d90fcc79dbaba0 [file] [log] [blame]
David Collinsaf7b0ab2013-06-19 15:37:36 -07001/* Copyright (c) 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
13/include/ "msm8974pro-ac.dtsi"
14&spmi_bus {
15 pm8941_lsid0: qcom,pm8941@2 {
16 reg = <0x2>;
17 };
18 pm8941_lsid1: qcom,pm8941@3 {
19 reg = <0x3>;
20 };
21};
22/include/ "msm-pm8941.dtsi"
23
24&pma8084_vadc {
25 status = "disabled";
26};
27
28&pma8084_adc_tm {
29 status = "disabled";
30};
31
32&pm8941_lsid0 {
33 qcom,power-on@800 {
34 status = "disabled";
35 };
36
37 clkdiv@5b00 {
38 status = "disabled";
39 };
40
41 clkdiv@5c00 {
42 status = "disabled";
43 };
44
45 clkdiv@5d00 {
46 status = "disabled";
47 };
48
49 qcom,pm8941_rtc {
50 status = "disabled";
51 };
52
53 gpios {
54 status = "disabled";
55 };
56
57 mpps {
58 status = "disabled";
59 };
60};
61
62&pm8941_lsid1 {
63 pm8941_boost: regulator@a000 {
64 regulator-min-microvolt = <5000000>;
65 regulator-max-microvolt = <5000000>;
66 qcom,enable-time = <500>;
67 status = "okay";
68 };
69
70 pm8941_mvs1: regulator@8300 {
71 parent-supply = <&pm8941_chg_otg>;
72 qcom,enable-time = <1000>;
73 qcom,pull-down-enable = <1>;
74 interrupts = <0x3 0x83 0x2>;
75 interrupt-names = "ocp";
76 qcom,ocp-enable = <1>;
77 qcom,ocp-max-retries = <10>;
78 qcom,ocp-retry-delay = <30>;
79 qcom,soft-start-enable = <1>;
80 qcom,vs-soft-start-strength = <0>;
81 qcom,hpm-enable = <1>;
82 qcom,auto-mode-enable = <0>;
83 status = "okay";
84 };
85};
86
87&pma8084_mvs1 {
88 parent-supply = <&pm8941_boost>;
89};
90
91&pm8941_chg {
92 otg-parent-supply = <&pm8941_boost>;
93};
94
95&pm8941_chg_boost {
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
98 regulator-name = "8941_smbb_boost";
99};
100
101&pm8941_chg_otg {
102 regulator-name = "8941_smbb_otg";
103};
104
105/* Correct PM8941 local slave ID 0 to use global SID 4 for all interrupts. */
106&pm8941_lsid0 {
107 qcom,temp-alarm@2400 {
108 interrupts = <0x2 0x24 0x0>;
109 };
110
111 qcom,power-on@800 {
112 interrupts = <0x2 0x8 0x0>,
113 <0x2 0x8 0x1>,
114 <0x2 0x8 0x4>,
115 <0x2 0x8 0x5>;
116 interrupt-names = "kpdpwr", "resin",
117 "resin-bark", "kpdpwr-resin-bark";
118 };
119
120 qcom,bsi@1b00 {
121 interrupts = <0x2 0x1b 0x0>,
122 <0x2 0x1b 0x1>,
123 <0x2 0x1b 0x2>,
124 <0x2 0x12 0x0>;
125 interrupt-names = "err",
126 "rx",
127 "tx",
128 "batt-present";
129 };
130
131 qcom,bms {
132 qcom,bms-bms@4000 {
133 interrupts = <0x2 0x40 0x0>,
134 <0x2 0x40 0x1>,
135 <0x2 0x40 0x2>,
136 <0x2 0x40 0x3>,
137 <0x2 0x40 0x4>,
138 <0x2 0x40 0x5>,
139 <0x2 0x40 0x6>,
140 <0x2 0x40 0x7>;
141 interrupt-names = "cc_thr",
142 "ocv_for_r",
143 "good_ocv",
144 "charge_begin",
145 "ocv_thr",
146 "sw_cc_thr",
147 "vsense_avg",
148 "vsense_for_r";
149 };
150 };
151
152 qcom,charger {
153 qcom,chgr@1000 {
154 interrupts = <0x2 0x10 0x0>,
155 <0x2 0x10 0x1>,
156 <0x2 0x10 0x2>,
157 <0x2 0x10 0x3>,
158 <0x2 0x10 0x4>,
159 <0x2 0x10 0x5>,
160 <0x2 0x10 0x6>,
161 <0x2 0x10 0x7>;
162 interrupt-names = "vbat-det-lo",
163 "vbat-det-hi",
164 "chgwdog",
165 "state-change",
166 "trkl-chg-on",
167 "fast-chg-on",
168 "chg-failed",
169 "chg-done";
170 };
171
172 qcom,buck@1100 {
173 interrupts = <0x2 0x11 0x0>,
174 <0x2 0x11 0x1>,
175 <0x2 0x11 0x2>,
176 <0x2 0x11 0x3>,
177 <0x2 0x11 0x4>,
178 <0x2 0x11 0x5>,
179 <0x2 0x11 0x6>;
180 interrupt-names = "vbat-ov",
181 "vreg-ov",
182 "overtemp",
183 "vchg-loop",
184 "ichg-loop",
185 "ibat-loop",
186 "vdd-loop";
187 };
188
189 qcom,bat-if@1200 {
190 interrupts = <0x2 0x12 0x0>,
191 <0x2 0x12 0x1>,
192 <0x2 0x12 0x2>,
193 <0x2 0x12 0x3>,
194 <0x2 0x12 0x4>;
195 interrupt-names = "batt-pres",
196 "bat-temp-ok",
197 "bat-fet-on",
198 "vcp-on",
199 "psi";
200 };
201
202 qcom,usb-chgpth@1300 {
203 interrupts = <0x2 0x13 0x0>,
204 <0x2 0x13 0x1>,
205 <0x2 0x13 0x2>;
206 interrupt-names = "coarse-det-usb",
207 "usbin-valid",
208 "chg-gone";
209 };
210
211 qcom,dc-chgpth@1400 {
212 interrupts = <0x2 0x14 0x0>,
213 <0x2 0x14 0x1>;
214 interrupt-names = "coarse-det-dc",
215 "dcin-valid";
216 };
217
218 qcom,boost@1500 {
219 interrupts = <0x2 0x15 0x0>,
220 <0x2 0x15 0x1>;
221 interrupt-names = "boost-pwr-ok",
222 "limit-error";
223 };
224 };
225
226 qcom,pm8941_rtc {
227 qcom,pm8941_rtc_alarm@6100 {
228 interrupts = <0x2 0x61 0x1>;
229 };
230 };
231
232 vadc@3100 {
233 interrupts = <0x2 0x31 0x0>;
234 interrupt-names = "eoc-int-en-set";
235 };
236
237 iadc@3600 {
238 interrupts = <0x2 0x36 0x0>;
239 interrupt-names = "eoc-int-en-set";
240 };
241
242 qcom,vadc@3400 {
243 interrupts = <0x2 0x34 0x0>,
244 <0x2 0x34 0x3>,
245 <0x2 0x34 0x4>;
246 interrupt-names = "eoc-int-en-set",
247 "high-thr-en-set",
248 "low-thr-en-set";
249 };
250};