xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power_supply/rk816-battery.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunrk816-battery
2*4882a593Smuzhiyun~~~~~~~~~~
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunRequired properties :
5*4882a593Smuzhiyun - compatible: "rk816-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 - max_input_current: maximum current from adapter
10*4882a593Smuzhiyun - max_chrg_current: maximum current for battery charge
11*4882a593Smuzhiyun - max_chrg_voltage: maximum charge voltage for battery
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional properties :
14*4882a593Smuzhiyun - sleep_enter_current: current threshold of enter relax mode
15*4882a593Smuzhiyun - sleep_exit_current: current threshold of exit relax mode
16*4882a593Smuzhiyun - sleep_filter_current: current threshold of valid relax mode
17*4882a593Smuzhiyun - power_off_thresd: vsys voltage threshold of power off
18*4882a593Smuzhiyun - zero_algorithm_vol: voltage threshold of discharge zero algorithm
19*4882a593Smuzhiyun - fb_temperature: feed back temperature of PMIC
20*4882a593Smuzhiyun - max_soc_offset: soc threshold of correct dsoc as rsoc
21*4882a593Smuzhiyun - monitor_sec: poll seconds for battery delay work
22*4882a593Smuzhiyun - virtual_power: test mode for none battery
23*4882a593Smuzhiyun - energy_mode: try to use all power of battery
24*4882a593Smuzhiyun - power_dc2otg: dc can provide supply for otg 5v
25*4882a593Smuzhiyun - dc_det_adc: dc detect by saradc
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunExample:
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunrk816: pmic@1a {
30*4882a593Smuzhiyun	compatible = "rockchip,rk816";
31*4882a593Smuzhiyun	reg = <0x1a>;
32*4882a593Smuzhiyun	interrupt-parent = <&gpio0>;
33*4882a593Smuzhiyun	interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
34*4882a593Smuzhiyun	pinctrl-names = "default";
35*4882a593Smuzhiyun	pinctrl-0 = <&pmic_int_l>;
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun	......
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	battery {
40*4882a593Smuzhiyun		compatible = "rk816-battery";
41*4882a593Smuzhiyun		ocv_table = <3400 3654 3686 3710 3744 3775 3803
42*4882a593Smuzhiyun			     3825 3843 3858 3870 3886 3955 3988
43*4882a593Smuzhiyun			     4010 4023 4032 4049 4080 4151>;
44*4882a593Smuzhiyun		design_capacity = <2000>;
45*4882a593Smuzhiyun		design_qmax = <2200>;
46*4882a593Smuzhiyun		bat_res = <120>;
47*4882a593Smuzhiyun		max_input_current = <2000>;
48*4882a593Smuzhiyun		max_chrg_current = <1000>;
49*4882a593Smuzhiyun		max_chrg_voltage = <4200>;
50*4882a593Smuzhiyun		sleep_enter_current = <300>;
51*4882a593Smuzhiyun		sleep_exit_current = <300>;
52*4882a593Smuzhiyun		sleep_filter_current = <100>;
53*4882a593Smuzhiyun		power_off_thresd = <3500>;
54*4882a593Smuzhiyun		zero_algorithm_vol = <3800>;
55*4882a593Smuzhiyun		fb_temperature = <105>;
56*4882a593Smuzhiyun		max_soc_offset = <60>;
57*4882a593Smuzhiyun		monitor_sec = <5>;
58*4882a593Smuzhiyun		virtual_power = <0>;
59*4882a593Smuzhiyun		energy_mode = <0>;
60*4882a593Smuzhiyun		power_dc2otg = <0>;
61*4882a593Smuzhiyun		dc_det_adc = <0>;
62*4882a593Smuzhiyun	};
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun	......
65*4882a593Smuzhiyun};
66