Skip to content

Commit 21472a5

Browse files
andanicolaesre
authored andcommitted
Documentation: devicetree: Add Richtek RT9455 bindings
Signed-off-by: Anda-Maria Nicolae <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> [added default values to optional properties] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent eb82b90 commit 21472a5

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
Binding for Richtek rt9455 battery charger
2+
3+
Required properties:
4+
- compatible: it should contain one of the following:
5+
"richtek,rt9455".
6+
- reg: integer, i2c address of the device.
7+
- interrupt-parent: the phandle for the interrupt controller that
8+
services interrupts for this device.
9+
- interrupts: interrupt mapping for GPIO IRQ, it should be
10+
configured with IRQ_TYPE_LEVEL_LOW flag.
11+
- richtek,output-charge-current: integer, output current from the charger to the
12+
battery, in uA.
13+
- richtek,end-of-charge-percentage: integer, percent of the output charge current.
14+
When the current in constant-voltage phase drops
15+
below output_charge_current x end-of-charge-percentage,
16+
charge is terminated.
17+
- richtek,battery-regulation-voltage: integer, maximum battery voltage in uV.
18+
- richtek,boost-output-voltage: integer, maximum voltage provided to consumer
19+
devices, when the charger is in boost mode, in uV.
20+
21+
Optional properties:
22+
- richtek,min-input-voltage-regulation: integer, input voltage level in uV, used to
23+
decrease voltage level when the over current
24+
of the input power source occurs.
25+
This prevents input voltage drop due to insufficient
26+
current provided by the power source.
27+
Default: 4500000 uV (4.5V)
28+
- richtek,avg-input-current-regulation: integer, input current value in uA drained by the
29+
charger from the power source.
30+
Default: 500000 uA (500mA)
31+
32+
Example:
33+
34+
rt9455@22 {
35+
compatible = "richtek,rt9455";
36+
reg = <0x22>;
37+
38+
interrupt-parent = <&gpio1>;
39+
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
40+
41+
richtek,output-charge-current = <500000>;
42+
richtek,end-of-charge-percentage = <10>;
43+
richtek,battery-regulation-voltage = <4200000>;
44+
richtek,boost-output-voltage = <5050000>;
45+
46+
richtek,min-input-voltage-regulation = <4500000>;
47+
richtek,avg-input-current-regulation = <500000>;
48+
};

0 commit comments

Comments
 (0)