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
|
/*
* SAMSUNG UNIVERSAL5430 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.
*/
/ {
hsi2c@14D90000 {
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <400000>;
status = "okay";
max77823@66 {
compatible = "maxim,max77823";
reg = <0x66>;
pinctrl-names = "default";
pinctrl-0 = <&chg_irq>;
max77823,irq-gpio = <&gpa1 5 1>;
max77823,wakeup;
};
};
battery {
status = "okay";
compatible = "samsung,sec-battery";
battery,vendor = "SDI SDI";
battery,charger_name = "max77823-charger";
battery,fuelgauge_name = "max77823-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,temp_table_adc = <500 571 617 633 653 670 688 757 848 965 1016 1034
1059 1087 1030 1194 1334 1418 1518 1597 1677 1742 1772 1785
1795 1808 1818 1827 1839 1849 1859 1868 1875 1923 1970 1995>;
battery,temp_table_data = <690 640 610 600 590 580 570 540 490 440 410 400
390 380 370 340 290 240 190 140 90 40 10 0
(-10) (-20) (-30) (-40) (-50) (-60) (-70) (-80) (-110) (-160) (-210) (-260)>;
battery,input_current_limit = <1800 0 0 1800 460 900 1000 460 1000 0 650 1900 0 0 0 400 700 1300 300 1000 1600 0 1633>;
battery,fast_charging_current = <2100 0 0 2100 460 1200 1000 460 1200 0 750 1600 0 0 0 400 700 1300 300 1000 1900 0 2800>;
battery,full_check_current_1st = <200 0 0 200 200 200 200 200 200 0 200 200 0 0 0 200 200 200 200 200 200 0 200>;
battery,full_check_current_2nd = <2400 0 0 2400 2400 2400 2400 2400 2400 0 2400 2400 0 0 0 2400 2400 2400 2400 2400 2400 0 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>;
/* SEC_BATTERY_FULL_CONDITION_SOC |
SEC_BATTERY_FULL_CONDITION_NOTIMEFULL |
SEC_BATTERY_FULL_CONDITION_VCELL */
battery,full_condition_type = <13>;
battery,full_condition_soc = <97>;
battery,full_condition_vcell = <4350>;
battery,recharge_check_count = <2>;
battery,recharge_condition_type = <4>; /* SEC_BATTERY_RECHARGE_CONDITION_VCELL */
battery,recharge_condition_soc = <98>;
battery,recharge_condition_vcell = <4350>;
battery,charging_total_time = <21600>;
battery,recharging_total_time = <5400>;
battery,charging_reset_time = <0>;
io-channels = <&exynos_adc 1>;
io-channel-names = "adc-temp";
#io-channel-cells = <1>;
io-channel-ranges;
};
max77823-fuelgauge {
status = "disable";
fuelgauge,fuel_alert_soc = <1>;
fuelgauge,capacity_max = <1000>;
fuelgauge,capacity_max_margin = <30>;
fuelgauge,capacity_min = <0>;
fuelgauge,capacity_calculation_type = <0x17>;
fuelgauge,repeated_fuelalert;
fuelgauge,rcomp0 = <0x88>;
fuelgauge,rcomp_charging = <0x88>;
fuelgauge,temp_cohot = <(-1000)>;
fuelgauge,temp_cocold = <(-4325)>;
fuelgauge,is_using_model_data;
fuelgauge,type_str = "SDI";
fuelgauge,capacity = <0x3F76>;
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>;
};
max77823-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 = <4400>;
};
};
|