xref: /openbmc/linux/Documentation/devicetree/bindings/power/supply/twl4030-charger.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1bb56712aSSebastian Reichel# SPDX-License-Identifier: GPL-2.0
2bb56712aSSebastian Reichel%YAML 1.2
3bb56712aSSebastian Reichel---
4*1ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/twl4030-charger.yaml#
5*1ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6bb56712aSSebastian Reichel
7bb56712aSSebastian Reicheltitle: TWL4030 BCI (Battery Charger Interface)
8bb56712aSSebastian Reichel
9bb56712aSSebastian Reicheldescription: |
10bb56712aSSebastian Reichel  The battery charger needs to interact with the USB phy in order to know when
11bb56712aSSebastian Reichel  charging is permissible, and when there is a connection or disconnection.
12bb56712aSSebastian Reichel
13bb56712aSSebastian Reichel  The choice of phy cannot be configured at a hardware level, so there is no
14bb56712aSSebastian Reichel  value in explicit configuration in device-tree. Rather if there is a sibling
15bb56712aSSebastian Reichel  of the BCI node which is compatible with "ti,twl4030-usb", then that is used
16bb56712aSSebastian Reichel  to determine when and how use USB power for charging.
17bb56712aSSebastian Reichel
18bb56712aSSebastian Reichelmaintainers:
19bb56712aSSebastian Reichel  - Sebastian Reichel <sre@kernel.org>
20bb56712aSSebastian Reichel
21bb56712aSSebastian ReichelallOf:
22bb56712aSSebastian Reichel  - $ref: power-supply.yaml#
23bb56712aSSebastian Reichel
24bb56712aSSebastian Reichelproperties:
25bb56712aSSebastian Reichel  compatible:
26bb56712aSSebastian Reichel    const: ti,twl4030-bci
27bb56712aSSebastian Reichel
28bb56712aSSebastian Reichel  interrupts:
29bb56712aSSebastian Reichel    minItems: 2
30bb56712aSSebastian Reichel    maxItems: 2
31bb56712aSSebastian Reichel
32bb56712aSSebastian Reichel  ti,bb-uvolt:
33bb56712aSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
34bb56712aSSebastian Reichel    description: microvolts for charging the backup battery
35bb56712aSSebastian Reichel
36bb56712aSSebastian Reichel  ti,bb-uamp:
37bb56712aSSebastian Reichel    $ref: /schemas/types.yaml#/definitions/uint32
38bb56712aSSebastian Reichel    description: microamps for charging the backup battery
39bb56712aSSebastian Reichel
40bb56712aSSebastian Reichel  io-channels:
41bb56712aSSebastian Reichel    items:
42bb56712aSSebastian Reichel      - description: Accessory Charger Voltage Channel
43bb56712aSSebastian Reichel
44bb56712aSSebastian Reichel  io-channel-names:
45bb56712aSSebastian Reichel    items:
46bb56712aSSebastian Reichel      - const: vac
47bb56712aSSebastian Reichel
48bb56712aSSebastian Reichel  bci3v1-supply:
49bb56712aSSebastian Reichel    description: 3.1V USB regulator
50bb56712aSSebastian Reichel
51bb56712aSSebastian Reichelrequired:
52bb56712aSSebastian Reichel  - compatible
53bb56712aSSebastian Reichel  - interrupts
54bb56712aSSebastian Reichel
55bb56712aSSebastian ReicheladditionalProperties: false
56bb56712aSSebastian Reichel
57bb56712aSSebastian Reichelexamples:
58bb56712aSSebastian Reichel  - |
59bb56712aSSebastian Reichel    pmic {
60bb56712aSSebastian Reichel      charger {
61bb56712aSSebastian Reichel        compatible = "ti,twl4030-bci";
62bb56712aSSebastian Reichel        interrupts = <9>, <2>;
63bb56712aSSebastian Reichel        ti,bb-uvolt = <3200000>;
64bb56712aSSebastian Reichel        ti,bb-uamp = <150>;
65bb56712aSSebastian Reichel        io-channels = <&twl_madc 11>;
66bb56712aSSebastian Reichel        io-channel-names = "vac";
67bb56712aSSebastian Reichel      };
68bb56712aSSebastian Reichel    };
69