xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/bq2415x.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*2eb4d8dcSEmmanuel Vadot# Copyright (C) 2021 Sebastian Reichel
3*2eb4d8dcSEmmanuel Vadot%YAML 1.2
4*2eb4d8dcSEmmanuel Vadot---
5*2eb4d8dcSEmmanuel Vadot$id: "http://devicetree.org/schemas/power/supply/bq2415x.yaml#"
6*2eb4d8dcSEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7*2eb4d8dcSEmmanuel Vadot
8*2eb4d8dcSEmmanuel Vadottitle: Binding for TI bq2415x Li-Ion Charger
9*2eb4d8dcSEmmanuel Vadot
10*2eb4d8dcSEmmanuel Vadotmaintainers:
11*2eb4d8dcSEmmanuel Vadot  - Sebastian Reichel <sre@kernel.org>
12*2eb4d8dcSEmmanuel Vadot
13*2eb4d8dcSEmmanuel VadotallOf:
14*2eb4d8dcSEmmanuel Vadot  - $ref: power-supply.yaml#
15*2eb4d8dcSEmmanuel Vadot
16*2eb4d8dcSEmmanuel Vadotproperties:
17*2eb4d8dcSEmmanuel Vadot  compatible:
18*2eb4d8dcSEmmanuel Vadot    enum:
19*2eb4d8dcSEmmanuel Vadot      - ti,bq24150
20*2eb4d8dcSEmmanuel Vadot      - ti,bq24150
21*2eb4d8dcSEmmanuel Vadot      - ti,bq24150a
22*2eb4d8dcSEmmanuel Vadot      - ti,bq24151
23*2eb4d8dcSEmmanuel Vadot      - ti,bq24151a
24*2eb4d8dcSEmmanuel Vadot      - ti,bq24152
25*2eb4d8dcSEmmanuel Vadot      - ti,bq24153
26*2eb4d8dcSEmmanuel Vadot      - ti,bq24153a
27*2eb4d8dcSEmmanuel Vadot      - ti,bq24155
28*2eb4d8dcSEmmanuel Vadot      - ti,bq24156
29*2eb4d8dcSEmmanuel Vadot      - ti,bq24156a
30*2eb4d8dcSEmmanuel Vadot      - ti,bq24158
31*2eb4d8dcSEmmanuel Vadot
32*2eb4d8dcSEmmanuel Vadot  reg:
33*2eb4d8dcSEmmanuel Vadot    maxItems: 1
34*2eb4d8dcSEmmanuel Vadot
35*2eb4d8dcSEmmanuel Vadot  ti,current-limit:
36*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
37*2eb4d8dcSEmmanuel Vadot    description: initial maximum current charger can pull from power supply in mA.
38*2eb4d8dcSEmmanuel Vadot
39*2eb4d8dcSEmmanuel Vadot  ti,weak-battery-voltage:
40*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
41*2eb4d8dcSEmmanuel Vadot    description: |
42*2eb4d8dcSEmmanuel Vadot      weak battery voltage threshold in mV.
43*2eb4d8dcSEmmanuel Vadot      The chip will use slow precharge if battery voltage is below this value.
44*2eb4d8dcSEmmanuel Vadot
45*2eb4d8dcSEmmanuel Vadot  ti,battery-regulation-voltage:
46*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
47*2eb4d8dcSEmmanuel Vadot    description: maximum charging voltage in mV.
48*2eb4d8dcSEmmanuel Vadot
49*2eb4d8dcSEmmanuel Vadot  ti,charge-current:
50*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
51*2eb4d8dcSEmmanuel Vadot    description: maximum charging current in mA.
52*2eb4d8dcSEmmanuel Vadot
53*2eb4d8dcSEmmanuel Vadot  ti,termination-current:
54*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
55*2eb4d8dcSEmmanuel Vadot    description: |
56*2eb4d8dcSEmmanuel Vadot      charge will be terminated when current in constant-voltage phase drops
57*2eb4d8dcSEmmanuel Vadot      below this value (in mA).
58*2eb4d8dcSEmmanuel Vadot
59*2eb4d8dcSEmmanuel Vadot  ti,resistor-sense:
60*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
61*2eb4d8dcSEmmanuel Vadot    description: value of sensing resistor in milliohm.
62*2eb4d8dcSEmmanuel Vadot
63*2eb4d8dcSEmmanuel Vadot  ti,usb-charger-detection:
64*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
65*2eb4d8dcSEmmanuel Vadot    description: phandle to usb charger detection device (required for auto mode)
66*2eb4d8dcSEmmanuel Vadot
67*2eb4d8dcSEmmanuel Vadotrequired:
68*2eb4d8dcSEmmanuel Vadot  - compatible
69*2eb4d8dcSEmmanuel Vadot  - reg
70*2eb4d8dcSEmmanuel Vadot  - ti,current-limit
71*2eb4d8dcSEmmanuel Vadot  - ti,weak-battery-voltage
72*2eb4d8dcSEmmanuel Vadot  - ti,battery-regulation-voltage
73*2eb4d8dcSEmmanuel Vadot  - ti,charge-current
74*2eb4d8dcSEmmanuel Vadot  - ti,termination-current
75*2eb4d8dcSEmmanuel Vadot  - ti,resistor-sense
76*2eb4d8dcSEmmanuel Vadot
77*2eb4d8dcSEmmanuel VadotadditionalProperties: false
78*2eb4d8dcSEmmanuel Vadot
79*2eb4d8dcSEmmanuel Vadotexamples:
80*2eb4d8dcSEmmanuel Vadot  - |
81*2eb4d8dcSEmmanuel Vadot    i2c0 {
82*2eb4d8dcSEmmanuel Vadot      #address-cells = <1>;
83*2eb4d8dcSEmmanuel Vadot      #size-cells = <0>;
84*2eb4d8dcSEmmanuel Vadot
85*2eb4d8dcSEmmanuel Vadot      charger@6b {
86*2eb4d8dcSEmmanuel Vadot        compatible = "ti,bq24150a";
87*2eb4d8dcSEmmanuel Vadot        reg = <0x6b>;
88*2eb4d8dcSEmmanuel Vadot
89*2eb4d8dcSEmmanuel Vadot        ti,current-limit = <100>;
90*2eb4d8dcSEmmanuel Vadot        ti,weak-battery-voltage = <3400>;
91*2eb4d8dcSEmmanuel Vadot        ti,battery-regulation-voltage = <4200>;
92*2eb4d8dcSEmmanuel Vadot        ti,charge-current = <650>;
93*2eb4d8dcSEmmanuel Vadot        ti,termination-current = <100>;
94*2eb4d8dcSEmmanuel Vadot        ti,resistor-sense = <68>;
95*2eb4d8dcSEmmanuel Vadot
96*2eb4d8dcSEmmanuel Vadot        ti,usb-charger-detection = <&isp1704>;
97*2eb4d8dcSEmmanuel Vadot      };
98*2eb4d8dcSEmmanuel Vadot    };
99