xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/twl-charger.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunTWL BCI (Battery Charger Interface)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe battery charger needs to interact with the USB phy in order
4*4882a593Smuzhiyunto know when charging is permissible, and when there is a connection
5*4882a593Smuzhiyunor disconnection.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThe choice of phy cannot be configured at a hardware level, so there
8*4882a593Smuzhiyunis no value in explicit configuration in device-tree.  Rather
9*4882a593Smuzhiyunif there is a sibling of the BCI node which is compatible with
10*4882a593Smuzhiyun"ti,twl4030-usb", then that is used to determine when and how
11*4882a593Smuzhiyunuse USB power for charging.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunRequired properties:
14*4882a593Smuzhiyun- compatible:
15*4882a593Smuzhiyun  - "ti,twl4030-bci"
16*4882a593Smuzhiyun- interrupts: two interrupt lines from the TWL SIH (secondary
17*4882a593Smuzhiyun  interrupt handler) - interrupts 9 and 2.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunOptional properties:
20*4882a593Smuzhiyun- ti,bb-uvolt: microvolts for charging the backup battery.
21*4882a593Smuzhiyun- ti,bb-uamp: microamps for charging the backup battery.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunExamples:
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunbci {
26*4882a593Smuzhiyun   compatible = "ti,twl4030-bci";
27*4882a593Smuzhiyun   interrupts = <9>, <2>;
28*4882a593Smuzhiyun   ti,bb-uvolt = <3200000>;
29*4882a593Smuzhiyun   ti,bb-uamp = <150>;
30*4882a593Smuzhiyun};
31