1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
/*
* SAMSUNG UNIVERSAL7420 board device tree source
*
* Copyright (c) 2013 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/ {
battery {
status = "okay";
compatible = "samsung,sec-battery";
battery,vendor = "SDI SDI";
battery,charger_name = "max77833-charger";
battery,fuelgauge_name = "max77833-fuelgauge";
battery,technology = <2>; /* POWER_SUPPLY_TECHNOLOGY_LION */
/* .temp_cohot = -1000; */
/* .temp_cocold = -4325; */
battery,chip_vendor = "LSI";
battery,temp_adc_type = <1>; /* SEC_BATTERY_ADC_TYPE_AP */
battery,polling_time = <10 30 30 30 3600>;
battery,chg_temp_check = <1>;
battery,temp_table_adc = <294 304 314 325 335 345 357 369 382 391
406 420 434 449 463 477 494 511 527 544
561 580 599 619 638 657 679 700 722 743
765 791 816 842 867 893 922 951 979 1008
1037 1070 1103 1136 1168 1201 1236 1272 1308 1344
1382 1408 1452 1495 1539 1583 1628 1670 1713 1757
1803 1843 1885 1937 1984 2031 2080 2120 2171 2218
2262 2309 2352 2404 2452 2497 2542 2593 2631 2680
2717 2765 2810 2856 2902 2948 2990 3031 3073 3114
3132 3156 3188 3219 3251 3282 3314 3343 3373 3402
3461 3485 3509 3534 3558 3582 3602 3622 3642 3662 3682>;
battery,temp_table_data = <900 890 880 870 860 850 840 830 820 810
800 790 780 770 760 750 740 730 720 710
700 690 680 670 660 650 640 630 620 610
600 590 580 570 560 550 540 530 520 510
500 490 480 470 460 450 440 430 420 410
400 390 380 370 360 350 340 330 320 310
300 290 280 270 260 250 240 230 220 210
200 190 180 170 160 150 140 130 120 110
100 90 80 70 60 50 40 30 20 10
0 (-10) (-20) (-30) (-40) (-50) (-60) (-70) (-80) (-90)
(-100) (-110) (-120) (-130) (-140) (-150) (-160) (-170) (-180) (-190) (-200)>;
battery,chg_temp_table_adc = <215 224 234 243 253 262 271 281 290 300
309 322 335 348 361 374 389 404 418 433
448 465 482 499 516 533 553 573 594 614
634 658 682 705 729 753 780 807 833 860
887 918 948 979 1009 1040 1076 1112 1147 1183
1219 1257 1295 1332 1370 1408 1448 1489 1529 1570
1610 1653 1696 1739 1782 1825 1869 1913 1957 2001
2045 2090 2134 2179 2223 2268 2310 2352 2395 2437
2479 2520 2561 2601 2642 2683 2720 2757 2793 2830
2867 2903 2939 2975 3011 3047 3077 3106 3136 3165
3195 3221 3247 3274 3300 3326 3348 3370 3392 3414 3436>;
battery,chg_temp_table_data = <900 890 880 870 860 850 840 830 820 810
800 790 780 770 760 750 740 730 720 710
700 690 680 670 660 650 640 630 620 610
600 590 580 570 560 550 540 530 520 510
500 490 480 470 460 450 440 430 420 410
400 390 380 370 360 350 340 330 320 310
300 290 280 270 260 250 240 230 220 210
200 190 180 170 160 150 140 130 120 110
100 90 80 70 60 50 40 30 20 10
0 (-10) (-20) (-30) (-40) (-50) (-60) (-70) (-80) (-90)
(-100) (-110) (-120) (-130) (-140) (-150) (-160) (-170) (-180) (-190) (-200)>;
battery,input_current_limit = <1100 0 0 1100 460 900 1000 460 1000 0 820 1900 1800 0 0 400 700 1300 300 1000 1500 0 1667 1000 1667 80 1800 1667 1400>;
battery,fast_charging_current = <2100 0 0 2100 460 1200 1000 460 1200 0 1000 1600 2100 0 0 400 700 1300 300 1000 1500 0 3150 1000 3150 80 1800 1000 1400>;
battery,full_check_current_1st = <200 0 0 200 200 200 200 200 200 0 200 200 200 0 0 200 200 200 200 200 200 0 200 200 200 0 200 200 200>;
battery,full_check_current_2nd = <2400 0 2400 2400 2400 2400 2400 2400 0 2400 2400 2400 0 0 2400 2400 2400 2400 2400 2400 0 2400 2400 2400 2400 2400 2400 2400>;
battery,adc_check_count = <5>;
battery,cable_check_type = <4>; /* SEC_BATTERY_CABLE_CHECK_PSY */
battery,cable_source_type = <1>; /* SEC_BATTERY_CABLE_SOURCE_EXTERNAL */
battery,event_waiting_time = <600>;
battery,polling_type = <1>; /* SEC_BATTERY_MONITOR_ALARM */
battery,monitor_initial_count = <0>;
battery,battery_check_type = <5>; /* SEC_BATTERY_CHECK_CHARGER */
battery,check_count = <0>;
battery,check_adc_max = <1440>;
battery,check_adc_min = <0>;
battery,ovp_uvlo_check_type = <3>; /* SEC_BATTERY_OVP_UVLO_CHGPOLLING */
battery,thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
battery,temp_check_type = <2>; /* _BATTERY_TEMP_CHECK_TEMP */
battery,temp_check_count = <1>;
battery,temp_highlimit_threshold_event = <800>;
battery,temp_highlimit_recovery_event = <750>;
battery,temp_high_threshold_event = <700>;
battery,temp_high_recovery_event = <460>;
battery,temp_low_threshold_event = <(-30)>;
battery,temp_low_recovery_event = <0>;
battery,temp_highlimit_threshold_normal = <800>;
battery,temp_highlimit_recovery_normal = <750>;
battery,temp_high_threshold_normal = <600>;
battery,temp_high_recovery_normal = <460>;
battery,temp_low_threshold_normal = <(-50)>;
battery,temp_low_recovery_normal = <0>;
battery,temp_highlimit_threshold_lpm = <800>;
battery,temp_highlimit_recovery_lpm = <750>;
battery,temp_high_threshold_lpm = <600>;
battery,temp_high_recovery_lpm = <460>;
battery,temp_low_threshold_lpm = <(-50)>;
battery,temp_low_recovery_lpm = <0>;
battery,full_check_type = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */
battery,full_check_type_2nd = <3>; /* SEC_BATTERY_FULLCHARGED_TIME */
battery,full_check_count = <1>;
battery,chg_gpio_full_check = <0>;
battery,chg_polarity_full_check = <1>;
battery,chg_high_temp_1st = <460>;
battery,chg_high_temp_2nd = <460>;
battery,chg_high_temp_recovery = <200>;
battery,chg_charging_limit_current = <1467>;
battery,chg_charging_limit_current_2nd = <1433>;
/* SEC_BATTERY_FULL_CONDITION_SOC |
SEC_BATTERY_FULL_CONDITION_NOTIMEFULL |
SEC_BATTERY_FULL_CONDITION_VCELL */
battery,full_condition_type = <13>;
battery,full_condition_soc = <94>;
battery,full_condition_vcell = <4250>;
battery,recharge_check_count = <2>;
battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */
battery,recharge_condition_soc = <98>;
battery,recharge_condition_vcell = <4300>;
battery,charging_total_time = <21600>;
battery,recharging_total_time = <5400>;
battery,charging_reset_time = <0>;
io-channels = <&exynos_adc 1>, <&exynos_adc 2>;
io-channel-names = "adc-temp", "chg-adc-temp";
#io-channel-cells = <2>;
io-channel-ranges;
};
max77833-fuelgauge {
status = "disable";
fuelgauge,fuel_alert_soc = <1>;
fuelgauge,capacity_max = <1000>;
fuelgauge,capacity_max_margin = <100>;
fuelgauge,capacity_min = <0>;
fuelgauge,capacity_calculation_type = <28>;
fuelgauge,repeated_fuelalert;
fuelgauge,qrtable20 = <0x0900>;
fuelgauge,qrtable30 = <0x0780>;
fuelgauge,rcomp0 = <0x63>;
fuelgauge,rcomp_charging = <0x63>;
fuelgauge,temp_cohot = <(-1000)>;
fuelgauge,temp_cocold = <(-4325)>;
fuelgauge,is_using_model_data;
fuelgauge,type_str = "SDI";
fuelgauge,capacity = <0x19C8>;
fuelgauge,low_battery_comp_voltage = <3600>;
fuelgauge,low_battery_table = <(-5000) 0 0 (-1250) 0 3320 (-750) 97 3451 (-100) 96 3461 0 0 3456>;
};
max77833-charger {
status = "disable";
battery,chg_gpio_en = <0>;
battery,chg_polarity_en = <0>;
battery,chg_gpio_status = <0>;
battery,chg_polarity_status = <0>;
battery,chg_float_voltage = <4350>;
};
};
|