xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/sc8551_charger.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBinding for sc8551 battery charger
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "sc,sc8551-standalone" for sc8551 Charger Power Supply
5*4882a593Smuzhiyun- monitored-battery: phandle of battery characteristics devicetree node
6*4882a593Smuzhiyun- interrupts: Interrupt mapping for GPIO IRQ. Use in conjunction with
7*4882a593Smuzhiyun    "interrupt-parent". If an interrupt is not provided the driver will switch
8*4882a593Smuzhiyun     automatically to polling.
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun- input-voltage-limit-microvolt: integer, input voltage level in uV, used to
11*4882a593Smuzhiyun				 decrease voltage level when the over current
12*4882a593Smuzhiyun				 of the input power source occurs.
13*4882a593Smuzhiyun- input-current-limit-microamp: integer, input current value in uA drained by the
14*4882a593Smuzhiyun				charger from the power source.Default: 500000 uA (500mA)
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun- sc,sc8551,bat-ovp-disable: enable the battery over voltage protection
17*4882a593Smuzhiyun- sc,sc8551,bat-ocp-disable: enable the battery over current protection
18*4882a593Smuzhiyun- sc,sc8551,bus-ocp-disable: enable the bus over voltage protection
19*4882a593Smuzhiyun- sc,sc8551,bat-ovp-threshold: Configures the battery over voltage protection voltage (in uV).
20*4882a593Smuzhiyun- sc,sc8551,bat-ocp-threshold: Configures the battery over current protection voltage (in uA).
21*4882a593Smuzhiyun- sc,sc8551,bus-ovp-threshold: Configures the bus over voltage protection voltage (in uV).
22*4882a593Smuzhiyun- sc,sc8551,bus-ocp-threshold: Configures the bus over current protection voltage (in uA).
23*4882a593Smuzhiyun- sc,sc8551,ac-ovp-threshold: Configures the AC voltage protection voltage (in uV).
24*4882a593Smuzhiyun- sc,sc8551,sense-resistor-mohm: integer, value of a resistor in series with the battery;
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunExample:
27*4882a593Smuzhiyunc8551: sc8551@66 {
28*4882a593Smuzhiyun	compatible = "sc,sc8551-standalone";
29*4882a593Smuzhiyun	reg = <0x66>;
30*4882a593Smuzhiyun	interrupt-parent = <&gpio4>;
31*4882a593Smuzhiyun	interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun	sc,sc8551,bat-ovp-disable = <0>;
34*4882a593Smuzhiyun	sc,sc8551,bat-ocp-disable = <0>;
35*4882a593Smuzhiyun	sc,sc8551,bus-ocp-disable = <0>;
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun	sc,sc8551,bat-ovp-threshold = <4500>;
38*4882a593Smuzhiyun	sc,sc8551,bat-ocp-threshold = <4500>;
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun	sc,sc8551,bus-ovp-threshold = <12000>;
41*4882a593Smuzhiyun	sc,sc8551,bus-ocp-threshold = <4000>;
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun	sc,sc8551,ac-ovp-threshold = <17>;
44*4882a593Smuzhiyun	sc,sc8551,sense-resistor-mohm = <2>;
45*4882a593Smuzhiyun};
46*4882a593Smuzhiyun
47