Skip to content

Commit d7bf353

Browse files
mgreerazenomsg
authored andcommitted
bq24190_charger: Add support for TI BQ24190 Battery Charger
Add driver support for the Texas Instruments BQ24190 battery charger. Some of the information provided by the device is about the charger and other information is about the battery so create two power_supply objects (one for each) and provide the appropriate information for each one. The device has many fields that go beyond what is reasonable to report or modify using the existing 'POWER_SUPPLY_PROP_*' properties so the driver exports the register fields via sysfs. They are prefixed by 'f_' (for 'field') to make it easier to distinguish between a register field and a "normal" sysfs file exported by the power_supply infrastructure. Signed-off-by: Mark A. Greer <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
1 parent ed5243f commit d7bf353

File tree

4 files changed

+1569
-0
lines changed

4 files changed

+1569
-0
lines changed

drivers/power/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,12 @@ config CHARGER_BQ2415X
334334
You'll need this driver to charge batteries on e.g. Nokia
335335
RX-51/N900.
336336

337+
config CHARGER_BQ24190
338+
tristate "TI BQ24190 battery charger driver"
339+
depends on I2C && GPIOLIB
340+
help
341+
Say Y to enable support for the TI BQ24190 battery charger.
342+
337343
config CHARGER_SMB347
338344
tristate "Summit Microelectronics SMB347 Battery Charger"
339345
depends on I2C

drivers/power/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ obj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o
5050
obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
5151
obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o
5252
obj-$(CONFIG_CHARGER_BQ2415X) += bq2415x_charger.o
53+
obj-$(CONFIG_CHARGER_BQ24190) += bq24190_charger.o
5354
obj-$(CONFIG_POWER_AVS) += avs/
5455
obj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o
5556
obj-$(CONFIG_CHARGER_TPS65090) += tps65090-charger.o

0 commit comments

Comments
 (0)