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