blob: 5b44204df5fd2819a4b218107a6df206a3869df5 [file] [log] [blame]
Chetan C R820790f2020-01-29 16:53:58 +05301/* Copyright (c) 2014-2015, 2020, 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&spmi_bus {
14
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +053015 pm8909_0: qcom,pm8909@0 {
16 compatible ="qcom,spmi-pmic";
17 reg = <0x0 0>;
18 #address-cells = <2>;
19 #size-cells = <0>;
Chetan C R820790f2020-01-29 16:53:58 +053020
21 pm8909_revid: qcom,revid@100 {
22 compatible = "qcom,qpnp-revid";
23 reg = <0x100 0x100>;
24 };
25
26 pm8909_pon: qcom,power-on@800 {
27 compatible = "qcom,qpnp-power-on";
28 reg = <0x800 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +053029 interrupts = <0x0 0x8 0x0 0x0>,
30 <0x0 0x8 0x1 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +053031 interrupt-names = "kpdpwr", "resin";
32 qcom,pon-dbc-delay = <15625>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +053033 qcom,kpdpwr-sw-debounce;
Chetan C R820790f2020-01-29 16:53:58 +053034 qcom,system-reset;
Chetan C R820790f2020-01-29 16:53:58 +053035 qcom,store-hard-reset-reason;
36
37 qcom,pon_1 {
38 qcom,pon-type = <0>;
Chetan C R820790f2020-01-29 16:53:58 +053039 qcom,pull-up = <1>;
40 qcom,s1-timer = <10256>;
41 qcom,s2-timer = <2000>;
42 qcom,s2-type = <1>;
43 linux,code = <116>;
44 };
45
46 qcom,pon_2 {
47 qcom,pon-type = <1>;
48 qcom,pull-up = <1>;
49 linux,code = <114>;
50 };
51 };
52
53 pm8909_mpps: mpps {
54 compatible = "qcom,qpnp-pin";
55 spmi-dev-container;
56 gpio-controller;
57 #gpio-cells = <2>;
58 #address-cells = <1>;
59 #size-cells = <1>;
60 label = "pm8909-mpp";
61
62 mpp@a000 {
63 reg = <0xa000 0x100>;
64 qcom,pin-num = <1>;
65 };
66
67 mpp@a100 {
68 reg = <0xa100 0x100>;
69 qcom,pin-num = <2>;
70 };
71
72 mpp@a200 {
73 reg = <0xa200 0x100>;
74 qcom,pin-num = <3>;
75 };
76
77 mpp@a300 {
78 reg = <0xa300 0x100>;
79 qcom,pin-num = <4>;
80 };
81 };
82
83 pm8909_gpios: gpios {
84 compatible = "qcom,qpnp-pin";
85 spmi-dev-container;
86 gpio-controller;
87 #gpio-cells = <2>;
88 #address-cells = <1>;
89 #size-cells = <1>;
90 label = "pm8909-gpio";
91
92 gpio@c000 {
93 reg = <0xc000 0x100>;
94 qcom,pin-num = <1>;
95 };
96
97 gpio@c100 {
98 reg = <0xc100 0x100>;
99 qcom,pin-num = <2>;
100 };
101
102 gpio@c200 {
103 reg = <0xc200 0x100>;
104 qcom,pin-num = <3>;
105 };
106
107 gpio@c300 {
108 reg = <0xc300 0x100>;
109 qcom,pin-num = <4>;
110 };
111 };
112
113 pm8909_vadc: vadc@3100 {
114 compatible = "qcom,qpnp-vadc";
115 reg = <0x3100 0x100>;
116 #address-cells = <1>;
117 #size-cells = <0>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530118 interrupts = <0x0 0x31 0x0 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530119 interrupt-names = "eoc-int-en-set";
120 qcom,adc-bit-resolution = <15>;
121 qcom,adc-vdd-reference = <1800>;
122 qcom,vadc-poll-eoc;
123 qcom,pmic-revid = <&pm8909_revid>;
124
125 chan@8 {
126 label = "die_temp";
127 reg = <8>;
128 qcom,decimation = <0>;
129 qcom,pre-div-channel-scaling = <0>;
130 qcom,calibration-type = "absolute";
131 qcom,scale-function = <3>;
132 qcom,hw-settle-time = <0>;
133 qcom,fast-avg-setup = <0>;
134 };
135
136 chan@9 {
137 label = "ref_625mv";
138 reg = <9>;
139 qcom,decimation = <0>;
140 qcom,pre-div-channel-scaling = <0>;
141 qcom,calibration-type = "absolute";
142 qcom,scale-function = <0>;
143 qcom,hw-settle-time = <0>;
144 qcom,fast-avg-setup = <0>;
145 };
146
147 chan@a {
148 label = "ref_1250v";
149 reg = <0xa>;
150 qcom,decimation = <0>;
151 qcom,pre-div-channel-scaling = <0>;
152 qcom,calibration-type = "absolute";
153 qcom,scale-function = <0>;
154 qcom,hw-settle-time = <0>;
155 qcom,fast-avg-setup = <0>;
156 };
157 };
158
159 pm8909_adc_tm: vadc@3400 {
160 compatible = "qcom,qpnp-adc-tm";
161 reg = <0x3400 0x100>;
162 #address-cells = <1>;
163 #size-cells = <0>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530164 interrupts = <0x0 0x34 0x0 0x0>,
165 <0x0 0x34 0x3 0x0>,
166 <0x0 0x34 0x4 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530167 interrupt-names = "eoc-int-en-set",
168 "high-thr-en-set",
169 "low-thr-en-set";
170 qcom,adc-bit-resolution = <15>;
171 qcom,adc-vdd-reference = <1800>;
172 qcom,adc_tm-vadc = <&pm8909_vadc>;
173 };
174
175 pm8909_rtc: qcom,pm8909_rtc {
176 spmi-dev-container;
177 compatible = "qcom,qpnp-rtc";
178 #address-cells = <1>;
179 #size-cells = <1>;
180 qcom,qpnp-rtc-write = <0>;
181 qcom,qpnp-rtc-alarm-pwrup = <0>;
182
183 qcom,pm8909_rtc_rw@6000 {
184 reg = <0x6000 0x100>;
185 };
186 qcom,pm8909_rtc_alarm@6100 {
187 reg = <0x6100 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530188 interrupts = <0x0 0x61 0x1 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530189 };
190 };
191
192 qcom,leds@a300 {
193 compatible = "qcom,leds-qpnp";
194 reg = <0xa300 0x100>;
195 label = "mpp";
196 };
197
198 pm8909_chg: qcom,charger {
199 spmi-dev-container;
200 compatible = "qcom,qpnp-linear-charger";
201 #address-cells = <1>;
202 #size-cells = <1>;
203
204 qcom,vddmax-mv = <4200>;
205 qcom,vddsafe-mv = <4200>;
206 qcom,vinmin-mv = <4308>;
207 qcom,ibatsafe-ma = <1440>;
208 qcom,thermal-mitigation = <1440 720 630 0>;
209 qcom,cool-bat-decidegc = <100>;
210 qcom,warm-bat-decidegc = <450>;
211 qcom,cool-bat-mv = <4100>;
212 qcom,warm-bat-mv = <4100>;
213 qcom,ibatmax-warm-ma = <360>;
214 qcom,ibatmax-cool-ma = <360>;
215 qcom,batt-hot-percentage = <25>;
216 qcom,batt-cold-percentage = <80>;
217 qcom,tchg-mins = <232>;
218 qcom,chg-vadc = <&pm8909_vadc>;
219 qcom,chg-adc_tm = <&pm8909_adc_tm>;
220
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530221 status = "okay";
Chetan C R820790f2020-01-29 16:53:58 +0530222
223 qcom,chgr@1000 {
224 reg = <0x1000 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530225 interrupts = <0x0 0x10 0x7 0x1>,
226 <0x0 0x10 0x6 0x1>,
227 <0x0 0x10 0x5 0x3>,
228 <0x0 0x10 0x0 0x2>;
Chetan C R820790f2020-01-29 16:53:58 +0530229 interrupt-names = "chg-done",
230 "chg-failed",
231 "fast-chg-on",
232 "vbat-det-lo";
233 };
234
235 qcom,bat-if@1200 {
236 reg = <0x1200 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530237 interrupts = <0x0 0x12 0x1 0x3>,
238 <0x0 0x12 0x0 0x3>;
Chetan C R820790f2020-01-29 16:53:58 +0530239 interrupt-names = "bat-temp-ok",
240 "batt-pres";
241 };
242
243 qcom,usb-chgpth@1300 {
244 reg = <0x1300 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530245 interrupts = <0 0x13 0x4 0x3>,
246 <0 0x13 0x2 0x1>,
247 <0 0x13 0x1 0x3>;
Chetan C R820790f2020-01-29 16:53:58 +0530248 interrupt-names = "usb-over-temp",
249 "chg-gone",
250 "usbin-valid";
251 };
252
253 qcom,chg-misc@1600 {
254 reg = <0x1600 0x100>;
255 };
256 };
257
258 pm8909_tz: qcom,temp-alarm@2400 {
259 compatible = "qcom,qpnp-temp-alarm";
260 reg = <0x2400 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530261 interrupts = <0x0 0x24 0x0 0x1>;
Chetan C R820790f2020-01-29 16:53:58 +0530262 label = "pm8909_tz";
263 qcom,channel-num = <8>;
264 qcom,threshold-set = <0>;
265 qcom,temp_alarm-vadc = <&pm8909_vadc>;
266 };
267
268 pm8909_bms: qcom,vmbms {
269 spmi-dev-container;
270 compatible = "qcom,qpnp-vm-bms";
271 #address-cells = <1>;
272 #size-cells = <1>;
273 status = "disabled";
274
275 qcom,v-cutoff-uv = <3400000>;
276 qcom,max-voltage-uv = <4200000>;
277 qcom,r-conn-mohm = <0>;
278 qcom,shutdown-soc-valid-limit = <100>;
279 qcom,low-soc-calculate-soc-threshold = <15>;
280 qcom,low-voltage-calculate-soc-ms = <1000>;
281 qcom,low-soc-calculate-soc-ms = <5000>;
282 qcom,calculate-soc-ms = <20000>;
283 qcom,volatge-soc-timeout-ms = <60000>;
284 qcom,low-voltage-threshold = <3450000>;
285 qcom,s3-ocv-tolerence-uv = <1200>;
286 qcom,s2-fifo-length = <5>;
287 qcom,low-soc-fifo-length = <2>;
288 qcom,bms-vadc = <&pm8909_vadc>;
289 qcom,bms-adc_tm = <&pm8909_adc_tm>;
290 qcom,pmic-revid = <&pm8909_revid>;
291
292 qcom,force-s3-on-suspend;
293 qcom,force-s2-in-charging;
294 qcom,report-charger-eoc;
295 qcom,resume-soc = <99>;
296
297 qcom,batt-pres-status@1208 {
298 reg = <0x1208 0x1>;
299 };
300
301 qcom,qpnp-chg-pres@1008 {
302 reg = <0x1008 0x1>;
303 };
304
305 qcom,vm-bms@4000 {
306 reg = <0x4000 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530307 interrupts = <0x0 0x40 0x0 0x0>,
308 <0x0 0x40 0x3 0x0>,
309 <0x0 0x40 0x4 0x0>,
310 <0x0 0x40 0x5 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530311
312 interrupt-names = "leave_cv",
313 "ocv_thr",
314 "fifo_update_done",
315 "fsm_state_change";
316 };
317 };
318 };
319
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530320
321 pm8909_temp_alarm: pm8909_tz {
322 polling-delay-passive = <0>;
323 polling-delay = <0>;
324 thermal-governor = "step_wise";
325 thermal-sensors = <&pm8909_tz>;
326 wake-capable-sensor;
327
328 trips {
329 pm8909_trip0: pm8909-trip0 {
330 temperature = <105000>;
331 hysteresis = <0>;
332 type = "passive";
333 };
334 pm8909_trip1: pm8909-trip1 {
335 temperature = <125000>;
336 hysteresis = <0>;
337 type = "passive";
338 };
339 pm8909_trip2: pm8909-trip2 {
340 temperature = <145000>;
341 hysteresis = <0>;
342 type = "critical";
343 };
344 };
345 };
346
347 pm8909_1: qcom,pm8909@1 {
348 compatible ="qcom,spmi-pmic";
349 reg = <0x1 0>;
350 #address-cells = <2>;
351 #size-cells = <0>;
Chetan C R820790f2020-01-29 16:53:58 +0530352
353 regulator@1400 {
354 compatible = "qcom,qpnp-regulator";
355 regulator-name = "8909_s1";
356 spmi-dev-container;
357 #address-cells = <1>;
358 #size-cells = <1>;
359 reg = <0x1400 0x300>;
360 status = "disabled";
361
362 qcom,ctl@1400 {
363 reg = <0x1400 0x100>;
364 };
365 qcom,ps@1500 {
366 reg = <0x1500 0x100>;
367 };
368 qcom,freq@1600 {
369 reg = <0x1600 0x100>;
370 };
371 };
372
373 regulator@1700 {
374 compatible = "qcom,qpnp-regulator";
375 regulator-name = "8909_s2";
376 spmi-dev-container;
377 #address-cells = <1>;
378 #size-cells = <1>;
379 reg = <0x1700 0x300>;
380 status = "disabled";
381
382 qcom,ctl@1700 {
383 reg = <0x1700 0x100>;
384 };
385 qcom,ps@1800 {
386 reg = <0x1800 0x100>;
387 };
388 qcom,freq@1900 {
389 reg = <0x1900 0x100>;
390 };
391 };
392
393 regulator@4000 {
394 compatible = "qcom,qpnp-regulator";
395 regulator-name = "8909_l1";
396 reg = <0x4000 0x100>;
397 status = "disabled";
398 };
399
400 regulator@4100 {
401 compatible = "qcom,qpnp-regulator";
402 regulator-name = "8909_l2";
403 reg = <0x4100 0x100>;
404 status = "disabled";
405 };
406
407 regulator@4200 {
408 compatible = "qcom,qpnp-regulator";
409 regulator-name = "8909_l3";
410 reg = <0x4200 0x100>;
411 status = "disabled";
412 };
413
414 regulator@4300 {
415 compatible = "qcom,qpnp-regulator";
416 regulator-name = "8909_l4";
417 reg = <0x4300 0x100>;
418 status = "disabled";
419 };
420
421 regulator@4400 {
422 compatible = "qcom,qpnp-regulator";
423 regulator-name = "8909_l5";
424 reg = <0x4400 0x100>;
425 status = "disabled";
426 };
427
428 regulator@4500 {
429 compatible = "qcom,qpnp-regulator";
430 regulator-name = "8909_l6";
431 reg = <0x4500 0x100>;
432 status = "disabled";
433 };
434
435 regulator@4600 {
436 compatible = "qcom,qpnp-regulator";
437 regulator-name = "8909_l7";
438 reg = <0x4600 0x100>;
439 status = "disabled";
440 };
441
442 regulator@4700 {
443 compatible = "qcom,qpnp-regulator";
444 regulator-name = "8909_l8";
445 reg = <0x4700 0x100>;
446 status = "disabled";
447 };
448
449 regulator@4800 {
450 compatible = "qcom,qpnp-regulator";
451 regulator-name = "8909_l9";
452 reg = <0x4800 0x100>;
453 status = "disabled";
454 };
455
456 regulator@4900 {
457 compatible = "qcom,qpnp-regulator";
458 regulator-name = "8909_l10";
459 reg = <0x4900 0x100>;
460 status = "disabled";
461 };
462
463 regulator@4a00 {
464 compatible = "qcom,qpnp-regulator";
465 regulator-name = "8909_l11";
466 reg = <0x4a00 0x100>;
467 status = "disabled";
468 };
469
470 regulator@4b00 {
471 compatible = "qcom,qpnp-regulator";
472 regulator-name = "8909_l12";
473 reg = <0x4b00 0x100>;
474 status = "disabled";
475 };
476
477 regulator@4c00 {
478 compatible = "qcom,qpnp-regulator";
479 regulator-name = "8909_l13";
480 reg = <0x4c00 0x100>;
481 status = "disabled";
482 };
483
484 regulator@4d00 {
485 compatible = "qcom,qpnp-regulator";
486 regulator-name = "8909_l14";
487 reg = <0x4d00 0x100>;
488 status = "disabled";
489 };
490
491 regulator@4e00 {
492 compatible = "qcom,qpnp-regulator";
493 regulator-name = "8909_l15";
494 reg = <0x4e00 0x100>;
495 status = "disabled";
496 };
497
498 regulator@5000 {
499 compatible = "qcom,qpnp-regulator";
500 regulator-name = "8909_l17";
501 reg = <0x5000 0x100>;
502 status = "disabled";
503 };
504
505 regulator@5100 {
506 compatible = "qcom,qpnp-regulator";
507 regulator-name = "8909_l18";
508 reg = <0x5100 0x100>;
509 status = "disabled";
510 };
511
512 pm8909_vib: qcom,vibrator@c000 {
513 compatible = "qcom,qpnp-vibrator";
514 reg = <0xc000 0x100>;
515 label = "vibrator";
516 status = "disabled";
517 };
518
519 pm8909_conga_dig: 8909_wcd_codec@f000 {
520 compatible = "qcom,msm8x16_wcd_codec";
521 reg = <0xf000 0x100>;
522 interrupt-parent = <&spmi_bus>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530523 interrupts = <0x1 0xf0 0x0 0x0>,
524 <0x1 0xf0 0x1 0x0>,
525 <0x1 0xf0 0x2 0x0>,
526 <0x1 0xf0 0x3 0x0>,
527 <0x1 0xf0 0x4 0x0>,
528 <0x1 0xf0 0x5 0x0>,
529 <0x1 0xf0 0x6 0x0>,
530 <0x1 0xf0 0x7 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530531 interrupt-names = "spk_cnp_int",
532 "spk_clip_int",
533 "spk_ocp_int",
534 "ins_rem_det1",
535 "but_rel_det",
536 "but_press_det",
537 "ins_rem_det",
538 "mbhc_int";
539
540 cdc-vdda-cp-supply = <&pm8909_s2>;
541 qcom,cdc-vdda-cp-voltage = <1800000 2200000>;
542 qcom,cdc-vdda-cp-current = <500000>;
543
544 cdc-vdda-h-supply = <&pm8909_l5>;
545 qcom,cdc-vdda-h-voltage = <1800000 1800000>;
546 qcom,cdc-vdda-h-current = <10000>;
547
548 cdc-vdd-px-supply = <&pm8909_l5>;
549 qcom,cdc-vdd-px-voltage = <1800000 1800000>;
550 qcom,cdc-vdd-px-current = <5000>;
551
552 cdc-vdd-pa-supply = <&pm8909_s2>;
553 qcom,cdc-vdd-pa-voltage = <1800000 2200000>;
554 qcom,cdc-vdd-pa-current = <260000>;
555
556 cdc-vdd-mic-bias-supply = <&pm8909_l13>;
557 qcom,cdc-vdd-mic-bias-voltage = <3075000 3075000>;
558 qcom,cdc-vdd-mic-bias-current = <5000>;
559
560 qcom,cdc-mclk-clk-rate = <9600000>;
561
562 qcom,cdc-static-supplies = "cdc-vdda-h",
563 "cdc-vdd-px",
564 "cdc-vdd-pa",
565 "cdc-vdda-cp";
566
567 qcom,cdc-on-demand-supplies = "cdc-vdd-mic-bias";
568 };
569
570 pm8909_conga_analog: 8909_wcd_codec@f100 {
571 compatible = "qcom,msm8x16_wcd_codec";
572 reg = <0xf100 0x100>;
573 interrupt-parent = <&spmi_bus>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530574 interrupts = <0x1 0xf1 0x0 0x0>,
575 <0x1 0xf1 0x1 0x0>,
576 <0x1 0xf1 0x2 0x0>,
577 <0x1 0xf1 0x3 0x0>,
578 <0x1 0xf1 0x4 0x0>,
579 <0x1 0xf1 0x5 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530580 interrupt-names = "ear_ocp_int",
581 "hphr_ocp_int",
582 "hphl_ocp_det",
583 "ear_cnp_int",
584 "hphr_cnp_int",
585 "hphl_cnp_int";
586 };
587
588 pm8909_pwm: pwm@bc00 {
589 compatible = "qcom,qpnp-pwm";
590 reg = <0xbc00 0x100>;
591 reg-names = "qpnp-lpg-channel-base";
592 qcom,channel-id = <0>;
593 qcom,supported-sizes = <6>, <9>;
594 #pwm-cells = <2>;
595 };
596 };
597};