source: G950FXXS5DSI1
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / arch / arm64 / boot / dts / exynos / battery_data_dreamlte_common.dtsi
CommitLineData
1cac41cb
MB
1/*
2 * SAMSUNG UNIVERSAL5433 board device tree source
3 *
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10*/
11
12/ {
13 pinctrl@164B0000 {
14 wpc_int: wpc-int {
15 samsung,pins = "gpa3-2";
16 samsung,pin-function = <0xf>;
17 samsung,pin-pud = <0>;
18 samsung,pin-drv = <0>;
19 };
20
21 wpc_det: wpc-det {
22 samsung,pins = "gpa2-0";
23 samsung,pin-function = <0xf>;
24 samsung,pin-pud = <1>;
25 };
26
27 };
28
29 pinctrl@10980000 {
30 wpc_en: wpc-en {
31 samsung,pins = "gpe6-2";
32 samsung,pin-function = <1>;
33 samsung,pin-pud = <0>;
34 samsung,pin-drv = <0>;
35 };
36 };
37
38 pinctrl@11050000 {
39 jig_gpio: jig-gpio {
40 samsung,pins = "gpi1-4";
41 samsung,pin-function = <0xf>;
42 samsung,pin-pud = <0>;
43 samsung,pin-drv = <0>;
44 };
45 };
46
47 hsi2c@10940000 { /* hsi2c_usi12_0 */
48 status = "okay";
49 samsung,stop-after-trans;
50 clock-frequency = <100000>;
51
52 mfc-charger@3b {
53 compatible = "idt,mfc-charger";
54 reg = <0x3b>;
55 status = "okay";
56
57 pinctrl-names = "default";
58 pinctrl-0 = <&wpc_int &wpc_det &wpc_en>;
59
60 battery,wpc_int = <&gpa3 2 0>;
61 battery,wpc_det = <&gpa2 0 0>;
62 battery,mst_en = <&gpf0 1 0>;
63 battery,mst_pwr_en = <&gpf0 0 0>;
64 battery,wpc_en = <&gpe6 2 0>;
65 battery,charger_name = "max77865-charger";
66 battery,fuelgauge_name = "max77865-fuelgauge";
67 battery,wireless_charger_name = "mfc-charger";
68 battery,fod_wpc_data = <150 52 142 44 150 28 150 25 150 27 156 13>;
69 battery,fod_pma_data = <150 52 142 44 150 28 150 25 150 27 156 13>;
70 battery,fod_a4wp_data = <150 52 142 44 150 28 150 25 150 27 156 13>;
71 battery,fod_wpc_data_cv = <150 82 142 74 150 58 150 55 150 57 156 43>;
72 battery,fod_pma_data_cv = <150 82 142 74 150 58 150 55 150 57 156 43>;
73 battery,fod_a4wp_data_cv = <150 82 142 74 150 58 150 55 150 57 156 43>;
74 battery,wpc_cc_cv_vout = <5500>;
75 battery,wpc_cv_call_vout = <5000>;
76 battery,wpc_cc_call_vout = <5000>;
77 battery,hv_vout_wa = <0x41>; /* WC vout 10.0V */
78 battery,wc_cover_rpp = <0x50>;
79 battery,wc_hv_rpp = <0x40>;
80 };
81 };
82
83 battery {
84 status = "okay";
85 compatible = "samsung,sec-battery";
86
87 pinctrl-names = "default";
88 /* battery,irq_gpio = <&gpa1 6 0>; */
89
90 battery,vendor = "Battery";
91 battery,charger_name = "max77865-charger";
92 battery,fuelgauge_name = "max77865-fuelgauge";
93 battery,wireless_charger_name = "mfc-charger";
94 battery,technology = <2>; /* POWER_SUPPLY_TECHNOLOGY_LION */
95 battery,fgsrc_switch_name = "max77865-charger"; /* Fuelgauge voltage source */
96
97 battery,batt_data_version = <2>;
98
99 battery,chip_vendor = "LSI";
100 battery,temp_adc_type = <1>; /* SEC_BATTERY_ADC_TYPE_AP */
101
102 battery,temp_check_type = <2>; /* SEC_BATTERY_TEMP_CHECK_TEMP */
103 battery,chg_temp_check = <1>;
104 battery,wpc_temp_check = <1>;
105
106 battery,thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
107 battery,usb_thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
108 battery,chg_thermal_source = <1>;
109 battery,wpc_thermal_source = <1>;
110 battery,coil_thermal_source = <1>;
111
112 battery,polling_time = <10 30 30 30 3600>;
113
114 battery,temp_table_adc = <294 345 404 474 558 655 769 887 1021 1189
115 1378 1586 1811 2048 2291 2512 2726 2932 3122 3293 3445 3575 3686>;
116 battery,temp_table_data = <900 850 800 750 700 650 600 550 500 450
117 400 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;
118
119 battery,usb_temp_table_adc = <294 345 404 474 558 655 769 887 1021 1189
120 1378 1586 1811 2048 2291 2512 2726 2932 3122 3293 3445 3575 3686>;
121 battery,usb_temp_table_data = <900 850 800 750 700 650 600 550 500 450
122 400 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;
123
124 battery,chg_temp_table_adc = <294 345 404 474 558 655 769 887 1021 1189
125 1378 1586 1811 2048 2291 2512 2726 2932 3122 3293 3445 3575 3686>;
126 battery,chg_temp_table_data = <900 850 800 750 700 650 600 550 500 450
127 400 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;
128
129 battery,wpc_temp_table_adc = <294 345 404 474 558 655 769 887 1021 1189
130 1378 1586 1811 2048 2291 2512 2726 2932 3122 3293 3445 3575 3686>;
131 battery,wpc_temp_table_data = <900 850 800 750 700 650 600 550 500 450
132 400 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;
133
134 battery,wireless_cc_cv = <85>;
135 battery,fod_data = <204 9 150 28 130 55 130 57 157 5 157 6>;
136 battery,fod_data_cv = <204 39 150 58 130 85 130 87 157 35 157 36>;
137 battery,wpc_cc_cv_vout = <5500>;
138 battery,wpc_cv_call_vout = <5000>;
139 battery,wpc_cc_call_vout = <5000>;
140 battery,wpc_det = <&gpa2 0 0>;
141 battery,wpc_en = <&gpe6 2 0>;
142 battery,wpc_int = <&gpa3 2 0>;
143 battery,hv_vout_wa = <0x41>; /* WC vout 10.0V */
144 battery,adc_check_count = <5>;
145
146 battery,cable_check_type = <4>; /* SEC_BATTERY_CABLE_CHECK_PSY */
147 battery,cable_source_type = <1>; /* SEC_BATTERY_CABLE_SOURCE_EXTERNAL */
148 battery,polling_type = <1>; /* SEC_BATTERY_MONITOR_ALARM */
149 battery,monitor_initial_count = <0>;
150
151 battery,battery_check_type = <0>; /* SEC_BATTERY_CHECK_NONE */
152 battery,check_count = <0>;
153 battery,check_adc_max = <1440>;
154 battery,check_adc_min = <0>;
155
156 battery,ovp_uvlo_check_type = <3>; /* SEC_BATTERY_OVP_UVLO_CHGPOLLING */
157
158 battery,temp_check_count = <1>;
159 battery,temp_highlimit_threshold_event = <800>;
160 battery,temp_highlimit_recovery_event = <750>;
161 battery,temp_high_threshold_event = <500>;
162 battery,temp_high_recovery_event = <450>;
163 battery,temp_low_threshold_event = <0>;
164 battery,temp_low_recovery_event = <50>;
165 battery,temp_highlimit_threshold_normal = <800>;
166 battery,temp_highlimit_recovery_normal = <750>;
167 battery,temp_high_threshold_normal = <500>;
168 battery,temp_high_recovery_normal = <450>;
169 battery,temp_low_threshold_normal = <0>;
170 battery,temp_low_recovery_normal = <50>;
171 battery,temp_highlimit_threshold_lpm = <800>;
172 battery,temp_highlimit_recovery_lpm = <750>;
173 battery,temp_high_threshold_lpm = <500>;
174 battery,temp_high_recovery_lpm = <450>;
175 battery,temp_low_threshold_lpm = <0>;
176 battery,temp_low_recovery_lpm = <50>;
177 battery,wpc_high_threshold_normal = <450>;
178 battery,wpc_high_recovery_normal = <400>;
179 battery,wpc_low_threshold_normal = <0>;
180 battery,wpc_low_recovery_normal = <50>;
181 battery,full_check_type = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */
182 battery,full_check_type_2nd = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */
183 battery,full_check_count = <1>;
184 battery,chg_gpio_full_check = <0>;
185 battery,chg_polarity_full_check = <1>;
186
187 battery,chg_high_temp = <460>;
188 battery,chg_high_temp_recovery = <440>;
189 battery,chg_input_limit_current = <1000>;
190 battery,chg_charging_limit_current = <1250>;
191
192 /* TEMP_CONTROL_SOURCE_BAT_THM = WPC_THM */
193 battery,wpc_temp_control_source = <1>;
194 battery,wpc_high_temp = <380>;
195 battery,wpc_high_temp_recovery = <360>;
196 battery,wpc_charging_limit_current = <600>;
197 battery,wpc_lcd_on_high_temp = <430>;
198 battery,wpc_lcd_on_high_temp_rec = <300>;
199 battery,wpc_lcd_on_charging_limit_current = <450>;
200
201 battery,wpc_store_high_temp = <380>;
202 battery,wpc_store_high_temp_recovery = <360>;
203 battery,wpc_store_charging_limit_current = <400>;
204 battery,wpc_store_lcd_on_high_temp = <380>;
205 battery,wpc_store_lcd_on_high_temp_rec = <300>;
206
207 battery,sleep_mode_limit_current = <500>;
208 battery,wc_full_input_limit_current = <100>;
209 battery,wc_cv_current = <820>;
5a068558 210 battery,wc_cv_tx_current = <650>;
1cac41cb
MB
211 battery,wc_cv_pack_current = <630>;
212 battery,wc_hero_stand_cc_cv = <70>;
213 battery,wc_hero_stand_cv_current = <600>;
214 battery,wc_hero_stand_hv_cv_current = <450>;
215
216 battery,mix_high_temp = <420>;
217 battery,mix_high_chg_temp = <500>;
218 battery,mix_high_temp_recovery = <390>;
219
220 /* SEC_BATTERY_FULL_CONDITION_NOTIMEFULL |
221 SEC_BATTERY_FULL_CONDITION_VCELL */
222 battery,full_condition_type = <9>;
223 battery,full_condition_soc = <93>;
224 battery,full_condition_vcell = <4250>;
225
226 battery,recharge_check_count = <1>;
227 battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */
228 battery,recharge_condition_soc = <98>;
229 battery,recharge_condition_vcell = <4280>;
230
231 battery,charging_total_time = <14400>;
232 battery,hv_charging_total_time = <10800>;
233 battery,normal_charging_total_time = <18000>;
234 battery,usb_charging_total_time = <36000>;
235 battery,recharging_total_time = <5400>;
236 battery,charging_reset_time = <0>;
237
238 battery,chg_float_voltage = <43500>;
239 battery,chg_float_voltage_conv = <10>;
240
241 battery,swelling_high_temp_block = <410>;
242 battery,swelling_high_temp_recov = <390>;
243 battery,swelling_wc_high_temp_recov = <390>;
244 battery,swelling_low_temp_block_1st = <150>;
245 battery,swelling_low_temp_recov_1st = <200>;
246 battery,swelling_low_temp_block_2nd = <50>;
247 battery,swelling_low_temp_recov_2nd = <100>;
248
249 battery,swelling_low_temp_current = <700>; /* 0.3C */
250 battery,swelling_low_temp_topoff = <175>; /* 0.05C */
251 battery,swelling_high_temp_current = <1090>; /* 0.45C */
252 battery,swelling_high_temp_topoff = <175>; /* 0.05C */
253 battery,swelling_wc_high_temp_current = <700>; /* 0.3C */
254 battery,swelling_wc_low_temp_current = <700>; /* 0.3C */
255
256 battery,swelling_drop_float_voltage = <41500>;
257 battery,swelling_high_rechg_voltage = <4000>;
258 battery,swelling_low_rechg_voltage = <4000>;
259
260 battery,siop_input_limit_current = <1200>;
261 battery,siop_charging_limit_current = <1000>;
262 battery,siop_hv_input_limit_current = <500>;
263 battery,siop_hv_charging_limit_current = <1000>;
264
265 battery,siop_wireless_input_limit_current = <600>;
266 battery,siop_wireless_charging_limit_current = <700>;
267 battery,siop_hv_wireless_input_limit_current = <600>;
268 battery,siop_hv_wireless_charging_limit_current = <700>;
269 battery,siop_store_hv_wireless_input_limit_current = <450>;
270
271 battery,ttf_hv_charge_current = <2150>;
272 battery,ttf_hv_wireless_charge_current = <1050>;
273 battery,ttf_wireless_charge_current = <900>;
274
275 battery,pd_charging_charge_power = <15000>;
276 battery,max_charging_current = <2150>;
277 battery,battery_full_capacity = <3000>;
278
279 /* cycle, chg_float_voltage, recharge_condition_vcell, full_condition_vcell, full_condition_soc */
280 battery,age_data = <0 43500 4280 4250 93
281 300 43250 4255 4225 92
282 400 43125 4242 4212 91
283 700 42875 4217 4187 90
284 1000 42375 4167 4137 89>;
285
286 battery,max_input_voltage = <12000>; /* mV */
287 battery,max_input_current = <3000>; /* mA */
288
289 battery,enable_sysovlo_irq;
290
291 battery,standard_curr = <2150>;
292 battery,expired_time = <10800>;
293 battery,recharging_expired_time = <5400>;
294
295 battery,cisd_max_voltage_thr = <4400>; /* battery ovp detection voltage */
296 battery,cisd_alg_index = <7>;
297
298 io-channels = <&exynos_adc 1>, <&exynos_adc 3>, <&exynos_adc 11>, <&exynos_adc 4>, <&exynos_adc 1>;
299 io-channel-names = "adc-temp", "adc-chg-temp", "adc-in-bat", "adc-wpc-temp", "adc-usb-temp";
300 #io-channel-cells = <5>;
301 io-channel-ranges;
302
303 };
304
305 max77865-fuelgauge {
306 status = "okay";
307 fuelgauge,fuel_alert_soc = <1>;
308 fuelgauge,jig_gpio = <&gpi1 4 0>;
309 fuelgauge,capacity_max = <1000>;
310 fuelgauge,capacity_min = <0>;
311 fuelgauge,capacity_calculation_type = <28>;
312 fuelgauge,repeated_fuelalert;
313 fuelgauge,using_temp_compensation;
314 fuelgauge,low_temp_limit = <100>;
315 fuelgauge,using_hw_vempty;
316 fuelgauge,v_empty = <0xA7E2>; /* Empty: 3260mV, Recover: 3480mV */
317 fuelgauge,v_empty_origin = <0x7D54>; /* Empty: 2500mV, Recover: 3360mV */
318 fuelgauge,sw_v_empty_voltage = <3200>;
319 fuelgauge,sw_v_empty_voltage_cisd = <3100>;
320 fuelgauge,sw_v_empty_recover_voltage = <3480>;
321 fuelgauge,qrtable20 = <0x0D80>;
322 fuelgauge,qrtable30 = <0x0D00>;
323 fuelgauge,fg_resistor = <2>;
324 fuelgauge,capacity = <0x0C45>;
325 /*fuelgauge,auto_discharge_en;*/
326 fuelgauge,discharge_temp_threshold = <600>;
327 fuelgauge,discharge_volt_threshold = <4200>;
328 fuelgauge,ttf_capacity = <3000>;
329 fuelgauge,cv_data = <
330 2488 829 1809
331 2409 832 1796
332 2327 837 1769
333 2272 840 1743
334 2182 846 1721
335 2104 850 1690
336 2038 854 1670
337 1950 859 1640
338 1904 861 1622
339 1838 865 1594
340 1797 867 1576
341 1749 870 1560
342 1703 873 1531
343 1683 873 1525
344 1667 875 1515
345 1660 875 1512
346 1653 876 1509
347 1615 878 1502
348 1580 880 1483
349 1553 881 1463
350 1544 882 1458
351 1520 883 1451
352 1477 886 1424
353 1431 888 1409
354 1396 891 1383
355 1347 894 1361
356 1299 896 1332
357 1267 898 1315
358 1231 902 1288
359 1202 904 1263
360 1148 906 1243
361 1109 909 1213
362 1067 911 1185
363 1031 914 1156
364 1013 915 1140
365 975 917 1111
366 961 919 1084
367 921 921 1064
368 892 923 1038
369 887 923 1019
370 863 925 1004
371 833 927 976
372 808 929 946
373 787 930 918
374 780 931 904
375 764 932 895
376 744 934 864
377 730 935 846
378 715 936 828
379 693 937 800
380 681 938 783
381 666 940 752
382 651 941 735
383 640 942 712
384 628 945 697
385 622 946 679
386 618 947 664
387 600 950 646
388 596 951 627
389 589 953 614
390 584 953 601
391 576 956 572
392 577 957 553
393 562 958 535
394 511 968 506
395 505 969 487
396 493 971 464
397 492 972 435
398 484 973 417
399 480 975 398
400 474 976 380
401 470 977 364
402 462 977 355
403 456 978 336
404 452 979 329
405 446 981 303
406 437 982 282
407 429 984 255
408 423 985 242
409 422 986 229
410 414 987 211
411 411 988 199
412 405 989 191
413 397 990 171
414 391 991 140
415 387 992 126
416 384 993 107
417 372 995 84
418 364 997 54
419 356 998 26
420 356 998 13
421 0 1000 0
422 >;
423 };
424/* sec_battery_cable
425 * 0 UNKNOWN,
426 * 1 NONE,
427 * 2 PREPARE_TA,
428 * 3 TA,
429 * 4 USB,
430 * 5 USB_CDP,
431 * 6 9V_TA,
432 * 7 9V_ERR,
433 * 8 9V_UNKNOWN,
434 * 9 12V_TA,
435 * 10 WIRELESS,
436 * 11 HV_WIRELESS,
437 * 12 PMA_WIRELESS,
438 * 13 WIRELESS_PACK,
439 * 14 WIRELESS_HV_PACK,
440 * 15 WIRELESS_STAND,
441 * 16 WIRELESS_HV_STAND,
442 * 17 QC20,
443 * 18 QC30,
444 * 19 PDIC,
445 * 20 UARTOFF,
446 * 21 OTG,
447 * 22 LAN_HUB,
448 * 23 POWER_SHARING,
449 * 24 HMT_CONNECTED,
450 * 25 HMT_CHARGE,
451 * 26 HV_TA_CHG_LIMIT,
452 * 27 WIRELESS_VEHICLE,
453 * 28 WIRELESS_HV_VEHICLE,
454 * 29 PREPARE_WIRELESS_HV,
455 * 30 TIMEOUT,
456 * 31 SMART_OTG,
457 * 32 SMART_NOTG,
458 * 33 WIRELESS_TX,
459 * 34 CABLE_MAX,
460*/
461 cable-info {
462 default_input_current = <1800>;
463 default_charging_current = <2100>;
464 full_check_current_1st = <300>;
465 full_check_current_2nd = <150>;
466
467 current_group_1 {
468 cable_number = <1 4 19 21 22 23 30>;
469 input_current = <500>;
470 charging_current = <500>;
471 };
472 current_group_2 {
473 cable_number = <2 25 31>;
474 input_current = <1000>;
475 charging_current = <1000>;
476 };
477 current_group_3 {
478 cable_number = <5 32>;
479 input_current = <1500>;
480 charging_current = <1500>;
481 };
482 current_group_4 {
483 cable_number = <6 7 8>;
484 input_current = <1650>;
485 charging_current = <2150>;
486 };
487 current_group_5 {
488 cable_number = <9>;
489 input_current = <1650>;
490 charging_current = <2150>;
491 };
492 current_group_6 {
493 cable_number = <10 12 15 27 33>;
494 input_current = <900>;
495 charging_current = <1200>;
496 };
497 current_group_7 {
498 cable_number = <13>;
499 input_current = <700>;
500 charging_current = <1200>;
501 };
502 current_group_8 {
503 cable_number = <24>;
504 input_current = <1000>;
505 charging_current = <450>;
506 };
507 current_group_9 {
508 cable_number = <26>;
509 input_current = <2000>;
510 charging_current = <1800>;
511 };
512 current_group_10 {
513 cable_number = <11 14 16 28>;
514 input_current = <650>;
515 charging_current = <1200>;
516 };
517 current_group_11 {
518 cable_number = <29>;
519 input_current = <500>;
520 charging_current = <1200>;
521 };
522 };
523};
524
525
526