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