hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
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
rk817-battery
~~~~~~~~~~
 
Required properties :
 - compatible: "rk817,battery"
 - ocv_table: ocv voltage and soc relation table
 - design_capacity: real capacity tested by tool
 - design_qmax: nominal capacity * 1.1
 
Optional properties :
 - sleep_enter_current: current threshold of enter relax mode
 - sleep_exit_current: current threshold of exit relax mode
 - sleep_filter_current: current threshold of valid relax mode
 - power_off_thresd: vsys voltage threshold of power off
 - zero_algorithm_vol: voltage threshold of discharge zero algorithm
 - max_soc_offset: soc threshold of correct dsoc as rsoc
 - monitor_sec: poll seconds for battery delay work
 - virtual_power: test mode for none battery
 - energy_mode: try to use all power of battery
 
Example:
 
rk817: pmic@20 {
   compatible = "rockchip,rk817";
   reg = <0x20>;
 
   ......
 
   battery {
       compatible = "rk817,battery";
       ocv_table = <3400 3654 3686 3710 3744 3775 3803
                3825 3843 3858 3870 3886 3955 3988
                4010 4023 4032 4049 4080 4151>;
       design_capacity = <2000>;
       design_qmax = <2200>;
       bat_res = <120>;
       sleep_enter_current = <300>;
       sleep_exit_current = <300>;
       sleep_filter_current = <100>;
       power_off_thresd = <3500>;
       zero_algorithm_vol = <3800>;
       max_soc_offset = <60>;
       monitor_sec = <5>;
       virtual_power = <0>;
       energy_mode = <0>;
   };
 
   ......
};