blob: 87330d682e58d39824a430f5d8ad3089ab374b4c [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 {
Shilpa Suresh3f2424f2020-03-27 16:40:42 +053084 compatible = "qcom,spmi-gpio";
85 reg = <0xc000 0x400>;
86 interrupts = <0x0 0xc1 0 IRQ_TYPE_NONE>,
87 <0x0 0xc3 0 IRQ_TYPE_NONE>;
88 interrupt-names = "pm8909_gpio2", "pm8909_gpio4";
Chetan C R820790f2020-01-29 16:53:58 +053089 gpio-controller;
90 #gpio-cells = <2>;
Shilpa Suresh3f2424f2020-03-27 16:40:42 +053091 qcom,gpios-disallowed = <1 3>;
Chetan C R820790f2020-01-29 16:53:58 +053092 };
93
94 pm8909_vadc: vadc@3100 {
95 compatible = "qcom,qpnp-vadc";
96 reg = <0x3100 0x100>;
97 #address-cells = <1>;
98 #size-cells = <0>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +053099 interrupts = <0x0 0x31 0x0 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530100 interrupt-names = "eoc-int-en-set";
101 qcom,adc-bit-resolution = <15>;
102 qcom,adc-vdd-reference = <1800>;
103 qcom,vadc-poll-eoc;
104 qcom,pmic-revid = <&pm8909_revid>;
105
106 chan@8 {
107 label = "die_temp";
108 reg = <8>;
109 qcom,decimation = <0>;
110 qcom,pre-div-channel-scaling = <0>;
111 qcom,calibration-type = "absolute";
112 qcom,scale-function = <3>;
113 qcom,hw-settle-time = <0>;
114 qcom,fast-avg-setup = <0>;
115 };
116
117 chan@9 {
118 label = "ref_625mv";
119 reg = <9>;
120 qcom,decimation = <0>;
121 qcom,pre-div-channel-scaling = <0>;
122 qcom,calibration-type = "absolute";
123 qcom,scale-function = <0>;
124 qcom,hw-settle-time = <0>;
125 qcom,fast-avg-setup = <0>;
126 };
127
128 chan@a {
129 label = "ref_1250v";
130 reg = <0xa>;
131 qcom,decimation = <0>;
132 qcom,pre-div-channel-scaling = <0>;
133 qcom,calibration-type = "absolute";
134 qcom,scale-function = <0>;
135 qcom,hw-settle-time = <0>;
136 qcom,fast-avg-setup = <0>;
137 };
138 };
139
140 pm8909_adc_tm: vadc@3400 {
141 compatible = "qcom,qpnp-adc-tm";
142 reg = <0x3400 0x100>;
143 #address-cells = <1>;
144 #size-cells = <0>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530145 interrupts = <0x0 0x34 0x0 0x0>,
146 <0x0 0x34 0x3 0x0>,
147 <0x0 0x34 0x4 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530148 interrupt-names = "eoc-int-en-set",
149 "high-thr-en-set",
150 "low-thr-en-set";
151 qcom,adc-bit-resolution = <15>;
152 qcom,adc-vdd-reference = <1800>;
153 qcom,adc_tm-vadc = <&pm8909_vadc>;
154 };
155
156 pm8909_rtc: qcom,pm8909_rtc {
157 spmi-dev-container;
158 compatible = "qcom,qpnp-rtc";
159 #address-cells = <1>;
160 #size-cells = <1>;
161 qcom,qpnp-rtc-write = <0>;
162 qcom,qpnp-rtc-alarm-pwrup = <0>;
163
164 qcom,pm8909_rtc_rw@6000 {
165 reg = <0x6000 0x100>;
166 };
167 qcom,pm8909_rtc_alarm@6100 {
168 reg = <0x6100 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530169 interrupts = <0x0 0x61 0x1 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530170 };
171 };
172
173 qcom,leds@a300 {
174 compatible = "qcom,leds-qpnp";
175 reg = <0xa300 0x100>;
176 label = "mpp";
177 };
178
179 pm8909_chg: qcom,charger {
180 spmi-dev-container;
181 compatible = "qcom,qpnp-linear-charger";
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 qcom,vddmax-mv = <4200>;
186 qcom,vddsafe-mv = <4200>;
187 qcom,vinmin-mv = <4308>;
188 qcom,ibatsafe-ma = <1440>;
189 qcom,thermal-mitigation = <1440 720 630 0>;
190 qcom,cool-bat-decidegc = <100>;
191 qcom,warm-bat-decidegc = <450>;
192 qcom,cool-bat-mv = <4100>;
193 qcom,warm-bat-mv = <4100>;
194 qcom,ibatmax-warm-ma = <360>;
195 qcom,ibatmax-cool-ma = <360>;
196 qcom,batt-hot-percentage = <25>;
197 qcom,batt-cold-percentage = <80>;
198 qcom,tchg-mins = <232>;
199 qcom,chg-vadc = <&pm8909_vadc>;
200 qcom,chg-adc_tm = <&pm8909_adc_tm>;
201
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530202 status = "okay";
Chetan C R820790f2020-01-29 16:53:58 +0530203
204 qcom,chgr@1000 {
205 reg = <0x1000 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530206 interrupts = <0x0 0x10 0x7 0x1>,
207 <0x0 0x10 0x6 0x1>,
208 <0x0 0x10 0x5 0x3>,
209 <0x0 0x10 0x0 0x2>;
Chetan C R820790f2020-01-29 16:53:58 +0530210 interrupt-names = "chg-done",
211 "chg-failed",
212 "fast-chg-on",
213 "vbat-det-lo";
214 };
215
216 qcom,bat-if@1200 {
217 reg = <0x1200 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530218 interrupts = <0x0 0x12 0x1 0x3>,
219 <0x0 0x12 0x0 0x3>;
Chetan C R820790f2020-01-29 16:53:58 +0530220 interrupt-names = "bat-temp-ok",
221 "batt-pres";
222 };
223
224 qcom,usb-chgpth@1300 {
225 reg = <0x1300 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530226 interrupts = <0 0x13 0x4 0x3>,
227 <0 0x13 0x2 0x1>,
228 <0 0x13 0x1 0x3>;
Chetan C R820790f2020-01-29 16:53:58 +0530229 interrupt-names = "usb-over-temp",
230 "chg-gone",
231 "usbin-valid";
232 };
233
234 qcom,chg-misc@1600 {
235 reg = <0x1600 0x100>;
236 };
237 };
238
239 pm8909_tz: qcom,temp-alarm@2400 {
240 compatible = "qcom,qpnp-temp-alarm";
241 reg = <0x2400 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530242 interrupts = <0x0 0x24 0x0 0x1>;
Chetan C R820790f2020-01-29 16:53:58 +0530243 label = "pm8909_tz";
244 qcom,channel-num = <8>;
245 qcom,threshold-set = <0>;
246 qcom,temp_alarm-vadc = <&pm8909_vadc>;
247 };
248
249 pm8909_bms: qcom,vmbms {
250 spmi-dev-container;
251 compatible = "qcom,qpnp-vm-bms";
252 #address-cells = <1>;
253 #size-cells = <1>;
254 status = "disabled";
255
256 qcom,v-cutoff-uv = <3400000>;
257 qcom,max-voltage-uv = <4200000>;
258 qcom,r-conn-mohm = <0>;
259 qcom,shutdown-soc-valid-limit = <100>;
260 qcom,low-soc-calculate-soc-threshold = <15>;
261 qcom,low-voltage-calculate-soc-ms = <1000>;
262 qcom,low-soc-calculate-soc-ms = <5000>;
263 qcom,calculate-soc-ms = <20000>;
264 qcom,volatge-soc-timeout-ms = <60000>;
265 qcom,low-voltage-threshold = <3450000>;
266 qcom,s3-ocv-tolerence-uv = <1200>;
267 qcom,s2-fifo-length = <5>;
268 qcom,low-soc-fifo-length = <2>;
269 qcom,bms-vadc = <&pm8909_vadc>;
270 qcom,bms-adc_tm = <&pm8909_adc_tm>;
271 qcom,pmic-revid = <&pm8909_revid>;
272
273 qcom,force-s3-on-suspend;
274 qcom,force-s2-in-charging;
275 qcom,report-charger-eoc;
276 qcom,resume-soc = <99>;
277
278 qcom,batt-pres-status@1208 {
279 reg = <0x1208 0x1>;
280 };
281
282 qcom,qpnp-chg-pres@1008 {
283 reg = <0x1008 0x1>;
284 };
285
286 qcom,vm-bms@4000 {
287 reg = <0x4000 0x100>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530288 interrupts = <0x0 0x40 0x0 0x0>,
289 <0x0 0x40 0x3 0x0>,
290 <0x0 0x40 0x4 0x0>,
291 <0x0 0x40 0x5 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530292
293 interrupt-names = "leave_cv",
294 "ocv_thr",
295 "fifo_update_done",
296 "fsm_state_change";
297 };
298 };
299 };
300
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530301
302 pm8909_temp_alarm: pm8909_tz {
303 polling-delay-passive = <0>;
304 polling-delay = <0>;
305 thermal-governor = "step_wise";
306 thermal-sensors = <&pm8909_tz>;
307 wake-capable-sensor;
308
309 trips {
310 pm8909_trip0: pm8909-trip0 {
311 temperature = <105000>;
312 hysteresis = <0>;
313 type = "passive";
314 };
315 pm8909_trip1: pm8909-trip1 {
316 temperature = <125000>;
317 hysteresis = <0>;
318 type = "passive";
319 };
320 pm8909_trip2: pm8909-trip2 {
321 temperature = <145000>;
322 hysteresis = <0>;
323 type = "critical";
324 };
325 };
326 };
327
328 pm8909_1: qcom,pm8909@1 {
329 compatible ="qcom,spmi-pmic";
330 reg = <0x1 0>;
331 #address-cells = <2>;
332 #size-cells = <0>;
Chetan C R820790f2020-01-29 16:53:58 +0530333
334 regulator@1400 {
335 compatible = "qcom,qpnp-regulator";
336 regulator-name = "8909_s1";
337 spmi-dev-container;
338 #address-cells = <1>;
339 #size-cells = <1>;
340 reg = <0x1400 0x300>;
341 status = "disabled";
342
343 qcom,ctl@1400 {
344 reg = <0x1400 0x100>;
345 };
346 qcom,ps@1500 {
347 reg = <0x1500 0x100>;
348 };
349 qcom,freq@1600 {
350 reg = <0x1600 0x100>;
351 };
352 };
353
354 regulator@1700 {
355 compatible = "qcom,qpnp-regulator";
356 regulator-name = "8909_s2";
357 spmi-dev-container;
358 #address-cells = <1>;
359 #size-cells = <1>;
360 reg = <0x1700 0x300>;
361 status = "disabled";
362
363 qcom,ctl@1700 {
364 reg = <0x1700 0x100>;
365 };
366 qcom,ps@1800 {
367 reg = <0x1800 0x100>;
368 };
369 qcom,freq@1900 {
370 reg = <0x1900 0x100>;
371 };
372 };
373
374 regulator@4000 {
375 compatible = "qcom,qpnp-regulator";
376 regulator-name = "8909_l1";
377 reg = <0x4000 0x100>;
378 status = "disabled";
379 };
380
381 regulator@4100 {
382 compatible = "qcom,qpnp-regulator";
383 regulator-name = "8909_l2";
384 reg = <0x4100 0x100>;
385 status = "disabled";
386 };
387
388 regulator@4200 {
389 compatible = "qcom,qpnp-regulator";
390 regulator-name = "8909_l3";
391 reg = <0x4200 0x100>;
392 status = "disabled";
393 };
394
395 regulator@4300 {
396 compatible = "qcom,qpnp-regulator";
397 regulator-name = "8909_l4";
398 reg = <0x4300 0x100>;
399 status = "disabled";
400 };
401
402 regulator@4400 {
403 compatible = "qcom,qpnp-regulator";
404 regulator-name = "8909_l5";
405 reg = <0x4400 0x100>;
406 status = "disabled";
407 };
408
409 regulator@4500 {
410 compatible = "qcom,qpnp-regulator";
411 regulator-name = "8909_l6";
412 reg = <0x4500 0x100>;
413 status = "disabled";
414 };
415
416 regulator@4600 {
417 compatible = "qcom,qpnp-regulator";
418 regulator-name = "8909_l7";
419 reg = <0x4600 0x100>;
420 status = "disabled";
421 };
422
423 regulator@4700 {
424 compatible = "qcom,qpnp-regulator";
425 regulator-name = "8909_l8";
426 reg = <0x4700 0x100>;
427 status = "disabled";
428 };
429
430 regulator@4800 {
431 compatible = "qcom,qpnp-regulator";
432 regulator-name = "8909_l9";
433 reg = <0x4800 0x100>;
434 status = "disabled";
435 };
436
437 regulator@4900 {
438 compatible = "qcom,qpnp-regulator";
439 regulator-name = "8909_l10";
440 reg = <0x4900 0x100>;
441 status = "disabled";
442 };
443
444 regulator@4a00 {
445 compatible = "qcom,qpnp-regulator";
446 regulator-name = "8909_l11";
447 reg = <0x4a00 0x100>;
448 status = "disabled";
449 };
450
451 regulator@4b00 {
452 compatible = "qcom,qpnp-regulator";
453 regulator-name = "8909_l12";
454 reg = <0x4b00 0x100>;
455 status = "disabled";
456 };
457
458 regulator@4c00 {
459 compatible = "qcom,qpnp-regulator";
460 regulator-name = "8909_l13";
461 reg = <0x4c00 0x100>;
462 status = "disabled";
463 };
464
465 regulator@4d00 {
466 compatible = "qcom,qpnp-regulator";
467 regulator-name = "8909_l14";
468 reg = <0x4d00 0x100>;
469 status = "disabled";
470 };
471
472 regulator@4e00 {
473 compatible = "qcom,qpnp-regulator";
474 regulator-name = "8909_l15";
475 reg = <0x4e00 0x100>;
476 status = "disabled";
477 };
478
479 regulator@5000 {
480 compatible = "qcom,qpnp-regulator";
481 regulator-name = "8909_l17";
482 reg = <0x5000 0x100>;
483 status = "disabled";
484 };
485
486 regulator@5100 {
487 compatible = "qcom,qpnp-regulator";
488 regulator-name = "8909_l18";
489 reg = <0x5100 0x100>;
490 status = "disabled";
491 };
492
493 pm8909_vib: qcom,vibrator@c000 {
494 compatible = "qcom,qpnp-vibrator";
495 reg = <0xc000 0x100>;
496 label = "vibrator";
497 status = "disabled";
498 };
499
500 pm8909_conga_dig: 8909_wcd_codec@f000 {
501 compatible = "qcom,msm8x16_wcd_codec";
502 reg = <0xf000 0x100>;
503 interrupt-parent = <&spmi_bus>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530504 interrupts = <0x1 0xf0 0x0 0x0>,
505 <0x1 0xf0 0x1 0x0>,
506 <0x1 0xf0 0x2 0x0>,
507 <0x1 0xf0 0x3 0x0>,
508 <0x1 0xf0 0x4 0x0>,
509 <0x1 0xf0 0x5 0x0>,
510 <0x1 0xf0 0x6 0x0>,
511 <0x1 0xf0 0x7 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530512 interrupt-names = "spk_cnp_int",
513 "spk_clip_int",
514 "spk_ocp_int",
515 "ins_rem_det1",
516 "but_rel_det",
517 "but_press_det",
518 "ins_rem_det",
519 "mbhc_int";
520
521 cdc-vdda-cp-supply = <&pm8909_s2>;
522 qcom,cdc-vdda-cp-voltage = <1800000 2200000>;
523 qcom,cdc-vdda-cp-current = <500000>;
524
525 cdc-vdda-h-supply = <&pm8909_l5>;
526 qcom,cdc-vdda-h-voltage = <1800000 1800000>;
527 qcom,cdc-vdda-h-current = <10000>;
528
529 cdc-vdd-px-supply = <&pm8909_l5>;
530 qcom,cdc-vdd-px-voltage = <1800000 1800000>;
531 qcom,cdc-vdd-px-current = <5000>;
532
533 cdc-vdd-pa-supply = <&pm8909_s2>;
534 qcom,cdc-vdd-pa-voltage = <1800000 2200000>;
535 qcom,cdc-vdd-pa-current = <260000>;
536
537 cdc-vdd-mic-bias-supply = <&pm8909_l13>;
538 qcom,cdc-vdd-mic-bias-voltage = <3075000 3075000>;
539 qcom,cdc-vdd-mic-bias-current = <5000>;
540
541 qcom,cdc-mclk-clk-rate = <9600000>;
542
543 qcom,cdc-static-supplies = "cdc-vdda-h",
544 "cdc-vdd-px",
545 "cdc-vdd-pa",
546 "cdc-vdda-cp";
547
548 qcom,cdc-on-demand-supplies = "cdc-vdd-mic-bias";
549 };
550
551 pm8909_conga_analog: 8909_wcd_codec@f100 {
552 compatible = "qcom,msm8x16_wcd_codec";
553 reg = <0xf100 0x100>;
554 interrupt-parent = <&spmi_bus>;
Manjunatha Madanaf6d25d52020-02-20 11:49:30 +0530555 interrupts = <0x1 0xf1 0x0 0x0>,
556 <0x1 0xf1 0x1 0x0>,
557 <0x1 0xf1 0x2 0x0>,
558 <0x1 0xf1 0x3 0x0>,
559 <0x1 0xf1 0x4 0x0>,
560 <0x1 0xf1 0x5 0x0>;
Chetan C R820790f2020-01-29 16:53:58 +0530561 interrupt-names = "ear_ocp_int",
562 "hphr_ocp_int",
563 "hphl_ocp_det",
564 "ear_cnp_int",
565 "hphr_cnp_int",
566 "hphl_cnp_int";
567 };
568
569 pm8909_pwm: pwm@bc00 {
570 compatible = "qcom,qpnp-pwm";
571 reg = <0xbc00 0x100>;
572 reg-names = "qpnp-lpg-channel-base";
573 qcom,channel-id = <0>;
574 qcom,supported-sizes = <6>, <9>;
575 #pwm-cells = <2>;
576 };
577 };
578};