xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power_supply/rk817-battery.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunrk817-battery
2*4882a593Smuzhiyun~~~~~~~~~~
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunRequired properties :
5*4882a593Smuzhiyun - compatible: "rk817,battery"
6*4882a593Smuzhiyun - ocv_table: ocv voltage and soc relation table
7*4882a593Smuzhiyun - design_capacity: real capacity tested by tool
8*4882a593Smuzhiyun - design_qmax: nominal capacity * 1.1
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunOptional properties :
11*4882a593Smuzhiyun - sleep_enter_current: current threshold of enter relax mode
12*4882a593Smuzhiyun - sleep_exit_current: current threshold of exit relax mode
13*4882a593Smuzhiyun - sleep_filter_current: current threshold of valid relax mode
14*4882a593Smuzhiyun - power_off_thresd: vsys voltage threshold of power off
15*4882a593Smuzhiyun - zero_algorithm_vol: voltage threshold of discharge zero algorithm
16*4882a593Smuzhiyun - max_soc_offset: soc threshold of correct dsoc as rsoc
17*4882a593Smuzhiyun - monitor_sec: poll seconds for battery delay work
18*4882a593Smuzhiyun - virtual_power: test mode for none battery
19*4882a593Smuzhiyun - energy_mode: try to use all power of battery
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunExample:
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunrk817: pmic@20 {
24*4882a593Smuzhiyun	compatible = "rockchip,rk817";
25*4882a593Smuzhiyun	reg = <0x20>;
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	......
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun	battery {
30*4882a593Smuzhiyun		compatible = "rk817,battery";
31*4882a593Smuzhiyun		ocv_table = <3400 3654 3686 3710 3744 3775 3803
32*4882a593Smuzhiyun			     3825 3843 3858 3870 3886 3955 3988
33*4882a593Smuzhiyun			     4010 4023 4032 4049 4080 4151>;
34*4882a593Smuzhiyun		design_capacity = <2000>;
35*4882a593Smuzhiyun		design_qmax = <2200>;
36*4882a593Smuzhiyun		bat_res = <120>;
37*4882a593Smuzhiyun		sleep_enter_current = <300>;
38*4882a593Smuzhiyun		sleep_exit_current = <300>;
39*4882a593Smuzhiyun		sleep_filter_current = <100>;
40*4882a593Smuzhiyun		power_off_thresd = <3500>;
41*4882a593Smuzhiyun		zero_algorithm_vol = <3800>;
42*4882a593Smuzhiyun		max_soc_offset = <60>;
43*4882a593Smuzhiyun		monitor_sec = <5>;
44*4882a593Smuzhiyun		virtual_power = <0>;
45*4882a593Smuzhiyun		energy_mode = <0>;
46*4882a593Smuzhiyun	};
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun	......
49*4882a593Smuzhiyun};
50