NeilBrown | ec0b380 | 2013-10-31 17:05:50 +1100 | [diff] [blame] | 1 | TWL BCI (Battery Charger Interface) |
| 2 | |
NeilBrown | f5e4edb | 2015-03-23 09:52:48 +1100 | [diff] [blame] | 3 | The battery charger needs to interact with the USB phy in order |
| 4 | to know when charging is permissible, and when there is a connection |
| 5 | or disconnection. |
| 6 | |
| 7 | The choice of phy cannot be configured at a hardware level, so there |
| 8 | is no value in explicit configuration in device-tree. Rather |
| 9 | if there is a sibling of the BCI node which is compatible with |
| 10 | "ti,twl4030-usb", then that is used to determine when and how |
| 11 | use USB power for charging. |
| 12 | |
NeilBrown | ec0b380 | 2013-10-31 17:05:50 +1100 | [diff] [blame] | 13 | Required properties: |
| 14 | - compatible: |
| 15 | - "ti,twl4030-bci" |
| 16 | - interrupts: two interrupt lines from the TWL SIH (secondary |
| 17 | interrupt handler) - interrupts 9 and 2. |
| 18 | |
| 19 | Optional properties: |
| 20 | - ti,bb-uvolt: microvolts for charging the backup battery. |
| 21 | - ti,bb-uamp: microamps for charging the backup battery. |
| 22 | |
| 23 | Examples: |
| 24 | |
| 25 | bci { |
| 26 | compatible = "ti,twl4030-bci"; |
| 27 | interrupts = <9>, <2>; |
| 28 | ti,bb-uvolt = <3200000>; |
| 29 | ti,bb-uamp = <150>; |
| 30 | }; |