xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/ti,bq24735.txt (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1TI BQ24735 Charge Controller
2~~~~~~~~~~
3
4Required properties :
5 - compatible : "ti,bq24735"
6
7Optional properties :
8 - interrupts : Specify the interrupt to be used to trigger when the AC
9   adapter is either plugged in or removed.
10 - ti,ac-detect-gpios : This GPIO is optionally used to read the AC adapter
11   status. This is a Host GPIO that is configured as an input and connected
12   to the ACOK pin on the bq24735. Note: for backwards compatibility reasons,
13   the GPIO must be active on AC adapter absence despite ACOK being active
14   (high) on AC adapter presence.
15 - ti,charge-current : Used to control and set the charging current. This value
16   must be between 128mA and 8.128A with a 64mA step resolution. The POR value
17   is 0x0000h. This number is in mA (e.g. 8192), see spec for more information
18   about the ChargeCurrent (0x14h) register.
19 - ti,charge-voltage : Used to control and set the charging voltage. This value
20   must be between 1.024V and 19.2V with a 16mV step resolution. The POR value
21   is 0x0000h. This number is in mV (e.g. 19200), see spec for more information
22   about the ChargeVoltage (0x15h) register.
23 - ti,input-current : Used to control and set the charger input current. This
24   value must be between 128mA and 8.064A with a 128mA step resolution. The
25   POR value is 0x1000h. This number is in mA (e.g. 8064), see the spec for
26   more information about the InputCurrent (0x3fh) register.
27 - ti,external-control : Indicates that the charger is configured externally
28   and that the host should not attempt to enable/disable charging or set the
29   charge voltage/current.
30 - poll-interval : In case 'interrupts' is not specified, poll AC adapter
31   presence with this interval (milliseconds).
32
33Example:
34
35	bq24735@9 {
36		compatible = "ti,bq24735";
37		reg = <0x9>;
38		ti,ac-detect-gpios = <&gpio 72 0x1>;
39	}
40