xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/rt9455_charger.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotBinding for Richtek rt9455 battery charger
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible:				it should contain one of the following:
5*c66ec88fSEmmanuel Vadot					"richtek,rt9455".
6*c66ec88fSEmmanuel Vadot- reg:					integer, i2c address of the device.
7*c66ec88fSEmmanuel Vadot- interrupts:				interrupt mapping for GPIO IRQ, it should be
8*c66ec88fSEmmanuel Vadot					configured with IRQ_TYPE_LEVEL_LOW flag.
9*c66ec88fSEmmanuel Vadot- richtek,output-charge-current:	integer, output current from the charger to the
10*c66ec88fSEmmanuel Vadot					battery, in uA.
11*c66ec88fSEmmanuel Vadot- richtek,end-of-charge-percentage:	integer, percent of the output charge current.
12*c66ec88fSEmmanuel Vadot					When the current in constant-voltage phase drops
13*c66ec88fSEmmanuel Vadot					below output_charge_current x end-of-charge-percentage,
14*c66ec88fSEmmanuel Vadot					charge is terminated.
15*c66ec88fSEmmanuel Vadot- richtek,battery-regulation-voltage:	integer, maximum battery voltage in uV.
16*c66ec88fSEmmanuel Vadot- richtek,boost-output-voltage:		integer, maximum voltage provided to consumer
17*c66ec88fSEmmanuel Vadot					devices, when the charger is in boost mode, in uV.
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel VadotOptional properties:
20*c66ec88fSEmmanuel Vadot- richtek,min-input-voltage-regulation: integer, input voltage level in uV, used to
21*c66ec88fSEmmanuel Vadot					decrease voltage level when the over current
22*c66ec88fSEmmanuel Vadot					of the input power source occurs.
23*c66ec88fSEmmanuel Vadot					This prevents input voltage drop due to insufficient
24*c66ec88fSEmmanuel Vadot					current provided by the power source.
25*c66ec88fSEmmanuel Vadot					Default: 4500000 uV (4.5V)
26*c66ec88fSEmmanuel Vadot- richtek,avg-input-current-regulation: integer, input current value in uA drained by the
27*c66ec88fSEmmanuel Vadot					charger from the power source.
28*c66ec88fSEmmanuel Vadot					Default: 500000 uA (500mA)
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel VadotExample:
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadotrt9455@22 {
33*c66ec88fSEmmanuel Vadot	compatible = "richtek,rt9455";
34*c66ec88fSEmmanuel Vadot	reg = <0x22>;
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot	interrupt-parent = <&gpio1>;
37*c66ec88fSEmmanuel Vadot	interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot	richtek,output-charge-current	    = <500000>;
40*c66ec88fSEmmanuel Vadot	richtek,end-of-charge-percentage    = <10>;
41*c66ec88fSEmmanuel Vadot	richtek,battery-regulation-voltage  = <4200000>;
42*c66ec88fSEmmanuel Vadot	richtek,boost-output-voltage	    = <5050000>;
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot	richtek,min-input-voltage-regulation = <4500000>;
45*c66ec88fSEmmanuel Vadot	richtek,avg-input-current-regulation = <500000>;
46*c66ec88fSEmmanuel Vadot};
47