2 * SAMSUNG UNIVERSAL5433 board device tree source
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
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.
15 samsung,pins = "gpa3-2";
16 samsung,pin-function = <0xf>;
17 samsung,pin-pud = <0>;
18 samsung,pin-drv = <0>;
22 samsung,pins = "gpa2-0";
23 samsung,pin-function = <0xf>;
24 samsung,pin-pud = <1>;
31 samsung,pins = "gpe6-2";
32 samsung,pin-function = <1>;
33 samsung,pin-pud = <0>;
34 samsung,pin-drv = <0>;
40 samsung,pins = "gpi1-4";
41 samsung,pin-function = <0xf>;
42 samsung,pin-pud = <0>;
43 samsung,pin-drv = <0>;
47 hsi2c@10940000 { /* hsi2c_usi12_0 */
49 samsung,stop-after-trans;
50 clock-frequency = <100000>;
53 compatible = "idt,mfc-charger";
57 pinctrl-names = "default";
58 pinctrl-0 = <&wpc_int &wpc_det &wpc_en>;
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 = <0x44>;
79 battery,wc_hv_rpp = <0x40>;
85 compatible = "samsung,sec-battery";
87 pinctrl-names = "default";
88 /* battery,irq_gpio = <&gpa1 6 0>; */
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 */
97 battery,batt_data_version = <2>;
99 battery,chip_vendor = "LSI";
100 battery,temp_adc_type = <1>; /* SEC_BATTERY_ADC_TYPE_AP */
102 battery,temp_check_type = <2>; /* SEC_BATTERY_TEMP_CHECK_TEMP */
103 battery,chg_temp_check = <1>;
104 battery,wpc_temp_check = <1>;
106 battery,thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
107 battery,chg_thermal_source = <1>;
108 battery,wpc_thermal_source = <1>;
109 battery,usb_thermal_source = <2>; /* SEC_BATTERY_THERMAL_SOURCE_ADC */
110 battery,coil_thermal_source = <1>;
112 battery,polling_time = <10 30 30 30 3600>;
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)>;
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)>;
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)>;
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)>;
134 battery,mfc_temp_table_adc = <350 388 449 529 666 718 835 1006 1029 1091 1161 1197 1266 1318
135 1360 1421 1524 1730 1964 2195 2437 2651 2898 3108 3283 3410 3498 3680>;
136 battery,mfc_temp_table_data = <800 750 700 650 600 570 550 530 500 480 470 450 430 400
137 360 370 350 300 250 200 150 100 50 0 (-50) (-100) (-150) (-200)>;
138 battery,wireless_cc_cv = <85>;
139 battery,fod_data = <204 9 150 28 130 55 130 57 157 5 157 6>;
140 battery,fod_data_cv = <204 39 150 58 130 85 130 87 157 35 157 36>;
141 battery,wpc_cc_cv_vout = <5500>;
142 battery,wpc_cv_call_vout = <5000>;
143 battery,wpc_cc_call_vout = <5000>;
144 battery,wpc_det = <&gpa2 0 0>;
145 battery,wpc_en = <&gpe6 2 0>;
146 battery,wpc_int = <&gpa3 2 0>;
147 battery,hv_vout_wa = <0x41>; /* WC vout 10.0V */
148 battery,adc_check_count = <5>;
150 battery,cable_check_type = <4>; /* SEC_BATTERY_CABLE_CHECK_PSY */
151 battery,cable_source_type = <1>; /* SEC_BATTERY_CABLE_SOURCE_EXTERNAL */
152 battery,polling_type = <1>; /* SEC_BATTERY_MONITOR_ALARM */
153 battery,monitor_initial_count = <0>;
155 battery,battery_check_type = <0>; /* SEC_BATTERY_CHECK_NONE */
156 battery,check_count = <0>;
157 battery,check_adc_max = <1440>;
158 battery,check_adc_min = <0>;
160 battery,ovp_uvlo_check_type = <3>; /* SEC_BATTERY_OVP_UVLO_CHGPOLLING */
162 battery,temp_check_count = <1>;
163 battery,temp_highlimit_threshold_event = <800>;
164 battery,temp_highlimit_recovery_event = <750>;
165 battery,temp_high_threshold_event = <500>;
166 battery,temp_high_recovery_event = <450>;
167 battery,temp_low_threshold_event = <0>;
168 battery,temp_low_recovery_event = <50>;
169 battery,temp_highlimit_threshold_normal = <800>;
170 battery,temp_highlimit_recovery_normal = <750>;
171 battery,temp_high_threshold_normal = <500>;
172 battery,temp_high_recovery_normal = <450>;
173 battery,temp_low_threshold_normal = <0>;
174 battery,temp_low_recovery_normal = <50>;
175 battery,temp_highlimit_threshold_lpm = <800>;
176 battery,temp_highlimit_recovery_lpm = <750>;
177 battery,temp_high_threshold_lpm = <500>;
178 battery,temp_high_recovery_lpm = <450>;
179 battery,temp_low_threshold_lpm = <0>;
180 battery,temp_low_recovery_lpm = <50>;
181 battery,wpc_high_threshold_normal = <450>;
182 battery,wpc_high_recovery_normal = <400>;
183 battery,wpc_low_threshold_normal = <0>;
184 battery,wpc_low_recovery_normal = <50>;
185 battery,full_check_type = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */
186 battery,full_check_type_2nd = <7>; /* SEC_BATTERY_FULLCHARGED_CHGPSY */
187 battery,full_check_count = <1>;
188 battery,chg_gpio_full_check = <0>;
189 battery,chg_polarity_full_check = <1>;
191 battery,chg_high_temp = <490>;
192 battery,chg_high_temp_recovery = <470>;
193 battery,chg_input_limit_current = <1000>;
194 battery,chg_charging_limit_current = <1500>;
196 /* TEMP_CONTROL_SOURCE_BAT_THM = WPC_THM */
197 battery,wpc_temp_control_source = <1>;
198 battery,wpc_high_temp = <380>;
199 battery,wpc_high_temp_recovery = <360>;
200 battery,wpc_charging_limit_current = <600>;
201 battery,wpc_lcd_on_high_temp = <470>;
202 battery,wpc_lcd_on_high_temp_rec = <300>;
203 battery,wpc_lcd_on_charging_limit_current = <450>;
205 battery,wpc_store_high_temp = <380>;
206 battery,wpc_store_high_temp_recovery = <360>;
207 battery,wpc_store_charging_limit_current = <400>;
208 battery,wpc_store_lcd_on_high_temp = <380>;
209 battery,wpc_store_lcd_on_high_temp_rec = <300>;
211 battery,sleep_mode_limit_current = <500>;
212 battery,wc_full_input_limit_current = <100>;
213 battery,wc_cv_current = <820>;
214 battery,wc_cv_pack_current = <630>;
215 battery,wc_hero_stand_cc_cv = <70>;
216 battery,wc_hero_stand_cv_current = <600>;
217 battery,wc_hero_stand_hv_cv_current = <450>;
219 battery,mix_high_temp = <420>;
220 battery,mix_high_chg_temp = <500>;
221 battery,mix_high_temp_recovery = <390>;
223 /* SEC_BATTERY_FULL_CONDITION_NOTIMEFULL |
224 SEC_BATTERY_FULL_CONDITION_VCELL */
225 battery,full_condition_type = <9>;
226 battery,full_condition_soc = <93>;
227 battery,full_condition_vcell = <4250>;
229 battery,recharge_check_count = <1>;
230 battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */
231 battery,recharge_condition_soc = <98>;
232 battery,recharge_condition_vcell = <4280>;
234 battery,charging_total_time = <14400>;
235 battery,hv_charging_total_time = <10800>;
236 battery,normal_charging_total_time = <18000>;
237 battery,usb_charging_total_time = <36000>;
238 battery,recharging_total_time = <5400>;
239 battery,charging_reset_time = <0>;
241 battery,chg_float_voltage = <43500>;
242 battery,chg_float_voltage_conv = <10>;
244 battery,swelling_high_temp_block = <410>;
245 battery,swelling_high_temp_recov = <390>;
246 battery,swelling_wc_high_temp_recov = <390>;
247 battery,swelling_low_temp_block_1st = <150>;
248 battery,swelling_low_temp_recov_1st = <200>;
249 battery,swelling_low_temp_block_2nd = <50>;
250 battery,swelling_low_temp_recov_2nd = <100>;
252 battery,swelling_low_temp_current = <800>; /* 0.3C */
253 battery,swelling_low_temp_topoff = <175>; /* 0.05C */
254 battery,swelling_high_temp_current = <1250>; /* 0.45C */
255 battery,swelling_high_temp_topoff = <175>; /* 0.05C */
256 battery,swelling_wc_high_temp_current = <800>; /* 0.3C */
257 battery,swelling_wc_low_temp_current = <800>; /* 0.3C */
259 battery,swelling_drop_float_voltage = <41500>;
260 battery,swelling_high_rechg_voltage = <4000>;
261 battery,swelling_low_rechg_voltage = <4000>;
263 battery,siop_input_limit_current = <1200>;
264 battery,siop_charging_limit_current = <1000>;
265 battery,siop_hv_input_limit_current = <500>;
266 battery,siop_hv_charging_limit_current = <1000>;
268 battery,siop_wireless_input_limit_current = <600>;
269 battery,siop_wireless_charging_limit_current = <850>;
270 battery,siop_hv_wireless_input_limit_current = <600>;
271 battery,siop_hv_wireless_charging_limit_current = <850>;
272 battery,siop_store_hv_wireless_input_limit_current = <450>;
274 battery,ttf_hv_charge_current = <2500>;
275 battery,ttf_hv_wireless_charge_current = <1200>;
276 battery,ttf_wireless_charge_current = <900>;
278 battery,pd_charging_charge_power = <15000>;
279 battery,max_charging_current = <2500>;
280 battery,battery_full_capacity = <3500>;
282 /* cycle, chg_float_voltage, recharge_condition_vcell, full_condition_vcell, full_condition_soc */
283 battery,age_data = <0 43500 4280 4250 93
284 300 43250 4255 4225 92
285 400 43125 4242 4212 91
286 700 42875 4217 4187 90
287 1000 42375 4167 4137 89>;
289 battery,max_input_voltage = <12000>; /* mV */
290 battery,max_input_current = <3000>; /* mA */
292 battery,enable_sysovlo_irq;
294 battery,standard_curr = <2500>;
295 battery,expired_time = <10800>;
296 battery,recharging_expired_time = <5400>;
298 battery,cisd_max_voltage_thr = <4400>; /* battery ovp detection voltage */
299 battery,cisd_alg_index = <7>;
301 io-channels = <&exynos_adc 1>, <&exynos_adc 3>, <&exynos_adc 11>, <&exynos_adc 4>, <&exynos_adc 6>, <&exynos_adc 5>;
302 io-channel-names = "adc-temp", "adc-chg-temp", "adc-in-bat", "adc-wpc-temp", "adc-usb-temp", "adc-mfc-temp";
303 #io-channel-cells = <5>;
309 fuelgauge,fuel_alert_soc = <1>;
310 fuelgauge,jig_gpio = <&gpi1 4 0>;
311 fuelgauge,capacity_max = <1000>;
312 fuelgauge,capacity_min = <0>;
313 fuelgauge,capacity_calculation_type = <28>;
314 fuelgauge,repeated_fuelalert;
315 fuelgauge,using_temp_compensation;
316 fuelgauge,low_temp_limit = <100>;
317 fuelgauge,using_hw_vempty;
318 fuelgauge,v_empty = <0xA7E2>; /* Empty: 3260mV, Recover: 3480mV */
319 fuelgauge,v_empty_origin = <0x7D54>; /* Empty: 2500mV, Recover: 3360mV */
320 fuelgauge,sw_v_empty_voltage = <3200>;
321 fuelgauge,sw_v_empty_voltage_cisd = <3100>;
322 fuelgauge,sw_v_empty_recover_voltage = <3480>;
323 fuelgauge,qrtable20 = <0x0A01>;
324 fuelgauge,qrtable30 = <0x0902>;
325 fuelgauge,fg_resistor = <2>;
326 fuelgauge,capacity = <0x0DC5>;
327 /*fuelgauge,auto_discharge_en;*/
328 fuelgauge,discharge_temp_threshold = <600>;
329 fuelgauge,discharge_volt_threshold = <4200>;
330 fuelgauge,ttf_capacity = <3500>;
331 fuelgauge,cv_data = <
442 * 14 WIRELESS_HV_PACK,
444 * 16 WIRELESS_HV_STAND,
454 * 26 HV_TA_CHG_LIMIT,
455 * 27 WIRELESS_VEHICLE,
456 * 28 WIRELESS_HV_VEHICLE,
457 * 29 PREPARE_WIRELESS_HV,
465 default_input_current = <1800>;
466 default_charging_current = <2100>;
467 full_check_current_1st = <350>;
468 full_check_current_2nd = <150>;
471 cable_number = <1 4 19 21 22 23 30>;
472 input_current = <500>;
473 charging_current = <500>;
476 cable_number = <2 25 31>;
477 input_current = <1000>;
478 charging_current = <1000>;
481 cable_number = <5 32>;
482 input_current = <1500>;
483 charging_current = <1500>;
486 cable_number = <6 7 8>;
487 input_current = <1650>;
488 charging_current = <2500>;
492 input_current = <1650>;
493 charging_current = <2500>;
496 cable_number = <10 12 15 27 33>;
497 input_current = <900>;
498 charging_current = <1400>;
502 input_current = <700>;
503 charging_current = <1400>;
507 input_current = <1000>;
508 charging_current = <450>;
512 input_current = <2000>;
513 charging_current = <1800>;
516 cable_number = <11 14 16 28>;
517 input_current = <650>;
518 charging_current = <1400>;
522 input_current = <500>;
523 charging_current = <1400>;